public class TreesInterface
extends java.lang.Object
Constructor and Description |
---|
TreesInterface() |
Modifier and Type | Method and Description |
---|---|
void |
clearMap() |
java.util.Map<org.eclipse.emf.ecore.EObject,java.lang.Long> |
getInterfaceMapSMESignal() |
org.eclipse.emf.ecore.EObject |
getKey(long value)
This method returns the key corresponding to a value in the map (In the case where only one key is corresponding
to a value)
|
java.util.List<SSMENode> |
getSMENodesList() |
void |
initializeSSMENodesList()
Creation of the SME nodes list with all the nodes of the interface hashmap
|
void |
printErrorsOnModel(long tree,
boolean debug)
This methods prints the errors on the SSME model.
|
void |
printInformations(boolean debug)
This method prints the informations key => value and value => key(s) of the interface hashmap between SME and
Signal.
|
void |
printTree(long node,
int level,
boolean debug)
This methods displays a tree from its root, with the level of each node in the hierarchy.
|
public java.util.List<SSMENode> getSMENodesList()
public java.util.Map<org.eclipse.emf.ecore.EObject,java.lang.Long> getInterfaceMapSMESignal()
public void clearMap()
public void initializeSSMENodesList()
public void printInformations(boolean debug)
debug
- set it to true if you want to display in the console the values (representing the Signal nodes in the AST)
corresponding to the EObjectImpl keys in the interface hashmap between SME and Signal.twosides
- set it to true if you want to display in the console the EObjectImpl SME nodes corresponding to the Signal
nodes of the hashmap.public void printTree(long node, int level, boolean debug)
node
- the current node to displaylevel
- the level of the current nodedebug
- if false, nothing is printed on the screenpublic void printErrorsOnModel(long tree, boolean debug)
tree
- the AST representing the diagramdebug
- prints the debug information if truepublic org.eclipse.emf.ecore.EObject getKey(long value)
value
- the value whose corresponding key we want