public class ArrayDataSource extends SimpleDataSource
SimpleDataSource.NameEditorData
DataSource.Writable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
cvsRev |
int |
elements
the number of elements
|
double |
max
the maximum value of the random numbers
|
double |
min
the minimum value of the random numbers
|
double |
timeSpacing
the time spacing for the generated data
|
boolean |
zeroBased
if set to true, will start at time=0, otherwise starts at system current time
|
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 |
---|
ArrayDataSource()
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
getBooleanOutput()
Gets whether or not to generate only true/false array.
|
boolean |
getBooleanValue()
This will return a random 0 or 1
|
int |
getElements()
Gets the number of elements to be generated for the ArrayValueObject
|
boolean |
getIntegerOutput()
Gets whether or not to generate only non-decimal numbers in the array.
|
double |
getMaxValue()
Gets the maximum for the random number generator
|
double |
getMinValue()
Gets the minimum for the random number generator
|
double |
getTimeSpacing()
Gets the time interval for the timestamp of the data generated.
|
double |
getValue()
This will return a random number between min and max.
|
ValueObjectInterface |
getValues()
This will return a generated ArrayValueObject.
|
boolean |
getZeroBasedTime()
Gets whether or not to start at time=0.
|
void |
refreshCurrentValue()
This is called every timebase tick to create a new ArrayValueObject and update connectors.
|
void |
setBooleanOutput(boolean booleanOutput)
Sets whether or not to generate only true/false array.
|
void |
setElements(int elements)
Sets the number of elements to be generated for the ArrayValueObject
|
void |
setIntegerOutput(boolean integerOutput)
Sets whether or not to generate only non-decimal numbers in the array.
|
void |
setMaxValue(double max)
Sets the maximum for the random number generator
|
void |
setMinValue(double min)
Sets the minimum for the random number generator
|
void |
setTimeSpacing(double timeSpacing)
Sets the time interval for the timestamp of the data generated.
|
void |
setZeroBasedTime(boolean zeroBased)
Sets whether or not to start at time=0.
|
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, 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 static final java.lang.String cvsRev
public int elements
public double max
public double min
public double timeSpacing
public boolean zeroBased
public boolean getBooleanOutput()
public boolean getBooleanValue()
getBooleanValue
in class DataSource
public int getElements()
public boolean getIntegerOutput()
public double getMaxValue()
public double getMinValue()
public double getTimeSpacing()
public double getValue()
public ValueObjectInterface getValues()
public boolean getZeroBasedTime()
public void refreshCurrentValue()
refreshCurrentValue
in class SimpleDataSource
public void setBooleanOutput(boolean booleanOutput)
public void setElements(int elements)
public void setIntegerOutput(boolean integerOutput)
public void setMaxValue(double max)
public void setMinValue(double min)
public void setTimeSpacing(double timeSpacing)
public void setZeroBasedTime(boolean zeroBased)
public java.lang.String toString()
toString
in class SimpleDataSource
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.