Class ResourcePoolExample3

  • All Implemented Interfaces:
    ObservableIfc, GetNameIfc, IdentityIfc

    public class ResourcePoolExample3
    extends SchedulingElement
    This example uses a RequestPool w/o a default queue. Thus, a separate queue is used to hold the objects associated with the requests. This is an example of a simple M/M/c queuing situation. In this example, additional (not really needed) statistics are collected in order to further illustrate the request reactor concept. This example has both failures and schedules attached to the resource pool.
    • 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)