Class | Description |
---|---|
EnvelopeCurve |
Graphics object representing a curve in a
object. |
GraphFrame |
Enclosing Swing frame.
|
ParticleCurve |
Graphics object representing a curve in a
object. |
TrajectoryGraph |
Represents a graph of an online model simulation solution.
|
Enum | Description |
---|---|
PLANE |
Enumeration of all the phase planes for the simulation.
|
Right now most of the classes are for quick plotting of Online Model simulation data. The data is plotted in an independent window.
Below is an example usage of the classes:
try {
MDL_BEAMLINE.resync();
MDL_BEAMLINE.run();
Trajectory trjSoln = MDL_BEAMLINE.getProbe().getTrajectory();
TrajectoryGraph grpSoln = TrajectoryGraph.createEnvelopeGraph(trjSoln);
GraphFrame frmSoln = new GraphFrame(strTitle + "Q=" + this.dblBmChg + " res err="+dblErrRes + ", conv err=" + dblErrCnv, grpSoln);
for (PLANE plane : PLANE.values()) {
MeasurementCurve crvMsmt = new MeasurementCurve(plane, SEQ_ACCL_TEST, arrData);
grpSoln.addGraphData(plane, crvMsmt);
}
grpSoln.setLegendVisible(true);
grpSoln.setPreferredSize(DIM_GRAPH_SOLN);
frmSoln.display();
} catch (SynchronizationException e) {
e.printStackTrace();
this.errorMsg("Unable to synchronize model");
} catch (ModelException e) {
e.printStackTrace();
this.errorMsg("Unable to run model");
}