jsim.jmessage
Class NodeProps

java.lang.Object
  extended by jsim.jmessage.NodeProps
All Implemented Interfaces:
java.io.Serializable

public class NodeProps
extends java.lang.Object
implements java.io.Serializable

The NodeProps class represents the properties of a node to be stored in the database.

See Also:
Serialized Form

Field Summary
 java.lang.Double alpha
          The alpha parameter for the distribution
 java.lang.Double beta
          The beta parameter for the distribution
 java.lang.Double gamma
          The beta parameter for the distribution
 java.lang.String nodeName
          The node name
 int nodeType
          The node type (SOURCE, FACILITY, SINK, etc)
 int numOfTokens
          The number of tokens associated with this node.
 java.lang.Integer stream
          The stream parameter for the distribution
 java.lang.String timeDist
          The name of the distribution type (variate name)
 
Constructor Summary
NodeProps(java.lang.String nodeName, int nodeType, int numOfTokens, java.lang.String timeDist, java.lang.Double alpha, java.lang.Double beta, java.lang.Double gamma, java.lang.Integer stream)
          Constructs a NodeProps instance.
 
Method Summary
 java.lang.String toString()
          Returns an XML fragment representing this instance of NodeProps.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

nodeName

public java.lang.String nodeName
The node name


nodeType

public int nodeType
The node type (SOURCE, FACILITY, SINK, etc)


numOfTokens

public int numOfTokens
The number of tokens associated with this node.


timeDist

public java.lang.String timeDist
The name of the distribution type (variate name)


alpha

public java.lang.Double alpha
The alpha parameter for the distribution


beta

public java.lang.Double beta
The beta parameter for the distribution


gamma

public java.lang.Double gamma
The beta parameter for the distribution


stream

public java.lang.Integer stream
The stream parameter for the distribution

Constructor Detail

NodeProps

public NodeProps(java.lang.String nodeName,
                 int nodeType,
                 int numOfTokens,
                 java.lang.String timeDist,
                 java.lang.Double alpha,
                 java.lang.Double beta,
                 java.lang.Double gamma,
                 java.lang.Integer stream)
Constructs a NodeProps instance.

Parameters:
nodeName - The node name
nodeType - The node type
numOfTokens - The number of tokens
timeDist - The distribution name
alpha - The first parameter of the distribution, if there are at least 2 parameters.
beta - The second parameter of the distribution, if there are at least 3 parameters.
gamma - The third parameter of the distribution, if there are at least 4 parameters.
stream - The last parameter of the distribution. (All distribution variates have at least this parameter.)
Method Detail

toString

public java.lang.String toString()
Returns an XML fragment representing this instance of NodeProps.

Overrides:
toString in class java.lang.Object