Class DefaultSequence
java.lang.Object
org.tweetyproject.logics.rdl.semantics.DefaultSequence
-
Constructor Summary
ConstructorDescriptionconstructs a sequence by appending d to dsconstructs an empty sequence of defaults of the default theory dt -
Method Summary
Modifier and TypeMethodDescriptionapp
(DefaultRule d) Constructs a new DefaultSequencegetIn()
Return the sequence's in setgetOut()
Return the sequence's out setboolean
applicable ^= pre in In and (not jus_i) not in In forall iboolean
Tests wether all applicble defaukts from t have been appliedboolean
process <=> all defaults are unique and applicable in sequenceboolean
successfull <=> there is no x: x in In and x in OuttoString()
-
Constructor Details
-
DefaultSequence
constructs an empty sequence of defaults of the default theory dt- Parameters:
dt
- a default theory, from which defaults will be added to the sequence
-
DefaultSequence
constructs a sequence by appending d to ds- Parameters:
ds
- a default sequenced
- a default rule
-
-
Method Details
-
app
Constructs a new DefaultSequence- Parameters:
d
- a default rule- Returns:
- new Sequence adding d to this
-
isApplicable
applicable ^= pre in In and (not jus_i) not in In forall i- Parameters:
d
- a default rule- Returns:
- true iff d is applicable to In
-
getIn
-
getOut
Return the sequence's out set- Returns:
- the sequence's out set
-
isProcess
public boolean isProcess()process <=> all defaults are unique and applicable in sequence- Returns:
- true iff is process
-
isSuccessful
public boolean isSuccessful()successfull <=> there is no x: x in In and x in Out- Returns:
- true iff successfull
-
isClosed
Tests wether all applicble defaukts from t have been applied- Parameters:
t
- a default theory- Returns:
- true iff every possible default is applied
-
toString
-