Class ResourcePoolExample1

  • All Implemented Interfaces:
    ObservableIfc, GetNameIfc, IdentityIfc

    public class ResourcePoolExample1
    extends SchedulingElement
    This is a simple example of creating a pool of resource units. The pool is used as a set of servers for a simple M/M/c queuing system. In this example, the request queue for the pool is used as holding the customers.
    • Constructor Detail

      • ResourcePoolExample1

        public ResourcePoolExample1​(ModelElement parent)
      • ResourcePoolExample1

        public ResourcePoolExample1​(ModelElement parent,
                                    int numServers)
    • Method Detail

      • getNumberOfServers

        public int getNumberOfServers()
      • setServiceRS

        public final void setServiceRS​(RandomIfc d)
      • setArrivalRS

        public final void setArrivalRS​(RandomIfc d)
      • initialize

        protected void initialize()
        Description copied from class: ModelElement
        This method should be overridden by subclasses that need actions performed to initialize prior to a replication. It is called once before each replication occurs if the model element wants initialization. It is called after beforeReplication() is called
        Overrides:
        initialize in class ModelElement
      • main

        public static void main​(java.lang.String[] args)