org.argkit.dung
Class InformalArgumentSource

java.lang.Object
  extended by org.argkit.dung.InformalArgumentSource
All Implemented Interfaces:
ArgumentSource<java.lang.String>, DefeatSource<java.lang.String>

public class InformalArgumentSource
extends java.lang.Object
implements ArgumentSource<java.lang.String>, DefeatSource<java.lang.String>

A source of defeating arguments that consist of a String claim implemented for testing and demonstration purposes. The immutable argument network is defined during construction with a single String parameter. This parameter is expected to consist of lines of argument claims. Each line includes at least one argument claim. If more than one argument is included on a line, space delimited, then the first argument is the target of all subsequent argument's attacks. If you wish to include a space in your claim, then you can use double quotes to enclose your claim.

for example:

 a b
 c
 
would create an argument source with three arguments, whose claims were "a", "b" and "c" and where "a" was attacked by "b".

similarly,

 "you are wrong" "i am right"
 
would create an argument source with two arguments, whose cliams were "i am right" and "you are wrong" and where the first argument attacked the second.

Author:
Matt South

Constructor Summary
InformalArgumentSource(java.lang.String network)
           
 
Method Summary
 java.util.Collection<? extends Argument<java.lang.String>> getAllArguments()
          Yield all arguments from a particular argument source.
 java.util.Collection<? extends Argument<java.lang.String>> getArguments(java.lang.String claim)
          Yield all arguments with a particular claim expression.
 java.util.Collection<? extends Argument<java.lang.String>> getDefeaters(Argument<java.lang.String> argument)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InformalArgumentSource

public InformalArgumentSource(java.lang.String network)
Method Detail

getAllArguments

public java.util.Collection<? extends Argument<java.lang.String>> getAllArguments()
Description copied from interface: ArgumentSource
Yield all arguments from a particular argument source.

Specified by:
getAllArguments in interface ArgumentSource<java.lang.String>
Returns:
a collection of all arguments available from the implementing source

getArguments

public java.util.Collection<? extends Argument<java.lang.String>> getArguments(java.lang.String claim)
Description copied from interface: ArgumentSource
Yield all arguments with a particular claim expression.

Specified by:
getArguments in interface ArgumentSource<java.lang.String>
Parameters:
claim - argument's claim
Returns:
a collection of arguments with the given claim

getDefeaters

public java.util.Collection<? extends Argument<java.lang.String>> getDefeaters(Argument<java.lang.String> argument)
Specified by:
getDefeaters in interface DefeatSource<java.lang.String>