Package adams.event

Class RatStateEvent

  • All Implemented Interfaces:
    Serializable

    public class RatStateEvent
    extends EventObject
    Gets sent if a rat state changes.
    Version:
    $Revision$
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_Rat

        protected Rat m_Rat
        the Rat that has changed.
    • Constructor Detail

      • RatStateEvent

        public RatStateEvent​(Object source,
                             Rat rat)
        Initializes event.
        Parameters:
        source - the sender of the event
        rat - the rat that changed
    • Method Detail

      • getRat

        public Rat getRat()
        Returns the rat that changed.
        Returns:
        the rat