IDE Interpreter Plugin
Overview
Write code to be processed during the simulation.

Help
Statements
Statements of the IDE Interpreter language
Procedure | Description | Parameter | Call |
---|---|---|---|
Error Procedures | |||
throwError | Return an exception of | String | throwError("Text") |
type "Runtime Error" | |||
to the simulator. | |||
throwWarning | Return an exception of | String | throwWarning("Text") |
type "Runtime Warning" | |||
to the simulator. | |||
File Procedures | |||
open | Opens a file. | File ,String | open(File,"Pfad") |
Throws exception of | |||
type "IO Error" | |||
if the file could not | |||
be opened. | |||
close | Closes a file. | File | close(File) |
Throws an exception | |||
Typ "IO Error" | |||
if closing the file | |||
failed | |||
seek | Set Position in | File, int | seek(File, int) |
a file. | |||
Throws exception of | |||
type "IO Error" | |||
if setting of position | |||
failed. | |||
write | Writes to a file. | File, int | write(File,int) |
Throws exception of | File,double | write(File,double) | |
type "IO Error" | File,String | write(File,"Text") | |
if writing to file | |||
failed. | |||
Storing as | |||
serialized object. | |||
writeInt | Writes to a file. | File, int | writeInt(File,int) |
Throws exception of | |||
type "IO Error" | |||
if writing to file | |||
failed | |||
Saved as | |||
"long" value. | |||
Writes to System.out . | String | print("Text") | |
double | print(double) | ||
int | print(int) |
Functions
Functions of the IDE Interpreter language
Description | Legal Parameters | Aufruf | |
---|---|---|---|
Mathematical Functions | |||
abs | absolute Value | double, int | abs( x ) |
of a number | |||
acos | arc cosine | double, int | acos( x ) |
of a number | |||
asin | arc sine | double, int | asin( x ) |
of a number | |||
atan | arc tangent | double, int | atan( x ) |
of a number | |||
cos | cosine | double, int | cos( x ) |
of a number | |||
E | Euler's constant | none | E() |
exp | double, int | exp( x ) | |
log | double, int | log( x ) | |
max | maximum | double, int | max( x , y ) |
of two numbers | |||
min | minimum | double, int | min( x , y ) |
of two values | |||
PI | constant | none | PI() |
pow | double,int | pow( x , y ) | |
random | random number | none | random() |
between 0 and 1 | |||
sine | sin(x) | double,int | sin( x ) |
sqrt | double,int | sqrt( x ) | |
tangent | tan(x) | double,int | tan( x ) |
Angle Functions | |||
angle180 | normalized angle | double,int | angle180( x ) |
between -180 and 180 | |||
angle360 | normalized angle | double,int | angle360( x ) |
between 0 and 360 | |||
File Functions | |||
pos | current position | File | pos( File ) |
in a file(int) | |||
isEOF | Test | File | isEOF( File ) |
end of file reached | |||
readLong | reads "long" value from file. | File | readLong( File ) |
Throws exception of | |||
type "IO Error" | |||
if setting of position | |||
failed |