1 2 23 24 package net.fenyo.gnetwatch.data; 25 26 import net.fenyo.gnetwatch.*; 27 import net.fenyo.gnetwatch.targets.*; 28 29 import java.util.*; 30 31 import org.apache.commons.logging.Log; 32 import org.apache.commons.logging.LogFactory; 33 34 39 40 public class EventReachable extends EventGeneric { 41 private static Log log = LogFactory.getLog(EventReachable.class); 42 43 private final boolean reachable; 44 private final int delay; 45 46 51 public EventReachable(final boolean reachable, final int delay) { 53 this.reachable = reachable; 54 this.delay = delay; 55 } 56 57 61 public EventReachable(final boolean reachable) { 63 this.reachable = reachable; 64 this.delay = -1; 65 } 66 67 73 public int getIntValue(final java.util.List <EventGeneric> events, final int idx) { 74 return getDelay(); 75 } 76 77 82 public int getDelay() { 84 return delay; 85 } 86 } 87 | Popular Tags |