public class POSet
extends Object
POSetNode
Modifier and Type | Field and Description |
---|---|
protected HashMap<Object,POSetNode> |
allnodes |
Constructor and Description |
---|
POSet() |
Modifier and Type | Method and Description |
---|---|
boolean |
addNode(POSetNode node)
Add a node to the poset without regard for position or order.
|
void |
clear() |
boolean |
deleteNode(POSetNode node)
Deletes a node from the poset.
|
int |
getCardinality() |
POSetNode |
getNodeByKey(Object posetKey)
Searches for the given value in the partially ordered set.
|
protected HashMap<Object,POSetNode> allnodes
public POSetNode getNodeByKey(Object posetKey)
posetKey
- the key for the node we're looking forpublic boolean addNode(POSetNode node)
public boolean deleteNode(POSetNode node)
public int getCardinality()
public void clear()