Class AbstractHubFactory<Obj extends Hub>

All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
AbstrStorageHubFactory, HubFactory

public abstract class AbstractHubFactory<Obj extends Hub> extends AbstractActorFactory<Obj>
Abstract factory for creating hubs.

The factory parameters this factory provides are the same as the parameters provided by its subclass HubFactory:

This factory's superclass has a parameter named "domainMember" and that parameter was removed.

  • Constructor Details

    • AbstractHubFactory

      protected AbstractHubFactory(DramaSimulation sim)
      Constructor.
      Parameters:
      sim - the simulation
  • Method Details

    • getUsrDomain

      protected UsrDomain getUsrDomain()
      Get the user domain.
      Returns:
      the user domain
    • getSysDomain

      protected SysDomain getSysDomain()
      Get the system domain.
      Returns:
      the system domain
    • getCapacity

      protected int getCapacity()
      Get the value of the "capacity" parameter.
      Returns:
      the value of the "capacity" parameter; -1 if a default value is to be used instead
    • getNominal

      protected int getNominal()
      Get the value of the "nominal" parameter.
      Returns:
      the value of the "nominal" parameter; -1 if a default value is to be used instead
    • getLowerTrigger

      protected int getLowerTrigger()
      Get the value of the "lowerTrigger" parameter.
      Returns:
      the value of the "lowerTrigger" parameter; -1 if a default value is to be used instead
    • getUpperTrigger

      protected int getUpperTrigger()
      Get the value of the "upperTrigger" parameter.
      Returns:
      the value of the "upperTrigger" parameter; -1 if a default value is to be used instead
    • getCount

      protected int getCount()
      Get the count parameter. This is used by AbstrStorageHubFactory.
      Returns:
      the value of the "count" parameter; -1 if a default value is to be used instead
    • getOverCount

      protected int getOverCount()
      Get the overCount parameter.
      Returns:
      the value of the "overCount" parameter.
    • getPickupTime

      protected DoubleRandomVariable getPickupTime()
      Get the pickupTime parameter.
      Returns:
      the value of the "pickupTime" parameter
    • getX

      protected double getX()
      Get the X value.
      Returns:
      the value of the "x" parameter
    • getY

      protected double getY()
      Get the Y value.
      Returns:
      the value of the "y" parameter
    • clear

      public void clear()
      Overrides:
      clear in class GenericActorFactory<AbstractActorFactory<Obj extends Hub>,DramaSimulation,Actor,Condition,Domain,DomainMember,DramaFactory,Group,Obj extends Hub>
    • initObject

      protected void initObject(Obj hub)
      Overrides:
      initObject in class GenericActorFactory<AbstractActorFactory<Obj extends Hub>,DramaSimulation,Actor,Condition,Domain,DomainMember,DramaFactory,Group,Obj extends Hub>