public abstract class ScalarAtmosphericDensity extends Scalar
Modifier | Constructor and Description |
---|---|
protected |
ScalarAtmosphericDensity()
Initializes a
Scalar representing atmospheric density. |
protected |
ScalarAtmosphericDensity(Point targetPoint,
SolarGeophysicalData solarGeophysicalData)
Initializes a
Scalar representing atmospheric density using the target point
and solar-geophysical data. |
protected |
ScalarAtmosphericDensity(Point targetPoint,
SolarGeophysicalData solarGeophysicalData,
CentralBody centralBody,
Vector sunVector)
Initializes a
Scalar representing atmospheric density using the target point
and solar-geophysical data. |
protected |
ScalarAtmosphericDensity(ScalarAtmosphericDensity existingInstance,
CopyContext context)
Initializes a new instance as a copy of an existing instance.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkForSameDefinition(Scalar other)
Checks to determine if another instance has the same definition as this instance and
returns
true if it does. |
protected abstract boolean |
checkForSameDefinition(ScalarAtmosphericDensity other)
Checks to determine if another instance has the same definition as this instance and
returns
true if it does. |
protected int |
computeCurrentDefinitionHashCode()
Computes a hash code based on the current properties of this object.
|
void |
enumerateDependencies(DependencyEnumerator enumerator)
Enumerates the dependencies of this object by calling
DependencyEnumerator#enumerate(T) for each object that this object directly depends upon. |
CentralBody |
getCentralBody()
Gets the central body of the atmosphere described by the density model.
|
abstract double |
getLowerHeightLimit()
Gets the lower bound of the height (in meters above the ellipsoid) for which the density model is valid.
|
SolarGeophysicalData |
getSolarGeophysicalData()
Gets the solar and magnetic flux information.
|
Point |
getTargetPoint()
Gets the target point describing the time-varying position at which density is
to be calculated.
|
abstract double |
getUpperHeightLimit()
Gets the upper bound of the height (in meters above the ellipsoid) above which the density model will return a value of zero.
|
Vector |
getVectorToSun()
Gets the vector to the sun to use for modeling the effects of solar radiation on the atmosphere.
|
void |
setApparentSunPosition()
|
void |
setCentralBody(CentralBody value)
Sets the central body of the atmosphere described by the density model.
|
void |
setSolarGeophysicalData(SolarGeophysicalData value)
Sets the solar and magnetic flux information.
|
void |
setTargetPoint(Point value)
Sets the target point describing the time-varying position at which density is
to be calculated.
|
void |
setTrueSunPosition()
|
abstract void |
setUpperHeightLimit(double value)
Sets the upper bound of the height (in meters above the ellipsoid) above which the density model will return a value of zero.
|
void |
setVectorToSun(Vector value)
Sets the vector to the sun to use for modeling the effects of solar radiation on the atmosphere.
|
add, add, add, add, add, checkForSameDefinition, createScalarDerivative, divide, divide, divide, divide, divide, getEvaluator, getEvaluator, multiply, multiply, multiply, multiply, multiply, power, subtract, subtract, subtract, subtract, subtract, toScalar
areSameDefinition, areSameDefinition, areSameDefinition, areSameDefinition, areSameDefinition, clone, collectionItemsAreSameDefinition, collectionItemsAreSameDefinition, collectionItemsAreSameDefinition, dictionaryItemsAreSameDefinition, freeze, freezeAggregatedObjects, getCollectionHashCode, getCollectionHashCode, getCollectionHashCode, getDefinitionHashCode, getDefinitionHashCode, getDefinitionHashCode, getDefinitionHashCode, getDefinitionHashCode, getDefinitionHashCode, getDictionaryHashCode, getIsFrozen, isSameDefinition, throwIfFrozen
protected ScalarAtmosphericDensity()
protected ScalarAtmosphericDensity(Point targetPoint, SolarGeophysicalData solarGeophysicalData)
Scalar
representing atmospheric density using the target point
and solar-geophysical data.targetPoint
- The target point of the density calculations.solarGeophysicalData
- Solar and magnetic flux information.protected ScalarAtmosphericDensity(Point targetPoint, SolarGeophysicalData solarGeophysicalData, CentralBody centralBody, Vector sunVector)
Scalar
representing atmospheric density using the target point
and solar-geophysical data.targetPoint
- The target point of the density calculations.solarGeophysicalData
- Solar and magnetic flux information.centralBody
- The body whose atmosphere to model. Usually this is the Earth
(get
).sunVector
- The vector to use when modeling the direction to the sun with respect to the principal frame of the CentralBody
(get
/ set
).protected ScalarAtmosphericDensity(@Nonnull ScalarAtmosphericDensity existingInstance, @Nonnull CopyContext context)
See ICloneWithContext.clone(CopyContext)
for more information about how to implement this constructor
in a derived class.
existingInstance
- The existing instance to copy.context
- A CopyContext
that controls the depth of the copy.ArgumentNullException
- Thrown when existingInstance
or context
is null
.protected final boolean checkForSameDefinition(Scalar other)
true
if it does. Derived classes MUST override this method and check
all new fields introduced by the derived class for definitional equivalence. It is NOT necessary
to check base class fields because the base class will already have done that. When overriding this method,
you should NOT call the base implementation because it will return false
for all derived-class instances.
Derived classes should check the type of other
to preserve the symmetric nature of IEquatableDefinition.isSameDefinition(java.lang.Object)
.checkForSameDefinition
in class Scalar
other
- The other instance to compare to this one.true
if the two objects are defined equivalently; otherwise false
.protected abstract boolean checkForSameDefinition(ScalarAtmosphericDensity other)
true
if it does. Derived classes MUST override this method and check
all new fields introduced by the derived class for definitional equivalence. It is NOT necessary
to check base class fields because the base class will already have done that. When overriding this method,
you should NOT call the base implementation because it will return false
for all derived-class instances.
Derived classes should check the type of other
to preserve the symmetric nature of IEquatableDefinition.isSameDefinition(java.lang.Object)
.other
- The other instance to compare to this one.true
if the two objects are defined equivalently; otherwise false
.protected int computeCurrentDefinitionHashCode()
ScalarAtmosphericDensity.checkForSameDefinition(agi.foundation.geometry.Scalar)
method.computeCurrentDefinitionHashCode
in class Scalar
public void enumerateDependencies(DependencyEnumerator enumerator)
DependencyEnumerator#enumerate(T)
for each object that this object directly depends upon.
Derived classes which contain additional dependencies MUST override this method, call the base
implementation, and enumerate dependencies introduced by the derived class.enumerateDependencies
in interface IEnumerateDependencies
enumerateDependencies
in class DefinitionalObject
enumerator
- The enumerator that is informed of the dependencies of this object.public abstract double getLowerHeightLimit()
public abstract double getUpperHeightLimit()
public abstract void setUpperHeightLimit(double value)
public final Point getTargetPoint()
public final void setTargetPoint(Point value)
public final Vector getVectorToSun()
apparent displacement
from the Earth
(get
)
to the Sun
(get
) based on light time delay and aberration from the relative
motion of the celestial bodies. Setting this to use the true displacement
will be slightly less accurate but take less time to compute. However, not all density models will use the Sun's position.public final void setVectorToSun(Vector value)
apparent displacement
from the Earth
(get
)
to the Sun
(get
) based on light time delay and aberration from the relative
motion of the celestial bodies. Setting this to use the true displacement
will be slightly less accurate but take less time to compute. However, not all density models will use the Sun's position.public final void setApparentSunPosition()
public final void setTrueSunPosition()
public final SolarGeophysicalData getSolarGeophysicalData()
public final void setSolarGeophysicalData(SolarGeophysicalData value)
public CentralBody getCentralBody()
Earth
(get
) by default.public void setCentralBody(CentralBody value)
Earth
(get
) by default.