]>
git.argeo.org Git - gpl/argeo-slc.git/blob - FieldPosition.java
5f2b35cb43c2981556c9917de94fdee6eada00c7
2 * Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 package org
.argeo
.slc
.gis
.model
;
19 import java
.util
.Date
;
21 import com
.vividsolutions
.jts
.geom
.Point
;
23 public class FieldPosition
{
24 private Point location
;
25 private Date timestamp
;
26 private String comment
;
28 public FieldPosition() {
31 public FieldPosition(Point location
) {
32 this.location
= location
;
33 this.timestamp
= new Date();
36 public FieldPosition(Point location
, Date timestamp
, String comment
) {
37 this.location
= location
;
38 this.timestamp
= timestamp
;
39 this.comment
= comment
;
42 public Point
getLocation() {
46 public void setLocation(Point location
) {
47 this.location
= location
;
50 public Date
getTimestamp() {
54 public void setTimestamp(Date timestamp
) {
55 this.timestamp
= timestamp
;
58 public String
getComment() {
62 public void setComment(String comment
) {
63 this.comment
= comment
;