public abstract class PublishBean extends SimpleManipulator
SimpleDataSource.NameEditorData
DataSource.Writable
cvsRev
UPDATE_DISPLAYED_VALUE, VALUE_INPUT
customTimer, EXPORT_READ_ONLY, EXPORT_READ_WRITE, NO_EXPORT, requiresSyncWrite, sharedTimer, syncWriteTimeout, timebase
autoSuspend, AUTOSUSPEND_DEFAULT, AUTOSUSPEND_NEVER, AUTOSUSPEND_NO_LISTENERS, AUTOSUSPEND_NO_LISTENERS_AND_NO_SOURCES, colorHi, colorHiHi, colorLo, colorLoLo, colorNormal, connectors, consoleLogger, currentColor, currentValue, debugLevel, DEFAULT_AUTOSUSPEND, dontConnect, gwtLog, hardSuspended, popupLogger, PRIMARYOUTPORTNAME, sendColors, stopped, suspended, timedPopupLogger, traceLogger, valueHi, valueHiHi, valueLo, valueLoLo
Constructor and Description |
---|
PublishBean()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addConnectionToDataSource(DataSource.Writable dataSource,
java.lang.String deviceName,
java.lang.String tagName,
java.lang.String inPort)
Adds the connection from this server to the device and server.
|
void |
addConnectionToDevice(DataSource.Writable dataSource,
java.lang.String newDeviceName,
java.lang.String newDeviceTagNameOrRegister,
java.lang.String inPort)
Adds the connection from this server to the device and server.
|
StringValueObject |
convertByteArray(byte[] data)
Returns a StringValueObject for the given byte[].
|
static ArrayValueObject |
convertFromSecsFormat00(SecsFormat00 list)
Recursively add SecsFormat00 elements to an array value object.
|
static ValueObjectInterface |
convertSecsFormat(SecsFormat value)
This will return a ValueObjectInterface for a SecsFormat...
|
static void |
displayTimedPopup(java.lang.String message,
java.lang.String title)
Show a JOption Pane for 15 seconds.
|
int |
getCurrentQualitySetting() |
static java.lang.reflect.Field |
getPrivateField(java.lang.Class instanceClass,
java.lang.String name) |
DataSourceContainer |
getPublishedAccessorContainer()
Create the container with the name
|
static int |
idTypeFromFormat(SecsFormat secsFormat)
Return the type of the ID (30,31,32,34, 50, 51,52,54, etc.
|
void |
publish(java.lang.String tagName,
boolean value)
Publish a VIB value object.
|
void |
publish(java.lang.String name,
byte value)
Publish the data from received messages.
|
void |
publish(java.lang.String name,
byte[] theData)
Publish the data from received messages.
|
void |
publish(java.lang.String name,
double value)
Publish the data from received messages.
|
void |
publish(java.lang.String name,
float value)
Publish the data from received messages.
|
void |
publish(java.lang.String name,
int value)
Publish the data from received messages.
|
void |
publish(java.lang.String name,
long value)
Publish the data from received messages.
|
void |
publish(java.lang.String tagName,
SecsFormat value)
Pass through to publish ( tagName, value, true).
|
void |
publish(java.lang.String tagName,
SecsFormat value,
boolean doPublish)
Publish a SecsFormat.
|
void |
publish(java.lang.String name,
short value)
Publish the data from received messages.
|
void |
publish(java.lang.String name,
java.lang.String value)
Publish the data from received messages.
|
void |
publish(java.lang.String dataSourceName,
ValueObjectInterface value)
Publish a VIB value object.
|
void |
removeConnectionFromDevice(DataSource.Writable dataSource,
java.lang.String deviceName,
java.lang.String deviceTagNameOrRegister,
java.lang.String inPort)
Removes the connection from this server to the device and server.
|
void |
setCurrentQualitySetting(int currentQualitySetting) |
getDefaultQualityForLocation
getInPortNames, getStaticLocationFor, setBooleanValue, setBoolValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue, toString, valueChanged, valueInput
addConnector, addConnector, addDataSource, addPropertyChangeListener, addValueChangedListener, addVetoableChangeListener, authenticatedClientRequest, clientRequest, clientResponse, destroy, determineSuspendedStatus, getClassLicenseManager, getContainer, getCustomTimer, getDataSource, getDataSources, getDisplayName, getExportCriteria, getExposeComponentConnections, getName, getOutPortNames, getPullFromServers, getPushData, getPushName, getPushToServers, getServerListData, getTimebase, getTrace, isActive, isScreenLocal, refreshCurrentValue, removeConnector, removeDataSource, removePropertyChangeListener, removeValueChangedListener, removeVetoableChangeListener, requestSyncWrite, setAutoSuspend, setClassLicenseManager, setContainer, setCustomTimer, setDataSourceName, setExportCriteria, setExposeComponentConnections, setName, setPullFromServers, setPushData, setPushName, setPushToServers, setScreenLocal, setServerListData, setTimebase, setTrace, setValueObject, start, stop, tick, VIBEvent
addVIBEventListener, checkScript, executeInScriptInternal, executeScript, executeScriptInternal, executeScriptInternal, getAutoSuspend, getBooleanValue, getBoolValue, getColorHi, getColorHiHi, getColorLo, getColorLoLo, getColorNormal, getConnectors, getConsoleLogger, getCurrentColor, getDataSourceName, getDoubleValue, getFloatValue, getGWTLogger, getIncomingValueObject, getInScript, getIntValue, getLongValue, getParent, getPopupLogger, getScript, getScriptEngine, getSendColors, getSources, getStringValue, getSyncWriteTimeout, getTimedPopupLogger, getTraceLogger, getValueHi, getValueHiHi, getValueLo, getValueLoLo, getValueObject, init, isHardSuspended, isRunning, isSendOnlyChangedValuesDefault, isSuspended, logException, logGWT, logGWT, logMessage, logTrace, n2sortConnectors, performScriptSubstitutions, popupMessage, post, removeConnector, removeVIBEventListener, replaceConnectors, scriptExtensionSubstition, setColorHi, setColorHiHi, setColorLo, setColorLoLo, setColorNormal, setConsoleLogger, setGWTLogger, setHardSuspended, setInScript, setParent, setPopupLogger, setScript, setSendColors, setSendOnlyChangedValuesDefault, setSyncWriteTimeout, setTimedPopupLogger, setTraceLogger, setValueHi, setValueHiHi, setValueLo, setValueLoLo, updateColor, updateListeners, updateListeners, updateListeners, whoAmI
public void addConnectionToDataSource(DataSource.Writable dataSource, java.lang.String deviceName, java.lang.String tagName, java.lang.String inPort) throws BadParameterException
newDeviceName
- the device name of the source device - the device that contains the servernewDeviceTagNameOrRegister
- the register or other tag identifier identifing the server in the particular deviceinPort
- the target inportBadParameterException
- thrown if the server cannot be removed.public void addConnectionToDevice(DataSource.Writable dataSource, java.lang.String newDeviceName, java.lang.String newDeviceTagNameOrRegister, java.lang.String inPort) throws BadParameterException
newDeviceName
- the device name of the source device - the device that contains the servernewDeviceTagNameOrRegister
- the register or other tag identifier identifing the server in the particular deviceinPort
- the target inportBadParameterException
- thrown if the server cannot be removed.public StringValueObject convertByteArray(byte[] data)
data
- the values to convert to an stringpublic static ArrayValueObject convertFromSecsFormat00(SecsFormat00 list)
list
- the list to be converted to an ArrayValueObjectpublic static ValueObjectInterface convertSecsFormat(SecsFormat value)
value
- the SecsFormat value to be converted to a ValueObjectpublic static void displayTimedPopup(java.lang.String message, java.lang.String title)
message
- the message to displaytitle
- the title of the popuppublic int getCurrentQualitySetting()
public static java.lang.reflect.Field getPrivateField(java.lang.Class instanceClass, java.lang.String name) throws java.lang.Exception
java.lang.Exception
public DataSourceContainer getPublishedAccessorContainer() throws BadParameterException
BadParameterException
public static int idTypeFromFormat(SecsFormat secsFormat)
public void publish(java.lang.String tagName, boolean value)
resourceBundleName
- the assigned named of the value being publishedvalue
- the value being publishedpublic void publish(java.lang.String name, byte value)
name
- the assigned named of the value being publishedvalue
- the value being publishedpublic void publish(java.lang.String name, byte[] theData)
name
- the assigned named of the value being publishedtheData
- the values being publishedpublic void publish(java.lang.String name, double value)
name
- the assigned named of the value being publishedvalue
- the value being publishedpublic void publish(java.lang.String name, float value)
name
- the assigned named of the value being publishedvalue
- the value being publishedpublic void publish(java.lang.String name, int value)
name
- the assigned named of the value being publishedvalue
- the value being publishedpublic void publish(java.lang.String name, long value)
name
- the assigned named of the value being publishedvalue
- the value being publishedpublic void publish(java.lang.String tagName, SecsFormat value)
tagName
- the assigned named of the value being publishedvalue
- the value being publishedpublic void publish(java.lang.String tagName, SecsFormat value, boolean doPublish)
tagName
- the assigned named of the value being publishedvalue
- the value being publisheddoPublish
- true if the values should be published rather than just a validity checkpublic void publish(java.lang.String name, short value)
name
- the assigned named of the value being publishedvalue
- the value being publishedpublic void publish(java.lang.String name, java.lang.String value)
name
- the assigned named of the value being publishedvalue
- the value being publishedpublic void publish(java.lang.String dataSourceName, ValueObjectInterface value)
dataSourceName
- the assigned named of the value being publishedvalue
- the value being publishedpublic void removeConnectionFromDevice(DataSource.Writable dataSource, java.lang.String deviceName, java.lang.String deviceTagNameOrRegister, java.lang.String inPort) throws BadParameterException
deviceName
- the device name of the source device - the device that contains the serverdeviceTagNameOrRegister
- the register or other tag identifier identifing the server in the particular deviceinPort
- the target inportBadParameterException
- thrown if the server cannot be removed.public void setCurrentQualitySetting(int currentQualitySetting)
currentQualitySetting
- the currentQualitySetting to setCopyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.