GridSim 5.0 beta

gridsim
Class Stat

Object
  extended by Stat

public class Stat
extends Object

A class representing contents of a statistic object

Since:
GridSim Toolkit 1.0
Author:
Manzur Murshed and Rajkumar Buyya
Invariant:
$none

Constructor Summary
Stat(double time, String category, String name, boolean data)
          Allocates a new Stat object
Stat(double time, String category, String name, double data)
          Allocates a new Stat object
Stat(double time, String category, String name, int data)
          Allocates a new Stat object
Stat(double time, String category, String name, String data)
          Allocates a new Stat object
 
Method Summary
 String getCategory()
          Gets the user-defined name for data type
 String getData()
          Gets the the data to be recorded
 String getName()
          Gets the name of the entity that want to store this data
 double getTime()
          Gets the time at which Statistic info was recorded
 String toString()
          Gets the the concatenated value of all items as a string
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Stat

public Stat(double time,
            String category,
            String name,
            String data)
Allocates a new Stat object

Parameters:
time - the time at which Statistic info was recorded. Generally this value is taken from GridSim.clock()
category - user-defined name for data type
name - of the entity that want to store this data
data - data to be recorded
See Also:
GridSim.clock()
Pre Condition:
time >= 0.0, category != null, name != null, data != null
Post Condition:
$none

Stat

public Stat(double time,
            String category,
            String name,
            int data)
Allocates a new Stat object

Parameters:
time - the time at which Statistic info was recorded. Generally this value is taken from GridSim.clock()
category - user-defined name for data type
name - of the entity that want to store this data
data - data to be recorded
See Also:
GridSim.clock()
Pre Condition:
time >= 0.0, category != null, name != null, data >= 0
Post Condition:
$none

Stat

public Stat(double time,
            String category,
            String name,
            double data)
Allocates a new Stat object

Parameters:
time - the time at which Statistic info was recorded. Generally this value is taken from GridSim.Clock()
category - user-defined name for data type
name - of the entity that want to store this data
data - data to be recorded
See Also:
GridSim.clock()
Pre Condition:
time >= 0.0, category != null, name != null, data >= 0.0
Post Condition:
$none

Stat

public Stat(double time,
            String category,
            String name,
            boolean data)
Allocates a new Stat object

Parameters:
time - the time at which Statistic info was recorded. Generally this value is taken from GridSim.Clock()
category - user-defined name for data type
name - of the entity that want to store this data
data - data to be recorded
See Also:
GridSim.clock()
Pre Condition:
time >= 0.0, category != null, name != null
Post Condition:
$none
Method Detail

getTime

public double getTime()
Gets the time at which Statistic info was recorded

Returns:
the time at which Statistic info was recorded
Pre Condition:
$none
Post Condition:
$result >= 0.0

getCategory

public String getCategory()
Gets the user-defined name for data type

Returns:
the user-defined name for data type
Pre Condition:
$none
Post Condition:
$result != null

getName

public String getName()
Gets the name of the entity that want to store this data

Returns:
the name of the entity that want to store this data
Pre Condition:
$none
Post Condition:
$result != null

getData

public String getData()
Gets the the data to be recorded

Returns:
the data to be recorded
Pre Condition:
$none
Post Condition:
$result != null

toString

public String toString()
Gets the the concatenated value of all items as a string

Overrides:
toString in class Object
Returns:
the concatenated value of all items as a string
Pre Condition:
$none
Post Condition:
$result != null

GridSim 5.0 beta

The University of Melbourne, Australia, 2009