Statistiques
| Révision:

fr_b02 / petri / src / main / Arc.java @ 2

Historique | Voir | Annoter | Télécharger (410 octets)

1
package main;
2

    
3
public abstract class Arc implements ArcInterface {
4
        
5
        private Place place;
6
        
7
        public Arc(Place place) {
8
                this.place=place;
9
        }
10
        
11
        public Place getPlace() {
12
                return this.place;
13
        }
14
        public boolean equals(Object o) {
15
                if((o instanceof Arc) &&(System.identityHashCode(((Arc)o))==System.identityHashCode(this))) {
16
                        return true;
17
                }
18
                else {
19
                        return false;
20
                }
21
                
22
        }
23

    
24
}