VR-Forces 4.2 Class Documentation
waitCntlr.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1999 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
15 #include "vrfutil/vlClock.h"
16 
17 class DtString;
18 class DtSimManager;
19 class DtTaskMessage;
20 class DtSimMessage;
21 class DtWaitingPSR;
22 
33 {
34 public:
35 
38  DtWaitController(const DtString& name,
39  DtVrfObject* owner,
40  DtSimManager* simManager,
41  DtComponentDescriptor* desc = 0,
42  DtReaderWriterRegistry* parentRegistry = 0);
43 
45  virtual ~DtWaitController();
46 
49  virtual DtString type() const;
50 
52  virtual bool init();
53 
62  virtual void tick();
63 
65  virtual void registerTaskMsgCallbacks();
66 
67  static void waitCallback(DtSimMessage* msg, void* usr, DtSimTaskStatePtr taskStatePtr);
68 
70  virtual DtSimTaskStatePtr currentTaskState() const;
71 
75  static DtSimComponent * creator(const DtString& name,
76  DtVrfObject* owner,
77  DtSimManager* simManager,
78  DtComponentDescriptor* desc = 0,
79  DtReaderWriterRegistry* parentRegistry = 0);
80 
81 protected:
82  virtual void processWait(const DtTaskMessage& msg, DtSimTaskStatePtr taskStatePtr);
83 
87 
90  virtual void processWaitTask(DtSimTask* task, DtSimTaskStatePtr taskState);
91 
96  virtual void processWaitDurationTask(DtSimTask* task, DtSimTaskStatePtr taskState);
97 
101  virtual void processWaitElapsedTask(DtSimTask* task, DtSimTaskStatePtr taskState);
102 
106 
108  DtWaitController(const DtWaitController & orig);
109 
111  const DtWaitController & operator=(const DtWaitController & orig);
112 
118  virtual bool createPSR();
119 
123 };
124 

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)