translator.visitor.DEVSlibrary.devsConnect
index
/home/yentl/UA/devs-eindwerk/translator/translator/visitor/DEVSlibrary/devsConnect.py

 
Modules
       
configparser
os

 
Classes
       
builtins.object
DEVSConnect

 
class DEVSConnect(builtins.object)
     Methods defined here:
__init__(self)
All needed information to construct the complete connection set
afterTranslation(self)
This are the different stages of adaption that need to be done when converting from logisim --> DEVS, since some parts aren't natively supported
checkBitsizes(self)
Does the static bitsize checks
connect(self, circuit, shredder, shredBit, merger, mergeBit, direction)
Connects the shredder and merger at the selected bits, also handles multiple connected elements
findCircuit(self, i)
Finds the circuit of a connection group
findConnectionElement(self, element, name)
Finds the connection element with the name and element
fixColliding(self)
Fixes the colliding wires, which are not supported in DEVS
fixNull(self)
Checks and modifies 'illegal' connections
fixPull(self)
Checks and modifies PullResistors
fixSplitter(self)
This removes the Splitter and makes BitShredders and BitMergers
mergeDirection(self, direction1, direction2)
Determines the direction that should be merged to, given these two colliding directions
moduleChecker(self)
Checks the modules and splits it in inputs, outputs and elements
printConnections(self)
An output function for the connection set
setConnections(self, connections, colliding, wires)
Strange function to set the connections...
visit(self, element)
The visit function
write(self)
Write the tree, just calls other procedures
writeToFile(self, filename, string)
A nice interface to write all data to the file

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Functions
       
ceil(...)
ceil(x)
 
Return the ceiling of x as an int.
This is the smallest integral value >= x.

 
Data
        config = 0
progressmeasure = 0