Package org.seamcat.model.plugin.system
Class DefaultCorrelationDefinitions
- java.lang.Object
-
- org.seamcat.model.plugin.system.DefaultCorrelationDefinitions
-
- All Implemented Interfaces:
CorrelationDefinitions
public final class DefaultCorrelationDefinitions extends java.lang.Object implements CorrelationDefinitions
This is the anemic implementation ofCorrelationDefinitions
which only supports 'System Center' as target or position with. TheCorrelationMode
s are the built in None and Correlated
-
-
Field Summary
Fields Modifier and Type Field Description static DefaultCorrelationDefinitions
instance
static java.lang.String
point
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
allowCoLocation()
Indicates whether thisSystemPlugin
supports co-location or notjava.util.List<CorrelationMode>
getCorrelationModes()
The list of correlation modes supported by thisSystemPlugin
java.util.List<java.lang.String>
getInterfererTargetPointNames()
The list of names of points that can be used as correlation target points when thisSystemPlugin
is an interfering systemjava.util.List<java.lang.String>
getVictimCorrelationPoints()
The list of names of points that can be used as correlation source points when thisSystemPlugin
is a victim systemPoint2D
getVictimPosition(VictimResultCollector collector, java.lang.String relativeTo)
In the method getVictimCorrelationPoints a list of point names can be chosen as the victim system position.
-
-
-
Field Detail
-
point
public static final java.lang.String point
- See Also:
- Constant Field Values
-
instance
public static final DefaultCorrelationDefinitions instance
-
-
Method Detail
-
getVictimCorrelationPoints
public java.util.List<java.lang.String> getVictimCorrelationPoints()
Description copied from interface:CorrelationDefinitions
The list of names of points that can be used as correlation source points when thisSystemPlugin
is a victim system- Specified by:
getVictimCorrelationPoints
in interfaceCorrelationDefinitions
- Returns:
- list of correlation point names
-
getVictimPosition
public Point2D getVictimPosition(VictimResultCollector collector, java.lang.String relativeTo)
Description copied from interface:CorrelationDefinitions
In the method getVictimCorrelationPoints a list of point names can be chosen as the victim system position. This method is then invoked with the chosen point name and here it must be mapped to an actual point.- Specified by:
getVictimPosition
in interfaceCorrelationDefinitions
- Parameters:
collector
- victim system collected resultsrelativeTo
- name of the position which should be mapped to a point- Returns:
- point to be used for positioning the interfering system
-
getInterfererTargetPointNames
public java.util.List<java.lang.String> getInterfererTargetPointNames()
Description copied from interface:CorrelationDefinitions
The list of names of points that can be used as correlation target points when thisSystemPlugin
is an interfering system- Specified by:
getInterfererTargetPointNames
in interfaceCorrelationDefinitions
- Returns:
- list of correlation point names
-
getCorrelationModes
public java.util.List<CorrelationMode> getCorrelationModes()
Description copied from interface:CorrelationDefinitions
The list of correlation modes supported by thisSystemPlugin
- Specified by:
getCorrelationModes
in interfaceCorrelationDefinitions
- Returns:
- supported correlation modes
-
allowCoLocation
public boolean allowCoLocation()
Description copied from interface:CorrelationDefinitions
Indicates whether thisSystemPlugin
supports co-location or not- Specified by:
allowCoLocation
in interfaceCorrelationDefinitions
- Returns:
- supports co-location
-
-