Module Automata :: Class CAutomata
[hide private]
[frames] | no frames]

Class CAutomata
source code

object --+
         |
        CAutomata

A Class to manage a list of automata

Instance Methods [hide private]
  __init__(self, name, minor=0, major=0)
Initializes the CAutomata class.
  getName(self)
  setName(self, name)
Set the name of the Automata list.
  getMinor(self)
  getMajor(self)
  getAutomaton(self, name)
Returns the automaton instance corresponding to the specified name
  setMinor(self, minor)
Sets the minor parameter of the Automata list.
  setMajor(self, major)
Sets the major parameter of the Automata list.
  addAutomaton(self, automaton)
Adds an automaton to the automata list
  getAutomata(self)
Returns a copy of the list of automata.

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__


Class Variables [hide private]

Inherited from object: __class__


Properties [hide private]
name  
minor  
major  

Method Details [hide private]

__init__(self, name, minor=0, major=0)
(Constructor)

source code 

Initializes the CAutomata class.

The list of automata is initially empty.
Parameters:
  • name (string) - The name of the Automata
Returns:
void
Overrides: object.__init__

getName(self)

source code 
Returns:
The Name of the Automata

setName(self, name)

source code 
Set the name of the Automata list.
Parameters:
  • name (string) - The name of the Automata
Returns:
void

getMinor(self)

source code 
Returns:
The minor parameter of the Automata

getMajor(self)

source code 
Returns:
The major parameter of the Automata

getAutomaton(self, name)

source code 
Returns the automaton instance corresponding to the specified name
Parameters:
  • name (string) - The name of the automaton to retrieve
Returns:
the CAutomaton instance associated to the specified name if it is in the list. False otherwise.

setMinor(self, minor)

source code 
Sets the minor parameter of the Automata list.
Returns:
void

setMajor(self, major)

source code 
Sets the major parameter of the Automata list.
Returns:
void

addAutomaton(self, automaton)

source code 
Adds an automaton to the automata list
Parameters:
  • automaton (a CAutomaton instance) - the automaton instance to add to the current automata
Returns:
void

getAutomata(self)

source code 
Returns a copy of the list of automata.
Returns:
A copy of the list of automata

Property Details [hide private]

name

Get Method:
Automata.CAutomata.getName(self)
Set Method:
Automata.CAutomata.setName(self, name) - Set the name of the Automata list.
Delete Method:
None

minor

Get Method:
Automata.CAutomata.getMinor(self)
Set Method:
Automata.CAutomata.setMinor(self, minor) - Sets the minor parameter of the Automata list.
Delete Method:
None

major

Get Method:
Automata.CAutomata.getMajor(self)
Set Method:
Automata.CAutomata.setMajor(self, major) - Sets the major parameter of the Automata list.
Delete Method:
None