]> git.argeo.org Git - gpl/argeo-slc.git/blob - FieldPosition.java
5f2b35cb43c2981556c9917de94fdee6eada00c7
[gpl/argeo-slc.git] / FieldPosition.java
1 /*
2 * Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 package org.argeo.slc.gis.model;
18
19 import java.util.Date;
20
21 import com.vividsolutions.jts.geom.Point;
22
23 public class FieldPosition {
24 private Point location;
25 private Date timestamp;
26 private String comment;
27
28 public FieldPosition() {
29 }
30
31 public FieldPosition(Point location) {
32 this.location = location;
33 this.timestamp = new Date();
34 }
35
36 public FieldPosition(Point location, Date timestamp, String comment) {
37 this.location = location;
38 this.timestamp = timestamp;
39 this.comment = comment;
40 }
41
42 public Point getLocation() {
43 return location;
44 }
45
46 public void setLocation(Point location) {
47 this.location = location;
48 }
49
50 public Date getTimestamp() {
51 return timestamp;
52 }
53
54 public void setTimestamp(Date timestamp) {
55 this.timestamp = timestamp;
56 }
57
58 public String getComment() {
59 return comment;
60 }
61
62 public void setComment(String comment) {
63 this.comment = comment;
64 }
65
66 }