Go to the documentation of this file.
33 #ifndef TTA_FU_FINITE_STATE_AUTOMATON_HH
34 #define TTA_FU_FINITE_STATE_AUTOMATON_HH
45 class ResourceVectorSet;
65 bool lazyBuilding =
true);
99 typedef std::map<FSAStateIndex, CollisionMatrix*>
103 typedef std::map<CollisionMatrix, FSAStateIndex>
int FSAStateIndex
Type used for indexing the states.
virtual bool isLegalTransition(FSAStateIndex source, FSAStateTransitionIndex transition)
FUFiniteStateAutomaton(const TTAMachine::FunctionUnit &fu, bool lazyBuilding=true)
void addCollisionMatrixForState(FSAStateIndex state, CollisionMatrix *matrix)
CollisionMatrix & operationCollisionMatrix(const std::string operationName)
void issueOperation(OperationID operation)
virtual ~FUFiniteStateAutomaton()
virtual std::string stateName(FSAStateIndex state) const
std::map< FSAStateIndex, CollisionMatrix * > StateCollisionMatrixIndex
Index for collision matrices of states (key is the state index).
StateCollisionMatrixIndex stateCollisionMatrices_
The collision matrices of each state.
FiniteStateAutomaton::FSAStateIndex resolveState(FiniteStateAutomaton::FSAStateIndex source, FiniteStateAutomaton::FSAStateTransitionIndex transition)
FSAStateIndex joinState(FSAStateIndexSet sourceStates)
FSAStateTransitionIndex OperationID
virtual FSAStateIndex destinationState(FSAStateIndex source, FSAStateTransitionIndex transition)
FSAStateTransitionIndex nopTransition_
The number of the NOP transition.
FUCollisionMatrixIndex operationCollisionMatrices_
Collision matrices of operations are stored here.
const char * operationName(OperationID id) const
int FSAStateTransitionIndex
Type used for indexing the transitions.
bool conflictsWith(OperationID operation) const
Inline functions for fast access in the compiled simulator.
std::map< CollisionMatrix, FSAStateIndex > CollisionMatrixStateIndex
Index for finding the state for a collision matrix.
CollisionMatrixStateIndex collisionMatrixStates_
An index for quickly finding the state of a collision matrix.
std::set< FSAStateIndex > FSAStateIndexSet
Type for a set of state indices.