org.fosstrak.hal
Class Trigger

java.lang.Object
  extended by org.fosstrak.hal.Trigger

public final class Trigger
extends java.lang.Object

A trigger in the HAL is used to trigger identify commands of the reader hardware while a HAL controller instance is performing an asynchronous identify. Different trigger types exists: CONTINUOUS - continuous identify commands are performed TIMER - identify commands are performed at certain time intervals

Author:
Matthias Lampe, lampe@acm.org

Field Summary
static int CONTINUOUS
          CONTINUOUS Trigger
static int TIMER
          TIMER Trigger
 
Method Summary
static Trigger createContinuousTrigger()
          creates a TIMER trigger.
static Trigger createTimerTrigger(long interval)
          creates a TIMER trigger.
 long getInteral()
          Returns the time interval.
 int getType()
          Gets the type of the trigger.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTINUOUS

public static final int CONTINUOUS
CONTINUOUS Trigger

See Also:
Constant Field Values

TIMER

public static final int TIMER
TIMER Trigger

See Also:
Constant Field Values
Method Detail

createTimerTrigger

public static Trigger createTimerTrigger(long interval)
creates a TIMER trigger.

Parameters:
interval - the time interval for the TIMER trigger in milliseconds
Returns:
the TIMER trigger.

createContinuousTrigger

public static Trigger createContinuousTrigger()
creates a TIMER trigger.

Returns:
the TIMER trigger.

getType

public int getType()
Gets the type of the trigger.

Returns:
The type of the trigger

getInteral

public long getInteral()
Returns the time interval.

Returns:
The time interval of the trigger


Copyright © 2008. All Rights Reserved.