|
|||||||||
| Home >> All >> [ cgsuite overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
cgsuite
Class LoopyGame.Node

java.lang.Objectcgsuite.LoopyGame.Node
- Enclosing class:
- LoopyGame
- public static class LoopyGame.Node
- extends java.lang.Object
A single node of a game graph. This class is used to specify a game
graph to a LoopyGame constructor. Objects of type
Node are mutable, so you can first construct a
Node for each node in your game graph, and then specify
the left and right edges that connect them.
| Nested Class Summary | |
(package private) static class |
LoopyGame.Node.GraphInfo
|
| Field Summary | |
(package private) boolean |
fromCanonical
|
(package private) LoopyGame.Node.GraphInfo |
graphInfo
|
private java.util.List |
leftEdges
|
(package private) boolean |
marker
|
private java.util.List |
rightEdges
|
(package private) int |
startVertex
|
| Constructor Summary | |
LoopyGame.Node()
Constructs a new Node whose left and right edge sets
are initially empty. |
|
LoopyGame.Node(java.util.Collection leftEdges,
java.util.Collection rightEdges)
Constructs a new Node with the specified initial left
and right edge sets. |
|
| Method Summary | |
void |
addAllLeftEdges(java.util.Collection dests)
Adds a left edge to this node for each destination in the specified collection. |
void |
addAllRightEdges(java.util.Collection dests)
Adds a right edge to this node for each destination in the specified collection. |
void |
addLeftEdge(CanonicalGame g)
Adds a left edge from this node to g. |
void |
addLeftEdge(LoopyGame.Node dest)
Adds a left edge from this node to dest. |
void |
addLeftEdge(LoopyGame g)
Adds a left edge from this node to g. |
void |
addRightEdge(CanonicalGame g)
Adds a right edge from this node to g. |
void |
addRightEdge(LoopyGame.Node dest)
Adds a right edge from this node to dest. |
void |
addRightEdge(LoopyGame g)
Adds a right edge from this node to g. |
java.util.List |
getLeftEdges()
Gets the left edges of this node. |
java.util.List |
getRightEdges()
Gets the right edges of this node. |
private void |
invalidate()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
leftEdges
private java.util.List leftEdges
rightEdges
private java.util.List rightEdges
fromCanonical
boolean fromCanonical
marker
boolean marker
graphInfo
LoopyGame.Node.GraphInfo graphInfo
startVertex
int startVertex
| Constructor Detail |
LoopyGame.Node
public LoopyGame.Node()
- Constructs a new
Nodewhose left and right edge sets are initially empty.
LoopyGame.Node
public LoopyGame.Node(java.util.Collection leftEdges, java.util.Collection rightEdges)
- Constructs a new
Nodewith the specified initial left and right edge sets. It is permissible to add additional left and right edges later on.
| Method Detail |
getLeftEdges
public java.util.List getLeftEdges()
- Gets the left edges of this node. The
Listthat is returned may not be modified; use addLeftEdge 55 instead.
getRightEdges
public java.util.List getRightEdges()
- Gets the right edges of this node. The
Listthat is returned may not be modified; use addRightEdge 55 instead.
addLeftEdge
public void addLeftEdge(LoopyGame.Node dest)
- Adds a left edge from this node to
dest.
addLeftEdge
public void addLeftEdge(CanonicalGame g)
- Adds a left edge from this node to
g. When a LoopyGame is constructed based on this node, a copy ofgwill be attached to the game graph as a left option of this node.
addLeftEdge
public void addLeftEdge(LoopyGame g)
- Adds a left edge from this node to
g. When a LoopyGame is constructed based on this node, a copy ofgwill be attached to the game graph as a left option of this node.
addAllLeftEdges
public void addAllLeftEdges(java.util.Collection dests)
- Adds a left edge to this node for each destination in the specified
collection. Every object in the collection must be a
Node, a CanonicalGame, or a LoopyGame.
addRightEdge
public void addRightEdge(LoopyGame.Node dest)
- Adds a right edge from this node to
dest.
addRightEdge
public void addRightEdge(CanonicalGame g)
- Adds a right edge from this node to
g. When a LoopyGame is constructed based on this node, a copy ofgwill be attached to the game graph as a right option of this node.
addRightEdge
public void addRightEdge(LoopyGame g)
- Adds a right edge from this node to
g. When a LoopyGame is constructed based on this node, a copy ofgwill be attached to the game graph as a right option of this node.
addAllRightEdges
public void addAllRightEdges(java.util.Collection dests)
- Adds a right edge to this node for each destination in the specified
collection. Every object in the collection must be a
Node, a CanonicalGame, or a LoopyGame.
invalidate
private void invalidate()
|
|||||||||
| Home >> All >> [ cgsuite overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
cgsuite.LoopyGame.Node