org.tango.server.events
Class PeriodicEventTrigger

java.lang.Object
  extended by org.tango.server.events.PeriodicEventTrigger
All Implemented Interfaces:
IEventTrigger

public class PeriodicEventTrigger
extends java.lang.Object
implements IEventTrigger

manage trigger for EventType.PERIODIC_EVENT

Author:
ABEILLE

Constructor Summary
PeriodicEventTrigger(long period, AttributeImpl attribute)
          Ctr
 
Method Summary
 boolean doCheck()
           
 boolean isSendEvent()
           
 void setError(fr.esrf.Tango.DevFailed error)
          Notify the trigger of the last error occured
 void setPeriod(long period)
           
 void updateProperties()
          Update event properties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PeriodicEventTrigger

public PeriodicEventTrigger(long period,
                            AttributeImpl attribute)
Ctr

Parameters:
period - The period at which to send events
attribute - the specified attribute
Method Detail

setPeriod

public void setPeriod(long period)

isSendEvent

public boolean isSendEvent()
Specified by:
isSendEvent in interface IEventTrigger
Returns:
true if an event must be send

setError

public void setError(fr.esrf.Tango.DevFailed error)
Description copied from interface: IEventTrigger
Notify the trigger of the last error occured

Specified by:
setError in interface IEventTrigger

updateProperties

public void updateProperties()
                      throws fr.esrf.Tango.DevFailed
Description copied from interface: IEventTrigger
Update event properties

Specified by:
updateProperties in interface IEventTrigger
Throws:
fr.esrf.Tango.DevFailed

doCheck

public boolean doCheck()
Specified by:
doCheck in interface IEventTrigger
Returns:
true if do the event fire check


Copyright © 2012-2017. All Rights Reserved.