Package heronarts.lx.output
Class LXSocket
java.lang.Object
heronarts.lx.LXComponent
heronarts.lx.output.LXOutput
heronarts.lx.output.LXBufferOutput
heronarts.lx.output.LXSocket
- All Implemented Interfaces:
LXPath,LXSerializable,LXOutput.InetOutput,LXParameterListener
- Direct Known Subclasses:
OPCSocket
-
Nested Class Summary
Nested classes/interfaces inherited from class heronarts.lx.output.LXBufferOutput
LXBufferOutput.ByteEncoder, LXBufferOutput.ByteOrderNested classes/interfaces inherited from class heronarts.lx.output.LXOutput
LXOutput.GammaMode, LXOutput.GammaTable, LXOutput.InetOutputNested classes/interfaces inherited from class heronarts.lx.LXComponent
LXComponent.Description, LXComponent.Hidden, LXComponent.Name, LXComponent.Placeholder, LXComponent.PluginRequired, LXComponent.RenamableNested classes/interfaces inherited from interface heronarts.lx.LXSerializable
LXSerializable.Utils -
Field Summary
FieldsFields inherited from class heronarts.lx.output.LXBufferOutput
indexBufferFields inherited from class heronarts.lx.output.LXOutput
brightness, enabled, framesPerSecond, gamma, gammaMode, MAX_FRAMES_PER_SECOND, whitePointBlue, whitePointGreen, whitePointRed, whitePointWhiteFields inherited from class heronarts.lx.LXComponent
childArrays, children, internalParameters, KEY_CHILDREN, KEY_CLASS, KEY_COMPONENT_ID, KEY_ID, KEY_INTERNAL, KEY_PARAMETER_PATH, KEY_PARAMETERS, KEY_PATH, KEY_RESET, label, legacyInternalParameters, legacyParameters, lx, modulationColor, modulationControlsExpanded, modulationsExpanded, parameters, presetFileFields inherited from interface heronarts.lx.output.LXOutput.InetOutput
NO_PORTFields inherited from interface heronarts.lx.LXPath
DEFAULT_SEPARATOR, ROOT, ROOT_PREFIX, ROOT_SLASH -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedLXSocket(LX lx, int[] indexBuffer, LXBufferOutput.ByteOrder byteOrder) protectedLXSocket(LX lx, IndexBuffer indexBuffer) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidSubclasses may override to take additional actions upon successful connectionprotected voidSubclasses may override to take additional actions upon disconnectionprotected voidprotected byte[]getPacketData(int[] colors, LXOutput.GammaTable glut, double brightness) intgetPort()booleanprotected voidonSend(int[] colors, LXOutput.GammaTable glut, double brightness) Subclasses implement this to send the data.setAddress(InetAddress address) setConnectTimeout(int connectTimeoutMs) setPort(int port) Methods inherited from class heronarts.lx.output.LXBufferOutput
getDataBuffer, getDataBufferOffset, updateDataBufferMethods inherited from class heronarts.lx.output.LXOutput
error, error, load, log, onParameterChanged, send, send, setGammaDelegate, setGammaTable, setGammaTable, setGroupMethods inherited from class heronarts.lx.LXComponent
addArray, addChild, addInternalParameter, addLegacyInternalParameter, addLegacyParameter, addParameter, addParameter, addParameters, assertDisposed, contains, copyParameters, dispose, getCategory, getChild, getComponentDescription, getComponentName, getComponentName, getComponentName, getDescription, getId, getLabel, getLX, getOscAddress, getOscLabel, getOscPath, getParameter, getParameters, getParent, getPath, handleOscMessage, hasParameter, isValidOscParameter, loadParameters, loadPreset, removeParameter, removeParameter, removeParameter, removeParameter, save, savePreset, setDescription, setParent, toOscQuery, toOscQuery, toOscQuery, toString, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface heronarts.lx.LXPath
getCanonicalLabel, getCanonicalLabel, getCanonicalLabel, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, isDescendant
-
Field Details
-
DEFAULT_CONNECT_TIMEOUT_MS
public static final int DEFAULT_CONNECT_TIMEOUT_MS- See Also:
-
socket
-
output
-
-
Constructor Details
-
LXSocket
-
LXSocket
-
LXSocket
-
-
Method Details
-
setConnectTimeout
-
setAddress
- Specified by:
setAddressin interfaceLXOutput.InetOutput
-
getAddress
- Specified by:
getAddressin interfaceLXOutput.InetOutput
-
setPort
- Specified by:
setPortin interfaceLXOutput.InetOutput
-
getPort
public int getPort()- Specified by:
getPortin interfaceLXOutput.InetOutput
-
isConnected
public boolean isConnected() -
didConnect
protected void didConnect()Subclasses may override to take additional actions upon successful connection -
disconnect
-
didDisconnect
Subclasses may override to take additional actions upon disconnection- Parameters:
x- Exception that caused the disconnect if there was one
-
onSend
Description copied from class:LXOutputSubclasses implement this to send the data. -
getPacketData
-