// Constructors ------------------------------------------------------------ public InputEEProcess(HSTWorkcell workcell, string processID, string processName) : base(workcell, processID, processName) { this._workcell = workcell; _qTimer = new QTimer(this); //RunInit mode stateRunInitMoveToHome = new QState(this.StateRunInitMoveToHome); statePublishInputEEHomed = new QState(this.StatePublishInputEEHomed); stateWaitForSigStartBoundaryCheckInputEEAxis = new QState(this.StateWaitForSigStartBoundaryCheckInputEEAxis); stateBoundaryCheck = new QState(this.StateBoundaryCheck); statePublishInputEEBoundaryCheckComplete = new QState(this.StatePublishInputEEBoundaryCheckComplete); stateCheckVaccuum = new QState(this.StateCheckVaccuum); stateRunInitCompleteMoveToParkPosition = new QState(this.StateRunInitCompleteMoveToParkPosition); //Run mode stateRunStart = new QState(this.StateRunStart); stateRunCheckHGAReadyForPick = new QState(this.StateRunCheckHGAReadyForPick); statePickHgaVacuumOn = new QState(this.StatePickHgaVacuumOn); statePickHgaZDown = new QState(this.StatePickHgaZDown); statePickHgaZUpToParkPosition = new QState(this.StatePickHgaZUpToParkPosition); statePickHgaCheckVacuum = new QState(this.StatePickHgaCheckVacuum); statePickHgaPublishPickDone = new QState(this.StatePickHgaPublishPickDone); stateRunCheckHGAReadyForPlace = new QState(this.StateRunCheckHGAReadyForPlace); statePlaceHgaZDown = new QState(this.StatePlaceHgaZDown); statePlaceHgaVacuumOff = new QState(this.StatePlaceHgaVacuumOff); stateWaitPrecisorTurnOnAllVacuums = new QState(this.StateWaitPrecisorTurnOnAllVacuums); statePlaceHgaZUpToParkPosition = new QState(this.StatePlaceHgaZUpToParkPosition); statePlaceHgaPublishPlaceDone = new QState(this.StatePlaceHgaPublishPlaceDone); statePerformCleaningWithDycem = new QState(this.StatePerformCleaningWithDycem); }
// Constructors ------------------------------------------------------------ public InputTurnStationProcess(HSTWorkcell workcell, string processID, string processName) : base(workcell, processID, processName) { this._workcell = workcell; // HSM delegates _qTimer = new QTimer(this); //RunInit mode stateStandbyInputTurnSection = new QState(this.StateStandbyInputTurnSection); //Run mode stateRunStart = new QState(this.StateRunStart); stateDoAutoClearCarrier = new QState(this.StateDoAutoClearCarrier); stateCheckForNextCarrier = new QState(this.StateCheckForNextCarrier); stateReleaseCarrierToInputTurnStation = new QState(this.StateReleaseCarrierToInputTurnStation); stateInputTurnSectionTurnForward = new QState(this.StateInputTurnSectionTurnForward); stateVisionInspectCarrierAfterLoad = new QState(this.StateVisionInspectCarrierAfterLoad); stateWaitForSigInputStationReady = new QState(this.StateWaitForSigInputStationReady); statePublishSigCarrierInInputStation = new QState(this.StatePublishSigCarrierInInputStation); stateReleaseCarrier = new QState(this.StateReleaseCarrier); stateInputTurnSectionTurnBackward = new QState(this.StateInputTurnSectionTurnBackward); stateReportTICError = new QState(this.StateReportTICError); stateReportCRDLError = new QState(this.StateReportCRDLError); stateReportGetputError = new QState(this.StateReportGetputError); }
// Constructors ------------------------------------------------------------ public OutputEEProcess(HSTWorkcell workcell, string processID, string processName) : base(workcell, processID, processName) { this._workcell = workcell; _qTimer = new QTimer(this); //RunInit mode stateMoveToHomePosition = new QState(this.StateMoveToHomePosition); statePublishOutputEEHomed = new QState(this.StatePublishOutputEEHomed); stateWaitForSigStartBoundaryCheckOutputEEAxis = new QState(this.StateWaitForSigStartBoundaryCheckOutputEEAxis); stateBoundaryCheck = new QState(this.StateBoundaryCheck); statePublishOutputEEBoundaryCheckComplete = new QState(this.StatePublishOutputEEBoundaryCheckComplete); stateRunInitCompleteMoveToParkPosition = new QState(this.StateRunInitCompleteMoveToParkPosition); //Run mode stateWaitForPrecisorReadyForPick = new QState(this.StateWaitForPrecisorReadyForPick); statePickHGAVacuumOn = new QState(this.StatePickHGAVacuumOn); statePickHGAZDown = new QState(this.StatePickHGAZDown); statePickHGACheckVacuumAndMoveUp = new QState(this.StatePickHGACheckVacuumAndMoveUp); stateAlertOperatorHGADrop = new QState(this.StateAlertOperatorHGADrop); statePublishSigPrecisorPickDone = new QState(this.StatePublishSigPrecisorPickDone); stateWaitForSigOutputCarrierReadyForPlace = new QState(this.StateWaitForSigOutputCarrierReadyForPlace); statePlaceHGAZDown = new QState(this.StatePlaceHGAZDown); statePlaceHGAVacuumOff = new QState(this.StatePlaceHGAVacuumOff); statePlaceHGAZUp = new QState(this.StatePlaceHGAZUp); statePublishSigOutputCarrierPlaceDone = new QState(this.StatePublishSigOutputCarrierPlaceDone); statePerformCleaningWithDycem = new QState(this.StatePerformCleaningWithDycem); }
public AvatarGrid(QWidget parent) : base(parent) { // FIXME: Need a preference to turn this on/off. // this.SetViewport(new QGLWidget()); m_Scene = new AvatarGridScene(this); this.SetScene(m_Scene); m_InfoPopup = new InfoPopup <T>(this); m_InfoPopup.DoubleClicked += delegate { MouseDoubleClickEvent(null); }; m_InfoPopup.RightClicked += delegate(QPoint pos) { Emit.CustomContextMenuRequested(this.MapFromGlobal(pos)); }; m_InfoPopup.MouseMoved += delegate { UpdateHoverItem(); }; m_TooltipTimer = new QTimer(this); m_TooltipTimer.SingleShot = true; m_TooltipTimer.Interval = 500; QObject.Connect(m_TooltipTimer, Qt.SIGNAL("timeout()"), HandleTooltipTimerTimeout); this.AcceptDrops = true; }
// Constructors ------------------------------------------------------------ public TestProbeProcess(HSTWorkcell workcell, string processID, string processName) : base(workcell, processID, processName) { this._workcell = workcell; _qTimer = new QTimer(this); //RunInit mode stateMoveToHomePosition = new QState(this.StateMoveToHomePosition); statePublishSigTestProbeHomed = new QState(this.StatePublishSigTestProbeHomed); stateWaitForSigStartBoundaryCheckTestProbeAxis = new QState(this.StateWaitForSigStartBoundaryCheckTestProbeAxis); stateBoundaryCheck = new QState(this.StateBoundaryCheck); stateRunInitCompleteMoveToParkPosition = new QState(this.StateRunInitCompleteMoveToParkPosition); statePublishSigTestProbeBoundaryCheckComplete = new QState(this.StatePublishSigTestProbeBoundaryCheckComplete); //Run mode stateCheckProbeFunctionalTest = new QState(this.StateCheckProbeFunctionTest); stateWaitForSigReadyForProbe = new QState(this.StateWaitForSigReadyForProbe); stateMoveTestProbeToProbePosition = new QState(this.StateMoveTestProbeToProbePosition); statePublishSigRequestForHGATesting = new QState(this.StatePublishSigRequestForHGATesting); stateWaitForSigHGATestingDone = new QState(this.StateWaitForSigHGATestingDone); stateMoveTestProbeToParkPosition = new QState(this.StateMoveTestProbeToParkPosition); stateCheckDoubleTestPeriod = new QState(this.StateCheckDoubleTestPeriod); stateStateWaitForSigGetMeasurementDone = new QState(this.StateWaitForSigGetMeasurementDone); statePublishSigProbeDone = new QState(this.StatePublishSigProbeDone); }
public void startTimer() { timer = new QTimer(this); // only fire the timer once timer.setSingleShot(true); timer.timeout.connect(this, "reSend()"); timer.start(timeout); // go after 1 second }
// Constructors & Finalizers ------------------------------------------- public ImageFileManageProcess(HSTWorkcell workcell, string processID, string processName) : base(workcell, processID, processName) { // initialize HSM delegates _isNonIdleProcess = true; stateStartRunning = new QState(this.StartRunning); _stateTimer = new QTimer(this); }
public void TestInherits() { var timer = new QTimer(); Assert.IsTrue(timer.Inherits("QTimer")); // Docu says should return true, but return false Assert.IsTrue(timer.Inherits("QObject")); Assert.IsFalse(timer.Inherits("QAbstractButton")); }
public AnalogClock(QWidget parent) : base(parent) { QTimer timer = new QTimer(this); Connect(timer, SIGNAL("timeout()"), this, SLOT("update()")); timer.Start(1000); WindowTitle = Tr("Analog Clock"); Resize(200,200); }
public AnalogClock(QWidget parent) : base(parent) { QTimer timer = new QTimer(this); Connect(timer, SIGNAL("timeout()"), this, SLOT("update()")); timer.Start(1000); WindowTitle = Tr("Analog Clock"); Resize(200, 200); }
public Philosopher(int philosopherId) { m_PhilosopherId = philosopherId; m_StateThinking = new QState(this.Thinking); m_StateHungry = new QState(this.Hungry); m_StateEating = new QState(this.Eating); m_Timer = new QTimer(this); }
QPainter painter = new QPainter(); // should be new QPainter(this) and be put in PaintEvent() public CannonField(QWidget parent) : base(parent) { currentAngle = 45; currentForce = 0; timerCount = 0; autoShootTimer = new QTimer(this); Connect(autoShootTimer, SIGNAL("timeout()"), this, SLOT("moveShot()")); shootAngle = 0; shootForce = 0; Palette = new QPalette(new QColor(250, 250, 200)); AutoFillBackground = true; }
public DataManagingProcess(HSTWorkcell workcell, string processID, string processName) : base(workcell, processID, processName) { this._workcell = workcell; _qTimer = new QTimer(this); //Run mode stateRunStart = new QState(this.StateRunStart); stateWaitForInputCarrierComplete = new QState(this.StateWaitForInputCarrierComplete); stateISIDataProcess = new QState(this.StateISIDataProcess); stateCheckGetputServerConnection = new QState(this.StateCheckGetputServerConnection); }
// Constructors & Finalizers ------------------------------------------- public MonitorProcess(HSTWorkcell workcell, string processID, string processName) : base(workcell, processID, processName) { this.ioManifest = (HSTIOManifest)workcell.IOManifest; _isNonIdleProcess = true; _stateTimer = new QTimer(this); conveyorCongestionTimer = new System.Timers.Timer(1000); conveyorCongestionTimer.Stop(); // initialize HSM delegates stateMonitoring = new QState(this.Monitoring); }
public TDFDataRunProcess(HSTWorkcell workcell, string processID, string processName) : base(workcell, processID, processName) { this._workcell = workcell; _qTimer = new QTimer(this); //Run mode stateRunStart = new QState(this.StateRunStart); stateWaitForOutputCarrierComplete = new QState(this.StateWaitForOutputCarrierComplete); stateSentSeatrackData = new QState(this.StateSentSeatrackData); stateUpdateDataLogFile = new QState(this.StateUpdateDataLogFile); stateSaveTDFDataFile = new QState(this.StateSaveTDFDataFile); }
public CannonField(QWidget parent) : base(parent) { currentAngle = 45; currentForce = 0; timerCount = 0; autoShootTimer = new QTimer(this); Connect(autoShootTimer, SIGNAL("timeout()"), this, SLOT("moveShot()")); shootAngle = 0; shootForce = 0; Palette = new QPalette(new QColor(250, 250, 200)); AutoFillBackground = true; }
public OutputClampRotateProcess(HSTWorkcell workcell, string processID, string processName) : base(workcell, processID, processName) { this._workcell = workcell; _qTimer = new QTimer(this); //Run mode stateRunStart = new QState(this.StateRunStart); stateWaitForOutputCarrierComplete = new QState(this.StateWaitForOutputCarrierComplete); stateClampAndRotateClose = new QState(this.StateClampAndRotateClose); stateClampAndRotateOpen = new QState(this.StateClampAndRotateOpen); statePublishUpdateClampDone = new QState(this.StatePublishUpdateClampDone); }
private void Initialize(DataLayer.Test test) { Name = test.Name; Test = test; m_StateLoaded = new QState(ActiveTest_Loaded); m_StateRunning = new QState(ActiveTest_Running); m_StateStepping = new QState(ActiveTest_Stepping); m_StatePassed = new QState(ActiveTest_Passed); m_StateFailed = new QState(ActiveTest_Failed); m_StateAborted = new QState(ActiveTest_Aborted); m_StateEnded = new QState(ActiveTest_Ended); TimeoutTimer = new QTimer(this); }
public CannonField(QWidget parent) : base(parent) { currentAngle = 45; currentForce = 0; timerCount = 0; autoShootTimer = new QTimer(this); Connect(autoShootTimer, SIGNAL("timeout()"), this, SLOT("MoveShot()")); shootAngle = 0; shootForce = 0; target = new QPoint(0, 0); gameEnded = false; barrelPressed = false; Palette = new QPalette(new QColor(250, 250, 200)); AutoFillBackground = true; NewTarget(); }
// Constructors ------------------------------------------------------------ public OutputTurnStationProcess(HSTWorkcell workcell, string processID, string processName) : base(workcell, processID, processName) { this._workcell = workcell; _qTimer = new QTimer(this); //RunInit mode stateRunInitStandbyOutputSection = new QState(this.StateRunInitStandbyOutputSection); //Run mode stateRunStart = new QState(this.StateRunStart); stateWaitForSigCarrierPresentInOutputTurnStation = new QState(this.StateWaitForSigCarrierPresentInOutputTurnStation); stateCheckCarrierPresentInOutputTurnStation = new QState(this.StateCheckCarrierPresentInOutputTurnStation); stateOutputTurnSectionTurnForward = new QState(this.StateOutputTurnSectionTurnForward); stateCheckNextZoneReady = new QState(this.StateCheckNextZoneReady); stateOutputTurnSectionReleaseCarrier = new QState(this.StateOutputTurnSectionReleaseCarrier); }
public Net(ushort initPort, IList <string> initPeers) { // For each peer name in the command-line arguments, // create a Peer object to represent and track that peer. foreach (string peerName in initPeers) { peers.Add(new Peer(this, peerName)); //peerList.add(peerName); } //Console.WriteLine(peers.Count); for (int i = 0; i < peers.Count; i++) { peerList.add(peers[i].betterName); } // Bind our UDP socket to the specified (or default) port // allowing us to send and receive network datagrams. if (initPort == 0) { initPort = NetConf.defaultPort; } // Like println in Java Console.WriteLine("Binding to port " + initPort); sock.bind(new QHostAddress(QHostAddress.SpecialAddress.Any), initPort); sock.readyRead.connect(this, "receive()"); // Save some identifying information for printfs and such. myPort = initPort; myName = QHostInfo.localHostName() + ":" + myPort; // Create a timer to trigger repeating "pings" // we send out to to all our peers. QTimer timer = new QTimer(this); timer.timeout.connect(this, "pingAllPeers()"); timer.start(1000); // ping once every second }
public void quit() { QTimer.singleShot(0, QCoreApplication.Instance(), SLOT("quit()")); }