jsim.jmessage
Class ModelData

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

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

The ModelData class contains all model information to be stored in the database. It includes model name, and the input and output of all nodes associated with this model.

See Also:
Serialized Form

Field Summary
 java.lang.String modelName
          The model name
 NodeProps[] props
          The input model properties
 NodeStats[] stats
          The output statistical result of the simulation
 
Constructor Summary
ModelData(java.lang.String modelName, NodeProps[] props, NodeStats[] stats)
          Constructs an object of type ModelData by model name, input node properties, and output statictical result.
 
Method Summary
 java.lang.String getModelName()
          Returns the model name.
 NodeProps[] getNodeProps()
          Returns the node properties.
 NodeStats[] getOutputStats()
          Returns the statistical output of the simulation.
 void readObject(java.io.ObjectInputStream in)
          Meets the Java serialization requirements.
 java.lang.String toString()
          Returns an XML fragment representing this instance of ModelData.
 void writeObject(java.io.ObjectOutputStream out)
          Meets the Java serialization requirements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

modelName

public java.lang.String modelName
The model name


props

public NodeProps[] props
The input model properties


stats

public NodeStats[] stats
The output statistical result of the simulation

Constructor Detail

ModelData

public ModelData(java.lang.String modelName,
                 NodeProps[] props,
                 NodeStats[] stats)
Constructs an object of type ModelData by model name, input node properties, and output statictical result.

Parameters:
modelName - The model name
props - The input properties of all the nodes
stats - The output statistical result of the simulation
Method Detail

getModelName

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

Returns:
String The model name

getNodeProps

public NodeProps[] getNodeProps()
Returns the node properties.

Returns:
NodeProps [] The properties of all nodes

getOutputStats

public NodeStats[] getOutputStats()
Returns the statistical output of the simulation.

Returns:
NodeStats [] The statistical output

toString

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

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

writeObject

public void writeObject(java.io.ObjectOutputStream out)
                 throws java.io.IOException
Meets the Java serialization requirements.

Parameters:
out - The ObjectOutputStream
Throws:
java.io.IOException

readObject

public void readObject(java.io.ObjectInputStream in)
                throws java.io.IOException,
                       java.lang.ClassNotFoundException
Meets the Java serialization requirements.

Parameters:
in - The ObjectInputStream
Throws:
java.io.Exception, - java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException