jsim.jmessage
Class FinalReport

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

public class FinalReport
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.Double[][] occuObsStat
          Occupancy observation statistics
 java.lang.String[] occuObsStatName
          Name of the occupancy statistics
 java.lang.Double[][] occuStat
          Occupancy statistics
 java.lang.String[] occuStatName
          Name of occupancy statistics
 java.lang.String[] statLabel
          Names of the statistic result
 java.lang.Double[][] timeObsStat
          Time observation statistics
 java.lang.String[] timeObsStatName
          Name of time observation statistics
 java.lang.Double[][] timeStat
          Time statistics
 java.lang.String[] timeStatName
          Name of time statistics
 
Fields inherited from class jsim.jmessage.Message
actionType
 
Constructor Summary
FinalReport(java.lang.String actionType, java.lang.String modelName, int numOfNodes, java.lang.String[] statLabel, java.util.Vector[] tStat, java.util.Vector[] oStat, java.util.Vector[] cStat, java.util.Vector[] tObsStat, java.util.Vector[] oObsStat, 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.
 java.lang.Double[][] getOccuObsStat()
          Returns the occupancy observation statistics.
 java.lang.String[] getOccuObsStatName()
          Returns the names of the occupancy observation statistics.
 java.lang.Double[][] getOccuStat()
          Returns the occupancy statistics.
 java.lang.String[] getOccuStatName()
          Returns the names of the occupancy statistics.
 double[] getStatData()
          Returns the statistic data.
 java.lang.String[] getStatLabel()
          Returns the name of the statistics.
 java.lang.Double[][] getTimeObsStat()
          Returns the time observation statistics.
 java.lang.String[] getTimeObsStatName()
          Returns the names of the time observation statistics.
 java.lang.Double[][] getTimeStat()
          Returns the time statistics.
 java.lang.String[] getTimeStatName()
          Returns the names of the time 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


timeStatName

public java.lang.String[] timeStatName
Name of time statistics


occuStatName

public java.lang.String[] occuStatName
Name of occupancy statistics


costStatName

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


timeObsStatName

public java.lang.String[] timeObsStatName
Name of time observation statistics


occuObsStatName

public java.lang.String[] occuObsStatName
Name of the occupancy statistics


costObsStatName

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


timeStat

public java.lang.Double[][] timeStat
Time statistics


occuStat

public java.lang.Double[][] occuStat
Occupancy statistics


costStat

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


timeObsStat

public java.lang.Double[][] timeObsStat
Time observation statistics


occuObsStat

public java.lang.Double[][] occuObsStat
Occupancy observation statistics


costObsStat

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

Constructor Detail

FinalReport

public FinalReport(java.lang.String actionType,
                   java.lang.String modelName,
                   int numOfNodes,
                   java.lang.String[] statLabel,
                   java.util.Vector[] tStat,
                   java.util.Vector[] oStat,
                   java.util.Vector[] cStat,
                   java.util.Vector[] tObsStat,
                   java.util.Vector[] oObsStat,
                   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

getTimeStatName

public java.lang.String[] getTimeStatName()
Returns the names of the time statistics.

Returns:
String [] The name of the time statistics

getOccuStatName

public java.lang.String[] getOccuStatName()
Returns the names of the occupancy statistics.

Returns:
String [] The name of the occupancy statistics

getCostStatName

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

Returns:
String [] The name of the cost statistics

getTimeObsStatName

public java.lang.String[] getTimeObsStatName()
Returns the names of the time observation statistics.

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

getOccuObsStatName

public java.lang.String[] getOccuObsStatName()
Returns the names of the occupancy observation statistics.

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

getCostObsStatName

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

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

getTimeStat

public java.lang.Double[][] getTimeStat()
Returns the time statistics.

Returns:
Double [][] The time statistics

getOccuStat

public java.lang.Double[][] getOccuStat()
Returns the occupancy statistics.

Returns:
Double [][] The occupancy statistics

getCostStat

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

Returns:
Double [][] The cost statistics

getTimeObsStat

public java.lang.Double[][] getTimeObsStat()
Returns the time observation statistics.

Returns:
Double [][] The time observation statistics

getOccuObsStat

public java.lang.Double[][] getOccuObsStat()
Returns the occupancy observation statistics.

Returns:
Double [][] The occupancy observation 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