jsim.jmessage
Class ModelProperties

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

public class ModelProperties
extends Message

The ModelProperties class represents all properties of a model. It is used by ModelBean and ModelAgent to exchange information about the input properties of a model.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class jsim.jmessage.Message
actionType
 
Constructor Summary
ModelProperties(java.lang.String actionType, java.lang.String modelName, int numOfNodes, java.lang.String[] nodeName, java.lang.String[] timeDist, int[] nodeType, int[] numOfTokens, java.lang.Integer[] stream, java.lang.Double[] alpha, java.lang.Double[] beta, java.lang.Double[] gamma)
          Constructs a ModelProperties instance.
 
Method Summary
 java.lang.Double[] getAlpha()
          Returns the alpha parameters.
 java.lang.Double[] getBeta()
          Returns the beta parameters.
 java.lang.String[] getDistributionType()
          Returns the type of distribution.
 java.lang.Double[] getGamma()
          Returns the gamma parameters.
 java.lang.String getModelName()
          Returns the model name.
 java.lang.String[] getNodeName()
          Returns the node names.
 int[] getNodeType()
          Returns the node type.
 int getNumOfNodes()
          Returns the number of nodes.
 int[] getNumOfTokens()
          Returns the number of tokens for each node.
 java.lang.Integer[] getStream()
          Returns the stream parameters.
 void setAlpha(java.lang.Double[] alpha)
          Sets the alpha parameters.
 void setBeta(java.lang.Double[] beta)
          Sets the beta parameters.
 void setDistributionType(java.lang.String[] distType)
          Sets the distribution type.
 void setGamma(java.lang.Double[] gamma)
          Sets the gamma parameters.
 void setNumOfTokens(int[] numOfTokens)
          Sets the number of tokens.
 void setStream(java.lang.Integer[] stream)
          Sets the stream parameters.
 java.lang.String toString()
          Returns an XML fragment representing this instance of ModelProperties.
 
Methods inherited from class jsim.jmessage.Message
getActionType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModelProperties

public ModelProperties(java.lang.String actionType,
                       java.lang.String modelName,
                       int numOfNodes,
                       java.lang.String[] nodeName,
                       java.lang.String[] timeDist,
                       int[] nodeType,
                       int[] numOfTokens,
                       java.lang.Integer[] stream,
                       java.lang.Double[] alpha,
                       java.lang.Double[] beta,
                       java.lang.Double[] gamma)
Constructs a ModelProperties instance.

Parameters:
actionType - The message type
modelName - The model name
numOfNodes - The total number of model nodes
nodeName - The name of each node
timeDist - The time distribution for each node
nodeType - The type of each node
numOfTokens - The # of tokens for each node
stream - The stream parameter for the variate of each node
alpha - The alpha parameter for the variate of each node. null if no alpha parameter.
beta - The beta parameter for the variate of each node. null if no beta parameter.
gamma - The gamma parameter for the variate of each node. null if no gamma parameter.
Method Detail

getModelName

public java.lang.String getModelName()
Returns the model name.

Returns:
String The model name

getNumOfNodes

public int getNumOfNodes()
Returns the number of nodes.

Returns:
int The number of nodes

getNodeName

public java.lang.String[] getNodeName()
Returns the node names.

Returns:
String [] The name of each node

getDistributionType

public java.lang.String[] getDistributionType()
Returns the type of distribution.

Returns:
String [] The distribution type

getNodeType

public int[] getNodeType()
Returns the node type.

Returns:
int [] The node type

getNumOfTokens

public int[] getNumOfTokens()
Returns the number of tokens for each node.

Returns:
int [] The number of tokens for each node

getStream

public java.lang.Integer[] getStream()
Returns the stream parameters.

Returns:
Integer [] The stream parameters

getAlpha

public java.lang.Double[] getAlpha()
Returns the alpha parameters.

Returns:
Double [] The alpha parameters

getBeta

public java.lang.Double[] getBeta()
Returns the beta parameters.

Returns:
Double [] The beta parameters

getGamma

public java.lang.Double[] getGamma()
Returns the gamma parameters.

Returns:
Double [] The gamma parameters

setDistributionType

public void setDistributionType(java.lang.String[] distType)
Sets the distribution type.

Parameters:
distType - The distribution type

setNumOfTokens

public void setNumOfTokens(int[] numOfTokens)
Sets the number of tokens.

Parameters:
numOfTokens - The number of tokens

setStream

public void setStream(java.lang.Integer[] stream)
Sets the stream parameters.

Parameters:
stream - The stream parameters.

setAlpha

public void setAlpha(java.lang.Double[] alpha)
Sets the alpha parameters.

Parameters:
alpha - The alpha parameters.

setBeta

public void setBeta(java.lang.Double[] beta)
Sets the beta parameters.

Parameters:
beta - The beta parameters.

setGamma

public void setGamma(java.lang.Double[] gamma)
Sets the gamma parameters.

Parameters:
gamma - The gamma parameters.

toString

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

Overrides:
toString in class java.lang.Object
Returns:
String The XML fragment