1 28 package de.nava.informa.utils.toolkit; 29 30 import de.nava.informa.core.ChannelIF; 31 32 38 public class ChannelRecord { 39 42 public static final int PRIO_LOW = -1; 43 44 47 public static final int PRIO_NORMAL = 0; 48 49 52 public static final int PRIO_HIGH = 1; 53 54 private ChannelIF channel; 55 56 private boolean formatResolved = false; 57 58 private int priority; 59 private long period; 60 private boolean canceled; 61 62 69 public ChannelRecord(ChannelIF channel, long period, int priority) { 70 this.priority = priority; 71 this.period = period; 72 this.channel = channel; 73 formatResolved = (channel.getFormat() != null); 74 setCanceled(false); 75 } 76 77 85 public final int getPriority() { 86 return priority; 87 } 88 89 97 public final void setPriority(int priority) { 98 this.priority = priority; 99 } 100 101 106 public final long getPeriod() { 107 return period; 108 } 109 110 116 public final void setPeriod(long period) { 117 this.period = period; 118 } 119 120 125 public final ChannelIF getChannel() { 126 return channel; 127 } 128 129 134 public final boolean isFormatResolved() { 135 return formatResolved; 136 } 137 138 143 public final void setFormatResolved(boolean formatResolved) { 144 this.formatResolved = formatResolved; 145 } 146 147 152 public void setCanceled(boolean aCanceled) { 153 this.canceled = aCanceled; 154 } 155 156 161 public boolean isCanceled() { 162 return canceled; 163 } 164 } 165 | Popular Tags |