|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfi.helsinki.dacopan.model.Protocol
public class Protocol
A network protocol.
Field Summary | |
---|---|
protected long |
id
unique identifier |
protected Layer |
layer
network layer to which the protocol belongs to |
protected java.lang.String |
name
name of the protocol |
protected java.util.List |
staticVariables
list of static variables |
protected java.util.List |
variables
list of variable definitions |
Constructor Summary | |
---|---|
Protocol(long id,
java.lang.String name,
Layer layer)
Creates a protocol with the given id, name and network layer. |
|
Protocol(long id,
java.lang.String name,
Layer layer,
java.util.List variables,
java.util.List staticVariables)
Creates a protocol with the given values and variables. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
long |
getId()
Returns the unique identifier of this object. |
Layer |
getLayer()
|
java.lang.String |
getName()
|
java.lang.String |
getRawName()
|
java.util.List |
getStaticVariables()
Returns any static variables associated with this protocol. |
java.util.List |
getVariables()
Returns any variable definitions associated with this protocol. |
void |
setStaticVariables(java.util.List staticVariables)
|
void |
setVariables(java.util.List variables)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected long id
protected java.lang.String name
protected Layer layer
protected java.util.List variables
variable definitions
protected java.util.List staticVariables
static variables
Constructor Detail |
---|
public Protocol(long id, java.lang.String name, Layer layer)
public Protocol(long id, java.lang.String name, Layer layer, java.util.List variables, java.util.List staticVariables)
Method Detail |
---|
public long getId()
Identifiable
getId
in interface Identifiable
public Layer getLayer()
public java.lang.String getName()
public java.lang.String getRawName()
public java.util.List getVariables()
public void setVariables(java.util.List variables)
public java.util.List getStaticVariables()
public void setStaticVariables(java.util.List staticVariables)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |