Overview  Package   Class  Tree  Index 

be.lassi.lanbox.udp
Class UdpSender

java.lang.Object
  extended by java.lang.Thread
      extended by be.lassi.lanbox.udp.UdpSender
All Implemented Interfaces:
java.lang.Runnable

public class UdpSender
extends java.lang.Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
UdpSender(ShowContext context)
          Create a new instance.
 
Method Summary
 void close()
           
 void run()
           
 void write(int[] levels)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UdpSender

public UdpSender(ShowContext context)
Create a new instance.

The priority is set higher than the process from which this thread is started. This is done to ensure smooth dimming. Performing the communications to write new values to the Dongle is more important than performing user interface updates.

Note that the thread is marked as a daemon thread. This means that the Java Virtual Machine can exit without the application having to explicitely stop this thread.

Parameters:
context -
Method Detail

close

public void close()

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

write

public void write(int[] levels)
           throws java.lang.Exception
Throws:
java.lang.Exception

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2