jsim.jmessage
Class CostReport

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

public class CostReport
extends Message

This class contains simulation result of a model. The result is sent by the containing model bean to the controlling model agent.

See Also:
Serialized Form

Field Summary
 java.lang.Double[][] costObsStat
          Cost observation statistics
 java.lang.String[] costObsStatName
          Name of cost observation statistics
 java.lang.Double[][] costStat
          Cost statistics
 java.lang.String[] costStatName
          Name of cost statistics
 java.lang.String[] statLabel
          Names of the statistic result
 
Fields inherited from class jsim.jmessage.Message
actionType
 
Constructor Summary
CostReport(java.lang.String actionType, java.lang.String modelName, int numOfNodes, java.lang.String[] statLabel, java.util.Vector[] cStat, java.util.Vector[] cObsStat, double[] statData)
          Constructs an instance of FinalReport by message type, number of nodes, names of statistics, time statistics, occupancy statistics, time observation statistics, occupancy observation statistics, and statistic data needed by the ReplicationAgent.
 
Method Summary
 java.lang.Double[][] getCostObsStat()
          Returns the cost observation statistics.
 java.lang.String[] getCostObsStatName()
          Returns the names of the cost observation statistics.
 java.lang.Double[][] getCostStat()
          Returns the cost statistics.
 java.lang.String[] getCostStatName()
          Returns the names of the cost statistics.
 java.lang.String getModelName()
          Returns the model name.
 int getNumOfNodes()
          Returns the number of nodes.
 double[] getStatData()
          Returns the statistic data.
 java.lang.String[] getStatLabel()
          Returns the name of the statistics.
 java.lang.String toString()
          Returns an XML fragment representing the FinalReport
 
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
 

Field Detail

statLabel

public java.lang.String[] statLabel
Names of the statistic result


costStatName

public java.lang.String[] costStatName
Name of cost statistics


costObsStatName

public java.lang.String[] costObsStatName
Name of cost observation statistics


costStat

public java.lang.Double[][] costStat
Cost statistics


costObsStat

public java.lang.Double[][] costObsStat
Cost observation statistics

Constructor Detail

CostReport

public CostReport(java.lang.String actionType,
                  java.lang.String modelName,
                  int numOfNodes,
                  java.lang.String[] statLabel,
                  java.util.Vector[] cStat,
                  java.util.Vector[] cObsStat,
                  double[] statData)
Constructs an instance of FinalReport by message type, number of nodes, names of statistics, time statistics, occupancy statistics, time observation statistics, occupancy observation statistics, and statistic data needed by the ReplicationAgent.

Parameters:
actionType - The message type
modelName - The model name
statLabel - The names of the statistics
tStat - The time statistics
oStat - The occupancy statistics
tObsStat - The time observation staticstics
oObsStat - The occupancy observation statistics
statData - The statistic data prepared by the ModelBean for the ReplicationAgent in case the controlling agent is the ReplicationAgent
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

getStatData

public double[] getStatData()
Returns the statistic data.

Returns:
double [] The statistic data

getStatLabel

public java.lang.String[] getStatLabel()
Returns the name of the statistics.

Returns:
String [] The name of the statistics

getCostStatName

public java.lang.String[] getCostStatName()
Returns the names of the cost statistics.

Returns:
String [] The name of the cost statistics

getCostObsStatName

public java.lang.String[] getCostObsStatName()
Returns the names of the cost observation statistics.

Returns:
String [] The name of the cost observation statistics

getCostStat

public java.lang.Double[][] getCostStat()
Returns the cost statistics.

Returns:
Double[][] The cost statistics

getCostObsStat

public java.lang.Double[][] getCostObsStat()
Returns the cost observation statistics.

Returns:
Double [][] The cost observation statistics

toString

public java.lang.String toString()
Returns an XML fragment representing the FinalReport

Overrides:
toString in class java.lang.Object
Returns:
String The XML fragment representing this instance of the FinalReport