Class SeizeResources

    • Constructor Detail

      • SeizeResources

        public SeizeResources​(ModelElement parent)
      • SeizeResources

        public SeizeResources​(ModelElement parent,
                              java.lang.String name)
    • Method Detail

      • queueEntity

        protected abstract void queueEntity​(Entity entity)
        Subclasses need to implement a mechanism to hold entities that are waiting for resources
        Parameters:
        entity -
      • selectNextEntity

        protected abstract Entity selectNextEntity()
        Subclasses need to implement a mechanism to select the next entity from whatever mechanism is being used to hold the entities waiting for resources. The entity should not be removed from the underlying holding mechanism. If null is returned, then no entities can be selected
        Returns:
      • removeEntity

        protected abstract void removeEntity​(Entity entity)
        Subclasses need to implement a mechanism to remove the an entity (e.g. selectNextEntity()) from whatever mechanism being used to hold the entities waiting for resources.
        Parameters:
        entity - the entity to be removed
      • receive

        protected void receive​(Entity entity)
        Description copied from class: EntityReceiver
        Represents logic to correctly receive the entity and process it accordingly
        Specified by:
        receive in class EntityReceiver
      • seizeResources

        protected void seizeResources​(Entity entity)
      • startUsingResources

        protected void startUsingResources​(Entity entity)
        Implements the start of using the resources by removing the entity and starting the activity
        Parameters:
        entity -
      • addSeizeRequirement

        public void addSeizeRequirement​(Resource r)
      • addSeizeRequirement

        public void addSeizeRequirement​(Resource r,
                                        int amt)
      • addSeizeRequirement

        public void addSeizeRequirement​(Resource r,
                                        int amt,
                                        boolean partialFillFlag)
      • addSeizeRequirement

        public void addSeizeRequirement​(Resource r,
                                        int amt,
                                        int priority)
      • addSeizeRequirement

        public void addSeizeRequirement​(Resource r,
                                        int amt,
                                        int priority,
                                        boolean partialFillFlag)
      • addSeizeRequirement

        public void addSeizeRequirement​(ResourceSet set)
      • addSeizeRequirement

        public void addSeizeRequirement​(ResourceSet set,
                                        int amt)
      • addSeizeRequirement

        public void addSeizeRequirement​(ResourceSet set,
                                        int amt,
                                        java.lang.String saveKey)
      • addSeizeRequirement

        public void addSeizeRequirement​(ResourceSet set,
                                        int amt,
                                        int priority)
      • addSeizeRequirement

        public void addSeizeRequirement​(ResourceSet set,
                                        int amt,
                                        int priority,
                                        boolean partialFillFlag,
                                        ResourceSelectionRuleIfc rule,
                                        java.lang.String saveKey)