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 Details

    • 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 Details

    • AttitudeIntervalBean

      public AttitudeIntervalBean​(java.lang.String name, java.util.Date activationTime, BaseAttitudeDataServer attitude, java.lang.String file)
  • Method Details

    • get

      public Attitude get​(java.util.Date date)
    • compareTo

      public int compareTo​(AttitudeIntervalBean o)
      Specified by:
      compareTo in interface java.lang.Comparable<AttitudeIntervalBean>
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object