Package org.jcsp.net.settings
Class Protocols
- java.lang.Object
-
- org.jcsp.net.settings.Protocols
-
public class Protocols extends java.lang.ObjectUsed internally within the JCSP network infrastructure to represent a set of protocols.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classProtocols.ProtocolAlreadyExistsException
-
Field Summary
Fields Modifier and Type Field Description private ProtocollastProtocolprivate java.util.HashtableprotocolIDMapprivate java.util.Hashtableprotocols
-
Constructor Summary
Constructors Constructor Description Protocols()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProtocol(Protocol p)ProtocolgetLastProtocol()ProtocolgetProtocol(java.lang.String protocolID)Protocol[]getProtocols()voidremoveProtocol(Protocol p)java.lang.StringtoString()
-
-
-
Field Detail
-
protocols
private java.util.Hashtable protocols
-
protocolIDMap
private java.util.Hashtable protocolIDMap
-
lastProtocol
private Protocol lastProtocol
-
-
Method Detail
-
addProtocol
public void addProtocol(Protocol p)
-
removeProtocol
public void removeProtocol(Protocol p)
-
getProtocol
public Protocol getProtocol(java.lang.String protocolID)
-
getLastProtocol
public Protocol getLastProtocol()
-
getProtocols
public Protocol[] getProtocols()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-