public class OlaClient extends Object
Constructor and Description |
---|
OlaClient() |
Modifier and Type | Method and Description |
---|---|
Ola.DeviceConfigReply |
configureDevice(int device,
short[] data)
Configure device.
|
short[] |
convertFromUnsigned(com.google.protobuf.ByteString data)
Convert bytestring to short array.
|
com.google.protobuf.ByteString |
convertToUnsigned(short[] values)
Convert short array to bytestring
|
Ola.UIDListReply |
forceDiscovery(int universe,
boolean full)
Force discovery of a universe.
|
Ola.DeviceInfoReply |
getCandidatePorts(int universe)
Get candidate ports for universe.
|
Ola.DeviceInfoReply |
getDeviceInfo()
Get device info from olad.
|
Ola.DmxData |
getDmx(int universe)
Retrieve dmx data from universe.
|
Ola.PluginDescriptionReply |
getPluginDescription(int pluginId)
Get a plugin description from olad.
|
Ola.PluginListReply |
getPlugins()
Get a list of plugins from olad.
|
Ola.UIDListReply |
getUIDs(int universe)
Get UID's.
|
Ola.UniverseInfoReply |
getUniverseInfo(int universe)
Get universe information.
|
boolean |
patchPort(int device,
int port,
Ola.PatchAction action,
int universe)
Patch a port.
|
boolean |
registerForDmx(int universe,
Ola.RegisterAction action)
Register for dmx
|
boolean |
sendDmx(int universe,
short[] values)
Send dmx data to olad.
|
Ola.RDMResponse |
sendRDMCommand(Ola.UID uid,
int subDevice,
int paramId,
boolean isSet,
boolean includeRawResponse,
int universe,
short[] data)
Send RDM Command.
|
boolean |
sendTimeCode(Ola.TimeCodeType type,
int frames,
int hours,
int minutes,
int seconds)
Send TimeCode.
|
boolean |
setMergeMode(int universe,
Ola.MergeMode mode)
Define merge mode for a universe.
|
boolean |
setPortPriority(int device,
int port,
int priority,
int mode,
boolean output)
Set port priority.
|
boolean |
setSourceUID(int device,
int estaId)
Set source UID for device.
|
boolean |
setUniverseName(int universe,
String name)
Set universe name.
|
void |
streamDmx(int universe,
short[] values)
Send dmx data, but don't wait for response.
|
public Ola.PluginListReply getPlugins()
public Ola.PluginDescriptionReply getPluginDescription(int pluginId)
pluginId
- number of the plugin for which to receive the descriptionpublic Ola.DeviceInfoReply getDeviceInfo()
public Ola.DeviceInfoReply getCandidatePorts(int universe)
universe
- the id of the universe.public Ola.DeviceConfigReply configureDevice(int device, short[] data)
device
- the id of the device to configure.data
- device configuration data.public Ola.UniverseInfoReply getUniverseInfo(int universe)
universe
- the id of the universepublic Ola.UIDListReply getUIDs(int universe)
universe
- the id of the universepublic Ola.UIDListReply forceDiscovery(int universe, boolean full)
universe
- the id of the universefull
- public Ola.DmxData getDmx(int universe)
universe
- the id of the universepublic boolean patchPort(int device, int port, Ola.PatchAction action, int universe)
device
- numberport
- numberaction
- PachAction.PATCH or PatchAction.UNPATCHuniverse
- numberpublic boolean sendDmx(int universe, short[] values)
universe
- numbervalues
- array of dmx data valuespublic boolean setPortPriority(int device, int port, int priority, int mode, boolean output)
public boolean setUniverseName(int universe, String name)
universe
- id of universe for which to set the name.name
- The name to set.public boolean setMergeMode(int universe, Ola.MergeMode mode)
universe
- The id of the universemode,
- merge mode to usepublic boolean registerForDmx(int universe, Ola.RegisterAction action)
universe
- action
- RegisterActionpublic boolean setSourceUID(int device, int estaId)
device
- The id of the deviceestaId
- the UID to set.public boolean sendTimeCode(Ola.TimeCodeType type, int frames, int hours, int minutes, int seconds)
type
- TimeCodeTypeframes
- number of frameshours
- minutes
- seconds
- public Ola.RDMResponse sendRDMCommand(Ola.UID uid, int subDevice, int paramId, boolean isSet, boolean includeRawResponse, int universe, short[] data)
uid
- subDevice
- paramId
- isSet
- includeRawResponse
- universe
- data
- public void streamDmx(int universe, short[] values)
universe
- the id of the universevalues
- dmx datapublic com.google.protobuf.ByteString convertToUnsigned(short[] values)
public short[] convertFromUnsigned(com.google.protobuf.ByteString data)
Copyright © 2017. All rights reserved.