GridSim 5.0 beta

gridsim.net.fnb
Class FnbEndToEndPath

Object
  extended by FnbEndToEndPath

public class FnbEndToEndPath
extends Object

This class keeps information which are common to all network packets. When a packet is dropped in a router, the router must inform the user/owner about this case. Since many packets from the same gridlet may be dropped, the router only sends one event for the whole process, not for each packet. Thus, we put all of the common information (e.g. source and destination IDs) into this class.

Since:
GridSim Toolkit 4.2
Author:
Agustin Caminero, Universidad de Castilla-La Mancha (UCLM) (Spain)

Constructor Summary
FnbEndToEndPath(int destID, int srcID, int classType, int totalPkts)
          Creates a new object of this class.
FnbEndToEndPath(int destID, int srcID, int classType, int totalPkts, int glID)
          Creates a new object of this class.
FnbEndToEndPath(int destID, int srcID, int classType, int totalPkts, int glID, boolean isFile)
          Creates a new object of this class.
 
Method Summary
 int getClasstype()
          Gets the classtype of a connection.
 int getDest()
          Gets the destination id of a connection.
 int getObjectID()
          Gets the gridlet/file id of a connection.
 int getSrc()
          Gets the source id of a connection.
 int getTotalPkts()
          Gets the total number of packets of a connection.
 boolean isFile()
          Checks whether this packet contains a file or not
 void setClasstype(int classType)
          Sets the network service level (or classtype) for a connection.
 void setDest(int id)
          Sets the destination id for a connection.
 void setObjectID(int id)
          Sets the gridlet/file id of a connection.
 void setSrc(int sourceID)
          Sets the source id for a connection.
 void setTotalPkts(int total)
          Sets the total packets for a connection.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FnbEndToEndPath

public FnbEndToEndPath(int destID,
                       int srcID,
                       int classType,
                       int totalPkts,
                       int glID)
Creates a new object of this class. This is used by the FnbOutput class.

Parameters:
destID - destination id
srcID - source id
classType - network service level
totalPkts - total number of packets this connection is made of
glID - the gridlet/file id

FnbEndToEndPath

public FnbEndToEndPath(int destID,
                       int srcID,
                       int classType,
                       int totalPkts,
                       int glID,
                       boolean isFile)
Creates a new object of this class. This is used by the FnbOutput class.

Parameters:
destID - destination id
srcID - source id
classType - network service level
totalPkts - total number of packets this connection is made of
glID - the gridlet/file id
isFile - true if it contains a file, false otherwise

FnbEndToEndPath

public FnbEndToEndPath(int destID,
                       int srcID,
                       int classType,
                       int totalPkts)
Creates a new object of this class. This is used by the FnbOutput class.

Parameters:
destID - destination id
srcID - source id
classType - network service level
totalPkts - total number of packets this connection is made of
Method Detail

setDest

public void setDest(int id)
Sets the destination id for a connection.

Parameters:
id - the destination id

setSrc

public void setSrc(int sourceID)
Sets the source id for a connection.

Parameters:
sourceID - the source id

setClasstype

public void setClasstype(int classType)
Sets the network service level (or classtype) for a connection.

Parameters:
classType - the network service level id

setTotalPkts

public void setTotalPkts(int total)
Sets the total packets for a connection.

Parameters:
total - total packets

isFile

public boolean isFile()
Checks whether this packet contains a file or not

Returns:
true if this is a file, false otherwise

getSrc

public int getSrc()
Gets the source id of a connection.

Returns:
the source id of the connection

getDest

public int getDest()
Gets the destination id of a connection.

Returns:
the destination id of the connection

getClasstype

public int getClasstype()
Gets the classtype of a connection.

Returns:
the classtype of the connection

getTotalPkts

public int getTotalPkts()
Gets the total number of packets of a connection.

Returns:
the total number of packets of the connection

setObjectID

public void setObjectID(int id)
Sets the gridlet/file id of a connection.

Parameters:
id - the gridlet id of the connection

getObjectID

public int getObjectID()
Gets the gridlet/file id of a connection.

Returns:
the gridlet id of the connection

GridSim 5.0 beta

The University of Melbourne, Australia, 2009