GridSim 5.0 beta

gridsim.net.fnb
Class FnbMessageDropFile

Object
  extended by FnbMessageDropFile
All Implemented Interfaces:
FnbMessage

public class FnbMessageDropFile
extends Object
implements FnbMessage

This class contains a file ID and its name, that is currently being dropped in the network. This class is primarily used by the FnbOutput class.

Since:
GridSim Toolkit 4.2
Author:
Agustin Caminero
See Also:
FnbOutput

Constructor Summary
FnbMessageDropFile(int fileID, String filename)
          A constructor
 
Method Summary
 int getEntityID()
          Gets a file ID
 String getFilename()
          Gets a filename
 void setEntityID(int fileID)
          Sets a file ID that is being dropped in the network.
 void setFilename(String filename)
          Sets a filename that is being dropped in the network.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FnbMessageDropFile

public FnbMessageDropFile(int fileID,
                          String filename)
A constructor

Parameters:
fileID - a file ID
filename - a filename
Method Detail

setEntityID

public void setEntityID(int fileID)
Sets a file ID that is being dropped in the network.

Specified by:
setEntityID in interface FnbMessage
Parameters:
fileID - a file ID
See Also:
FnbMessageDropGridlet.setEntityID(int), setEntityID(int)

getEntityID

public int getEntityID()
Gets a file ID

Specified by:
getEntityID in interface FnbMessage
Returns:
a file ID

setFilename

public void setFilename(String filename)
Sets a filename that is being dropped in the network.

Parameters:
filename - a filename

getFilename

public String getFilename()
Gets a filename

Returns:
a filename

GridSim 5.0 beta

The University of Melbourne, Australia, 2009