Class 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 Details

    • MarkWithIdentifierFactory

      public MarkWithIdentifierFactory(MarkFactory templateMark)
      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

      public String describeBean()
      Description copied from class: AnchorBean
      A (maybe longer) description identifying the bean and perhaps its key parameters.

      By default, it returns the same as AnchorBean.getBeanName() but beans can optionally override it

      Overrides:
      describeBean in class AnchorBean<MarkWithIdentifierFactory>
      Returns:
      either the short-name of the bean, or a longer description
    • onInitialization

      public void onInitialization() throws InitializeException
      Description copied from class: NullParametersBean
      As there's no parameters we expose a different method.
      Overrides:
      onInitialization in class NullParametersBean<MarkWithIdentifierFactory>
      Throws:
      InitializeException - if initialization does not successfully complete.
    • newTemplateMark

      public Mark 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

      public MarkFactory getTemplateMark()
      A template mark factory from which all new marks are created.
    • setTemplateMark

      public void setTemplateMark(MarkFactory templateMark)
      A template mark factory from which all new marks are created.