public class LightPanel
extends java.lang.Thread
Constructor and Description |
---|
LightPanel(java.lang.String lanName) |
LightPanel(java.lang.String lanName,
java.lang.String host,
int port) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
getID() |
boolean |
isOn() |
void |
run()
Read the socket from the LightSystem and turn isHigh to true or false
depending on what values you get from the LightSystem.
|
void |
switchOff()
Turn off the voltage on the wire -- i.e., send a LOW signal to the LightSystem
to be repeated to everyone.
|
void |
switchOn()
Turn on the voltage on the wire -- i.e., send a HIGH signal to the LightSystem
to be repeated to everyone.
|
java.lang.String |
toString() |
activeCount, checkAccess, clone, 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, yield
public LightPanel(java.lang.String lanName)
public LightPanel(java.lang.String lanName, java.lang.String host, int port)
public void switchOn()
public void switchOff()
public void close()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public boolean isOn()
public java.lang.String toString()
toString
in class java.lang.Thread
public int getID()