Class MarkWithIdentifierFactory
Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<T,NullInitialization>
org.anchoranalysis.bean.NullParametersBean<MarkWithIdentifierFactory>
org.anchoranalysis.mpp.bean.mark.factory.MarkWithIdentifierFactory
public class MarkWithIdentifierFactory extends NullParametersBean<MarkWithIdentifierFactory>
A factory for creating marks with unique identifiers.
This class extends NullParametersBean, providing functionality to create marks with unique identifiers based on a template mark in the MPP (Marked Point Process) framework.
-
Constructor Summary
Constructors Constructor Description MarkWithIdentifierFactory()MarkWithIdentifierFactory(MarkFactory templateMark)Constructs a MarkWithIdentifierFactory with a specified template mark factory. -
Method Summary
Modifier and Type Method Description StringdescribeBean()doublegetReferencePoissonIntensity()The reference Poisson intensity for mark creation.MarkFactorygetTemplateMark()A template mark factory from which all new marks are created.intidAndIncrement()Generates a new unique identifier and increments the counter.MarknewTemplateMark()Creates a new mark based on the template and assigns it a unique identifier.voidonInitialization()voidsetReferencePoissonIntensity(double referencePoissonIntensity)The reference Poisson intensity for mark creation.voidsetTemplateMark(MarkFactory templateMark)A template mark factory from which all new marks are created.Methods inherited from class org.anchoranalysis.bean.NullParametersBean
initializeRecursive, onInitializationMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitializedMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
MarkWithIdentifierFactory
Constructs a MarkWithIdentifierFactory with a specified template mark factory.- Parameters:
templateMark- the template mark factory to use for creating new marks
-
MarkWithIdentifierFactory
public MarkWithIdentifierFactory()
-
-
Method Details
-
describeBean
- Overrides:
describeBeanin classAnchorBean<MarkWithIdentifierFactory>
-
onInitialization
- Overrides:
onInitializationin classNullParametersBean<MarkWithIdentifierFactory>- Throws:
InitializeException
-
newTemplateMark
Creates a new mark based on the template and assigns it a unique identifier.- Returns:
- a new Mark object with a unique identifier
-
idAndIncrement
public int idAndIncrement()Generates a new unique identifier and increments the counter.- Returns:
- a new unique identifier
-
getReferencePoissonIntensity
public double getReferencePoissonIntensity()The reference Poisson intensity for mark creation. -
setReferencePoissonIntensity
public void setReferencePoissonIntensity(double referencePoissonIntensity)The reference Poisson intensity for mark creation. -
getTemplateMark
A template mark factory from which all new marks are created. -
setTemplateMark
A template mark factory from which all new marks are created.
-