|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfi.helsinki.dacopan.model.VariableDefinition
public class VariableDefinition
Definition of a dynamic variable associated with a protocol
,
whose value can change from one unit
to another. Each
variable is categorized to a specific scope
.
StaticVariable
Nested Class Summary | |
---|---|
static class |
VariableDefinition.Scope
The scope of a variable. |
Field Summary | |
---|---|
static VariableDefinition.Scope |
FLOW
scope of a flow -specific variable (e.g. |
protected java.lang.String |
name
name of the variable |
protected Protocol |
protocol
the protocol that this variables is associated with |
protected VariableDefinition.Scope |
scope
scope of the variable |
static VariableDefinition.Scope |
UNIT
scope of a unit -specific variable (e.g. transition time) |
static VariableDefinition.Scope |
UNIT_FIELD
scope of a protocol field (e.g. |
Constructor Summary | |
---|---|
VariableDefinition(java.lang.String name,
VariableDefinition.Scope scope,
Protocol protocol)
Creates a new variable definition with the given name, scope and protocol. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getFullName()
|
java.lang.String |
getName()
|
Protocol |
getProtocol()
|
java.lang.String |
getRawName()
Returns the non-localized name of the variable. |
VariableDefinition.Scope |
getScope()
|
int |
hashCode()
|
boolean |
isFlowVariable()
|
boolean |
isProtocolField()
|
boolean |
isUnitVariable()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final VariableDefinition.Scope UNIT
unit
-specific variable (e.g. transition time)
public static final VariableDefinition.Scope UNIT_FIELD
protocol
field (e.g. TCP sequence number)
public static final VariableDefinition.Scope FLOW
flow
-specific variable (e.g. TCP state)
protected java.lang.String name
protected VariableDefinition.Scope scope
protected Protocol protocol
Constructor Detail |
---|
public VariableDefinition(java.lang.String name, VariableDefinition.Scope scope, Protocol protocol)
Method Detail |
---|
public java.lang.String getRawName()
public java.lang.String getName()
public java.lang.String getFullName()
public VariableDefinition.Scope getScope()
public Protocol getProtocol()
public boolean isUnitVariable()
public boolean isFlowVariable()
public boolean isProtocolField()
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 |