public class FloatFluxServer extends SimpleDataSource
SimpleDataSource.NameEditorData
DataSource.Writable
Modifier and Type | Field and Description |
---|---|
float |
level
The target level.
|
float |
maxFluctuation
The maximum (small) fluctuation when at the target level.
|
float |
rate
The maximum change at each timebase tick to change
the value when approaching the level.
|
float |
startLevel
The target level.
|
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 |
---|
FloatFluxServer()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
float |
getLevel()
Returns the current level value.
|
float |
getMaxFluctuation()
Returns the current maximum fluctuation level of the server.
|
float |
getRate()
Returns the Rate of change value.
|
float |
getStartLevel()
Returns the default starting level of this server, which defaults to 0.
|
void |
refreshCurrentValue()
Sets the new calculated value.
|
void |
setLevel(float newValue)
Sets the target level of the server.
|
void |
setMaxFluctuation(float newValue)
Sets the current maximum fluctuation level of the server.
|
void |
setRate(float newValue)
Sets the Rate of change for the server.
|
void |
setStartLevel(float startLevel)
Sets the start-up level of the server.
|
java.lang.String |
toString()
Provides the description and status of the server as a String.
|
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, 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 float level
public float maxFluctuation
public float rate
public float startLevel
public FloatFluxServer()
public float getLevel()
setLevel(float)
public float getMaxFluctuation()
setMaxFluctuation(float)
public float getRate()
setRate(float)
public float getStartLevel()
setStartLevel(float)
public void refreshCurrentValue()
newValue = +random(0-1) or -random(0-1) previous valuewith a change in value dependent on whether or not the target level has been reached yet.
refreshCurrentValue
in class SimpleDataSource
public void setLevel(float newValue)
newValue
- the new target level.getLevel()
public void setMaxFluctuation(float newValue)
newValue
- the new maximum fluctuation value.getMaxFluctuation()
public void setRate(float newValue)
newValue
- the new rate value.getRate()
public void setStartLevel(float startLevel)
startLevel
- the default startup level.getStartLevel()
public java.lang.String toString()
toString
in class SimpleDataSource
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.