|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfi.helsinki.dacopan.model.Layer
public class Layer
Represents a network layer.
Field Summary | |
---|---|
protected long |
id
unique layer id |
protected java.lang.String |
name
(non-localized) name of the layer |
protected int |
order
an arbitrary value for ordering layers |
protected java.util.List |
protocols
protocols that operate on this layer |
Constructor Summary | |
---|---|
Layer(long id,
java.lang.String name,
int order)
Creates a new layer with the given name and order. |
|
Layer(long id,
java.lang.String name,
int order,
java.util.List protocols)
Creates a layer with default parameters plus a list of protocols. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
Implements ordering of layers lower-layer-first. |
boolean |
equals(java.lang.Object o)
|
long |
getId()
Returns the identifier of this layer. |
java.lang.String |
getName()
Returns the name of the layer. |
java.util.List |
getProtocols()
Returns all the protocols on this layer. |
int |
hashCode()
|
void |
setProtocols(java.util.List protocols)
Set the list of protocols on this layer. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected long id
protected int order
protected java.lang.String name
protected java.util.List protocols
Constructor Detail |
---|
public Layer(long id, java.lang.String name, int order)
id
- unique identifiername
- of the layerorder
- of the layer in the layer stackpublic Layer(long id, java.lang.String name, int order, java.util.List protocols)
Layer(long, String, int)
Method Detail |
---|
public long getId()
getId
in interface Identifiable
public java.lang.String getName()
public java.util.List getProtocols()
public void setProtocols(java.util.List protocols)
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
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 |