TGainPattern
- The type of antenna gain pattern.public abstract class BaseTransmittingAntennaExtension<TGainPattern extends BaseGainPattern> extends ObjectExtension implements ITransmittingAntennaExtension<TGainPattern>
ISignalTransmissionService
.Modifier | Constructor and Description |
---|---|
protected |
BaseTransmittingAntennaExtension(BaseTransmittingAntennaExtension<TGainPattern> existingInstance,
CopyContext context)
Initializes a new instance as a copy of an existing instance.
|
protected |
BaseTransmittingAntennaExtension(SignalProcessor inputSignalProcessor,
TGainPattern antennaGainPattern)
Initialize a new instance based on the given gain pattern and a signal processor which produces the
set of signals to transmit.
|
protected |
BaseTransmittingAntennaExtension(SignalProcessor input,
TGainPattern antennaGainPattern,
PolarizationSource polarizationSource)
Initialize a new instance based on the given gain pattern, a signal processor which produces the
set of signals to transmit, and a polarization source which generates the transmit polarization.
|
protected |
BaseTransmittingAntennaExtension(TGainPattern antennaGainPattern)
Initializes a new instance with a given antenna gain pattern.
|
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
checkForSameDefinition(BaseTransmittingAntennaExtension<TGainPattern> 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. |
TGainPattern |
getAntennaGainPattern()
Gets the gain pattern for this antenna.
|
SignalProcessor |
getInputSignalProcessor()
Gets the signal processor which produces the set of signals to transmit through the antenna.
|
PolarizationSource |
getPolarizationSource()
Gets the polarization source.
|
Object |
getService(Class<?> serviceType)
Gets the service object of the specified type.
|
Axes |
getSignalTransmissionAxes()
Gets the Axes associated with signal transmission.
|
SignalEvaluator |
getSignalTransmissionEvaluator(EvaluatorGroup group,
Vector reflectedVector,
SignalPropagationGraph graph)
Gets an evaluator which produces the transmitted signal after applying the gain in the link direction.
|
void |
setAntennaGainPattern(TGainPattern value)
Sets the gain pattern for this antenna.
|
void |
setInputSignalProcessor(SignalProcessor value)
Sets the signal processor which produces the set of signals to transmit through the antenna.
|
void |
setPolarizationSource(PolarizationSource value)
Sets the polarization source.
|
checkForSameDefinition, getOwner
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOwner
protected BaseTransmittingAntennaExtension(TGainPattern antennaGainPattern)
antennaGainPattern
- The gain pattern to apply to incoming signals based on the angle off of the
boresight (z-axis) of the parent object's Axes
.protected BaseTransmittingAntennaExtension(SignalProcessor inputSignalProcessor, TGainPattern antennaGainPattern)
inputSignalProcessor
- The signal processor which produces the set of signals to transmit.antennaGainPattern
- The gain pattern to apply to incoming signals based on the angle off of the
boresight (z-axis) of the parent object's Axes
.protected BaseTransmittingAntennaExtension(SignalProcessor input, TGainPattern antennaGainPattern, PolarizationSource polarizationSource)
input
- The signal processor which produces the set of signals to transmit.antennaGainPattern
- The gain pattern to apply to incoming signals based on the angle off of the
boresight (z-axis) of the parent object's Axes
.polarizationSource
- The polarization source for modeling polarization efficiency.protected BaseTransmittingAntennaExtension(@Nonnull BaseTransmittingAntennaExtension<TGainPattern> 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(BaseTransmittingAntennaExtension<TGainPattern> 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()
BaseTransmittingAntennaExtension.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.public SignalProcessor getInputSignalProcessor()
getInputSignalProcessor
in interface ISignalToTransmitService
public void setInputSignalProcessor(SignalProcessor value)
public final PolarizationSource getPolarizationSource()
public final void setPolarizationSource(PolarizationSource value)
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 TGainPattern getAntennaGainPattern()
getAntennaGainPattern
in interface ITransmittingAntennaExtension<TGainPattern extends BaseGainPattern>
public final void setAntennaGainPattern(TGainPattern value)
setAntennaGainPattern
in interface ITransmittingAntennaExtension<TGainPattern extends BaseGainPattern>
public SignalEvaluator getSignalTransmissionEvaluator(EvaluatorGroup group, Vector reflectedVector, SignalPropagationGraph graph)
getSignalTransmissionEvaluator
in interface ISignalTransmissionService
group
- The evaluator group in which to create the evaluator.reflectedVector
- The link geometry used by the antenna gain pattern.graph
- The graph of the communication links used to propagate signals.ArgumentNullException
- Thrown if group
, reflectedVector
, or graph
is null
.PropertyInvalidException
- Thrown if Owner
(get
/ set
), InputSignalProcessor
(get
/ set
), or AntennaGainPattern
(get
/ set
) is null
.public final Axes getSignalTransmissionAxes()
getSignalTransmissionAxes
in interface ISignalTransmissionService