Class MoveDetectionConfig

java.lang.Object
com.deltaxml.core.config.moves.MoveDetectionConfig

public class MoveDetectionConfig extends Object
This class configures move detection.
  • Constructor Details

    • MoveDetectionConfig

      public MoveDetectionConfig()
      Initialise a MoveDetectionConfig without params. Will default to unrestricted move detection and an empty list of move candidates.
    • MoveDetectionConfig

      public MoveDetectionConfig(List<MoveCandidate> moveCandidates)
      Initialises an unrestricted MoveDetectionConfig with a list of move candidates.
      Parameters:
      moveCandidates - A list of MoveCandidate objects.
    • MoveDetectionConfig

      public MoveDetectionConfig(MoveDetectionType moveDetectionType, List<MoveCandidate> moveCandidates)
      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

      public List<MoveCandidate> getMoveCandidates()
      Gets the list of MoveCandidates.
      Returns:
      List of MoveCandidates.
    • setMoveCandidates

      public void setMoveCandidates(List<MoveCandidate> moveCandidates)
      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

      public MoveDetectionType getMoveDetectionType()
      Gets the MoveDetectionType value.
      Returns:
      Move detection type as defined the MoveDetectionType enumeration.
    • setMoveDetectionType

      public void setMoveDetectionType(MoveDetectionType moveDetectionType)
      Sets the moveDetectionType.
      Parameters:
      moveDetectionType - Move detection type as defined the MoveDetectionType enumeration.