Class MachineRepair

    • Field Detail

      • myNumFailedMachines

        protected TimeWeighted myNumFailedMachines
      • myNumAvailableOperators

        protected TimeWeighted myNumAvailableOperators
      • myNumBusyOperators

        protected TimeWeighted myNumBusyOperators
      • myNumMachines

        protected int myNumMachines
      • myNumOperators

        protected int myNumOperators
      • breakDownCost

        protected double breakDownCost
      • laborCost

        protected double laborCost
    • Constructor Detail

      • MachineRepair

        public MachineRepair​(ModelElement parent,
                             int numOperators,
                             int numMachines,
                             RandomIfc tbFailure,
                             RandomIfc repTime)
        Parameters:
        parent -
        numOperators -
        numMachines -
        tbFailure -
        repTime -
    • Method Detail

      • 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
      • replicationEnded

        protected void replicationEnded()
        Description copied from class: ModelElement
        This method should be overridden by subclasses that need actions performed when the replication ends and prior to the calling of afterReplication() . It is called when each replication ends and can be used to collect data from the the model element, etc.
        Overrides:
        replicationEnded in class ModelElement
      • main

        public static void main​(java.lang.String[] args)
        Parameters:
        args - the command line arguments