Class GenericFactory<S extends GenericSimulation<S,A,C,D,DM,F,G>,A extends GenericActor<S,A,C,D,DM,F,G>,C extends GenericCondition<S,A,C,D,DM,F,G>,D extends GenericDomain<S,A,C,D,DM,F,G>,DM extends GenericDomainMember<S,A,C,D,DM,F,G>,F extends GenericFactory<S,A,C,D,DM,F,G>,G extends GenericGroup<S,A,C,D,DM,F,G>>

java.lang.Object
org.bzdev.drama.generic.GenericFactory<S,A,C,D,DM,F,G>
Direct Known Subclasses:
DramaFactory

public abstract class GenericFactory<S extends GenericSimulation<S,A,C,D,DM,F,G>,A extends GenericActor<S,A,C,D,DM,F,G>,C extends GenericCondition<S,A,C,D,DM,F,G>,D extends GenericDomain<S,A,C,D,DM,F,G>,DM extends GenericDomainMember<S,A,C,D,DM,F,G>,F extends GenericFactory<S,A,C,D,DM,F,G>,G extends GenericGroup<S,A,C,D,DM,F,G>> extends Object
Simulation factory class for implicitly created objects. The minimum requirement for the simulation factory class is to provide standard methods for creating instances of DomainMember. Subclasses may define methods that create other objects as well. As with all factories, the objective is to allow the factory to provide arguments to a constructor that the user of the factory would prefer not to provide explicitly.

Instances of GenericSimObjectFactory are used to explicitly create simulation objects (e.g., for initialization via a GUI or input file). The Simulation class has methods for creating instances of subclasses of GenericSimObjectFactory.

  • Constructor Details

    • GenericFactory

      public GenericFactory()
  • Method Details

    • getSimulation

      public S getSimulation()
      Get the simulation for this factory.
      Returns:
      the simulation
    • createDomainMember

      public abstract DM createDomainMember()
      Create an uninterned domain member.
      Returns:
      a new domain member