예제 #1
0
 /**
  * ************************************************************************* Send a command
  * message to the dispatcher. This causes a new thread to start for the command.
  */
 public void send(LVValue command) throws LRException {
   Hashtable table = ((BasicHDispatcherData) getData()).table;
   if (table == null) throw new LRException(LRException.notCreated(getName()));
   String cmd = command.getStringValue();
   Integer cb = (Integer) table.get(cmd);
   if (cb == null) cb = (Integer) table.get("default");
   if (cb != null) program.execute(new LRQueue(cb.intValue(), getQueueData()));
 }
예제 #2
0
 public boolean test() throws LRException {
   if (value.isNumeric()) return false;
   return (value.getStringValue().startsWith(value2.getStringValue()));
 }