[Javanetsim-cvs] javaNetSim/core ApplicationLayerDevice.java,NONE,1.1 PC.java,1.1,1.2
Status: Beta
Brought to you by:
darkkey
From: Alexander B. <da...@us...> - 2005-11-19 13:07:49
|
Update of /cvsroot/javanetsim/javaNetSim/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23447/core Modified Files: PC.java Added Files: ApplicationLayerDevice.java Log Message: Index: PC.java =================================================================== RCS file: /cvsroot/javanetsim/javaNetSim/core/PC.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** PC.java 8 Nov 2005 15:35:29 -0000 1.1 --- PC.java 19 Nov 2005 13:07:37 -0000 1.2 *************** *** 38,42 **** */ ! class PC extends NetworkLayerDevice { /** --- 38,42 ---- */ ! class PC extends ApplicationLayerDevice { /** --- NEW FILE: ApplicationLayerDevice.java --- /* * ApplicationLayerDevice.java * * Created on 19 Nov 2005, 15:48 * */ package core; import java.util.Hashtable; /** * * @author key */ public class ApplicationLayerDevice extends NetworkLayerDevice{ protected Hashtable Apps = null; /** Creates a new instance of ApplicationLayerDevice */ public ApplicationLayerDevice(String inName, int inProtocolStackLayers) { super(inName, inProtocolStackLayers); Apps = new Hashtable(); } public void addApp(Object app, int code){ Apps.put(code, app); } public Object getApp(int code){ return Apps.get(code); } } |