Class ControlCommandEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.gurock.smartinspect.packets.controlcommand.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
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description ControlCommandEvent(Object source, ControlCommand controlCommand)Creates and initializes a ControlCommandEvent instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ControlCommandgetControlCommand()Returns the ControlCommand packet, which has just been sent.-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
ControlCommandEvent
public ControlCommandEvent(Object source, ControlCommand controlCommand)
Creates and initializes a ControlCommandEvent instance.- Parameters:
source- The object which fired the eventcontrolCommand- 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.
-
-