Package org.bigraphs.grgen.converter
Interface BaseTransformer<V>
- Type Parameters:
V
- bigraph or signature class type
- All Known Implementing Classes:
BigraphTransformer
,DynamicSignatureTransformer
,PureBigraphTransformer
,PureGroundRuleTransformer
,PureParametrizedRuleTransformer
,RuleTransformer
,SignatureTransformer
public interface BaseTransformer<V>
Base Model-to-Text transformation interface for all kinds f bigraphs, rules, and signatures.
-
Method Summary
Modifier and TypeMethodDescriptioncreateNameSupplier
(String prefix) default void
toOutputStream
(V element, OutputStream outputStream) Redirects the result of an encoding to an output stream.Redirects the result of an encoding to a string
-
Method Details
-
toString
Redirects the result of an encoding to a string- Parameters:
element
- the bigraph or signature being encoded
-
toOutputStream
Redirects the result of an encoding to an output stream.- Parameters:
element
- the bigraph or signature being encodedoutputStream
- the output stream where the result shall be written to- Throws:
IOException
- because of the stream
-
createNameSupplier
-