Class SystemLinkImpl<T extends SystemLink>
- java.lang.Object
-
- org.seamcat.model.simulation.result.SystemLinkImpl<T>
-
- All Implemented Interfaces:
SystemLink<T>
- Direct Known Subclasses:
DefaultInterfererImpl
,DefaultVictimImpl
public abstract class SystemLinkImpl<T extends SystemLink> extends java.lang.Object implements SystemLink<T>
-
-
Constructor Summary
Constructors Constructor Description SystemLinkImpl(AntennaGain antennaGain, LinkResult linkResult)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AntennaGain
getAntennaGain()
The antenna gain of this link, i.e.LinkResult
getLinkResult()
All the data for this particular link result, e.g.boolean
isSameRx(T other)
Used by the visualizer to display the Event Result.boolean
isSameTx(T other)
Used by the visualizer to display the Event Result.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.seamcat.model.simulation.result.SystemLink
getRxName, getTxName
-
-
-
-
Constructor Detail
-
SystemLinkImpl
public SystemLinkImpl(AntennaGain antennaGain, LinkResult linkResult)
-
-
Method Detail
-
getAntennaGain
public AntennaGain getAntennaGain()
Description copied from interface:SystemLink
The antenna gain of this link, i.e. tx -> rx connection- Specified by:
getAntennaGain
in interfaceSystemLink<T extends SystemLink>
-
getLinkResult
public LinkResult getLinkResult()
Description copied from interface:SystemLink
All the data for this particular link result, e.g. antenna heights, location, path loss, etc.- Specified by:
getLinkResult
in interfaceSystemLink<T extends SystemLink>
-
isSameRx
public boolean isSameRx(T other)
Description copied from interface:SystemLink
Used by the visualizer to display the Event Result. An Interferer will only be called with interferers of its own system. For instance if base stations are generated as interferers usually many connections will belong to the same base station. For the visualizer to understand this the method here is used.- Specified by:
isSameRx
in interfaceSystemLink<T extends SystemLink>
- Parameters:
other
- another link of the same system- Returns:
- whether the other link originates from the same rx as the enclosing interferer
-
isSameTx
public boolean isSameTx(T other)
Description copied from interface:SystemLink
Used by the visualizer to display the Event Result. An Interferer will only be called with interferers of its own system. For instance if base stations are generated as interferers usually many connections will belong to the same base station. For the visualizer to understand this the method here is used.- Specified by:
isSameTx
in interfaceSystemLink<T extends SystemLink>
- Parameters:
other
- another link of the same system- Returns:
- whether the other link originates from the same tx as the enclosing interferer
-
-