1    
2    public class StationItem {
3    
4      public Vertex station;
5      public boolean marked = false;;
6    
7      public StationItem(Vertex vert) {
8        station = vert;
9      }
10   
11     public String toString() {
12       if (marked) return(station.toString()+" *");
13       else return(station.toString());
14     }
15   
16     public boolean checkMarked(Mapping m) {
17       boolean newval = false;
18       for (int i=0;i<m.stacnt;i++)
19         if (station==m.spoint[i]) newval=true;
20       boolean change = (newval != marked);
21       marked = newval;
22   //    System.out.println("marked = "+marked+" for station "+this);
23       return(change);
24     }
25   }
26