Package com.deltaxml.core.config.moves
Class MoveDetectionConfig
java.lang.Object
com.deltaxml.core.config.moves.MoveDetectionConfig
This class configures move detection.
-
Constructor Summary
ConstructorsConstructorDescriptionInitialise a MoveDetectionConfig without params.MoveDetectionConfig(MoveDetectionType moveDetectionType, List<MoveCandidate> moveCandidates) Initialises a MoveDetectionConfig for given parameters.MoveDetectionConfig(List<MoveCandidate> moveCandidates) Initialises an unrestricted MoveDetectionConfig with a list of move candidates. -
Method Summary
Modifier and TypeMethodDescriptionGets the list of MoveCandidates.Gets the MoveDetectionType value.booleanGets the value for showMoveSource.booleanQuery if move processing is enabled.voidsetEnabled(boolean enabled) Enable or disable move processing.voidsetMoveCandidates(List<MoveCandidate> moveCandidates) Sets the list of MoveCandidates.voidsetMoveDetectionType(MoveDetectionType moveDetectionType) Sets the moveDetectionType.voidsetShowMoveSource(boolean showMoveSource) Sets showMoveSource.
-
Constructor Details
-
MoveDetectionConfig
public MoveDetectionConfig()Initialise a MoveDetectionConfig without params. Will default to unrestricted move detection and an empty list of move candidates. -
MoveDetectionConfig
Initialises an unrestricted MoveDetectionConfig with a list of move candidates.- Parameters:
moveCandidates- A list of MoveCandidate objects.
-
MoveDetectionConfig
Initialises a MoveDetectionConfig for given parameters.- Parameters:
moveDetectionType- Move detection type as defined in the MoveDetectionType enum.moveCandidates- A list of MoveCandidate objects.
-
-
Method Details
-
isEnabled
public boolean isEnabled()Query if move processing is enabled.- Returns:
- a boolean where true represents enabled, false represents disabled.
-
setEnabled
public void setEnabled(boolean enabled) Enable or disable move processing.- Parameters:
enabled- Set to true to enable and false to disable moves processing.
-
getMoveCandidates
Gets the list of MoveCandidates.- Returns:
- List of MoveCandidates.
-
setMoveCandidates
Sets the list of MoveCandidates.- Parameters:
moveCandidates- The List of MoveCandidates to be set.
-
getShowMoveSource
public boolean getShowMoveSource()Gets the value for showMoveSource.- Returns:
- showMoveSource boolean value.
-
setShowMoveSource
public void setShowMoveSource(boolean showMoveSource) Sets showMoveSource.- Parameters:
showMoveSource- Boolean value to be set to showMoveSource.
-
getMoveDetectionType
Gets the MoveDetectionType value.- Returns:
- Move detection type as defined the MoveDetectionType enumeration.
-
setMoveDetectionType
Sets the moveDetectionType.- Parameters:
moveDetectionType- Move detection type as defined the MoveDetectionType enumeration.
-