public class Constant extends SimpleDataSource implements ConstantSimulationListener
StartupTrigger
SimpleDataSource.NameEditorData
DataSource.Writable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
cvsRev |
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 |
---|
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, 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, setColorHiHi, setColorLo, setColorLoLo, setColorNormal, setConsoleLogger, setGWTLogger, setHardSuspended, setInScript, setParent, setPopupLogger, setScript, setSendColors, setSendOnlyChangedValuesDefault, setSyncWriteTimeout, setTimedPopupLogger, setTraceLogger, setValueHi, setValueHiHi, setValueLo, setValueLoLo, updateListeners, updateListeners, updateListeners, whoAmI
public static final java.lang.String cvsRev
public void addConnector(Connector connector) throws BadParameterException, VIBUpdateFailedException
addConnector
in class SimpleDataSource
connector
- 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.#removeaddConnector
public java.lang.String getConstantValue()
public int getInitialQuality()
public int getType()
public boolean isFireLate()
ConstantSimulationListener
isFireLate
in interface ConstantSimulationListener
public void refreshCurrentValue()
refreshCurrentValue
in class SimpleDataSource
SimpleDataSource.refreshCurrentValue()
public void sendValue()
com.ergotech.vib.servers.ExpectationServerInterface#initializationComplete()
public void setColorHi(java.awt.Color newColor)
setColorHi
in class DataSource
newColor
- 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 SimulationListener
simulationFlag
- 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 SimulationListener
java.lang.Exception
- TODOpublic void start() throws BadParameterException, VIBUpdateFailedException
start
in class SimpleDataSource
BadParameterException
VIBUpdateFailedException
com.ergotech.vib.servers.ExpectationServerInterface#initializationComplete()
public ValueObjectInterface updateColor(ValueObjectInterface newValueObject)
updateColor
in class DataSource
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.