de.grogra.graph
Class ShortAttribute
java.lang.Object
de.grogra.graph.Attribute<java.lang.Short>
de.grogra.graph.ShortAttribute
- All Implemented Interfaces:
- Described, KeyDescription, java.lang.Comparable
- Direct Known Subclasses:
- ShortTreeAttribute
public class ShortAttribute
- extends Attribute<java.lang.Short>
Method Summary |
java.lang.Short |
get(java.lang.Object o,
boolean asNode,
GraphState gs)
Returns the value of this attribute for the given object in
the given graph state. |
protected short |
getDerived(java.lang.Object object,
boolean asNode,
GraphState gs)
|
short |
getMaxValue()
|
short |
getMinValue()
|
java.lang.Short |
set(java.lang.Object o,
boolean asNode,
java.lang.Object value,
GraphState gs)
Sets the value of this attribute for the given object
to the given value |
protected short |
setDerived(java.lang.Object object,
boolean asNode,
short value,
GraphState gs)
|
short |
setShort(java.lang.Object object,
boolean asNode,
short value,
GraphState gs)
|
Methods inherited from class de.grogra.graph.Attribute |
compareTo, find, forName, getAttributeState, getDescription, getId, getKey, getQuantity, getSimpleName, getType, hashCode, initializeI18N, initializeName, isContained, isDerived, isWritable, setAttributeState, toArray, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
ShortAttribute
public ShortAttribute()
ShortAttribute
public ShortAttribute(Type type)
get
public final java.lang.Short get(java.lang.Object o,
boolean asNode,
GraphState gs)
- Description copied from class:
Attribute
- Returns the value of this attribute for the given object in
the given graph state. If necessary, the value is wrapped in one
of the standard wrapper classes.
- Specified by:
get
in class Attribute<java.lang.Short>
- Parameters:
o
- the objectasNode
- true
if object
is a node,
false
if object
is an edgegs
- the graph state context
- Returns:
- the value of this attribute for the given object
getDerived
protected short getDerived(java.lang.Object object,
boolean asNode,
GraphState gs)
getMaxValue
public short getMaxValue()
getMinValue
public short getMinValue()
set
public final java.lang.Short set(java.lang.Object o,
boolean asNode,
java.lang.Object value,
GraphState gs)
- Description copied from class:
Attribute
- Sets the value of this attribute for the given
object
to the given value
- Specified by:
set
in class Attribute<java.lang.Short>
- Parameters:
o
- the objectasNode
- true
if object
is a node,
false
if object
is an edgevalue
- the new value of the attribute for the objectgs
- the graph state context
setDerived
protected short setDerived(java.lang.Object object,
boolean asNode,
short value,
GraphState gs)
setShort
public short setShort(java.lang.Object object,
boolean asNode,
short value,
GraphState gs)