cz.cuni.amis.pogamut.udk.utils
Class UCCWrapper.ScannerSink

Package class diagram package UCCWrapper.ScannerSink
java.lang.Object
  extended by java.lang.Thread
      extended by cz.cuni.amis.pogamut.udk.utils.UCCWrapper.StreamSink
          extended by cz.cuni.amis.pogamut.udk.utils.UCCWrapper.ScannerSink
All Implemented Interfaces:
Runnable
Enclosing class:
UCCWrapper

public class UCCWrapper.ScannerSink
extends UCCWrapper.StreamSink

Scanns the output of UCC for some specific srings (Ports bounded. START MATCH).


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 int botsPort
           
 int controlPort
           
 UCCStartException exception
          Exception that ended the startig.
 CountDownLatch mapChangedLatch
           
 CountDownLatch serverStartedLatch
           
 
Fields inherited from class cz.cuni.amis.pogamut.udk.utils.UCCWrapper.StreamSink
os
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
UCCWrapper.ScannerSink(InputStream is)
           
 
Method Summary
 CountDownLatch awaitGameStart()
           
protected  void handleInput(String str)
           
protected  void raiseServerStartedLatch()
           
 
Methods inherited from class cz.cuni.amis.pogamut.udk.utils.UCCWrapper.StreamSink
run
 
Methods inherited from class java.lang.Thread
activeCount, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, checkAccess, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

exception

public UCCStartException exception
Exception that ended the startig. Should be checked after the latch is raised.


serverStartedLatch

public CountDownLatch serverStartedLatch

mapChangedLatch

public CountDownLatch mapChangedLatch

controlPort

public int controlPort

botsPort

public int botsPort
Constructor Detail

UCCWrapper.ScannerSink

public UCCWrapper.ScannerSink(InputStream is)
Method Detail

awaitGameStart

public CountDownLatch awaitGameStart()

handleInput

protected void handleInput(String str)
Overrides:
handleInput in class UCCWrapper.StreamSink

raiseServerStartedLatch

protected void raiseServerStartedLatch()


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.