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

cleanup of the main file, added (not used) server example

parent 16bc1265
Branches
No related tags found
No related merge requests found
......@@ -43,25 +43,15 @@ public class Main {
public static void main(java.lang.String[] args) throws IOException, ParserConfigurationException, SAXException {
/*ObjectMapper mapper = new ObjectMapper();
Token t = new Token();
t.setField("Test");
t.getFieldList().add("TestListElement");
System.out.println(mapper.writerWithDefaultPrettyPrinter().writeValueAsString(t));
if(t != null){
return;
}*/
/*
* <Generated>
* Petri Net base data initialization
*/
// actual petri net paths are generated
String[] petriNetPaths = {"src/main/resources/nets/publisher-net.pnml", "src/main/resources/nets/subscriber-net.pnml"};
List<String> petriNetPaths = new ArrayList<>();
petriNetPaths.add("src/main/resources/nets/publisher-net.pnml");
petriNetPaths.add("src/main/resources/nets/subscriber-net.pnml");
List<PetriNet> petriNets = new ArrayList<>();
Map<String, BalloonMarking> markings = new HashMap<>();
Map<String, BalloonCallbackStorage> callbackStorages = new HashMap<>();
......
package de.tudresden.inf.st.sample.communication;
import de.tudresden.inf.st.pnml.jastadd.model.BalloonCallbackStorage;
import de.tudresden.inf.st.pnml.jastadd.model.BalloonMarking;
import de.tudresden.inf.st.pnml.jastadd.model.PetriNet;
public class Node2Server1 extends AbstractDinerosServer{
@Override
public boolean serve(BalloonMarking balloonMarking, BalloonCallbackStorage balloonCallbackStorage, PetriNet petriNet, String subnet) {
return false;
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment