GridSim
v3.2

gridsim
Class Stat

Object
  extended bygridsim.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 get_category()
          Deprecated. As of GridSim 2.1, replaced by getCategory()
 String get_data()
          Deprecated. As of GridSim 2.1, replaced by getData()
 String get_name()
          Deprecated. As of GridSim 2.1, replaced by getName()
 double get_time()
          Deprecated. As of GridSim 2.1, replaced by getTime()
 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

get_time

public double get_time()
Deprecated. As of GridSim 2.1, replaced by 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

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

get_category

public String get_category()
Deprecated. As of GridSim 2.1, replaced by getCategory()

Gets the user-defined name for data type

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

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

get_name

public String get_name()
Deprecated. As of GridSim 2.1, replaced by 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

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

get_data

public String get_data()
Deprecated. As of GridSim 2.1, replaced by getData()

Gets the the data to be recorded

Returns:
the data to be recorded
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

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

GridSim
v3.2

The University of Melbourne, Australia, 2005