|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectde.grogra.mtg.MTGGraphBuilder
public class MTGGraphBuilder
Maintains state of the MTG data loading. Also maintains the generated graph structure.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
MTGGraphBuilder(java.lang.String sysId)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public MTGGraphBuilder(java.lang.String sysId)
| Method Detail |
|---|
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.MTGGraphBuildException
public void removeInterScaleTopoRelations()
throws MTGError.MTGPlantFrameException
MTGError.MTGPlantFrameExceptionpublic void removeTypes()
public void storeNodeListInRoot()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||