mapss.dif.mdsdf
Class MDSDFToDIFWriter

java.lang.Object
  extended by mapss.dif.language.DIFWriter
      extended by mapss.dif.mdsdf.MDSDFToDIFWriter

public class MDSDFToDIFWriter
extends DIFWriter

DIF writer class for graphs of runtime type MDSDFGraph.

Version:
$Id: MDSDFToDIFWriter.java 1687 2007-05-08 01:38:09Z jerryhsu $
Author:
Chia-Jui Hsu
See Also:
MDSDFGraph

Field Summary
 
Fields inherited from class mapss.dif.language.DIFWriter
_graph, _hierarchy
 
Constructor Summary
MDSDFToDIFWriter()
           
 
Method Summary
protected  DIFGraph _getEmptyGraph()
          Returns an empty graph with the runtime type of the graphs that are going to be written by this writer.
protected  java.lang.String _graphType()
          Returns a string containing the graph type keyword to be written into the dif file.
protected  boolean _isKeyWord(java.lang.String word)
          Checks if a string is a keyword in DIF.
protected  java.lang.String _writeBuiltinAttribute()
          Generate the built-in attribute block.
 
Methods inherited from class mapss.dif.language.DIFWriter
_blank, _checkLabel, _getObjectName, _writeActor, _writeInterface, _writeParameter, _writeRefinement, _writeTopology, _writeUserDefAttribute, compile, compile, getSupportedGraph, objectToString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MDSDFToDIFWriter

public MDSDFToDIFWriter()
Method Detail

_isKeyWord

protected boolean _isKeyWord(java.lang.String word)
Checks if a string is a keyword in DIF. Keywords should not be used as labels in graphs.

Overrides:
_isKeyWord in class DIFWriter
Parameters:
word - A string to be checked.
Returns:
True if the string is a keyword in DIF.

_getEmptyGraph

protected DIFGraph _getEmptyGraph()
Returns an empty graph with the runtime type of the graphs that are going to be written by this writer.

Overrides:
_getEmptyGraph in class DIFWriter
Returns:
An empty MDSDFGraph.

_graphType

protected java.lang.String _graphType()
Returns a string containing the graph type keyword to be written into the dif file.

Overrides:
_graphType in class DIFWriter
Returns:
A string.

_writeBuiltinAttribute

protected java.lang.String _writeBuiltinAttribute()
                                           throws DIFLanguageException
Generate the built-in attribute block.

Overrides:
_writeBuiltinAttribute in class DIFWriter
Returns:
The DIF specification of the built-in attribute block.
Throws:
DIFLanguageException