public class GPIntegrator
extends fr.cnes.genius.lowLevel.GPanel
implements fr.cnes.genius.main.GReadWrite, fr.cnes.genius.main.GClear, fr.cnes.genius.main.GListener
Modifier and Type | Class and Description |
---|---|
static class |
GPIntegrator.IntegratorTypeEnum
Enumeration for first order integrators types.
|
static class |
GPIntegrator.Tolerances
Tolerances definition options.
|
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_ABS_MASS_TOL
Default absolute mass tolerance for simplified tolerances (1E-3 kg).
|
static double |
DEFAULT_REL_MASS_TOLERANCE
Default relative mass tolerance for simplified tolerances (1E-5).
|
static int |
THREE_DIM
3D vector length.
|
static int |
TOL_LENGTH
Tolerances length.
|
Constructor and Description |
---|
GPIntegrator()
Empty constructor.
|
GPIntegrator(GPIntegrator.IntegratorTypeEnum[] displayedIntegrators,
GPIntegrator.IntegratorTypeEnum integratorType)
Creates a new instance.
|
GPIntegrator(String widgetId)
Creates a new instance with Dormand-Prince integrator as default displayed integrator.
|
GPIntegrator(String widgetId,
GPIntegrator.IntegratorTypeEnum[] displayedIntegrators,
GPIntegrator.IntegratorTypeEnum integratorType)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
after(fr.cnes.genius.main.GEvent e) |
void |
before(fr.cnes.genius.main.GEvent arg0) |
void |
clear() |
void |
display() |
void |
generic() |
double |
getAbsMassTolerance()
Get the absolute mass tolerance.
|
double |
getDOPMaxTimestep()
Get the DOP max timestep.
|
double |
getDOPMinTimestep()
Get the DOP min timestep.
|
GPDop853 |
getDopPanel()
Returns the DOP panel.
|
double[][] |
getDOPTolerances(fr.cnes.sirius.patrius.orbits.Orbit initialOrbit)
Get the DOP tolerances (absolutes and relative).
|
GPIntegrator.Tolerances |
getDOPToleranceType()
Get the DOP max timestep.
|
fr.cnes.sirius.patrius.math.ode.FirstOrderIntegrator |
getFirstOrderIntegrator(fr.cnes.sirius.patrius.orbits.Orbit initialOrbit)
Get the first order integrator
|
double |
getRelMassTolerance()
Get the relative mass tolerance.
|
double |
getRKTimestep()
Get the Runge-Kutta timestep.
|
boolean |
isDOPBypassMinStep()
Get the DOP bypass min step flag.
|
void |
read() |
protected void |
setDefaultConstraints()
Set the default constraints.
|
void |
setDOPParameters(double minStep,
double maxStep,
boolean bypassMinStep,
GPIntegrator.Tolerances displayedTolerance)
Set DOP parameters.
|
void |
setDOPTolerancesComplete(double[] absTol,
double[] relTol)
Set DOP tolerances in case of complete model.
|
void |
setDOPTolerancesReduced(double[] absTol,
double[] relTol)
Set DOP tolerances in case of reduced model.
|
void |
setDOPTolerancesSimplified(double localPositionError)
Set DOP tolerance in case of simplified model.
|
void |
setRKParameters(double timestep)
Set fixed time step integrators parameters (RK4 and RK6 integrators).
|
void |
write() |
clearConstraint, getClassConstraint, getComponent, getHorizontalScroll, getInnerDescendantClassConstraint, getJPanel, getJScrollPane, getLayoutConstraints, getStringClassConstraint, getVerticalScroll, mainClear, mainDisplay, put, setClassConstraint, setColumnConstraints, setConstraint, setHorizontalScroll, setInnerDescendantClassConstraint, setLayoutConstraints, setMargins, setPanelConstraints, setPreferredSize, setRowConstraints, setVerticalScroll
activateConstraintsByType, attachCopyPasteMenu, attachCopyPasteMenu, beginOfElement, beginOfElement, beginOfElement, beginOfElement, clearAllInnerDescendantConstraint, clearInnerDescendantContraint, composeWidgetId, doDisplay, endOfElement, getCommentInConfigFile, getConstraint, getCurrentOperation, getDisplayIndicatorStatus, getDisplayIsModifiedIndicator, getElement, getGClassName, getGPanel, getGParent, getGUnitInConfigFile, getInnerDescendantConstraint, getName, getNameInConfigFile, getOperationSaveValue, getPathInConfigFile, getSimpleWidgetId, getStatus, getStringConstraint, getSubComponent, getWidgetId, handleCopyPasteEvent, handleCopyPasteEvent, handleProcessEventException, isCopyPasteEvent, isEnabled, isForcedStatus, isModified, launchInvalidPositionException, parseSimpleConstraint, processGEvent, setBusyCursor, setCommentInConfigFile, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDisplayIsModifiedIndicator, setElement, setEnabled, setForcedStatus, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setName, setNameAndCommentInConfigFile, setNameInConfigFile, setPathInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidgetId, setWidth, setWindowBusyCursor, updateIsModifiedIndicator, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem
public static final double DEFAULT_ABS_MASS_TOL
public static final double DEFAULT_REL_MASS_TOLERANCE
public static final int TOL_LENGTH
public static final int THREE_DIM
public GPIntegrator() throws GPDateException, fr.cnes.genius.exception.GArithmeticException
GPDateException
- if some error concerning date definition occursfr.cnes.genius.exception.GArithmeticException
- if some error concerning timestep definition occurspublic GPIntegrator(String widgetId) throws GPDateException
widgetId
- widget identifier.GPDateException
- if some error concerning date definition occurspublic GPIntegrator(GPIntegrator.IntegratorTypeEnum[] displayedIntegrators, GPIntegrator.IntegratorTypeEnum integratorType) throws GPDateException
displayedIntegrators
- integrators to be displayedintegratorType
- default displayed integrator typeGPDateException
- if some error concerning date definition occurspublic GPIntegrator(String widgetId, GPIntegrator.IntegratorTypeEnum[] displayedIntegrators, GPIntegrator.IntegratorTypeEnum integratorType) throws GPDateException
widgetId
- widget identifier.displayedIntegrators
- integrators to be displayedintegratorType
- default displayed integrator typeGPDateException
- if some error concerning date definition occursprotected final void setDefaultConstraints()
setDefaultConstraints
in class fr.cnes.genius.lowLevel.GPanel
public void generic() throws fr.cnes.genius.exception.GException
generic
in class fr.cnes.genius.lowLevel.GPanel
fr.cnes.genius.exception.GException
public void read() throws fr.cnes.genius.exception.GException
read
in interface fr.cnes.genius.main.GReadWrite
fr.cnes.genius.exception.GException
public void write() throws fr.cnes.genius.exception.GException
write
in interface fr.cnes.genius.main.GReadWrite
fr.cnes.genius.exception.GException
public void display() throws fr.cnes.genius.exception.GException
display
in interface fr.cnes.genius.main.GDisplay
fr.cnes.genius.exception.GException
public void clear() throws fr.cnes.genius.exception.GException
clear
in interface fr.cnes.genius.main.GClear
fr.cnes.genius.exception.GException
public double getRKTimestep()
public double getDOPMinTimestep()
public double getDOPMaxTimestep()
public boolean isDOPBypassMinStep()
public GPIntegrator.Tolerances getDOPToleranceType()
public double[][] getDOPTolerances(fr.cnes.sirius.patrius.orbits.Orbit initialOrbit) throws fr.cnes.genius.exception.GException
initialOrbit
- the initial orbitfr.cnes.genius.exception.GException
- exception thrown if initial orbit is nullpublic double getAbsMassTolerance()
public double getRelMassTolerance()
public void setRKParameters(double timestep) throws fr.cnes.genius.exception.GArithmeticException
timestep
- timestepfr.cnes.genius.exception.GArithmeticException
- thrown if value is NaNpublic void setDOPParameters(double minStep, double maxStep, boolean bypassMinStep, GPIntegrator.Tolerances displayedTolerance) throws fr.cnes.genius.exception.GArithmeticException
minStep
- min timestepmaxStep
- max timestepbypassMinStep
- true if min step bypass should be activateddisplayedTolerance
- tolerance typefr.cnes.genius.exception.GArithmeticException
- thrown if one value is NaNpublic void setDOPTolerancesComplete(double[] absTol, double[] relTol) throws fr.cnes.genius.exception.GArithmeticException
absTol
- absolute tolerances (x7: x, y, z, vx, vy, vz, mass)relTol
- relative tolerances (x7: x, y, z, vx, vy, vz, mass)fr.cnes.genius.exception.GArithmeticException
- thrown if one value is NaNpublic void setDOPTolerancesReduced(double[] absTol, double[] relTol) throws fr.cnes.genius.exception.GArithmeticException
absTol
- absolute tolerances (x3: pos, vel, mass)relTol
- relative tolerances (x3: pos, vel, mass)fr.cnes.genius.exception.GArithmeticException
- thrown if one value is NaNpublic void setDOPTolerancesSimplified(double localPositionError) throws fr.cnes.genius.exception.GArithmeticException
localPositionError
- local position errorfr.cnes.genius.exception.GArithmeticException
- thrown if value is NaNpublic fr.cnes.sirius.patrius.math.ode.FirstOrderIntegrator getFirstOrderIntegrator(fr.cnes.sirius.patrius.orbits.Orbit initialOrbit) throws fr.cnes.genius.exception.GException
initialOrbit
- the initial orbitfr.cnes.genius.exception.GException
- exceptionpublic void after(fr.cnes.genius.main.GEvent e) throws fr.cnes.genius.exception.GException
after
in interface fr.cnes.genius.main.GListener
fr.cnes.genius.exception.GException
public void before(fr.cnes.genius.main.GEvent arg0) throws fr.cnes.genius.exception.GException
before
in interface fr.cnes.genius.main.GListener
fr.cnes.genius.exception.GException
public GPDop853 getDopPanel()
Copyright © 2019. All rights reserved.