Class ControlCommandEvent

  • All Implemented Interfaces:
    Serializable

    public final class ControlCommandEvent
    extends EventObject
    This class is used by the SmartInspectListener.onControlCommand event of the SmartInspect class.

    It has only one public class member named getControlCommand. This member is a method, which just returns the sent packet.

    This class is fully threadsafe.

    See Also:
    Serialized Form
    • Constructor Detail

      • ControlCommandEvent

        public ControlCommandEvent​(Object source,
                                   ControlCommand controlCommand)
        Creates and initializes a ControlCommandEvent instance.
        Parameters:
        source - The object which fired the event
        controlCommand - The ControlCommand which has just been sent
    • Method Detail

      • getControlCommand

        public ControlCommand getControlCommand()
        Returns the ControlCommand packet, which has just been sent.
        Returns:
        The ControlCommand packet which has just been sent.