public abstract class OpticalGainPattern extends BaseGainPattern
Modifier | Constructor and Description |
---|---|
protected |
OpticalGainPattern()
Initializes a new instance.
|
protected |
OpticalGainPattern(double apertureDiameter,
double divergenceAngle,
double efficiency,
double pointingError)
Create a new instance based on the given aperture diameter, divergence angle, efficiency, and pointing error.
|
protected |
OpticalGainPattern(OpticalGainPattern existingInstance,
CopyContext context)
Initializes a new instance as a copy of an existing instance.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkForSameDefinition(BaseGainPattern other)
Checks to determine if another instance has the same definition as this instance and
returns
true if it does. |
protected abstract boolean |
checkForSameDefinition(OpticalGainPattern 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.
|
double |
getApertureDiameter()
Gets the aperture diameter, in meters.
|
double |
getDivergenceAngle()
Gets the divergence angle, in radians.
|
double |
getEfficiency()
Gets the efficiency, as a ratio between zero and one.
|
double |
getPointingError()
Gets the pointing error angle, in radians.
|
void |
setApertureDiameter(double value)
Sets the aperture diameter, in meters.
|
void |
setDivergenceAngle(double value)
Sets the divergence angle, in radians.
|
void |
setEfficiency(double value)
Sets the efficiency, as a ratio between zero and one.
|
void |
setPointingError(double value)
Sets the pointing error angle, in radians.
|
protected void |
validateProperties()
Validates that required properties and parameters are configured correctly in order to get an
evaluator for this instance.
|
checkForSameDefinition, getAntennaGainEvaluator, getAntennaGainEvaluator, getApplyAntennaGainEvaluator, getService
areSameDefinition, areSameDefinition, areSameDefinition, areSameDefinition, areSameDefinition, clone, collectionItemsAreSameDefinition, collectionItemsAreSameDefinition, collectionItemsAreSameDefinition, dictionaryItemsAreSameDefinition, enumerateDependencies, freeze, freezeAggregatedObjects, getCollectionHashCode, getCollectionHashCode, getCollectionHashCode, getDefinitionHashCode, getDefinitionHashCode, getDefinitionHashCode, getDefinitionHashCode, getDefinitionHashCode, getDefinitionHashCode, getDictionaryHashCode, getIsFrozen, isSameDefinition, throwIfFrozen
protected OpticalGainPattern()
protected OpticalGainPattern(double apertureDiameter, double divergenceAngle, double efficiency, double pointingError)
apertureDiameter
- The diameter of the optical circular aperture, in meters.divergenceAngle
- The beam divergence angle, in radians. Typically represents the angle at which the gain is 1/e2 below the on axis (boresight) value.efficiency
- The efficiency of the optical antenna.pointingError
- The pointing error angle, in radians, for the optical antenna. The pointing error angle is defined as a constant offset
which is added to the off-boresight angle, when computing the gain value. The off-boresight angle is the angle between the boresight vector and the link direction vector.protected OpticalGainPattern(@Nonnull OpticalGainPattern 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(BaseGainPattern 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 BaseGainPattern
other
- The other instance to compare to this one.true
if the two objects are defined equivalently; otherwise false
.protected abstract boolean checkForSameDefinition(OpticalGainPattern 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()
OpticalGainPattern.checkForSameDefinition(agi.foundation.communications.antennas.BaseGainPattern)
method.computeCurrentDefinitionHashCode
in class BaseGainPattern
public final double getApertureDiameter()
public final void setApertureDiameter(double value)
public final double getDivergenceAngle()
public final void setDivergenceAngle(double value)
public final double getEfficiency()
public final void setEfficiency(double value)
public final double getPointingError()
public final void setPointingError(double value)
protected void validateProperties()
BaseGainPattern.getApplyAntennaGainEvaluator(agi.foundation.EvaluatorGroup, agi.foundation.geometry.Vector, agi.foundation.geometry.Axes, agi.foundation.communications.ISignalSource, agi.foundation.communications.SignalPropagationGraph)
, as well as validate their own properties.