Package org.svvrl.goal.core.tran.tester
Class FDS
java.lang.Object
org.svvrl.goal.core.tran.tester.FDS
public class FDS
extends java.lang.Object
Represents Fair Discrete System. Includes all critical components of an FDS.
- Author:
- Wen-Chin Chan
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description FDSState
createState()
This method creates a FDS state.boolean
evaluate(LTL qptl, FDSState from, FDSState to)
Evaluates the transition relation between from state and to state.FairnessRequirement
getFairnessRequirement()
Returns the fairness requirement.java.util.Set<java.util.Set<FDSState>>
getFinalStateSet()
Returns the final states.LTL
getFormula()
Returns the LTL formula.InitialCondition
getInitialCondition()
Returns the initial condition.java.util.Set<FDSState>
getInitialStates()
Returns the initial state.java.util.Set<FDSState>
getStates()
Returns the FDS statesjava.util.Set<java.util.Set<LTL>>
getStateSet()
Returns the state set.FDSState
getStateWithID(int id)
This method gets the state by id.SystemVariable
getSystemVariable()
Returns the system variable.java.util.HashMap<FDSState,java.util.List<FDSTransition>>
getTransitionFromStateMap()
Returns the map from an FDS state to transitions from the state.FDSTransition
getTransitionFromStateToState(FDSState from, FDSState to)
Returns the transition from a specified source state to a specified destination state.TransitionRelation
getTransitionRelation()
Returns the transition relation.java.util.Set<FDSTransition>
getTransitions()
Returns the transitions.java.util.List<FDSTransition>
getTransitionsFromState(FDSState from)
Returns the transitions from a specified FDS state.java.util.List<FDSTransition>
getTransitionsToState(FDSState to)
Returns the transitions to a specified FDS state.java.util.HashMap<FDSState,java.util.List<FDSTransition>>
getTransitionToStateMap()
Returns the map from an FDS state to transitions to the state.void
setSystemVariable(SystemVariable sysVar)
Sets the system variable.
-
Constructor Details
-
Method Details
-
getFormula
Returns the LTL formula.- Returns:
- the LTL formula
-
getTransitionFromStateMap
Returns the map from an FDS state to transitions from the state.- Returns:
- the map from an FDS state to transitions from the state
-
getTransitionToStateMap
Returns the map from an FDS state to transitions to the state.- Returns:
- the map from an FDS state to transitions to the state
-
getTransitionsFromState
Returns the transitions from a specified FDS state.- Parameters:
from
- an FDS state- Returns:
- the transitions from
from
-
getTransitionsToState
Returns the transitions to a specified FDS state.- Parameters:
to
- an FDS state- Returns:
- the transitions to
to
-
getTransitionFromStateToState
Returns the transition from a specified source state to a specified destination state.- Parameters:
from
- a source stateto
- a destination state- Returns:
- the transition from
from
toto
-
evaluate
public boolean evaluate(LTL qptl, FDSState from, FDSState to) throws java.lang.UnsupportedOperationExceptionEvaluates the transition relation between from state and to state. If the states satisfy the transition, the result is true.- Parameters:
qptl
- an LTL formulafrom
- an FDS stateto
- an FDS state- Returns:
true
if there should be a transition from statefrom
to stateto
- Throws:
java.lang.UnsupportedOperationException
- if some operator inqptl
is not supported
-
getStateWithID
This method gets the state by id.- Parameters:
id
- an ID- Returns:
- an FDS state with ID
id
-
createState
This method creates a FDS state.- Returns:
- a FDS state created
-
getSystemVariable
Returns the system variable.- Returns:
- the system variable
-
getInitialCondition
Returns the initial condition.- Returns:
- the initial condition
-
getTransitionRelation
Returns the transition relation.- Returns:
- the transition relation
-
getFairnessRequirement
Returns the fairness requirement.- Returns:
- the fairness requirement
-
getStateSet
Returns the state set.- Returns:
- the state set
-
getStates
Returns the FDS states- Returns:
- the FDS states
-
getInitialStates
Returns the initial state.- Returns:
- the initial state
-
getTransitions
Returns the transitions.- Returns:
- the transitions
-
getFinalStateSet
Returns the final states.- Returns:
- the final states
-
setSystemVariable
Sets the system variable.- Parameters:
sysVar
- a system variable
-