From: <aca...@us...> - 2008-07-29 14:25:11
|
Revision: 189 http://gridsim.svn.sourceforge.net/gridsim/?rev=189&view=rev Author: acaminero Date: 2008-07-29 14:25:19 +0000 (Tue, 29 Jul 2008) Log Message: ----------- to allow future extensions (drop other things than files and gridlets) Added Paths: ----------- branches/gridsim4.0-branch2/source/gridsim/net/fnb/FnbMessage.java branches/gridsim4.0-branch2/source/gridsim/net/fnb/FnbMessageDropFile.java branches/gridsim4.0-branch2/source/gridsim/net/fnb/FnbMessageDropGridlet.java Added: branches/gridsim4.0-branch2/source/gridsim/net/fnb/FnbMessage.java =================================================================== --- branches/gridsim4.0-branch2/source/gridsim/net/fnb/FnbMessage.java (rev 0) +++ branches/gridsim4.0-branch2/source/gridsim/net/fnb/FnbMessage.java 2008-07-29 14:25:19 UTC (rev 189) @@ -0,0 +1,9 @@ +package gridsim.net.fnb; + +public interface FnbMessage +{ + public void setEntityID(int i); + + public int getEntityID(); + +} Added: branches/gridsim4.0-branch2/source/gridsim/net/fnb/FnbMessageDropFile.java =================================================================== --- branches/gridsim4.0-branch2/source/gridsim/net/fnb/FnbMessageDropFile.java (rev 0) +++ branches/gridsim4.0-branch2/source/gridsim/net/fnb/FnbMessageDropFile.java 2008-07-29 14:25:19 UTC (rev 189) @@ -0,0 +1,38 @@ +package gridsim.net.fnb; + +import gridsim.net.fnb.*; + +public class FnbMessageDropFile implements FnbMessage +{ + int fileID; + String filename; + + public FnbMessageDropFile(int e, String f) + { + fileID = e; + filename = f; + } + + public void setEntityID(int i) + { + fileID = i; + } + + + public int getEntityID() + { + return fileID; + } + + public void setFilename(String f) + { + filename = f; + } + + public String getFilename() + { + return filename; + } + + +} Added: branches/gridsim4.0-branch2/source/gridsim/net/fnb/FnbMessageDropGridlet.java =================================================================== --- branches/gridsim4.0-branch2/source/gridsim/net/fnb/FnbMessageDropGridlet.java (rev 0) +++ branches/gridsim4.0-branch2/source/gridsim/net/fnb/FnbMessageDropGridlet.java 2008-07-29 14:25:19 UTC (rev 189) @@ -0,0 +1,26 @@ +package gridsim.net.fnb; + +import gridsim.net.fnb.*; + +public class FnbMessageDropGridlet implements FnbMessage +{ + int gridletID; + + public FnbMessageDropGridlet (int e) + { + gridletID = e; + } + + public void setEntityID(int i) + { + gridletID = i; + } + + + public int getEntityID() + { + return gridletID; + } + + +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |