KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > db4o > f1 > chapter4 > SensorReadout


1 package com.db4o.f1.chapter4;
2
3 import java.util.*;
4
5 public class SensorReadout {
6     private Date time;
7     private Car car;
8     private String JavaDoc description;
9
10     protected SensorReadout(Date time,Car car,String JavaDoc description) {
11         this.time=time;
12         this.car=car;
13         this.description=description;
14     }
15
16     public Car getCar() {
17         return car;
18     }
19
20     public Date getTime() {
21         return time;
22     }
23
24     public String JavaDoc getDescription() {
25         return description;
26     }
27     public String JavaDoc toString() {
28         return car+" : "+time+" : "+description;
29     }
30 }
Popular Tags