de.grogra.graph
Class DoubleAttribute
java.lang.Object
de.grogra.graph.Attribute<java.lang.Double>
de.grogra.graph.DoubleAttribute
- All Implemented Interfaces:
- Described, KeyDescription, java.lang.Comparable
- Direct Known Subclasses:
- DoubleTreeAttribute
public class DoubleAttribute
- extends Attribute<java.lang.Double>
Method Summary |
java.lang.Double |
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 double |
getDerived(java.lang.Object object,
boolean asNode,
GraphState gs)
|
double |
getMaxValue()
|
double |
getMinValue()
|
java.lang.Double |
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 double |
setDerived(java.lang.Object object,
boolean asNode,
double value,
GraphState gs)
|
double |
setDouble(java.lang.Object object,
boolean asNode,
double 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 |
DoubleAttribute
public DoubleAttribute(Quantity quantity)
DoubleAttribute
public DoubleAttribute(Type type,
Quantity quantity)
get
public final java.lang.Double 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.Double>
- 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 double getDerived(java.lang.Object object,
boolean asNode,
GraphState gs)
getMaxValue
public double getMaxValue()
getMinValue
public double getMinValue()
set
public final java.lang.Double 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.Double>
- 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 double setDerived(java.lang.Object object,
boolean asNode,
double value,
GraphState gs)
setDouble
public double setDouble(java.lang.Object object,
boolean asNode,
double value,
GraphState gs)