Class ResourcePoolExample2

  • All Implemented Interfaces:
    ObservableIfc, GetNameIfc, IdentityIfc

    public class ResourcePoolExample2
    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 illustrates how the reactor for the request can be used to react to state changes on the request.
    • Constructor Detail

      • ResourcePoolExample2

        public ResourcePoolExample2​(ModelElement parent)
      • ResourcePoolExample2

        public ResourcePoolExample2​(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)