public class UserDatumNumberEdgeValue extends java.lang.Object implements NumberEdgeValue
NumberEdgeValue
that stores the values
in the UserData repository.Modifier and Type | Field and Description |
---|---|
protected UserDataContainer.CopyAction |
copy_action |
protected java.lang.Object |
key |
Constructor and Description |
---|
UserDatumNumberEdgeValue(java.lang.Object key)
Creates an instance with the specified key and with a
CopyAction of REMOVE . |
UserDatumNumberEdgeValue(java.lang.Object key,
UserDataContainer.CopyAction copy_action)
Creates an instance with the specified key and
CopyAction . |
Modifier and Type | Method and Description |
---|---|
void |
clear(ArchetypeGraph g)
Removes this decoration from
g . |
java.lang.Number |
getNumber(ArchetypeEdge e) |
void |
setCopyAction(UserDataContainer.CopyAction copy_action) |
void |
setNumber(ArchetypeEdge e,
java.lang.Number n) |
protected java.lang.Object key
protected UserDataContainer.CopyAction copy_action
public UserDatumNumberEdgeValue(java.lang.Object key)
CopyAction
of REMOVE
.public UserDatumNumberEdgeValue(java.lang.Object key, UserDataContainer.CopyAction copy_action)
CopyAction
.public void setCopyAction(UserDataContainer.CopyAction copy_action)
public java.lang.Number getNumber(ArchetypeEdge e)
getNumber
in interface NumberEdgeValue
e
- the edge to examineNumberEdgeValue.getNumber(edu.uci.ics.jung.graph.ArchetypeEdge)
public void setNumber(ArchetypeEdge e, java.lang.Number n)
setNumber
in interface NumberEdgeValue
e
- the edge whose value we're settingn
- the Number to which we're setting the edgeNumberEdgeValue.setNumber(edu.uci.ics.jung.graph.ArchetypeEdge, java.lang.Number)
public void clear(ArchetypeGraph g)
g
.