Class reference¶
- class machine_simulation.simulation.BreakableComponent(env, name, time_replacement, stock, mean, replace_module)¶
A component that breaks down every once in a while
- time_to_failure()¶
Returns the time until next failure if this component, using the mean time to failure of this component. :return: float
- class machine_simulation.simulation.Component(env, time_replacement, stock)¶
The specification of a part/module.
- replace()¶
A process which replaces this component by a new one
- class machine_simulation.simulation.ComponentStock(env, unit_purchase_costs, delivery_time, unit_holding_costs, capacity=inf)¶
Implementation of a (S-1,S) inventory management system
- get(amount)¶
Parameters: amount – the amount of stock requested Returns: returns a ContainerGet event
- inventory()¶
A process which keeps track if inventory holding costs
- order(amount)¶
A process to order an amount of items :param amount: the number of items to order
- class machine_simulation.simulation.Factory(env, number_maintenance_men, module, costs_per_unit_downtime, number_of_machines, operator_salary, maintenance_man_salary)¶
Factory consisting of multiple Machines, operators and maintenance men
- costs()¶
Calculates total costs for this factory :return:
- track_salary()¶
A process which keeps track salary costs
- class machine_simulation.simulation.Machine(env, module, costs_per_unit_downtime, factory)¶
A machine
- process_downtime_costs()¶
Keeps track of downtime costs of machine
- repair(broken_component)¶
Will repair machine by either replacing the module or the broken part
- run()¶
Break machine every once in while