|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FSAModel
Interface for models of Finite-State Automata.
| Method Summary | |
|---|---|
void |
add(FSAState s)
Add a state. |
void |
add(FSATransition t)
Adds a transition the the automaton and adds the transition to the list of sources and targets in the source and target state of the transition. |
void |
add(SupervisoryEvent e)
Adds an event to the event set of the automaton. |
SupervisoryEvent |
assembleCopyOf(DESEvent event)
Assembles a new event with the same name and properties as the given event, which can then be added to the model. |
FSAState |
assembleCopyOf(FSAState state)
Assembles a new state with the same name and properties as the given state, which can then be added to the model. |
FSATransition |
assembleEpsilonTransition(long source,
long target)
Assembles a new epsilon transition which can be added to the model. |
SupervisoryEvent |
assembleEvent(java.lang.String symbol)
Assembles a new event which can be added to the model. |
FSAState |
assembleState()
Assembles a new state which can be added to the model. |
FSATransition |
assembleTransition(long source,
long target,
long event)
Assembles a new transition which can be added to the model. |
FSAModel |
clone()
Creates and returns a copy of this FSAModel. |
SupervisoryEvent |
getEvent(long id)
Get the event with the given event id. |
long |
getEventCount()
Get the number of events in the event set of the FSA. |
java.util.ListIterator<SupervisoryEvent> |
getEventIterator()
Get an iterator for the events in the event set of the FSA. |
SupervisoryEventSet |
getEventSet()
Obtains the set of events in the model. |
FSAState |
getState(long id)
Get the state with the given id. |
long |
getStateCount()
Get the number of states in the FSA. |
java.util.ListIterator<FSAState> |
getStateIterator()
Get an iterator for the states in the FSA. |
FSATransition |
getTransition(long id)
Get the transition with the given id. |
long |
getTransitionCount()
Get the number of transitions in the FSA. |
java.util.ListIterator<FSATransition> |
getTransitionIterator()
Get an iterator for the transitions in the FSA. |
void |
remove(FSAState s)
removes the state from the automaton and all transitions leading to the state and originating from the state |
void |
remove(FSATransition t)
Removes a transition from the automaton. |
void |
remove(SupervisoryEvent e)
Removes an event from the automaton. |
| Methods inherited from interface ides.api.plugin.model.DESModel |
|---|
getModelType, getName, getParentModel, metadataChanged, modelSaved, needsSave, setName, setParentModel |
| Methods inherited from interface ides.api.core.Annotable |
|---|
getAnnotation, hasAnnotation, removeAnnotation, setAnnotation |
| Methods inherited from interface ides.api.plugin.model.DESModelPublisher |
|---|
addSubscriber, getDESModelSubscribers, removeSubscriber |
| Methods inherited from interface ides.api.model.fsa.FSAPublisher |
|---|
addSubscriber, fireFSAEventSetChanged, fireFSAStructureChanged, getFSASubscribers, removeSubscriber |
| Method Detail |
|---|
FSAState assembleState()
FSAState assembleCopyOf(FSAState state)
state - the state whose properties are to be copied.
SupervisoryEvent assembleEvent(java.lang.String symbol)
symbol - the name for the event
SupervisoryEvent assembleCopyOf(DESEvent event)
event - the event whose properties are to be copied.
FSATransition assembleTransition(long source,
long target,
long event)
source - the id of the source state of the transitiontarget - the id of the target state of the transitionevent - the id of the event of the transition
java.lang.IllegalArgumentException - when the given source, target or event are not part of the
model
FSATransition assembleEpsilonTransition(long source,
long target)
source - the id of the source state of the transitiontarget - the id of the target state of the transition
java.lang.IllegalArgumentException - when the given source or target are not part of the modelvoid add(FSAState s)
s - a state that needs to be added.long getStateCount()
long getTransitionCount()
long getEventCount()
void remove(FSAState s)
s - the state to be removedjava.util.ListIterator<FSAState> getStateIterator()
FSAState getState(long id)
id - the id of the state
void add(FSATransition t)
t - the transition to be added to the statevoid remove(FSATransition t)
t - the transition to be removedFSATransition getTransition(long id)
id - the id of the transition.
java.util.ListIterator<FSATransition> getTransitionIterator()
void add(SupervisoryEvent e)
e - the event that shall be added to the automaton.void remove(SupervisoryEvent e)
e - the event to be removedjava.util.ListIterator<SupervisoryEvent> getEventIterator()
SupervisoryEventSet getEventSet()
getEventSet in interface DESModelSupervisoryEvent getEvent(long id)
id - the id of the event
FSAModel clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||