jsim.process
Class DynamicNode

java.lang.Object
  extended by jsim.process.DynamicNode
Direct Known Subclasses:
AndJoin, Server, Signal, Sink, Source, Split

public abstract class DynamicNode
extends java.lang.Object

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

duration

protected final BatchStat duration
Duration statistics collected by this node (sample or batch).


occupancy

protected final TimeStat occupancy
Occupancy statistics collected by this node.


costs

protected final BatchStat costs
Cost statistics collected by this node (sample or batch).


trc

protected static java.util.logging.Logger trc
Tracing messages


props

protected Prop props
Common node properties.


outgoing

protected Transport[] outgoing
Outgoing edges.

Constructor Detail

DynamicNode

public DynamicNode(Prop props,
                   Transport[] outgoing)
Construct a dynamic node from a (static) node.

Parameters:
props - properties of node
outgoing - outgoing transports (edges)
Method Detail

getOutgoing

public Transport[] getOutgoing()
Get the properties of this dynamic node.

Returns:
Prop node properties

getProps

public Prop getProps()
Get the properties of this dynamic node.

Returns:
Prop node properties

setProps

public void setProps(Prop props)
Reset the adjutable properties of this dynamic node.

Parameters:
property - node properties

setPrimary

public void setPrimary(boolean value)
Set the primary statistic to analyze for the stopping rule.

Parameters:
statNodeName - the primary statistic

getNodeStats

public Statistic[] getNodeStats()
Get both duration and occupancy statistics for this node.

Returns:
Statistic [] statistics for this node

setBatchProperties

public void setBatchProperties(int bSize,
                               int nBatch)
Set the batch size and number of batches for all the models batch statistics.

Parameters:
bSize - size of batch
nBatch - number of batches