|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcaas.script_nodes.AnnotationFunctions
jcaas.script_nodes.EvalFunctions
public class EvalFunctions
This class defines several functions which can be called from within an evaluation script.
Constructor Summary | |
---|---|
EvalFunctions()
|
Method Summary | |
---|---|
static SList |
CreateList()
|
static NumericValue |
getFreeMemory()
|
static NumericValue |
getValue(java.lang.String field)
Gives the value of the named static field in main.BlackBoard. |
static void |
ignorePackage(java.lang.String pack)
|
static void |
print(java.lang.Object o)
|
static void |
setChord(java.lang.String chord)
|
static void |
setCycleDelay(NumericValue n)
Sets how long the script should sleep before reevaluating all conditions. |
static void |
setInstrument(NumericValue value)
Sets the instrument of the singleton MusicThread's MIDIPlayer instance. |
static void |
setMelody(java.lang.String melody)
|
static void |
setModeGenerate()
|
static void |
setSong(java.lang.String title)
|
static void |
setTempo(NumericValue speed)
Sets the tempo of the singleton MuisThread's MIDIPlayer instance. |
static void |
setVolume(NumericValue value)
Sets the volume of the singleton MusicThread's MIDIPlayer instance. |
static void |
switchMelody(java.lang.String melody)
|
static void |
switchSong(java.lang.String title)
|
Methods inherited from class jcaas.script_nodes.AnnotationFunctions |
---|
annotateLoops, countInstructions, pow, update |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EvalFunctions()
Method Detail |
---|
public static SList CreateList()
public static void print(java.lang.Object o)
public static void setCycleDelay(NumericValue n)
c
- n
- public static void setModeGenerate()
public static void setChord(java.lang.String chord)
public static void setMelody(java.lang.String melody)
public static void switchMelody(java.lang.String melody)
public static void setSong(java.lang.String title)
public static void switchSong(java.lang.String title)
public static void ignorePackage(java.lang.String pack)
public static NumericValue getFreeMemory()
public static NumericValue getValue(java.lang.String field)
context
- the context of the current eval script.field
- the field to get the value of.
public static void setTempo(NumericValue speed)
c
- the context of the current eval script.milliseconds
- the new value for the tempo.public static void setVolume(NumericValue value)
c
- the context of the current eval script.value
- the value to set the volume to.public static void setInstrument(NumericValue value)
c
- the context of the current eval script.value
- the numeric value of the instrument to use.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |