|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jsim.process.DynamicNode
public abstract class DynamicNode
The DynamicNode abstract class allows functional node classes to be derived from it (e.g., Source , Server). It generalizes the common features of all functional nodes. It also has methods to collect statistics.
Field Summary | |
---|---|
protected BatchStat |
costs
Cost statistics collected by this node (sample or batch). |
protected BatchStat |
duration
Duration statistics collected by this node (sample or batch). |
protected TimeStat |
occupancy
Occupancy statistics collected by this node. |
protected Transport[] |
outgoing
Outgoing edges. |
protected Prop |
props
Common node properties. |
protected static java.util.logging.Logger |
trc
Tracing messages |
Constructor Summary | |
---|---|
DynamicNode(Prop props,
Transport[] outgoing)
Construct a dynamic node from a (static) node. |
Method Summary | |
---|---|
Statistic[] |
getNodeStats()
Get both duration and occupancy statistics for this node. |
Transport[] |
getOutgoing()
Get the properties of this dynamic node. |
Prop |
getProps()
Get the properties of this dynamic node. |
void |
setBatchProperties(int bSize,
int nBatch)
Set the batch size and number of batches for all the models batch statistics. |
void |
setPrimary(boolean value)
Set the primary statistic to analyze for the stopping rule. |
void |
setProps(Prop props)
Reset the adjutable properties of this dynamic node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final BatchStat duration
protected final TimeStat occupancy
protected final BatchStat costs
protected static java.util.logging.Logger trc
protected Prop props
protected Transport[] outgoing
Constructor Detail |
---|
public DynamicNode(Prop props, Transport[] outgoing)
props
- properties of nodeoutgoing
- outgoing transports (edges)Method Detail |
---|
public Transport[] getOutgoing()
public Prop getProps()
public void setProps(Prop props)
property
- node propertiespublic void setPrimary(boolean value)
statNodeName
- the primary statisticpublic Statistic[] getNodeStats()
public void setBatchProperties(int bSize, int nBatch)
bSize
- size of batchnBatch
- number of batches
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |