TGainPattern
- The type of antenna gain pattern.TAntennaSignalProcessor
- The type of output antenna signal processor.public abstract class BaseReceivingAntennaExtension<TGainPattern extends BaseGainPattern,TAntennaSignalProcessor extends AntennaSignalProcessor<TGainPattern>> extends ObjectExtension implements IReceivingAntennaExtension<TGainPattern>
SignalPropagationGraph
for all incoming signals entering
its Owner
(get
/ set
) and processes them with a receiving BaseGainPattern
before passing them to its OutputSignalProcessor
(get
) signal processor. Constraints added as extensions
to link objects are taken into account when determining which links produce signals for the receiver.
If an incoming link has the IAccessResultService
,
it will only be evaluated during the SatisfactionIntervals
(get
) and will throw an
IllegalStateException
during the UnknownIntervals
(get
). Otherwise,
if an incoming link has the IAccessConstraintsService
, it will only produce signals at times when
it has access. All the constraints provided by the service will be combined in an AccessQueryAnd
except for any
CommunicationObjectConstraints
which should never be added to a link. In this case, an IllegalStateException
is thrown. Since a
CommunicationObjectConstraint
usually involves evaluating the link
when attempting to evaluate an object which occurs after the link, this would produce an infinite loop and
is not allowed.
Modifier | Constructor and Description |
---|---|
protected |
BaseReceivingAntennaExtension(BaseReceivingAntennaExtension<TGainPattern,TAntennaSignalProcessor> existingInstance,
CopyContext context)
Initializes a new instance as a copy of an existing instance.
|
protected |
BaseReceivingAntennaExtension(TGainPattern gainPattern)
Initializes a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
checkForSameDefinition(BaseReceivingAntennaExtension<TGainPattern,TAntennaSignalProcessor> other)
Checks to determine if another instance has the same definition as this instance and
returns
true if it does. |
protected boolean |
checkForSameDefinition(ObjectExtension 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. |
protected void |
freezeAggregatedObjects()
Called by
DefinitionalObject.freeze() to also freeze any objects that are considered to be a part of this object. |
TGainPattern |
getAntennaGainPattern()
Gets the gain pattern for this antenna.
|
protected AntennaSignalProcessor<TGainPattern> |
getAntennaSignalProcessor()
Gets the antenna signal processor which produces the antenna's signal output.
|
double |
getCrossPolarizationLeakage()
Gets the cross polarization leakage value.
|
SignalProcessor |
getOutputSignalProcessor()
Gets the
SignalProcessor which produces the antenna's signal output. |
ISignalSource |
getOutputSignalProcessorPrepolarizer()
Gets a signal evaluator which produces signals which have the antenna gain applied but not the polarization efficiency.
|
PolarizationSource |
getPolarizationSource()
Gets the polarization source.
|
Object |
getService(Class<?> serviceType)
Gets the service object of the specified type.
|
void |
setAntennaGainPattern(TGainPattern value)
Sets the gain pattern for this antenna.
|
protected void |
setAntennaSignalProcessor(AntennaSignalProcessor<TGainPattern> value)
Sets the antenna signal processor which produces the antenna's signal output.
|
void |
setCrossPolarizationLeakage(double value)
Sets the cross polarization leakage value.
|
void |
setPolarizationSource(PolarizationSource value)
Sets the polarization source.
|
checkForSameDefinition, getOwner
areSameDefinition, areSameDefinition, areSameDefinition, areSameDefinition, areSameDefinition, clone, collectionItemsAreSameDefinition, collectionItemsAreSameDefinition, collectionItemsAreSameDefinition, dictionaryItemsAreSameDefinition, freeze, getCollectionHashCode, getCollectionHashCode, getCollectionHashCode, getDefinitionHashCode, getDefinitionHashCode, getDefinitionHashCode, getDefinitionHashCode, getDefinitionHashCode, getDefinitionHashCode, getDictionaryHashCode, getIsFrozen, isSameDefinition, throwIfFrozen
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOwner
protected BaseReceivingAntennaExtension(TGainPattern gainPattern)
gainPattern
- The gain pattern for this antenna.protected BaseReceivingAntennaExtension(@Nonnull BaseReceivingAntennaExtension<TGainPattern,TAntennaSignalProcessor> 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(ObjectExtension 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 ObjectExtension
other
- The other instance to compare to this one.true
if the two objects are defined equivalently; otherwise false
.protected abstract boolean checkForSameDefinition(BaseReceivingAntennaExtension<TGainPattern,TAntennaSignalProcessor> 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()
BaseReceivingAntennaExtension.checkForSameDefinition(agi.foundation.infrastructure.ObjectExtension)
method.computeCurrentDefinitionHashCode
in class ObjectExtension
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 ObjectExtension
enumerator
- The enumerator that is informed of the dependencies of this object.protected void freezeAggregatedObjects()
DefinitionalObject.freeze()
to also freeze any objects that are considered to be a part of this object.
Derived classes which contain additional aggregated objects MUST override this method, call the base
implementation, and freeze aggregated objects introduced by the derived class. The objects that need to be
frozen in this method are frequently created in this object's constructor and are not settable via
properties.freezeAggregatedObjects
in class DefinitionalObject
public Object getService(Class<?> serviceType)
getService
in interface IServiceProvider
getService
in class ObjectExtension
serviceType
- An object that specifies the type of service object to get.null
if the service does not exist.ArgumentNullException
- Thrown when serviceType
is null
.public final SignalProcessor getOutputSignalProcessor()
SignalProcessor
which produces the antenna's signal output.getOutputSignalProcessor
in interface ISignalReceivedByAntennaService
protected final AntennaSignalProcessor<TGainPattern> getAntennaSignalProcessor()
protected final void setAntennaSignalProcessor(AntennaSignalProcessor<TGainPattern> value)
public final ISignalSource getOutputSignalProcessorPrepolarizer()
getOutputSignalProcessorPrepolarizer
in interface ISignalReceivedByAntennaPrepolarizerService
ISignalSource
which represents the received signals before polarization efficiency is applied.public final TGainPattern getAntennaGainPattern()
getAntennaGainPattern
in interface IReceivingAntennaExtension<TGainPattern extends BaseGainPattern>
public final void setAntennaGainPattern(TGainPattern value)
setAntennaGainPattern
in interface IReceivingAntennaExtension<TGainPattern extends BaseGainPattern>
public PolarizationSource getPolarizationSource()
public void setPolarizationSource(PolarizationSource value)
public final double getCrossPolarizationLeakage()
The cross polarization leakage is the minimum polarization efficiency possible, for example if the source polarization is left hand circular and the receive polarization is right hand polarization. Theoretically this efficiency in this case would be 0.0, but in practice a small amount of energy will leak through from the left hand to right hand. This value represents that leakage.
public final void setCrossPolarizationLeakage(double value)
The cross polarization leakage is the minimum polarization efficiency possible, for example if the source polarization is left hand circular and the receive polarization is right hand polarization. Theoretically this efficiency in this case would be 0.0, but in practice a small amount of energy will leak through from the left hand to right hand. This value represents that leakage.