de.grogra.mtg
public class MTGGraphBuilder extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static int |
MTG_BODY_DATA |
protected static int |
MTG_HEADER_ATTRIBUTES |
protected static int |
MTG_HEADER_CLASSES |
protected static int |
MTG_HEADER_CODE |
protected static int |
MTG_HEADER_TOPO |
| Constructor and Description |
|---|
MTGGraphBuilder(java.lang.String sysId) |
| Modifier and Type | Method and Description |
|---|---|
MTGNode |
getFirstNode() |
long |
getMTGNodeCount()
Number of nodes generated.
|
protected MTGNode |
getMTGRootNode()
Allows MTGTranslator to obtain the root node of the graph generated from translating MTG data file.
|
long |
getStage()
Current stage being processed by the graph builder.
|
boolean |
processTokens(java.lang.String[] tokens)
Processes tokens and generates nodes and edges as necessary to the current graph.
|
void |
removeInterScaleTopoRelations()
Removes inter-scale topological relations (i.e. successor and branching edges).
|
void |
removeTypes()
Creates Node classes or Modules Types and stores them in the root node.
|
void |
storeNodeListInRoot()
Put node list into root node after building graph.
|
protected static final int MTG_BODY_DATA
protected static final int MTG_HEADER_ATTRIBUTES
protected static final int MTG_HEADER_CLASSES
protected static final int MTG_HEADER_CODE
protected static final int MTG_HEADER_TOPO
public MTGNode getFirstNode()
public long getMTGNodeCount()
protected MTGNode getMTGRootNode()
public long getStage()
public boolean processTokens(java.lang.String[] tokens)
throws MTGError.MTGGraphBuildException
tokens - Array of strings representing tokens.MTGError.MTGGraphBuildExceptionpublic void removeInterScaleTopoRelations()
throws MTGError.MTGPlantFrameException
MTGError.MTGPlantFrameExceptionpublic void removeTypes()
public void storeNodeListInRoot()