private void BuildTask1() { FaultInfo faultInfo = new FaultInfo("111210", "VC50", DateTime.Now, DateTime.Now); Task newTask = new Task("100101", "Moodlight can not work when first start it", "Moodlight can not work when first start it", faultInfo, 3); AbstractInteraction newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.TicketCheck, "Dave"); newTask.AddInteraction(newInteraction); TaskBuilder.BuildTask(myWorkflowGraph, newTask, "Bob", "Dave", ProcedureStepEunm.TicketCheck.ToString()); }
private void BuildTask5() { FaultInfo faultInfo = new FaultInfo("123656", "VC40", DateTime.Now, DateTime.Now); Task newTask = new Task("100105", "Somewords transient during scaning", "Somewords transient during scaning.", faultInfo, 3); AbstractInteraction newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.TicketCheck, "Dave"); newTask.AddInteraction(newInteraction); newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.PreAnalysis, "Haden"); newTask.AddInteraction(newInteraction); newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.Solve, "Isaac"); newTask.AddInteraction(newInteraction); TaskBuilder.BuildTask(myWorkflowGraph, newTask, "Clare", "Isaac", ProcedureStepEunm.Solve.ToString()); }
private void BuildTask4() { FaultInfo faultInfo = new FaultInfo("123556", "VC40", DateTime.Now, DateTime.Now); Task newTask = new Task("100104", "ECG lost message can not be cleared.", "ECG lost message can not be cleared.", faultInfo, 2); AbstractInteraction newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.TicketCheck, "Dave"); newTask.AddInteraction(newInteraction); newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.PreAnalysis, "Haden"); newTask.AddInteraction(newInteraction); newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.Solve, "Isaac"); newTask.AddInteraction(newInteraction); TaskBuilder.BuildTask(myWorkflowGraph, newTask, "Clare", "Isaac", ProcedureStepEunm.Solve.ToString()); }
private void BuildTask3() { FaultInfo faultInfo = new FaultInfo("123456", "VC40", DateTime.Now, DateTime.Now); Task newTask = new Task("100103", "Tilted table position line on tablet differs from ICS", "Tilted table position line on tablet differs from ICS", faultInfo, 3); AbstractInteraction newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.TicketCheck, "Dave"); newTask.AddInteraction(newInteraction); newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.PreAnalysis, "Haden"); newTask.AddInteraction(newInteraction); newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.Solve, "Isaac"); newTask.AddInteraction(newInteraction); TaskBuilder.BuildTask(myWorkflowGraph, newTask, "Clare", "Isaac", ProcedureStepEunm.Solve.ToString()); }
private void BuildTask2() { FaultInfo faultInfo = new FaultInfo("131456", "VC40", DateTime.Now, DateTime.Now); Task newTask = new Task("100102", "The warning message is not cleared when delete the warning range.", "The warning message is not cleared when delete the warning range.", faultInfo, 3); AbstractInteraction newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.TicketCheck, "Dave"); newTask.AddInteraction(newInteraction); newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.PreAnalysis, "Haden"); newTask.AddInteraction(newInteraction); newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.Solve, "Isaac"); newTask.AddInteraction(newInteraction); TaskBuilder.BuildTask(myWorkflowGraph, newTask, "Clare", "Isaac", ProcedureStepEunm.Solve.ToString()); }
protected void OnOsTouch( uint localID, uint originalID, Vector3 offsetPos, IClientAPI remoteClient, SurfaceTouchEventArgs surfaceArgs) { if (!m_localIds.Contains(originalID)) { return; } lock (m_interactions) { if (m_interactions.ContainsKey(remoteClient.AgentId)) { m_interactions[remoteClient.AgentId].Close(); m_interactions.Remove(remoteClient.AgentId); } AbstractInteraction interaction = CreateInteraction(remoteClient); // Not all clickable buttons implement interactions // FIXME: May change this at some stage for simplicity. if (interaction != null) { m_interactions.Add(remoteClient.AgentId, interaction); } } if (OnClick != null) { foreach (OnClickDelegate d in OnClick.GetInvocationList()) { try { d(offsetPos, remoteClient, surfaceArgs); } catch (Exception e) { m_log.ErrorFormat( "[WATER WARS]: Delegate for OnOsTouch failed - continuing. {0}{1}", e.Message, e.StackTrace); } } } // m_log.InfoFormat( // "[OS WIDGETS]: Fired OnTouch() with localID {0}, originalID {1} (part has localID {2}, Text {3})", // localID, originalID, m_part.LocalId, DisplayBehaviour.Text.Replace("\n", @"\n")); }
private void BuildTask7() { FaultInfo faultInfo = new FaultInfo("213656", "VC50", DateTime.Now, DateTime.Now); Task newTask = new Task("100107", "Exception pops up, by selecting the table position on TouchUI during start/close patient.", "Exception pops up, by selecting the table position on TouchUI during start/close patient..", faultInfo, 3); AbstractInteraction newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.TicketCheck, "Dave"); newTask.AddInteraction(newInteraction); newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.PreAnalysis, "Haden"); newTask.AddInteraction(newInteraction); newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.Solve, "Isaac"); newTask.AddInteraction(newInteraction); newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.Evaluate, "Haden"); newTask.AddInteraction(newInteraction); newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.Regression, "Pol"); newTask.AddInteraction(newInteraction); newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.Feedback, "Clare"); newTask.AddInteraction(newInteraction); TaskBuilder.BuildTask(myWorkflowGraph, newTask, "Clare", "Clare", ProcedureStepEunm.Feedback.ToString()); }
private void BuildTask6() { FaultInfo faultInfo = new FaultInfo("133672", "VC40", DateTime.Now, DateTime.Now); Task newTask = new Task("100106", "Wrong screen is displayed during general workflow", "Wrong screen is displayed during general workflow.", faultInfo, 1); AbstractInteraction newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.TicketCheck, "Dave"); newTask.AddInteraction(newInteraction); newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.PreAnalysis, "Haden"); newTask.AddInteraction(newInteraction); newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.Solve, "Jackson"); newTask.AddInteraction(newInteraction); newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.Evaluate, "Haden"); newTask.AddInteraction(newInteraction); newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.Regression, "Pol"); newTask.AddInteraction(newInteraction); newInteraction = TaskBuilder.GetInteraction(ProcedureStepEunm.Feedback, "Clare"); newTask.AddInteraction(newInteraction); TaskBuilder.BuildTask(myWorkflowGraph, newTask, "Clare", "Clare", ProcedureStepEunm.Feedback.ToString()); }
public void OnAddInteraction(AbstractInteraction interaction) { var laserInteraction = interaction as LaserInteraction; if (laserInteraction != null) { var titanView = laserInteraction.ParentTitan.View as TitanView; var enemyTitanView = laserInteraction.TargetTitan.View as TitanView; if (laserInteraction.Damage.Value > 0) { LaserBeamPool.ShowHit(titanView.GetHitPoint(), enemyTitanView.GetHitPoint(), 0.5f); } else { LaserBeamPool.ShowMiss(titanView.GetHitPoint(), enemyTitanView.GetHitPoint(), 0.5f); } } var rocketInteraction = interaction as RocketInteraction; if (rocketInteraction != null) { RocketsPool.Fire(rocketInteraction); } }
public DelayedInteraction(Titan parent, float delay, AbstractInteraction delayedInteraction) : base(parent) { delayTimer = delay; interaction = delayedInteraction; }