Class MarkMergeProposer
- All Implemented Interfaces:
CompatibleWithMark
public abstract class MarkMergeProposer
extends ProposerBean<MarkMergeProposer>
implements CompatibleWithMark
An abstract base class for proposing merges between marks.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the points associated with the first mark from the last proposal.Gets the points associated with the second mark from the last proposal.propose(VoxelizedMarkMemo mark1, VoxelizedMarkMemo mark2, ProposerContext context) Proposes a merge between two marks.Methods inherited from class org.anchoranalysis.mpp.bean.MarksBean
initializerForMarksBeansMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitializationMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.anchoranalysis.mpp.mark.CompatibleWithMark
isCompatibleWith
-
Constructor Details
-
MarkMergeProposer
public MarkMergeProposer()
-
-
Method Details
-
propose
public abstract Optional<Mark> propose(VoxelizedMarkMemo mark1, VoxelizedMarkMemo mark2, ProposerContext context) throws ProposalAbnormalFailureException Proposes a merge between two marks.- Parameters:
mark1- the first mark to mergemark2- the second mark to mergecontext- the context for the proposal- Returns:
- an Optional containing the merged mark, or empty if no merge is proposed
- Throws:
ProposalAbnormalFailureException- if the proposal fails abnormally
-
getLastPoints1
Gets the points associated with the first mark from the last proposal.- Returns:
- an Optional containing a list of points, or empty if no points are available
-
getLastPoints2
Gets the points associated with the second mark from the last proposal.- Returns:
- an Optional containing a list of points, or empty if no points are available
-