Skip to content
Snippets Groups Projects
Commit 3312f49a authored by Sebastian Ebert's avatar Sebastian Ebert
Browse files

rewored major parts of internal net execution (todo: communication

parent 2c84087b
No related branches found
No related tags found
No related merge requests found
aspect Graphviz{
syn InputSignalClause InputSignalClause.deepCopy(){
InputSignalClause copy = new InputSignalClause();
for(Disjunction d : this.getDisjunctions()){
Disjunction dCopy = new Disjunction();
for(Literal l : d.getLiterals()){
if(l.isNegativeLiteral()){
NegativeLiteral nl = new NegativeLiteral();
nl.setName(l.getName());
dCopy.addLiteral(nl);
}else{
PositiveLiteral pl = new PositiveLiteral();
pl.setName(l.getName());
dCopy.addLiteral(pl);
}
}
copy.addDisjunction(dCopy);
}
return copy;
}
}
\ No newline at end of file
......@@ -432,6 +432,7 @@ aspect ToolSpecificsParser{
if (toolInfo.getFormattedXMLBuffer().indexOf(PnmlConstants.SUBNET_KEY) > 0 ||
toolInfo.getFormattedXMLBuffer().indexOf(PnmlConstants.COMMUNICATOR) > 0 ||
toolInfo.getFormattedXMLBuffer().indexOf(PnmlConstants.TYPE_KEY) > 0 ||
toolInfo.getFormattedXMLBuffer().indexOf(PnmlConstants.INPUT_SIGNALS_DEF) > 0 ||
toolInfo.getFormattedXMLBuffer().indexOf(PnmlConstants.ARC_TYPE_KEY) > 0) {
ti = toolInfo;
break;
......
......@@ -15,6 +15,7 @@ public class Main {
// Nothing to do here
// List<PetriNet> petriNets = PnmlParser.parsePnml("...");
// printNet(petriNets.get(0), false, false);
}
/*public static void printNet(PetriNet petriNet, boolean withArcs, boolean withToolSpecifics) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment