GridSim
v3.2

gridsim
Class IO_data

Object
  extended bygridsim.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 get_byte_size()
          Deprecated. As of GridSim 2.1, replaced by getByteSize()
 Object get_data()
          Deprecated. As of GridSim 2.1, replaced by getData()
 int get_dest_id()
          Deprecated. As of GridSim 2.1, replaced by getDestID()
 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

get_data

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

Gets the Object data

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

getData

public Object getData()
Gets the Object data

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

get_byte_size

public long get_byte_size()
Deprecated. As of GridSim 2.1, replaced by getByteSize()

Gets the size of a data

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

getByteSize

public long getByteSize()
Gets the size of a data

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

get_dest_id

public int get_dest_id()
Deprecated. As of GridSim 2.1, replaced by getDestID()

Gets the destination ID

Returns:
the destination ID
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

Returns:
a String representation of this object
Pre Condition:
$none
Post Condition:
$none

GridSim
v3.2

The University of Melbourne, Australia, 2005