|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jsim.jmessage.Message jsim.jmessage.ModelProperties
public class ModelProperties
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.
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 |
---|
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)
actionType
- The message typemodelName
- The model namenumOfNodes
- The total number of model nodesnodeName
- The name of each nodetimeDist
- The time distribution for each nodenodeType
- The type of each nodenumOfTokens
- The # of tokens for each nodestream
- The stream parameter for the variate of each nodealpha
- 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 |
---|
public java.lang.String getModelName()
public int getNumOfNodes()
public java.lang.String[] getNodeName()
public java.lang.String[] getDistributionType()
public int[] getNodeType()
public int[] getNumOfTokens()
public java.lang.Integer[] getStream()
public java.lang.Double[] getAlpha()
public java.lang.Double[] getBeta()
public java.lang.Double[] getGamma()
public void setDistributionType(java.lang.String[] distType)
distType
- The distribution typepublic void setNumOfTokens(int[] numOfTokens)
numOfTokens
- The number of tokenspublic void setStream(java.lang.Integer[] stream)
stream
- The stream parameters.public void setAlpha(java.lang.Double[] alpha)
alpha
- The alpha parameters.public void setBeta(java.lang.Double[] beta)
beta
- The beta parameters.public void setGamma(java.lang.Double[] gamma)
gamma
- The gamma parameters.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |