|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uci.ics.jung.graph.impl.AbstractHyperUnitBPG
A support class for both HyperedgeBPG and HyperVertexBPG, this represents a single object backed by a BipartiteVertex that is a member of a HypergraphBPG. Cannot be instantiated on its own.
Nested Class Summary |
Nested classes inherited from class edu.uci.ics.jung.utils.UserDataContainer |
UserDataContainer.CopyAction |
Constructor Summary | |
AbstractHyperUnitBPG()
|
Method Summary | |
void |
addUserDatum(java.lang.Object key,
java.lang.Object datum,
UserDataContainer.CopyAction copyAct)
Adds the specified data with the specified key to this object's user data repository, with the specified CopyAction. |
boolean |
containsUserDatumKey(java.lang.Object key)
Reports whether key is a key of this user data container. |
boolean |
equals(java.lang.Object o)
|
ArchetypeGraph |
getGraph()
|
java.lang.Object |
getUserDatum(java.lang.Object key)
Retrieves the object in this object's user data repository to which key refers. |
UserDataContainer.CopyAction |
getUserDatumCopyAction(java.lang.Object key)
Retrieves the CopyAction for the object stored in this object's user data repository to which key refers. |
java.util.Iterator |
getUserDatumKeyIterator()
Provides an iterator over this object's user data repository key set. |
void |
importUserData(UserDataContainer udc)
Takes the user data stored in udc and copies it to this object's user data repository, respecting each datum's CopyAction. |
java.lang.Object |
removeUserDatum(java.lang.Object key)
Retrieves the object in this object's user data repository to which key refers, and removes it from the repository. |
void |
removeVertex(HypervertexBPG hv3)
|
void |
setUserDatum(java.lang.Object key,
java.lang.Object datum,
UserDataContainer.CopyAction copyAct)
If key refers to an existing user datum in this object's repository, that datum is replaced by the specified datum. |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractHyperUnitBPG()
Method Detail |
public boolean equals(java.lang.Object o)
public ArchetypeGraph getGraph()
ArchetypeVertex.getGraph()
public void addUserDatum(java.lang.Object key, java.lang.Object datum, UserDataContainer.CopyAction copyAct)
UserDataContainer
addUserDatum
in interface UserDataContainer
key
- the key of the datum being addeddatum
- the datum being addedcopyAct
- the CopyAction of the datum being addedUserDataContainer.addUserDatum(java.lang.Object, java.lang.Object, edu.uci.ics.jung.utils.UserDataContainer.CopyAction)
public void importUserData(UserDataContainer udc)
UserDataContainer
importUserData
in interface UserDataContainer
udc
- the source of the user data to be copied into this containerUserDataContainer.importUserData(edu.uci.ics.jung.utils.UserDataContainer)
public java.util.Iterator getUserDatumKeyIterator()
UserDataContainer
getUserDatumKeyIterator
in interface UserDataContainer
UserDataContainer.getUserDatumKeyIterator()
public UserDataContainer.CopyAction getUserDatumCopyAction(java.lang.Object key)
UserDataContainer
getUserDatumCopyAction
in interface UserDataContainer
key
- the key of the datum whose CopyAction is requested
UserDataContainer.getUserDatumCopyAction(java.lang.Object)
public java.lang.Object getUserDatum(java.lang.Object key)
UserDataContainer
getUserDatum
in interface UserDataContainer
key
- the key of the datum to retrieve
UserDataContainer.getUserDatum(java.lang.Object)
public void setUserDatum(java.lang.Object key, java.lang.Object datum, UserDataContainer.CopyAction copyAct)
UserDataContainer
setUserDatum
in interface UserDataContainer
key
- the key of the datum being added/modifieddatum
- the replacement/new datumcopyAct
- the CopyAction for the new (key, datum) pairUserDataContainer.setUserDatum(java.lang.Object, java.lang.Object, edu.uci.ics.jung.utils.UserDataContainer.CopyAction)
public java.lang.Object removeUserDatum(java.lang.Object key)
UserDataContainer
removeUserDatum
in interface UserDataContainer
key
- the key of the datum to be removed
UserDataContainer.removeUserDatum(java.lang.Object)
public boolean containsUserDatumKey(java.lang.Object key)
UserDataContainer
key
is a key of this user data container.
containsUserDatumKey
in interface UserDataContainer
key
- the key to be queried
key
is present in this user data containerpublic void removeVertex(HypervertexBPG hv3)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |