public class Constant extends SimpleDataSource implements ConstantSimulationListener
StartupTriggerSimpleDataSource.NameEditorDataDataSource.Writable| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
cvsRev |
customTimer, EXPORT_READ_ONLY, EXPORT_READ_WRITE, NO_EXPORT, requiresSyncWrite, sharedTimer, syncWriteTimeout, timebaseautoSuspend, 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 |
|---|
Constant()
constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addConnector(Connector connector)
Adds an input Connector to this component from the primary outport
of a data source.
|
java.lang.String |
getConstantValue() |
int |
getInitialQuality() |
int |
getType() |
boolean |
isFireLate()
This must be implemented to determine the firing order of the constants.
|
void |
refreshCurrentValue()
Called on the timebase and sends the current value.
|
void |
sendValue()
This will start the server, sending the value.
|
void |
setColorHi(java.awt.Color newColor)
Overridden to send the value when changed.
|
void |
setConstantValue(java.lang.String constantValue) |
void |
setFireLate(boolean fireLate) |
void |
setInitialQuality(int initialQuality) |
void |
setSimulationFlag(boolean simulationFlag)
This is ignored.
|
void |
setType(int type) |
void |
simulationStateChanged(SimulationChangedEvent simulationChangedEvent)
Called when the simulation state changes.
|
void |
start()
This will start the server, sending the value.
|
ValueObjectInterface |
updateColor(ValueObjectInterface newValueObject)
The superclass sets the color according to values/levels which is not
what we want for this component.
|
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, removeConnector, removeDataSource, removePropertyChangeListener, removeValueChangedListener, removeVetoableChangeListener, requestSyncWrite, setAutoSuspend, setClassLicenseManager, setContainer, setCustomTimer, setDataSourceName, setExportCriteria, setExposeComponentConnections, setName, setPullFromServers, setPushData, setPushName, setPushToServers, setScreenLocal, setServerListData, setTimebase, setTrace, setValueObject, stop, tick, toString, VIBEventaddVIBEventListener, 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, setColorHiHi, setColorLo, setColorLoLo, setColorNormal, setConsoleLogger, setGWTLogger, setHardSuspended, setInScript, setParent, setPopupLogger, setScript, setSendColors, setSendOnlyChangedValuesDefault, setSyncWriteTimeout, setTimedPopupLogger, setTraceLogger, setValueHi, setValueHiHi, setValueLo, setValueLoLo, updateListeners, updateListeners, updateListeners, whoAmIpublic static final java.lang.String cvsRev
public void addConnector(Connector connector)
throws BadParameterException,
VIBUpdateFailedException
addConnector in class SimpleDataSourceconnector - the connector to be added.BadParameterException - if the targetMethodName does not exist in the listener, or is notVIBUpdateFailedException - if an update of the connector (by a subclass of this object) fails.#removeaddConnectorpublic java.lang.String getConstantValue()
public int getInitialQuality()
public int getType()
public boolean isFireLate()
ConstantSimulationListenerisFireLate in interface ConstantSimulationListenerpublic void refreshCurrentValue()
refreshCurrentValue in class SimpleDataSourceSimpleDataSource.refreshCurrentValue()public void sendValue()
com.ergotech.vib.servers.ExpectationServerInterface#initializationComplete()public void setColorHi(java.awt.Color newColor)
setColorHi in class DataSourcenewColor - The new Color for the Hi rangeDataSource.setColorHi(java.awt.Color)public void setConstantValue(java.lang.String constantValue)
constantValue - The constantValue to set.public void setFireLate(boolean fireLate)
fireLate - The fireLate to set.public void setInitialQuality(int initialQuality)
initialQuality - The initialQuality to set.public void setSimulationFlag(boolean simulationFlag)
setSimulationFlag in interface SimulationListenersimulationFlag - will be written as "false" when code is generated.SimulationListener.setSimulationFlag(boolean)public void setType(int type)
type - The type to set.public void simulationStateChanged(SimulationChangedEvent simulationChangedEvent) throws java.lang.Exception
simulationStateChanged in interface SimulationListenerjava.lang.Exception - TODOpublic void start()
throws BadParameterException,
VIBUpdateFailedException
start in class SimpleDataSourceBadParameterExceptionVIBUpdateFailedExceptioncom.ergotech.vib.servers.ExpectationServerInterface#initializationComplete()public ValueObjectInterface updateColor(ValueObjectInterface newValueObject)
updateColor in class DataSourceCopyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.