|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.argkit.dung.Branch<C>
C - (Argument's) claim classpublic class Branch<C>
A class that it used to store a branch of a particular argument game dialogue.
| Constructor Summary | |
|---|---|
Branch()
Default constructor. |
|
Branch(Argument<C> proArg)
Typical constructor. |
|
| Method Summary | |
|---|---|
void |
addOPP(Argument<C> argument)
Add an OPP argument to this branch. |
void |
addPRO(Argument<C> argument)
Add a PRO argument to this branch. |
Branch<C> |
copy()
Make a copy of this Branch. |
Argument<C> |
getLastArgument()
|
boolean |
isProWinning()
|
java.util.Iterator<Argument<C>> |
iterator()
Note that there is no explicit markup of PRO/OPP ownership of arguments, this is left for the consumer to work out, knowing that the first argument yielded will be a PRO argument, and all arguments thereafter will swap between OPP and PRO. |
java.util.Set<Argument<C>> |
oppArguments()
|
java.util.Iterator<Argument<C>> |
oppIterator()
|
java.util.Set<Argument<C>> |
proArguments()
|
java.util.Iterator<Argument<C>> |
proIterator()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Branch()
public Branch(Argument<C> proArg)
proArg - | Method Detail |
|---|
public void addPRO(Argument<C> argument)
argument - the PRO argument to be added to the branchpublic void addOPP(Argument<C> argument)
argument - the OPP argument to be added to the branchpublic Argument<C> getLastArgument()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isProWinning()
public java.util.Iterator<Argument<C>> iterator()
public java.util.Iterator<Argument<C>> proIterator()
public java.util.Iterator<Argument<C>> oppIterator()
public java.util.Set<Argument<C>> proArguments()
public java.util.Set<Argument<C>> oppArguments()
public Branch<C> copy()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||