Repair Service Structure

The machine service and transport service are identical. Each service consist of a waiting list, where defect machines are saved and service places called service operator.

The way how defects are handled:

  1. a defect event is created and the defect is saved to the service waiting list

  2. the service operator evaluates, which defect is repaired

  3. the defect instance gets repaired at a service operator

Repair service

class ontologysim.ProductionSimulation.sim.RepairService.RepairService.RepairService(simCore)

Bases: object

main class of the repair service, abstract

abstract addDefectToService(object_onto)

add defect onto to service onto, abstract method :param object_onto: onto :return:

addRepairServiceController(serviceController)

adds a repair service controller to a repair service

Parameters:

serviceController

Returns:

abstract createService(number_of_repair)
Parameters:

number_of_repair

Returns:

abstract createServiceOperator()

create service operator, abstract method :return:

abstract evaluateCreateEvent(service_onto, object_onto)

evaluate if a defect event is created :param service_onto: :param object_onto: :return:

abstract getFreeServiceOperator(service_onto)

get free service operator

Parameters:

service_onto

Returns:

[service]

abstract initServiceMachine()
abstract repair(event_onto)

add repair :param event_onto: onto :return:

Repair Service Machine

class ontologysim.ProductionSimulation.sim.RepairService.RepairServiceMachine.RepairServiceMachine(simCore)

Bases: RepairService

repair service from machine, parent class is repair service

addDefectToService(object_onto)

adds a defect to a service in a waiting place

Parameters:

object_onto

Returns:

createService(number_of_repair)

creates a service

Parameters:

number_of_repair – repair places

Returns:

onto

createServiceOperator()

creates a service operator

Returns:

service operator onto

evaluateCreateEvent(service_onto, machine_onto)

evaluates if the machine gets repaired, is defect or if normal evaluation creates the events

Parameters:
  • service_onto

  • machine_onto

Returns:

getFreeServiceOperator(service_onto)

returns all free service operator

Parameters:

service_onto – onto

Returns:

[service operaor]

initService()

saves the service onto as python instance :return:

repair(event_onto)

repairs a machine

Parameters:

event_onto

Returns:

Repair Service Transporter

class ontologysim.ProductionSimulation.sim.RepairService.RepairServiceTransporter.RepairServiceTransporter(simCore)

Bases: RepairService

repair service from machine, parent class is repair service

addDefectToService(object_onto)

adds a defect to a service in a waiting place

Parameters:

object_onto

Returns:

createService(number_of_repair)

creates a service

Parameters:

number_of_repair – repair places

Returns:

onto

createServiceOperator()

creates a service operator

Returns:

service operator onto

evaluateCreateEvent(service_onto, transport_onto)

evaluates if the transporter gets repaired, is defect or if normal evaluation creates the events

Parameters:
  • service_onto

  • transport_onto

Returns:

getFreeServiceOperator(service_onto)

returns all free service operator

Parameters:

service_onto – onto

Returns:

[service operaor]

initService()

saves the service onto as python instance :return:

repair(event_onto)

repairs a transporter

Parameters:

event_onto

Returns:

Defect

class ontologysim.ProductionSimulation.sim.Defect.Defect(simCore)

Bases: object

python instance for changing the defect onto

createDefect(random_dict, normal_distribution_list)

creates defect in ontology :param random_dict: responsible for the probability of which type of defect will occur next :param normal_distribution_list: sets the distribution function for “when does the next defect occur” :return: defect_onto

createSubDefect(defect_type)

sub defect saves the distribution function for “when does the next defect occur” :param defect_type: string :return: sub_defect (onto)

getNextDefectTime(defect_onto)

calculates the value of the distribution function :param defect_onto: onto :return: next defect time (int), defect type (str)