Class MarkProposer
Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<T,MarksInitialization>
org.anchoranalysis.mpp.bean.MarksBean<T>
org.anchoranalysis.mpp.bean.proposer.ProposerBean<MarkProposer>
org.anchoranalysis.mpp.bean.proposer.MarkProposer
- All Implemented Interfaces:
CompatibleWithMark
public abstract class MarkProposer extends ProposerBean<MarkProposer> implements CompatibleWithMark
An abstract base class for proposing changes to a mark.
-
Constructor Summary
Constructors Constructor Description MarkProposer() -
Method Summary
Modifier and Type Method Description abstract booleanpropose(VoxelizedMarkMemo inputMark, ProposerContext context)Proposes changes to the input mark according to the internal rules of the proposer.Methods 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, toString
-
Constructor Details
-
MarkProposer
public MarkProposer()
-
-
Method Details
-
propose
public abstract boolean propose(VoxelizedMarkMemo inputMark, ProposerContext context) throws ProposalAbnormalFailureExceptionProposes changes to the input mark according to the internal rules of the proposer.- Parameters:
inputMark- the mark to be modifiedcontext- the context for the proposal- Returns:
- true if changes were proposed and applied, false otherwise
- Throws:
ProposalAbnormalFailureException- if the proposal fails abnormally
-