Example #1
0
 public Robot(RobotInterface Interface, ManualResetEvent Stop, ManualResetEvent Stopped) : this()
 {
     m_Interface          = Interface;
     m_TypeParams         = new TypeParams();
     m_EventStopThread    = Stop;
     m_EventThreadStopped = Stopped;
 }
Example #2
0
 protected virtual void CreateRobot(int Index, RobotInterface Robot)
 {
     //ToDo: hier Robots erzeugen; eigene Robotklasse verwenden!
     if (m_EventStopThread == null)
     {
         m_EventStopThread = new ManualResetEvent(false);
     }
     m_EventThreadStopped = new ManualResetEvent(false);
     m_Robot1             = new Robot(Robot, m_EventStopThread, m_EventThreadStopped);
 }
Example #3
0
 private void CreateRobotDispatcher()
 {
     try
     {
         m_EventStopThread    = new ManualResetEvent(false);
         m_EventThreadStopped = new ManualResetEvent(false);
         RobotInterface DispatcherInterface = new RobotInterface(null, modulDisplay1, null, null,
                                                                 m_ModuleState, null);
         RobotInterface Robot1Interface = new RobotInterface(stationDisplay1, null, null, null,
                                                             m_ModuleState, m_BK);
         RobotInterface Robot2Interface = new RobotInterface(stationDisplay2, modulDisplay1, resultTable1, partHistoryTable1,
                                                             m_ModuleState, m_BK);
         m_RobotDispatcher = new Demo.DemoRobotDispatcher(m_EventStopThread, m_EventThreadStopped, DispatcherInterface, Robot1Interface, Robot2Interface);
         //ToDo: Anzeigeelemnte mit Ereignishandlern verbinden
         this.counterEditor1.ConnectEvent(m_RobotDispatcher.GetRefRobot2().GetRefCounter());
     }
     catch (SystemException e)
     {
         GUI.DlgError.HandleException(e);
     }
 }
Example #4
0
 public RobotDispatcher(ManualResetEvent Stop, ManualResetEvent Stopped,
                        RobotInterface Dispatcher, RobotInterface Robot1) : base(Dispatcher, Stop, Stopped)
 {
     CreateRobot(1, Robot1);
 }