GridSim 5.0 beta

gridsim
Class IO_data

Object
  extended by IO_data

public class IO_data
extends Object

Class relates to a communication between user entities and resources or user entities and others.

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

Constructor Summary
IO_data(Object data, long byteSize, int destID)
          Allocates a new IO_data object
IO_data(Object data, long byteSize, int destID, int netServiceLevel)
          Allocates a new IO_data object with a specific network service level.
 
Method Summary
 long getByteSize()
          Gets the size of a data
 Object getData()
          Gets the Object data
 int getDestID()
          Gets the destination ID
 int getNetServiceLevel()
          Returns the class type of this IO_data object.
 String toString()
          Returns a human-readable information of this object
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IO_data

public IO_data(Object data,
               long byteSize,
               int destID)
Allocates a new IO_data object

Parameters:
data - the data object
byteSize - the size of a data (in bytes)
destID - the destination ID
Pre Condition:
data != null, byteSize >= 0, destID >= 0
Post Condition:
$none

IO_data

public IO_data(Object data,
               long byteSize,
               int destID,
               int netServiceLevel)
Allocates a new IO_data object with a specific network service level.

The network service level of 0 is the normal or default level. Other levels are treated according to the policy being followed by the system. For example, if using SCFQScheduler as a packet scheduler, then setting the level to 1 or higher means this object gets a higher priority.

Parameters:
data - the data object
byteSize - the size of a data (in bytes)
destID - the destination ID
netServiceLevel - determines the kind of service this packet receives in the network (applicable to selected PacketScheduler class only)
See Also:
SCFQScheduler
Pre Condition:
data != null, byteSize >= 0, destID >= 0
Post Condition:
$none
Method Detail

getNetServiceLevel

public int getNetServiceLevel()
Returns the class type of this IO_data object.

Returns:
the classtype
Pre Condition:
$none
Post Condition:
$none

getData

public Object getData()
Gets the Object data

Returns:
the Object data
Pre Condition:
$none
Post Condition:
$result != null

getByteSize

public long getByteSize()
Gets the size of a data

Returns:
the data size
Pre Condition:
$none
Post Condition:
$result >= 0

getDestID

public int getDestID()
Gets the destination ID

Returns:
the destination ID
Pre Condition:
$none
Post Condition:
$result >= 0

toString

public String toString()
Returns a human-readable information of this object

Overrides:
toString in class Object
Returns:
a String representation of this object
Pre Condition:
$none
Post Condition:
$none

GridSim 5.0 beta

The University of Melbourne, Australia, 2009