VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfobjcore
compSystem.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2007 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: compSystem.h,v $ $Revision: 1.5 $ $State: Exp $
7
*******************************************************************************/
8
11
13
14
#ifndef compSystem_h
15
#define compSystem_h
16
17
#include "
vrfobjcore/vrfobjcoreDefines.h
"
18
#include <list>
19
20
class
DtVrfObject
;
21
class
DtSimManager
;
22
class
DtComponentSystemDescriptor
;
23
class
DtSimComponentNetwork
;
24
class
DtString
;
25
class
DtSimComponent
;
26
class
DtComponentSystemPSR
;
27
class
DtVrfProcessStateRepositoryManager
;
28
class
DtSimResourceManager
;
29
34
class
DT_DLL_vrfobjcore
DtComponentSystem
35
{
36
private
:
38
39
DtComponentSystem
();
40
DtComponentSystem
(
const
DtComponentSystem
& orig);
41
DtComponentSystem
& operator=(
const
DtComponentSystem
& orig);
43
44
public
:
45
DtComponentSystem
(
DtVrfObject
* owner,
46
DtSimManager
* simManager,
47
const
DtComponentSystemDescriptor
* desc,
48
DtComponentSystem
* parentSystem);
49
50
virtual
~
DtComponentSystem
();
51
52
virtual
bool
init
();
53
59
virtual
bool
initializeFromDescriptor(
int
& priority);
60
62
virtual
bool
postAddComponentsInit();
63
65
virtual
void
tick();
66
69
virtual
DtString
name()
const
;
70
74
virtual
DtString
fullName()
const
;
75
77
78
virtual
DtSimComponentNetwork
* componentNetwork();
79
virtual
const
DtSimComponentNetwork
* componentNetwork()
const
;
81
84
virtual
DtVrfProcessStateRepositoryManager
* processStateRepositoryManager();
85
88
89
virtual
DtSimResourceManager
& resourceManager();
90
virtual
const
DtSimResourceManager
& resourceManager()
const
;
92
95
virtual
void
restoreResources();
96
97
typedef
std::list< std::pair<DtSimComponent*, DtString> >
DtComponentPortList
;
98
99
108
109
virtual
void
resolveSystemOutput(
const
DtString
& outputName,
DtComponentPortList
& componentOutputs);
110
111
virtual
void
resolveSystemInput(
const
DtString
& inputName,
DtComponentPortList
& componentInputs);
113
114
115
117
118
virtual
void
enable();
119
virtual
void
disable();
121
125
virtual
bool
isEnabled();
126
virtual
void
setIsEnabled(
bool
yesNo);
128
129
protected
:
131
virtual
bool
createPsr();
132
133
protected
:
134
const
DtComponentSystemDescriptor
*
mySystemDescriptor
;
135
DtSimManager
*
mySimManager
;
136
DtVrfObject
*
myVrfObject
;
137
DtSimComponentNetwork
*
myComponentNetwork
;
138
DtComponentSystemPSR
*
myProcessStateRepository
;
139
DtComponentSystem
*
myParentSystem
;
140
};
141
142
typedef
std::list<DtComponentSystem*>
DtComponentSystemList
;
143
144
#endif
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)