Transporter

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

Bases: object

addLocation(transport_onto, location_onto)

adds a location the queue of the transporter, currently only the queue of the transporter has a location

Parameters:
  • transport_onto – onto

  • location_onto – onto

addTransportController(transportController)

combines transport controller with transporter class

Parameters:

transportController

add_defect(transporter_onto, defect_onto)

adds a defect to the transporter onto, this defect onto describes the defect behavior

Parameters:
  • transporter_onto – onto

  • defect_onto – onto

compare_location_product_transporter(product_onto, transport_onto)

compare if the location of the product onto is equl to the transporter location

Parameters:
  • product_onto – onto

  • transport_onto – onto

Returns:

createTransportation(transport_onto, new_location_onto, time)

creates a transportation event

Parameters:
  • transport_onto – onto

  • new_location_onto – onto, have not to be a location onto, queue, endqueue,inputqueue,transport queue are also suitable

  • time – double

Returns:

createTransporter(setting_dict, location_onto)

creates a transporter in onto

Parameters:
  • setting_dict – dict{}

  • location_onto – onto

createWait(waiting_time, time, transport_onto)

creates a waiting event

Parameters:
  • waiting_time – double

  • time – dobule

  • transport_onto – onto

Returns:

double

end_queue_allowed(transport_onto, product_onto)

checks if the transporter is allowed to go to the end_queue

Parameters:
  • transport_onto – onto

  • product_onto – onto

Returns:

bool

evaluateDefect(event_onto)

checks if the transporter is defect, when yes then defect service is created, otherwise the given event onto is exectued in another method

Parameters:

event_onto – onto

Returns:

bool

getAllTransporter()

get all transporter onto, for better performance use central class

Returns:

[transporter onto]

getAlowedMachine(transport_onto, suitable_list)

gets the allowed machine for the transporter

Parameters:
  • transport_onto – onto

  • suitable_list – [machine_onto,number_free positions,process onto]

Returns:

[machine_onto,number_free positions,process onto]

getFreePosition(transport_onto)

calculates all free position of transporter

Parameters:

transport_onto – onto

Returns:

[position onto]

get_queue_transportation_allowed(transport_onto)

get the allowed queue, where the transporter can drive

Parameters:

transport_onto – onto

Returns:

[queue onto]

initTransporterDict()

the transporter dict pre calculates which queues are available for the transporter, to provide faster simulation

setNextDefectTime(transporter_onto, defect_onto)

calculates next defect and adds this value to the transporter defect

Parameters:
  • transporter_onto

  • defect_onto

transformToDict(id)

transform the transporter onto to dit and saves the kpis

Parameters:

id

Returns:

transport(event_onto)

the transporter drives from location a to location b

Parameters:

event_onto – onto

wait(event_onto)

lets the transporter wait for x seconds

Parameters:

event_onto – onto