net.sourceforge.pain.logic
Class Trigger

java.lang.Object
  extended bynet.sourceforge.pain.logic.Trigger

public abstract class Trigger
extends java.lang.Object

Base class for all trigger logic impls (controller over persistent TriggerData). This class is linked statically, all it's subclasses should be located in ...logic.triggers(.impl) package (see CodebaseLauncher properties). and will be linked dynamically (will be reloaded on LogicLoader.reload() call)


Field Summary
protected  TriggerData td
           
 
Constructor Summary
Trigger(TriggerData td)
          Constructor used to create trigger with existing model: persistent TriggerData object required for all subclasses
 
Method Summary
abstract  int getTriggerEventType()
           
abstract  Trigger newInstance(TriggerData td)
          factory method, used to avoid reflection and security checks for new trigger instance creations should return new instance of trigger initialized with TriggerData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

td

protected TriggerData td
Constructor Detail

Trigger

public Trigger(TriggerData td)
Constructor used to create trigger with existing model: persistent TriggerData object required for all subclasses

Method Detail

newInstance

public abstract Trigger newInstance(TriggerData td)
factory method, used to avoid reflection and security checks for new trigger instance creations should return new instance of trigger initialized with TriggerData


getTriggerEventType

public abstract int getTriggerEventType()