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
Modifier and Type Method Description int
compareTo(AttitudeIntervalBean o)
Attitude
get(java.util.Date date)
java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
name
public java.lang.String name -
activationTime
public java.util.Date activationTime -
file
public java.lang.String file -
attitude
-
cache
-
hits
public long hits -
misses
public long misses
-
-
Constructor Details
-
AttitudeIntervalBean
public AttitudeIntervalBean(java.lang.String name, java.util.Date activationTime, BaseAttitudeDataServer attitude, java.lang.String file)
-
-
Method Details
-
get
-
compareTo
- Specified by:
compareTo
in interfacejava.lang.Comparable<AttitudeIntervalBean>
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-