Skip to content

Commit

Permalink
Markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
rmetzler committed Oct 28, 2017
1 parent b419d1a commit 272f95d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README → README.md
@@ -1,18 +1,21 @@
# Petrinet in Java

This is a really simple Petrinet written in Java.

Here is an example on how to use it and display a it in a really simple and basic "gui".

```java
package petrinet.gui;

import petrinet.logic.Arc;
import petrinet.logic.Petrinet;
import petrinet.logic.Place;
import petrinet.logic.Transition;

public class ImWechsel {
public class Alternating {

public static void main(String[] args) {
Petrinet pn = new Petrinet("Wechsel");
Petrinet pn = new Petrinet("Alternating");
Transition t1 = pn.transition("t1");
Transition t2 = pn.transition("t2");

Expand All @@ -28,3 +31,4 @@ public class ImWechsel {
}

}
```

0 comments on commit 272f95d

Please sign in to comment.