|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimtools.data.ValueProvider
simtools.data.DataSource
simtools.data.LinearSource
public class LinearSource
Field Summary | |
---|---|
protected double |
_coef
|
protected long |
_end
|
protected double |
_org
|
protected long |
_start
|
Fields inherited from class simtools.data.DataSource |
---|
endNotificationListeners, listeners, sortedOrder |
Fields inherited from class simtools.data.ValueProvider |
---|
ByteProvider, DoubleProvider, FloatProvider, IntegerProvider, kind, LongProvider, ObjectProvider, ShortProvider |
Constructor Summary | |
---|---|
LinearSource(double min,
double max,
double step)
This constructor doesn't use the notion of index at all it may be used to produce a uniform distribution of points between min (included) and max, evenly spaced with step. |
|
LinearSource(double org,
double coef,
long start,
long end)
|
Method Summary | |
---|---|
long |
computeLastIndex()
|
java.lang.Object |
computeMax()
|
java.lang.Object |
computeMin()
Force the computation if possible. |
long |
computeStartIndex()
|
double |
getDoubleValue(long index)
Optimize for double access getValue calls this function and wraps a Double around |
DataInfo |
getInformation()
|
long |
getLastIndex()
|
java.lang.Object |
getMax()
|
java.lang.Object |
getMin()
Return values if possibly only, without expensive computations. |
long |
getStartIndex()
|
java.lang.Object |
getValue(long index)
|
void |
setSlice(long min,
long max)
Sets a region of interest in the DataSource. |
int |
sortedOrder()
Check if the values are sorted or not. |
void |
update()
|
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, getKind, getLongValue, getObjectValue, getShortValue |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double _org
protected double _coef
protected long _start
protected long _end
Constructor Detail |
---|
public LinearSource(double org, double coef, long start, long end)
public LinearSource(double min, double max, double step)
Method Detail |
---|
public DataInfo getInformation()
getInformation
in class DataSource
public java.lang.Object getMin() throws UnsupportedOperation
DataSource
getMin
in class DataSource
UnsupportedOperation
public java.lang.Object getMax() throws UnsupportedOperation
getMax
in class DataSource
UnsupportedOperation
public long getStartIndex() throws UnsupportedOperation
getStartIndex
in class DataSource
UnsupportedOperation
public long getLastIndex() throws UnsupportedOperation
getLastIndex
in class DataSource
UnsupportedOperation
public java.lang.Object computeMin() throws UnsupportedOperation
computeMin
in class DataSource
UnsupportedOperation
public java.lang.Object computeMax() throws UnsupportedOperation
computeMax
in class DataSource
UnsupportedOperation
public long computeStartIndex() throws UnsupportedOperation
computeStartIndex
in class DataSource
UnsupportedOperation
public long computeLastIndex() throws UnsupportedOperation
computeLastIndex
in class DataSource
UnsupportedOperation
public void setSlice(long min, long max)
DataSource
setSlice
in class DataSource
public double getDoubleValue(long index)
getDoubleValue
in class ValueProvider
public java.lang.Object getValue(long index) throws DataException
getValue
in class ValueProvider
DataException
public java.lang.Class valueClass()
ValueProvider
valueClass
in class ValueProvider
public int sortedOrder()
DataSource
sortedOrder
in class DataSource
public void update() throws UnsupportedOperation
UnsupportedOperation
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |