|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrwth.i2.ltlrv.management.Configuration
public class Configuration
Configuration - Global configuration for one single formula.
| Field Summary | |
|---|---|
private Set<Set<IAFAState>> |
globalState
The current global state as a disjunct of conjuncts of terms. |
private static int |
lastTermNumber
Last number a term was mapped to. |
private static Map<IAFAState,Integer> |
termToNumber
Maps a term to a number. |
| Constructor Summary | |
|---|---|
Configuration(IAFAState initialState)
Constructs a new configuration for an initial state. |
|
| Method Summary | |
|---|---|
private static String |
clauseSetToString(Set<Set<IAFAState>> clauseSet)
|
boolean |
equals(Object oth)
|
private static WeakValuesMap<String,Object> |
filterBindingForCurrentJoinpoint(WeakValuesMap<String,Object> binding,
Collection<String> unboundVariablesAtCurrentJoinpoint)
Filters a binding for those entries that are unbound at the current joinpoint. |
int |
hashCode()
|
private static boolean |
isClauseSetFinal(Set<Set<IAFAState>> clauseSet)
|
boolean |
isFF()
Returns true if this configuration is in the global state FF. |
boolean |
isFinal()
Returns true if this configuration is currently in a final (accepting) state. |
boolean |
isTT()
Returns true if this configuration is in the global state TT. |
private static int |
numberOf(IAFAState term)
Returns a (possibly new) number for a term, based on equality. |
private static String |
numberStringOf(IAFAState term)
Returns a unique number string for the term, based on equality. |
private static Set<Set<IAFAState>> |
subsumptionReduction(Set<Set<IAFAState>> set)
Removes sets which contain another set (in order to find the smallest model) |
String |
toString()
|
(package private) void |
transition(PropositionSet props)
Performs a transition for the given propositions. |
private static Set<Set<IAFAState>> |
transition(Set<Set<IAFAState>> globalState,
PropositionSet currentProps)
Performs a transition from the given state (set of clauses) to the sucessor state for the given set of propositions. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private Set<Set<IAFAState>> globalState
private static Map<IAFAState,Integer> termToNumber
private static int lastTermNumber
| Constructor Detail |
|---|
public Configuration(IAFAState initialState)
throws IAFAState.ValidationException
initialState - the initial state of the system
IAFAState.ValidationException - thrown if there are inconsistent bindings
in this formula| Method Detail |
|---|
void transition(PropositionSet props)
props - a set of runtime propositionspublic boolean isFinal()
private static boolean isClauseSetFinal(Set<Set<IAFAState>> clauseSet)
clauseSet - the clause set to check
true is this clause set represents a final statepublic boolean isTT()
true if the global state of this configuration
is {{}}public boolean isFF()
true if the global state of this configuration
is {}
private static Set<Set<IAFAState>> transition(Set<Set<IAFAState>> globalState,
PropositionSet currentProps)
globalState - the state to calculate the successor forcurrentProps - the set of propositions to calculate the transition for
private static WeakValuesMap<String,Object> filterBindingForCurrentJoinpoint(WeakValuesMap<String,Object> binding,
Collection<String> unboundVariablesAtCurrentJoinpoint)
binding - A full binding at the current joinpoint.unboundVariablesAtCurrentJoinpoint - collection of variabels that are unbound at
the current joinpoint in the given formula
private static Set<Set<IAFAState>> subsumptionReduction(Set<Set<IAFAState>> set)
set - the set on which the reduction should be performed
public String toString()
toString in class Objectprivate static String clauseSetToString(Set<Set<IAFAState>> clauseSet)
clauseSet - set to return a string for
private static int numberOf(IAFAState term)
term - a term
private static String numberStringOf(IAFAState term)
term - a term
public boolean equals(Object oth)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||