|
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Class Summary | |
---|---|
DIFWriter | DIFWriter class. |
LanguageAnalysis | This is the analysis class for implementing the DIF compiler for DIF version 0.2. |
Reader | DIF Reader class. |
Writer | Writer class. |
Exception Summary | |
---|---|
DIFLanguageException | Thrown in case of DIF Language related exceptions. |
mapss.dif.language is implemented based on DIF version 0.2 language grammar. It is the package for conversions between DIF files and DIFGraph objects. It includes the Reader and Writer classes.
Some of the implementation details of the DIF Reader are as follows:
LanguageAnalysis
class or any class extended from that one.
If a graph type is to be added to the default types, first a new language
analysis should be written for that graph type. This can be done by extending
LanguageAnalysis
and overriding the protected
methods. Second the path to the new analysis should be added to "analysers.txt"
which is in the same directory as this package. Reader class gets the list of
default graph types from "analysers.txt" and converts a graph written in DIF
to an appropriate type.
If a graph type is to be added to the default types, first a new
xxxToDIFWriter class should be written for that graph type. This can be done by
extending DIFWriter
and overriding the protected
methods. Second the path to the new analysis should be added to "writers.txt"
which is in the same directory as this package. Writer class gets the list of
default graph types from "writers.txt" and converts a graph to DIF
specification.
|
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |