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 TypeMethodDescriptionvoidtoOutputStream(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:ReactiveSystemPrettyPrinterReturns the result of a reactive system encoding as string.- Specified by:
toStringin 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:ReactiveSystemPrettyPrinterRedirects the result of an encoding to an output stream.- Specified by:
toOutputStreamin 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
-