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

Version:
2.2, December 2003
Author:
Manzur Murshed and Rajkumar Buyya
Invariant:
$none

Constructor Summary
IO_data(Object data, long byteSize, int destID)
          Allocates a new IO_data object
 
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
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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
Method Detail

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