com.cesys.cebo.cebomsr
Class Trigger

java.lang.Object
  extended by com.cesys.cebo.cebomsr.Trigger
All Implemented Interfaces:
Input

public final class Trigger
extends java.lang.Object
implements Input

Offers functionality for triggers. Instances can be retrieved calling getTriggers() of the respective Device instance.

Author:
Thomas Hoppe

Nested Class Summary
static class Trigger.TriggerConfig
          The possible trigger configuration values.
 
Method Summary
 Trigger.TriggerConfig getConfig()
          Request configuration of the trigger.
 java.lang.String getName()
          Returns name of the component.
 boolean isEnabled()
          Get current trigger state.
 void setConfig(Trigger.TriggerConfig triggerConfig)
          Define behavior of the trigger.
 void setEnabled(boolean enable)
          Enable or disable trigger.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

setEnabled

public void setEnabled(boolean enable)
                throws java.io.IOException
Enable or disable trigger.

Parameters:
enable - State to set.
Throws:
java.io.IOException

isEnabled

public boolean isEnabled()
                  throws java.io.IOException
Get current trigger state.

Throws:
java.io.IOException

setConfig

public void setConfig(Trigger.TriggerConfig triggerConfig)
               throws java.io.IOException
Define behavior of the trigger.

Parameters:
triggerConfig - Use one of the values from Trigger.TriggerConfig.
Throws:
java.io.IOException

getConfig

public Trigger.TriggerConfig getConfig()
                                throws java.io.IOException
Request configuration of the trigger.

Returns:
One of the values from Trigger.TriggerConfig.
Throws:
java.io.IOException

getName

public java.lang.String getName()
Returns name of the component.


toString

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