VR-Forces 4.1.1 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 
70 
73  virtual void processWaitTask(DtSimMessage * msg, DtSimTaskStatePtr taskState);
74 
79  virtual void processWaitDurationTask(DtSimMessage * msg, DtSimTaskStatePtr taskState);
80 
84  virtual void processWaitElapsedTask(DtSimMessage * msg, DtSimTaskStatePtr taskState);
85 
87  virtual DtSimTaskStatePtr currentTaskState() const;
88 
89 public:
90 
91  static void waitCallback(DtSimMessage * msg, void * usr, DtSimTaskStatePtr taskState);
92 
93  static void waitDurationCallback(DtSimMessage * msg, void * usr, DtSimTaskStatePtr taskState);
94 
95  static void waitElapsedCallback(DtSimMessage * msg, void * usr, DtSimTaskStatePtr taskState);
96 
100  static DtSimComponent * creator(const DtString& name,
101  DtVrfObject* owner,
102  DtSimManager* simManager,
103  DtComponentDescriptor* desc = 0,
104  DtReaderWriterRegistry* parentRegistry = 0);
105 
106 protected:
110 
112  DtWaitController(const DtWaitController & orig);
113 
115  const DtWaitController & operator=(const DtWaitController & orig);
116 
122  virtual bool createPSR();
123 
124 protected:
125 
129 };
130 

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)