Trees | Index | Help |
|
---|
|
object --+ | CAutomaton
|
|||
__CEvent | A class to implement an event object. | ||
__CState | A class to implement a state object. |
|
|||
__init__(self,
name,
comment,
Type)
Initializes the CAutomaton class. |
|||
getName(self) | |||
setName(self,
name)
Sets the name of the Automaton. |
|||
getComment(self) | |||
setComment(self,
comment)
Sets a comment for the Automaton. |
|||
getType(self) | |||
setType(self,
Type)
Sets the type of Automaton. |
|||
resetWeights(self)
Resets the weights of the state in the Automaton. |
|||
setWeights2End(self)
Sets the weight of every state of the Automaton. |
|||
toDeterministicController(self)
For each state of the Automaton cuts the transitions which make the controller not-deterministic. |
|||
addState(self,
id,
name,
comment,
initial,
marked)
Adds a state to the Automaton. |
|||
addEvent(self,
id,
name,
comment,
controllable)
Adds an event to the Automaton. |
|||
getEvent(self,
name)
Returns the event instance corresponding to the specified name |
|||
getEventFromId(self,
id)
Returns the event instance corresponding to the specified id |
|||
getEvents(self)
Returns a copy of the list of events. |
|||
getInitialStates(self)
Returns a copy of the list of initial states. |
|||
getStates(self)
Returns a copy of the list of states. |
|||
getState(self,
name)
Returns the state instance corresponding to the specified name |
|||
getStateFromId(self,
id)
Returns the state instance corresponding to the specified id |
|||
getTransitionsNumber(self)
Return the number of transitions present in the current automaton |
|||
getMarkedStates(self)
Returns a copy of the list of marked states. |
|||
__mul__(self,
automaton)
Returns an automaton obtained with a synchronous composition between the current automaton and the one given as parameter. |
|||
Inherited from |
|
|||
Inherited from |
|
|||
name | |||
Type | |||
comment | |||
events |
|
Initializes the CAutomaton class. The new automaton has no events or state.
|
|
|
|
|
|
|
|
Sets the weight of every state of the Automaton. The weight represents the minimum number of End events to reach a marked state. This method uses theCAutomaton._CAutomaton__CState.expandWeight recursive
method to assign the weights.
|
For each state of the Automaton cuts the transitions which make the controller not-deterministic. The controller must be deterministic meaning that a given input sequence should then always produce the same sequence of outputs. To avoid a non-deterministic choice during the code generation it is then necessary to suppress this choice among more controllable events. TheCAutomaton._CAutomaton__CState.cutTransitions methos
is invoked for each state.
|
|
|
|
|
|
|
|
|
|
|
|
>>> #Example:
>>> resulting_automaton=a*b
|
|
name
|
Type
|
comment
|
events
|
Trees | Index | Help |
|
---|
Generated by Epydoc 3.0alpha2 on Tue Jun 27 16:33:16 2006 | http://epydoc.sf.net |