1 18 19 package org.objectweb.kilim.model; 20 21 import java.util.Iterator ; 22 import java.util.LinkedList ; 23 24 import org.objectweb.kilim.description.KILIM; 25 26 29 public class RuntimeTrigger { 30 private int eventKind; 31 private LinkedList actions; 32 private RtComponentInterface eventSource; 33 34 39 public RuntimeTrigger(int aEventKind, RtComponentInterface aSource) { 40 eventKind = aEventKind; 41 eventSource = aSource; 42 } 43 44 48 public int getEventKind() { 49 return eventKind; 50 } 51 52 56 public RtComponentInterface getEventSource() { 57 return eventSource; 58 } 59 60 63 public void addTransformer(RuntimeAction aAction) { 64 if (actions == null) { 65 actions = new LinkedList (); 66 } 67 actions.add(aAction); 68 } 69 70 74 public Iterator getTransformers() { 75 if (actions == null) { 76 return KILIM.EMPTY_ITERATOR; 77 } 78 return actions.listIterator(); 79 } 80 } 81 | Popular Tags |