|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.argkit.dung.Dungine<C>
C - (Argument's) claim classpublic class Dungine<C>
A DungEngine decorates arguments from an ArgumentSource with an isAcceptable flag, using a DefeatSource and a Reasoner. It can be used:
A light touch has been used with regards to synchronisation. The updateCaches method is synchronised, because this is where the key work is done. This approach may need to be revisited at a later stage.
| Constructor Summary | |
|---|---|
Dungine()
|
|
Dungine(ArgumentSource<C> source)
|
|
| Method Summary | |
|---|---|
Query<C> |
createQuery(C claim)
Create a Query. |
java.util.Collection<? extends Argument<C>> |
getAllArguments()
Yield all arguments from a particular argument source. |
java.util.Collection<? extends Argument<C>> |
getArguments(C claim)
Yield all arguments with a particular claim expression. |
AbstractReasoner<C> |
getReasoner()
|
void |
setReasoner(AbstractReasoner<C> reasoner)
|
protected void |
updateCaches()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Dungine(ArgumentSource<C> source)
public Dungine()
| Method Detail |
|---|
public AbstractReasoner<C> getReasoner()
public void setReasoner(AbstractReasoner<C> reasoner)
public Query<C> createQuery(C claim)
claim -
public java.util.Collection<? extends Argument<C>> getAllArguments()
ArgumentSource
getAllArguments in interface ArgumentSource<C>public java.util.Collection<? extends Argument<C>> getArguments(C claim)
ArgumentSource
getArguments in interface ArgumentSource<C>claim - argument's claim
protected void updateCaches()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||