|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Transformer
A base interface for transformers. Transformers are graph analyzers which
transform a graph into another graph and they provide a bilateral way to
retrieve the original elements of the graph from the new (transformed) ones
and vice versa. If only unilateral relation is being considered,
this can be communicated to the client through the hasBackwardMapping()
and hasForwardMapping()
methods.
Red (ssb) |
Red (shahrooz) |
Method Summary | |
---|---|
boolean |
hasBackwardMapping()
Specify if this transformer has a mapping from the transformed version to the original version or not. |
boolean |
hasForwardMapping()
Specify if this transformer has a mapping from the original version to the transformed version or not. |
java.lang.Object |
originalVersionOf(java.lang.Object transformedObject)
Return the original version of given object in the transformed graph. |
java.lang.Object |
transformedVersionOf(java.lang.Object originalObject)
Return the transformed version of a given object in the original graph. |
Methods inherited from interface ptolemy.graph.analysis.analyzer.GraphAnalyzer |
---|
graph |
Methods inherited from interface ptolemy.graph.analysis.analyzer.Analyzer |
---|
toString, valid |
Method Detail |
---|
boolean hasBackwardMapping()
boolean hasForwardMapping()
java.lang.Object originalVersionOf(java.lang.Object transformedObject)
transformedObject
- The given object in the transformed graph.
java.lang.Object transformedVersionOf(java.lang.Object originalObject)
originalObject
- The given object in the original graph.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |