| Trees | Index | Help |
|
|---|
|
|
object --+
|
__CState
A class to implement a state object.
This class is privately declared inside the CAutomaton class. Every instance will then be created by the CAutomaton public methods (see the CAutomaton.addState method).
|
|||
|
__init__(self,
automaton,
id,
name,
comment,
initial,
marked)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
|||
| getId(self) | |||
|
setId(self,
id)
Sets the ID of the State. |
|||
| getName(self) | |||
|
setName(self,
name)
Sets the name of the State. |
|||
| getComment(self) | |||
|
setComment(self,
comment)
Sets a comment for the State. |
|||
|
setInitial(self,
initial)
Sets the initial flag for the state. |
|||
|
isInitial(self)
Returns a flag which states if the current State is initial or not. |
|||
|
setMarked(self,
marked)
Sets the marked flag for the state. |
|||
|
isMarked(self)
Returns a flag which states if the current State is marked or not. |
|||
|
isBlocking(self)
Returns a flag which states if the current State is blocking or not. |
|||
|
getWeight(self)
Returns the weight associated to the state. |
|||
|
setWeight(self,
weight)
Sets a weight to the state. |
|||
|
addTransition(self,
event,
arrivalstate)
Adds an outgoing transition to the State. |
|||
|
getTransition(self,
event)
Returns the arrival state associated to the specified event for the outgoing transitions. |
|||
|
getInTransition(self,
event)
Returns the departure state associated to the event for the ingoing transitions. |
|||
|
cutTransitions(self)
This method called by the CAutomaton.toDeterministicController method cuts the transitions which made the supervisor non-deterministic by rapport to the control function it should achieve. |
|||
|
getTransitions(self)
Returns a copy of the outgoing transitions dictionary. |
|||
|
getInTransitions(self)
Returns a copy of the ingoing transitions list. |
|||
|
expandWeight(self,
weight)
Sets the weight for the current state and look for linked states with the same weight. |
|||
|
getMealyList(self,
list)
Returns a list of the unchained controllable events from the current state. |
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
| id | |||
| name | |||
| comment | |||
| initial | |||
| marked | |||
|
|||
|
|
|
|
|
|
|
|
|
|
|
|
Returns the weight associated to the state. If a weight has never been set the method returns the -1 value. The weights are used when an automaton which represents a Supervisor is processed in order to carry out a deterministic Controller (see the CAutomaton.toDeterministicController method).
|
Sets a weight to the state. The weights are used when an automaton which represents a Supervisor is processed in order to carry out a deterministic Controller (see the CAutomaton.toDeterministicController method). The weights are usually assigned by the expandWeight method.
|
Adds an outgoing transition to the State. To add the transition the event and the arrival state must already be in the automaton.
|
|
|
This method called by the CAutomaton.toDeterministicController method cuts the transitions which made the supervisor non-deterministic by rapport to the control function it should achieve. The controllable tranistions for the current state are cut in three steps.
|
|
|
|
Returns a list of the unchained controllable events from the current state. When an uncontrollable event is found the chain is interrupted, the arrival state added and the list returned. List format: [Controllable event,Controllable event,...,Controllable event,Arrival State]
|
|
|||
id
|
name
|
comment
|
initial
|
marked
|
| Trees | Index | Help |
|
|---|
| Generated by Epydoc 3.0alpha2 on Tue Jun 27 16:33:16 2006 | http://epydoc.sf.net |