|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimtools.data.ValueProvider
simtools.data.DataSource
jsynoptic.builtin.RangeSource
public class RangeSource
This data source produces all the values in a given range, and can work either on "integers" or "real" numbers The range may be infinite
Nested Class Summary | |
---|---|
static class |
RangeSource.OptionPanel
|
Field Summary | |
---|---|
protected double |
dmaxValue
|
protected double |
dminValue
|
protected double |
dstep
|
static java.lang.String |
ID_PREFIX
|
protected DataInfo |
info
|
protected long |
lmaxValue
|
protected long |
lminValue
|
protected long |
lstep
|
static BasicMessageWriter |
messages
|
static java.util.ResourceBundle |
resources
|
Fields inherited from class simtools.data.DataSource |
---|
endNotificationListeners, listeners, sortedOrder |
Fields inherited from class simtools.data.ValueProvider |
---|
ByteProvider, DoubleProvider, FloatProvider, IntegerProvider, LongProvider, ObjectProvider, ShortProvider |
Constructor Summary | |
---|---|
RangeSource(java.lang.String name,
double minValue,
double maxValue,
double step)
|
|
RangeSource(java.lang.String name,
long minValue,
long maxValue,
long step)
|
Method Summary | |
---|---|
long |
computeLastIndex()
|
java.lang.Object |
computeMax()
|
java.lang.Object |
computeMin()
Force the computation if possible. |
long |
computeStartIndex()
|
double |
getDoubleMax()
|
double |
getDoubleMin()
|
double |
getDoubleValue(long index)
Optimized accessor for double values. |
DataInfo |
getInformation()
|
int |
getKind()
The kind of this provider may be used fo optimization purpose. |
long |
getLastIndex()
|
long |
getLongMax()
|
long |
getLongMin()
|
long |
getLongValue(long index)
Optimized accessor for long values. |
java.lang.Object |
getMax()
|
java.lang.Object |
getMin()
Return values if possibly only, without expensive computations. |
long |
getStartIndex()
|
java.lang.Number |
getStep()
|
java.lang.Object |
getValue(long index)
|
boolean |
isComparable()
Check if the values are comparable with each other. |
int |
sortedOrder()
Check if the values are sorted or not. |
java.lang.Class |
valueClass()
Returns the more specialized superclass of all objects returned by this provider. |
Methods inherited from class simtools.data.ValueProvider |
---|
getByteValue, getFloatValue, getIntegerValue, getObjectValue, getShortValue |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ID_PREFIX
public static java.util.ResourceBundle resources
public static BasicMessageWriter messages
protected double dminValue
protected double dmaxValue
protected double dstep
protected long lminValue
protected long lmaxValue
protected long lstep
protected DataInfo info
Constructor Detail |
---|
public RangeSource(java.lang.String name, double minValue, double maxValue, double step)
public RangeSource(java.lang.String name, long minValue, long maxValue, long step)
Method Detail |
---|
public int getKind()
ValueProvider
getKind
in class ValueProvider
public DataInfo getInformation()
getInformation
in class DataSource
public java.lang.Object getValue(long index) throws DataException
getValue
in class ValueProvider
DataException
public double getDoubleValue(long index) throws DataException
ValueProvider
getDoubleValue
in class ValueProvider
DataException
public long getLongValue(long index) throws DataException
ValueProvider
getLongValue
in class ValueProvider
DataException
public long computeLastIndex() throws UnsupportedOperation
computeLastIndex
in class DataSource
UnsupportedOperation
public long computeStartIndex() throws UnsupportedOperation
computeStartIndex
in class DataSource
UnsupportedOperation
public long getLastIndex() throws UnsupportedOperation
getLastIndex
in class DataSource
UnsupportedOperation
public long getStartIndex() throws UnsupportedOperation
getStartIndex
in class DataSource
UnsupportedOperation
public java.lang.Object computeMax()
computeMax
in class DataSource
public java.lang.Object computeMin()
DataSource
computeMin
in class DataSource
public double getDoubleMax()
getDoubleMax
in class DataSource
public double getDoubleMin()
getDoubleMin
in class DataSource
public long getLongMax()
getLongMax
in class DataSource
public long getLongMin()
getLongMin
in class DataSource
public java.lang.Object getMax()
getMax
in class DataSource
public java.lang.Object getMin()
DataSource
getMin
in class DataSource
public java.lang.Number getStep()
public boolean isComparable()
DataSource
isComparable
in class DataSource
public int sortedOrder()
DataSource
sortedOrder
in class DataSource
public java.lang.Class valueClass()
ValueProvider
valueClass
in class ValueProvider
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |