public abstract class LocalMessageReference extends SimpleManipulator
SimpleDataSource.NameEditorData
DataSource.Writable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ERROR_STATUS_NAME
This datasource will be triggered if an error response is recieved to a message.
|
static java.lang.String |
GOOD_STATUS_NAME
This datasource will be triggered if a good response is recieved to a message.
|
static java.lang.String |
RESPONSE_RECEIVED
The name of the "responseReceived" inport.
|
static java.lang.String |
RESPONSE_STATUS_NAME
This is the name that we publish use to publish the received response.
|
static java.lang.String |
SEND_MESSAGE_NAME
This is the name that we publish use to send the.
|
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 |
---|
LocalMessageReference()
This sets the inports based on the Vector provided by
getInports . |
Modifier and Type | Method and Description |
---|---|
void |
errorStatusReceived(ValueChangedEvent newEvent)
Called after sending the message when the result of sending, up to and including seeing
a response, is known.
|
DataSource |
getDataSource(java.lang.String name)
Added for backward compatibility.
|
Connector |
getErrorConnector()
Search the sources for a connector with the inport ERROR_STATUS_NAME with a source of a VIBMessageBean and the outport ERROR_STATUS_NAME
|
Connector |
getGoodConnector()
Search the sources for a connector with the inport GOOD_STATUS_NAME with a source of a VIBMessageBean and the outport GOOD_STATUS_NAME
|
Connector |
getResponseConnector()
Search the sources for a connector with the inport RESPONSE_RECEIVED with a source of a VIBMessageBean and the outport RESPONSE_STATUS_NAME
|
int |
getStaticLocationFor(java.lang.String method)
This is the default getStaticLocationFor with a location used by the staticmethodevent
to find a specific entry value object.
|
void |
goodStatusReceived(ValueChangedEvent newEvent)
Called after sending the message when the result of sending, up to and including seeing
a response, is known.
|
void |
init()
Initialize the component.
|
void |
responseReceived(ValueChangedEvent newEvent)
Called after sending the message when the result of sending, up to and including seeing
a response, is known.
|
void |
start()
Add the connector for the response.
|
void |
stop()
Remove the connector for the response.
|
void |
valueChanged(int loc,
ValueChangedEvent e)
Uses the locations hashtable to find a server that matches the need and then
calls valueInput on it.
|
void |
valueInput(ValueChangedEvent newEvent)
Send the message, resolve the notification status and output the result of sending the message.
|
getDefaultQualityForLocation
getInPortNames, setBooleanValue, setBoolValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue, toString
addConnector, addConnector, addDataSource, addPropertyChangeListener, addValueChangedListener, addVetoableChangeListener, authenticatedClientRequest, clientRequest, clientResponse, destroy, determineSuspendedStatus, getClassLicenseManager, getContainer, getCustomTimer, 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, 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, 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 static final java.lang.String ERROR_STATUS_NAME
public static final java.lang.String GOOD_STATUS_NAME
public static final java.lang.String RESPONSE_RECEIVED
public static final java.lang.String RESPONSE_STATUS_NAME
public static final java.lang.String SEND_MESSAGE_NAME
public LocalMessageReference()
getInports
.public void errorStatusReceived(ValueChangedEvent newEvent) throws VIBUpdateFailedException
newEvent
- The ValueChangedEvent that the bean or data source has sent.VIBUpdateFailedException
public DataSource getDataSource(java.lang.String name) throws BadParameterException
getDataSource
in class SimpleDataSource
BadParameterException
public Connector getErrorConnector()
public Connector getGoodConnector()
public Connector getResponseConnector()
public int getStaticLocationFor(java.lang.String method) throws BadParameterException
getStaticLocationFor
in class Manipulator
BadParameterException
public void goodStatusReceived(ValueChangedEvent newEvent) throws VIBUpdateFailedException
newEvent
- The ValueChangedEvent that the bean or data source has sent.VIBUpdateFailedException
public void init() throws BadParameterException
init
in class DataSource
BadParameterException
public void responseReceived(ValueChangedEvent newEvent) throws VIBUpdateFailedException
newEvent
- The ValueChangedEvent that the bean or data source has sent.VIBUpdateFailedException
public void start() throws BadParameterException, VIBUpdateFailedException
start
in class SimpleDataSource
BadParameterException
VIBUpdateFailedException
PLCDeviceServer.start()
public void stop() throws BadParameterException
stop
in class SimpleDataSource
BadParameterException
SimpleDataSource.stop()
public void valueChanged(int loc, ValueChangedEvent e) throws VIBUpdateFailedException, BadParameterException
valueChanged
in class Manipulator
BadParameterException
VIBUpdateFailedException
public void valueInput(ValueChangedEvent newEvent) throws VIBUpdateFailedException
valueInput
in class Manipulator
newEvent
- The ValueChangedEvent that the bean or data source has sent.VIBUpdateFailedException
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.