Class EcoreConverter
java.lang.Object
org.bigraphs.framework.converter.ecore.EcoreAgentConverter
org.bigraphs.framework.converter.ecore.EcoreConverter
- All Implemented Interfaces:
BigraphPrettyPrinter<PureBigraph>
,PrettyPrinter<PureBigraph>
,ReactiveSystemPrettyPrinter<PureBigraph,
ReactiveSystem<PureBigraph>>
public class EcoreConverter
extends EcoreAgentConverter
implements ReactiveSystemPrettyPrinter<PureBigraph,ReactiveSystem<PureBigraph>>
- Author:
- Dominik Grzelak
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
toOutputStream
(ReactiveSystem<PureBigraph> system, OutputStream outputStream) Redirects the result of an encoding to an output stream.toString
(ReactiveSystem<PureBigraph> system) Returns the result of a reactive system encoding as string.Methods inherited from class org.bigraphs.framework.converter.ecore.EcoreAgentConverter
getExportFormat, toOutputStream, toString, withExportFormat
-
Constructor Details
-
EcoreConverter
public EcoreConverter() -
EcoreConverter
-
-
Method Details
-
toString
Description copied from interface:ReactiveSystemPrettyPrinter
Returns the result of a reactive system encoding as string.- Specified by:
toString
in interfaceReactiveSystemPrettyPrinter<PureBigraph,
ReactiveSystem<PureBigraph>> - Parameters:
system
- the reactive system being encoded- Returns:
-
toOutputStream
public void toOutputStream(ReactiveSystem<PureBigraph> system, OutputStream outputStream) throws IOException Description copied from interface:ReactiveSystemPrettyPrinter
Redirects the result of an encoding to an output stream.- Specified by:
toOutputStream
in interfaceReactiveSystemPrettyPrinter<PureBigraph,
ReactiveSystem<PureBigraph>> - Parameters:
system
- the reactive system being encodedoutputStream
- the output stream where the result shall be written to- Throws:
IOException
- because of the stream
-