public class TwoDimensionalDataSource extends SimpleDataSource
SimpleDataSource.NameEditorData
DataSource.Writable
Modifier and Type | Field and Description |
---|---|
int |
booleanYColumns
if set to a non-zero value, this number of boolean columns will be generated.
|
int |
columns
Number of columns.
|
boolean |
constantXSpacing
If set to false the numeric spacing between the x-column values will not be even.
|
int |
doubleYColumns
if set to a non-zero value, this number of double value columns will be generated.
|
boolean |
randomX
This is the whether or not to use random (true) or sequential x values.
|
int |
rows
The number of rows
|
boolean |
sortedX
This defaults to true so that the X Column data is sorted from low to high.
|
java.lang.String[] |
str1 |
java.lang.String[] |
str2 |
java.lang.String[] |
str3 |
double |
timeInterval
This is the time interval in seconds between generated timestamps.
|
boolean |
useTimestamps
This defaults to true so that a timestamp column is added for each row.
|
int |
xColumnDataType
A choice of integer or double values for the x-column.
|
double |
xMax
the maximum value of the x data values
|
double |
xMin
the minimum value of the x data values
|
double |
yMax
the maximum value of the y columns data values
|
double |
yMin
the minimum value of the y columns data values
|
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 |
---|
TwoDimensionalDataSource()
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
getBooleanValue()
This will return a random 0 or 1
|
int |
getBooleanYColumns()
Gets number of boolean columns to generate
|
int |
getDoubleYColumns()
Gets number of double value columns to generate
|
int |
getIntYColumns()
Gets number of int value columns to generate
|
double |
getNumericValue(double min,
double max)
This will return a random number between min and max.
|
boolean |
getRandomX()
Gets whether or not to use random or seqencial X values.
|
int |
getRows()
Gets the number of rows to be generated
|
java.lang.String |
getStringValue()
Sets the string value of the current value object.
|
int |
getStringYColumns()
Gets number of int value columns to generate
|
double |
getTimeInterval()
Gets the time interval for the X column.
|
ValueObjectInterface |
getTimestampedValues()
This will return a generated timestamped TwoDimensionalValueObject.
|
boolean |
getUseTimestamps()
gets whether or not we are using a timestamped 2DVO
|
int |
getXColumnDataType()
Returns the data type for the x column.
|
double |
getXMax()
Gets the maximum for for the X column data
|
double |
getXMin()
Gets the minimum for for the X column data
|
ValueObjectInterface |
getXYValues()
This will return a non-timestamped single X, multiple Y TwoDimensionalValueObject
|
double |
getYMax()
Gets the maximum for for the Y column data
|
double |
getYMin()
Gets the minimum for for the Y column data
|
java.lang.String |
randStr1() |
java.lang.String |
randStr2() |
java.lang.String |
randStr3() |
void |
refreshCurrentValue()
This is called every timebase tick to create a new ValueObject and update connectors.
|
void |
setBooleanYColumns(int booleanColumns)
Sets how many boolean columns to generate.
|
void |
setDoubleYColumns(int doubleColumns)
Sets how many double value columns to generate.
|
void |
setIntYColumns(int intColumns)
Sets how many int value columns to generate.
|
void |
setRandomX(boolean randomX)
sets whether or not to use random (the default) or seqencial X values.
|
void |
setRows(int rows)
Sets the number of rows to be generated.
|
void |
setStringYColumns(int stringColumns)
Sets how many String value columns to generate.
|
void |
setTimeInterval(double timeInterval)
Sets the time interval for the x column data.
|
void |
setUseTimestamps(boolean useTimestamps)
sets whether or not to create a timestamped 2DVO
|
void |
setXColumnDataType(int xColumnDataType)
Sets the data type for the x column (first column of the value object)
The types are 0 = timestamp, 1 = int, and 2 = double.
|
void |
setXMax(double xMax)
Sets the maximum for the X column data
|
void |
setXMin(double xMin)
Sets the minimum for the X column data
|
void |
setYMax(double yMax)
Sets the maximum for the Y column data
|
void |
setYMin(double yMin)
Sets the minimum for the Y column data
|
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, 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 int booleanYColumns
public int columns
public boolean constantXSpacing
public int doubleYColumns
public boolean randomX
public int rows
public boolean sortedX
public java.lang.String[] str1
public java.lang.String[] str2
public java.lang.String[] str3
public double timeInterval
public boolean useTimestamps
public int xColumnDataType
public double xMax
public double xMin
public double yMax
public double yMin
public boolean getBooleanValue()
getBooleanValue
in class DataSource
public int getBooleanYColumns()
public int getDoubleYColumns()
public int getIntYColumns()
public double getNumericValue(double min, double max)
public boolean getRandomX()
public int getRows()
public java.lang.String getStringValue()
DataSource
getStringValue
in class DataSource
public int getStringYColumns()
public double getTimeInterval()
public ValueObjectInterface getTimestampedValues()
public boolean getUseTimestamps()
public int getXColumnDataType()
public double getXMax()
public double getXMin()
public ValueObjectInterface getXYValues()
public double getYMax()
public double getYMin()
public java.lang.String randStr1()
public java.lang.String randStr2()
public java.lang.String randStr3()
public void refreshCurrentValue()
refreshCurrentValue
in class SimpleDataSource
public void setBooleanYColumns(int booleanColumns)
public void setDoubleYColumns(int doubleColumns)
public void setIntYColumns(int intColumns)
public void setRandomX(boolean randomX)
public void setRows(int rows)
public void setStringYColumns(int stringColumns)
public void setTimeInterval(double timeInterval)
public void setUseTimestamps(boolean useTimestamps)
public void setXColumnDataType(int xColumnDataType)
public void setXMax(double xMax)
public void setXMin(double xMin)
public void setYMax(double yMax)
public void setYMin(double yMin)
public java.lang.String toString()
toString
in class SimpleDataSource
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.