01: package org.cougaar.planning.ldm.plan;
02:
03: import org.cougaar.planning.ldm.measure.Latitude;
04: import org.cougaar.planning.ldm.measure.Longitude;
05:
06: public class NamedPositionImpl extends LatLonPointImpl implements
07: NamedPosition {
08:
09: private String uid;
10: private String name;
11:
12: public NamedPositionImpl() {
13: super ();
14: }
15:
16: public NamedPositionImpl(Latitude la, Longitude lo, String aname) {
17: super (la, lo);
18: setName(aname);
19: }
20:
21: /** @return String - the string name representing this position */
22: public String getName() {
23: return name;
24: }
25:
26: /** @param aName - set the string name representing this position */
27: public void setName(String aName) {
28: if (aName != null)
29: aName = aName.intern();
30: name = aName;
31: }
32:
33: public Object clone() {
34: return new NamedPositionImpl(lat, lon, name);
35: }
36:
37: public String getUid() {
38: return uid;
39: }
40:
41: public void setUid(String uid) {
42: this.uid = uid;
43: }
44: }
|