Package gaiasky.util.gaia
Class AttitudeIntervalBean
- java.lang.Object
-
- gaiasky.util.gaia.AttitudeIntervalBean
-
- All Implemented Interfaces:
java.lang.Comparable<AttitudeIntervalBean>
public class AttitudeIntervalBean extends java.lang.Object implements java.lang.Comparable<AttitudeIntervalBean>
A bean that holds the attitude and its activation time. It also has a cache. Created by tsagrista on 02/06/15.
-
-
Field Summary
Fields Modifier and Type Field Description java.util.Date
activationTime
BaseAttitudeDataServer
attitude
java.util.Map<java.lang.Long,Attitude>
cache
java.lang.String
file
long
hits
long
misses
java.lang.String
name
-
Constructor Summary
Constructors Constructor Description AttitudeIntervalBean(java.lang.String name, java.util.Date activationTime, BaseAttitudeDataServer attitude, java.lang.String file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(AttitudeIntervalBean o)
Attitude
get(java.util.Date date)
java.lang.String
toString()
-
-
-
Field Detail
-
name
public java.lang.String name
-
activationTime
public java.util.Date activationTime
-
file
public java.lang.String file
-
attitude
public BaseAttitudeDataServer attitude
-
cache
public java.util.Map<java.lang.Long,Attitude> cache
-
hits
public long hits
-
misses
public long misses
-
-
Constructor Detail
-
AttitudeIntervalBean
public AttitudeIntervalBean(java.lang.String name, java.util.Date activationTime, BaseAttitudeDataServer attitude, java.lang.String file)
-
-
Method Detail
-
get
public Attitude get(java.util.Date date)
-
compareTo
public int compareTo(AttitudeIntervalBean o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<AttitudeIntervalBean>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-