Package adams.event

Class VariableChangeEvent

  • All Implemented Interfaces:
    Serializable

    public class VariableChangeEvent
    extends EventObject
    Gets sent whenever variables get modified.
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • VariableChangeEvent

        public VariableChangeEvent​(Variables source,
                                   VariableChangeEvent.Type type,
                                   String name)
        Initializes the event.
        Parameters:
        source - the Variables object that triggered the event
        type - the type of event
        name - the name of the variable
    • Method Detail

      • getVariables

        public Variables getVariables()
        Returns the variables that triggered the event.
        Returns:
        the source
      • getName

        public String getName()
        Returns the name of the variable of this event.
        Returns:
        the name
      • toString

        public String toString()
        Returns a string representation of the event.
        Overrides:
        toString in class EventObject
        Returns:
        the string representation