1 25 26 package org.objectweb.speedo.pobjects.odis; 27 28 import java.util.ArrayList ; 29 import java.util.Collection ; 30 31 34 public class Competition { 35 36 private int id; 37 private Collection trackpoints; 38 39 40 public Competition(int id) { 41 this.id = id; 42 this.trackpoints = new ArrayList (); 43 } 44 45 46 public int getId() { 47 return id; 48 } 49 public void setId(int id) { 50 this.id = id; 51 } 52 public Collection getTrackpoints() { 53 return trackpoints; 54 } 55 public void setTrackpoints(Collection trackpoints) { 56 this.trackpoints = trackpoints; 57 } 58 59 public void addTrackpoint(Trackpoint trackpoint){ 60 trackpoints.add(trackpoint); 61 trackpoint.setCompetition(this); 62 } 63 64 } 65 | Popular Tags |