java.lang.Object
org.bzdev.drama.generic.GenericFactory<DramaSimulation,Actor,Condition,Domain,DomainMember,DramaFactory,Group>
org.bzdev.drama.DramaFactory
public class DramaFactory
extends GenericFactory<DramaSimulation,Actor,Condition,Domain,DomainMember,DramaFactory,Group>
Default Factory class for Drama simulations.
The
GenericSimulation
class uses a
factory, an instance of GenericFactory
for creating objects implicitly. This factory is used internally and
consequently is much simpler than a typical named-object factory.
The minimum requirement for the simulation factory class is to provide a standard method 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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate an unshared domain member.Methods inherited from class org.bzdev.drama.generic.GenericFactory
getSimulation
-
Constructor Details
-
DramaFactory
public DramaFactory()
-
-
Method Details
-
createDomainMember
Create an unshared domain member.- Specified by:
createDomainMember
in classGenericFactory<DramaSimulation,
Actor, Condition, Domain, DomainMember, DramaFactory, Group> - Returns:
- a domain member
-