|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectprocope.data.petrinets.ToPNetGenerator
public class ToPNetGenerator
Converts a Petri net to a ToPNet .places and .interactions file pair.
Note: This method will only work with the Petri nets generated
by PetriNetCreator. ToPNet does not support labelled edges
and certain attribute types which thus require special handling.
PetriNetCreator| Constructor Summary | |
|---|---|
ToPNetGenerator()
|
|
| Method Summary | |
|---|---|
static void |
convertToToPNet(File petrinet,
File topnetPlaces,
File topnetInteractions)
Converts a given Petri net to ToPNet places and transitions |
static void |
convertToToPNet(File petrinet,
File topnetPlaces,
File topnetInteractions,
boolean additionalAnnotations)
Converts a given Petri net to ToPNet places and transitions |
static void |
convertToToPNet(InputStream petrinet,
OutputStream topnetPlaces,
OutputStream topnetInteractions)
Converts a given Petri net to ToPNet places and transitions |
static void |
convertToToPNet(InputStream petrinet,
OutputStream topnetPlaces,
OutputStream topnetInteractions,
boolean additionalAnnotations)
Converts a given Petri net to ToPNet places and transitions |
static void |
convertToToPNet(String petrinet,
String topnetPlaces,
String topnetInteractions)
Converts a given Petri net to ToPNet places and transitions |
static void |
convertToToPNet(String petrinet,
String topnetPlaces,
String topnetInteractions,
boolean additionalAnnotations)
Converts a given Petri net to ToPNet places and transitions |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ToPNetGenerator()
| Method Detail |
|---|
public static void convertToToPNet(String petrinet,
String topnetPlaces,
String topnetInteractions)
throws IOException
petrinet - Petri net input filetopnetPlaces - ToPNet .places output filetopnetInteractions - ToPNet .interactions output file
IOException - if an input/output error occured
public static void convertToToPNet(String petrinet,
String topnetPlaces,
String topnetInteractions,
boolean additionalAnnotations)
throws IOException
petrinet - Petri net input filetopnetPlaces - ToPNet .places output filetopnetInteractions - ToPNet .interactions output fileadditionalAnnotations - flag defining whether any non-ToPNet-compatible annotations will be
written to the output - this does not affect the actual ToPNet behaviour
but might be used in further versions or plugins
IOException - if an input/output error occured
public static void convertToToPNet(File petrinet,
File topnetPlaces,
File topnetInteractions)
throws IOException
petrinet - Petri net input filetopnetPlaces - ToPNet .places output filetopnetInteractions - ToPNet .interactions output file
IOException - if an input/output error occured
public static void convertToToPNet(File petrinet,
File topnetPlaces,
File topnetInteractions,
boolean additionalAnnotations)
throws IOException
petrinet - Petri net input filetopnetPlaces - ToPNet .places output filetopnetInteractions - ToPNet .interactions output fileadditionalAnnotations - flag defining whether any non-ToPNet-compatible annotations will be
written to the output - this does not affect the actual ToPNet behaviour
but might be used in further versions or plugins
IOException - if an input/output error occured
public static void convertToToPNet(InputStream petrinet,
OutputStream topnetPlaces,
OutputStream topnetInteractions)
petrinet - inputstream to the Petri nettopnetPlaces - output stream to the ToPNet .places filetopnetInteractions - output stream to the ToPNet .interactions file
public static void convertToToPNet(InputStream petrinet,
OutputStream topnetPlaces,
OutputStream topnetInteractions,
boolean additionalAnnotations)
petrinet - inputstream to the Petri nettopnetPlaces - output stream to the ToPNet .places filetopnetInteractions - output stream to the ToPNet .interactions fileadditionalAnnotations - flag defining whether any non-ToPNet-compatible annotations will be
written to the output - this does not affect the actual ToPNet behaviour
but might be used in further versions or plugins
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||