public abstract class ScalarOccultation extends Scalar
 A class that provides evaluators for percentage of occultation/eclipse at a position, as well as EclipseType.
 
The percentage runs from 0.0 (completely lit) to 1.0 (total eclipse).
| Modifier | Constructor and Description | 
|---|---|
protected  | 
ScalarOccultation()
Creates a new Scalar with a  
VectorType (get / set) of RadiationVectorType.CORRECT_FOR_LIGHT_TIME_DELAY_AND_ABERRATION. | 
protected  | 
ScalarOccultation(CentralBody illuminatingBody,
                 Point targetPoint,
                 CentralBody... occludingBodies)
Creates a new Scalar from the given illuminating body, target point, and occluding bodies. 
 | 
protected  | 
ScalarOccultation(CentralBody illuminatingBody,
                 Point targetPoint,
                 Iterable<CentralBody> occludingBodies)
Creates a new Scalar from the given illuminating body, target point, and occluding bodies. 
 | 
protected  | 
ScalarOccultation(ScalarOccultation 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(ScalarOccultation 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. 
 | 
protected void | 
createEvaluatorHelper(EvaluatorGroup group,
                     RadiationVectorType vectorType,
                     ArrayList<VectorEvaluator>[] platformToOccluding,
                     ArrayList<VectorEvaluator>[] platformToIlluminating,
                     ArrayList<Ellipsoid>[] occludingShapes,
                     Ellipsoid[] illuminatingShape)
Checks all properties and creates the vectors required to evaluate occultation fractions. 
 | 
protected static double[] | 
eclipseAngles(Ellipsoid eclipsingBody,
             Cartesian platformToEclipsing,
             Cartesian platformToIlluminating,
             Ellipsoid illuminatingBody)
Returns the angles needed for the various eclipse calculations in the format
    [relative angle, eclipse body half angle, illuminating body half angle]. 
 | 
void | 
enumerateDependencies(DependencyEnumerator enumerator)
Enumerates the dependencies of this object by calling
     
DependencyEnumerator#enumerate(T) for each object that this object directly depends upon. | 
List<Evaluator<EclipseType>> | 
getEclipseTypeEvaluators()
 | 
abstract List<Evaluator<EclipseType>> | 
getEclipseTypeEvaluators(EvaluatorGroup group)
 | 
CentralBody | 
getIlluminatingBody()
Gets the body to use for the illuminating body (commonly the sun). 
 | 
ReferenceFrame | 
getInertialFrame()
    Gets or sets an alternate inertial reference frame. 
 | 
List<CentralBody> | 
getOccludingBodies()
Gets a list of bodies which obscure the illuminating body. 
 | 
Point | 
getTargetPoint()
Gets the  
Point representing the location at which
    the occultation factor is being calculated. | 
RadiationVectorType | 
getVectorType()
Gets whether or not to use true position to calculate the occultation, or apparent position adjusted for aberration. 
 | 
void | 
setIlluminatingBody(CentralBody value)
Sets the body to use for the illuminating body (commonly the sun). 
 | 
void | 
setInertialFrame(ReferenceFrame value)
    Gets or sets an alternate inertial reference frame. 
 | 
void | 
setTargetPoint(Point value)
Sets the  
Point representing the location at which
    the occultation factor is being calculated. | 
void | 
setVectorType(RadiationVectorType value)
Sets whether or not to use true position to calculate the occultation, or apparent position adjusted for aberration. 
 | 
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, toScalarareSameDefinition, areSameDefinition, areSameDefinition, areSameDefinition, areSameDefinition, clone, collectionItemsAreSameDefinition, collectionItemsAreSameDefinition, collectionItemsAreSameDefinition, dictionaryItemsAreSameDefinition, freeze, freezeAggregatedObjects, getCollectionHashCode, getCollectionHashCode, getCollectionHashCode, getDefinitionHashCode, getDefinitionHashCode, getDefinitionHashCode, getDefinitionHashCode, getDefinitionHashCode, getDefinitionHashCode, getDictionaryHashCode, getIsFrozen, isSameDefinition, throwIfFrozenprotected ScalarOccultation()
protected ScalarOccultation(CentralBody illuminatingBody, Point targetPoint, @Nonnull CentralBody... occludingBodies)
illuminatingBody - The illuminating body.targetPoint - The target point.occludingBodies - The occluding bodies.protected ScalarOccultation(CentralBody illuminatingBody, Point targetPoint, @Nonnull Iterable<CentralBody> occludingBodies)
illuminatingBody - The illuminating body.targetPoint - The target point.occludingBodies - The occluding bodies.protected ScalarOccultation(@Nonnull ScalarOccultation 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 Scalarother - The other instance to compare to this one.true if the two objects are defined equivalently; otherwise false.protected abstract boolean checkForSameDefinition(ScalarOccultation 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()
ScalarOccultation.checkForSameDefinition(agi.foundation.geometry.Scalar) method.computeCurrentDefinitionHashCode in class Scalarpublic 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 IEnumerateDependenciesenumerateDependencies in class DefinitionalObjectenumerator - The enumerator that is informed of the dependencies of this object.public final Point getTargetPoint()
Point representing the location at which
    the occultation factor is being calculated.public final void setTargetPoint(Point value)
Point representing the location at which
    the occultation factor is being calculated.public final CentralBody getIlluminatingBody()
public final void setIlluminatingBody(CentralBody value)
public final ReferenceFrame getInertialFrame()
    Gets or sets an alternate inertial reference frame. This property is null by default, and
    if it remains null, then the InertialFrame (get / set)
    of the IlluminatingBody (get / set) will be used.
    
    The inertial frame is used to correct the position vectors for light time delay and aberration
    if the appropriate RadiationVectorType is set.
    
public final void setInertialFrame(ReferenceFrame value)
    Gets or sets an alternate inertial reference frame. This property is null by default, and
    if it remains null, then the InertialFrame (get / set)
    of the IlluminatingBody (get / set) will be used.
    
    The inertial frame is used to correct the position vectors for light time delay and aberration
    if the appropriate RadiationVectorType is set.
    
@Nonnull public final List<CentralBody> getOccludingBodies()
@Nonnull public final RadiationVectorType getVectorType()
RadiationVectorType.CORRECT_FOR_LIGHT_TIME_DELAY_AND_ABERRATION.public final void setVectorType(@Nonnull RadiationVectorType value)
RadiationVectorType.CORRECT_FOR_LIGHT_TIME_DELAY_AND_ABERRATION.@Nonnull protected static double[] eclipseAngles(@Nonnull Ellipsoid eclipsingBody, @Nonnull Cartesian platformToEclipsing, @Nonnull Cartesian platformToIlluminating, @Nonnull Ellipsoid illuminatingBody)
eclipsingBody - The eclipsing body.platformToEclipsing - The vector from the platform to the eclipsing body, in the fixed frame of the eclipsing body.platformToIlluminating - The vector from the platform to the illuminating body, in the fixed frame of the eclipsing body.illuminatingBody - The illuminating body.@Nonnull public abstract List<Evaluator<EclipseType>> getEclipseTypeEvaluators(@Nonnull EvaluatorGroup group)
group - The group with which to associate the new evaluator.  By grouping evaluators
    that are often evaluated at the same Julian dates, common computations can be performed only once
    for the entire group instead of multiple times for each evaluator.EclipseType enums.@Nonnull public final List<Evaluator<EclipseType>> getEclipseTypeEvaluators()
EclipseType enums.protected final void createEvaluatorHelper(EvaluatorGroup group, @Nonnull RadiationVectorType vectorType, @Nonnull ArrayList<VectorEvaluator>[] platformToOccluding, @Nonnull ArrayList<VectorEvaluator>[] platformToIlluminating, @Nonnull ArrayList<Ellipsoid>[] occludingShapes, @Nonnull Ellipsoid[] illuminatingShape)
group - The group used for the created definitional objects.vectorType - The type of the directional vector, which can be either true or account for aberration and light time delay.platformToOccluding - A list of observer to occluding body vectors.platformToIlluminating - A list of observer to the illuminating body vectors.occludingShapes - A list of Ellipsoids that represent the occluding bodies.illuminatingShape - The Ellipsoid that represents the illuminating shape.PropertyInvalidException - Thrown when TargetPoint (get / set), IlluminatingBody (get / set), OccludingBodies (get), 
    or any occluding body is null.