A J+ script.
Definition jplus.h:15
bool set(std::string name, jarray data)
Set value of the specified variable inside J+ environment, mark all dependent variables "dirty".
YACTS trajectory file.
Definition trjfile.h:6
YACTS – yet another continuous time simulator.
Definition yacts.h:15
int REPL()
Enters read(stdin)-eval-print(stdout) loop until the end of stdin.
bool initTrajectory(std::string prefix)
Initializes ODE solver and the state either from the start of the problem or from the last saved traj...
yacts()
Initializes YACTS.
bool init(std::istream &script)
Load YACTS script.
~yacts()
Frees YACTS memory.
bool setOut(std::string newOut)
Sets the name of output variable.
bool hasNextFrameStored()
Returns true if the next frame is already in the trajectory file and does not have to be (and will no...
std::string process()
Computes and returns the "OUT" variable, corresponding to the current frame.
std::string getTrajectoryFilenameBase(std::string prefix)
Computes trajectory filename base, using hash of "important" parts of yacts script.
bool nextFrame()
Advances to the next trajectory frame by computing it (if necessary) and saving (if computed).
int size()
Returns the number of computed frames in the current trajectory file.
bool setFrame(int iframe)
Sets specified frame as "current", loads it.
virtual void libInit()
Initializes YACTS library functions and makes them avaliable to J.