|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectalgo.GroovyEditorFunctions
public final class GroovyEditorFunctions
This class provide methods whose names are easily understandable, and that can be used directly in the textArea of the script editor window.
Constructor Summary | |
---|---|
private |
GroovyEditorFunctions()
GroovyEditorFunctions is non-instantiable. |
Method Summary | |
---|---|
static java.util.Vector<java.util.Vector<java.lang.Double>> |
getAllDataAtTime(HoloSDIFdata sdifdata,
double time)
Returns the values corresponding to the given time if the given time is equal to a key of the holoSDIFdata's sdiftreeMap. |
static java.lang.Object[] |
getAllTime(HoloSDIFdata sdifdata)
Returns an array of double values corresponding to the frame times of the sdifdata, and listed in natural order. |
static int |
getBeginDate(GestionPistes gp)
Returns the date at which the score selection begins. |
static int |
getDuration(GestionPistes gp)
Returns the length of the score selection. |
static int |
getEndDate(GestionPistes gp)
Returns the date at which the score selection is ending. |
static HoloSDIFdata |
getSDIFdata(GestionPistes gp,
java.lang.String sdifdataDesc)
Returns the holoSDIFdata that corresponds to the given description sdifdataDesc. |
static double |
getTimesCount(HoloSDIFdata sdifdata)
Returns the number of time samples that are contained by the given HoloSDIFdata. |
static double |
maxFieldValue(HoloSDIFdata sdifdata,
int fieldIndex)
Returns the largest value obtained from the sdifdata for the field corresponding to the given fieldIndex |
static double |
meanFieldValue(HoloSDIFdata sdifdata,
int fieldIndex)
Returns the mean value obtained from the sdifdata's field that corresponds to the given fieldIndex |
static double |
minFieldValue(HoloSDIFdata sdifdata,
int fieldIndex)
Returns the smallest value obtained from the sdifdata for the field corresponding to the given fieldIndex |
static double |
random()
Returns a double value with a positive sign, greater than or equal to 0.0 and less than 1.0. |
static double |
rangeFieldValue(HoloSDIFdata sdifdata,
int fieldIndex)
Returns the range (i.e. maxValue-minValue) of the sdifdata's field that corresponds to the given fieldIndex |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
private GroovyEditorFunctions()
Method Detail |
---|
public static java.util.Vector<java.util.Vector<java.lang.Double>> getAllDataAtTime(HoloSDIFdata sdifdata, double time)
public static java.lang.Object[] getAllTime(HoloSDIFdata sdifdata)
sdifdata
-
public static double minFieldValue(HoloSDIFdata sdifdata, int fieldIndex)
sdifdata
- fieldIndex
-
public static double maxFieldValue(HoloSDIFdata sdifdata, int fieldIndex)
sdifdata
- fieldIndex
-
public static double meanFieldValue(HoloSDIFdata sdifdata, int fieldIndex)
sdifdata
- fieldIndex
-
public static double rangeFieldValue(HoloSDIFdata sdifdata, int fieldIndex)
sdifdata
- fieldIndex
-
public static double getTimesCount(HoloSDIFdata sdifdata)
sdifdata
-
public static double random()
public static HoloSDIFdata getSDIFdata(GestionPistes gp, java.lang.String sdifdataDesc)
gp
- sdifdataDesc
- the description of an holoSDIFdata located in the score.
public static int getBeginDate(GestionPistes gp)
gp
-
public static int getEndDate(GestionPistes gp)
gp
-
public static int getDuration(GestionPistes gp)
gp
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |