VR-Forces Development_Version Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrfplan
simTrigger.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2003 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: simTrigger.h,v $ $Revision: 1.12 $ $State: Exp $
7
*******************************************************************************/
8
11
12
#ifndef DtSimTrigger_H_
13
#define DtSimTrigger_H_
14
15
class
DtSimTrigger
;
16
17
#include <vlutil/vlString.h>
18
#include "
vrfutil/simCondExpr.h
"
19
#include "
vrfplan/stmtIndex.h
"
20
#include "
vrfplan/whenStmt.h
"
21
#include "
vrfplan/whenBlock.h
"
22
23
class
DtPlan
;
24
25
26
30
struct
DtNetSimTrigger
31
{
32
DtNetU32
myWhenStmtIndex
;
33
DtNetU8
myEnabled
;
34
DtNetU8
myIsDone
;
35
DtNetU8
myPadding
;
36
DtNetU8
myPadding2
;
37
};
38
45
#include "
vrfplan/vrfplanDefines.h
"
46
class
DT_DLL_vrfplan
DtSimTrigger
47
{
48
public
:
49
51
DtSimTrigger
();
52
54
DtSimTrigger
(
const
DtStmtIndex
& whenStmt,
DtPlan
* plan);
55
57
DtSimTrigger
(
const
DtSimTrigger
& orig,
DtPlan
* plan = NULL);
58
60
virtual
~
DtSimTrigger
();
61
64
DtSimTrigger
& operator=(
const
DtSimTrigger
& orig);
65
67
virtual
void
tick();
68
70
virtual
bool
testCondition();
71
73
virtual
void
activate();
74
77
virtual
const
DtSimCondExpr
* condition()
const
;
78
80
virtual
DtWhenBlock
* whenBlock()
const
;
81
83
virtual
DtString
whenOption()
const
;
84
86
virtual
const
DtWhenStmt
* whenStmt()
const
;
87
virtual
void
setWhenStmt(
const
DtWhenStmt
* arg);
88
90
virtual
void
translateInto(
const
DtSimBlock
& newBlock);
91
92
virtual
DtPlan
* plan()
const
;
94
virtual
void
setPlan(
DtPlan
* arg);
95
96
virtual
bool
enabled()
const
;
97
virtual
void
setEnabled(
bool
arg);
98
101
virtual
bool
isDone()
const
;
102
virtual
void
setIsDone(
bool
arg);
103
104
virtual
char
* netRep();
105
108
virtual
int
netRepSize()
const
;
109
111
virtual
bool
setFromNet(
const
char
* contentBuffer,
112
unsigned
contentSize);
113
116
virtual
bool
setToNet();
117
118
protected
:
119
120
virtual
char
* createNetworkBuffer();
121
122
protected
:
123
124
DtStmtIndex
myWhenStmt
;
125
DtPlan
*
myPlan
;
126
127
bool
myEnabled
;
128
bool
myIsDone
;
129
130
char
*
myNetRep
;
131
};
132
133
#endif
Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)