Skip to content
Snippets Groups Projects
Commit 677894ef authored by “Khaoula's avatar “Khaoula
Browse files

Instantiation plus générique

parent 2ac4aedb
No related branches found
No related tags found
No related merge requests found
...@@ -7,8 +7,8 @@ public class Transition { ...@@ -7,8 +7,8 @@ public class Transition {
private final int id; private final int id;
String name; String name;
private LinkedList<OutgoingArc> outgoingArcs; private List<OutgoingArc> outgoingArcs;
private LinkedList<IncomingArc> incomingArcs; private List<IncomingArc> incomingArcs;
public Transition(String name, int id) { public Transition(String name, int id) {
this.id = id; this.id = id;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
private final LinkedList<Integer> idCounters; private final LinkedList<Integer> idCounters;
private List<Place> places; private List<Place> places;
private List<Transition> transitions; private List<Transition> transitions;
private LinkedList<Arc> arcs; private List<Arc> arcs;
private String networkState = "No transition fired"; private String networkState = "No transition fired";
// Create a constructor // Create a constructor
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
this.transitions = transitions; this.transitions = transitions;
} }
public LinkedList<Arc> getArcs() { public List<Arc> getArcs() {
return this.arcs; return this.arcs;
} }
......
...@@ -7,8 +7,8 @@ public class Transition { ...@@ -7,8 +7,8 @@ public class Transition {
private final int id; private final int id;
String name; String name;
private LinkedList<OutgoingArc> outgoingArcs; private List<OutgoingArc> outgoingArcs;
private LinkedList<IncomingArc> incomingArcs; private List<IncomingArc> incomingArcs;
public Transition(String name, int id) { public Transition(String name, int id) {
this.id = id; this.id = id;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment