Product
- class ontologysim.ProductionSimulation.sim.Product.Product(simCore)
Bases:
object
handles the product onto
- createProduct(product_type_onto)
creates product in onto
- Parameters:
product_type_onto – onto
- Returns:
product onto
- endBlockForTransporter(event_onto)
when a product is set to a deadlock queue, it gets blocked for transportation. this method removes the transporter blocking.
- Parameters:
event_onto –
- evaluateFinishedProduct(event_onto)
handles the finishing of a product, triggers a order release process
- Parameters:
event_onto – onto
- getNextProcess(product_onto)
calculates the next process in the pnml-net
- Parameters:
product_onto – onto
- Returns:
[process id list]
- getSuitableAndAvailableMachine(process_id)
calculates all suitabel machines
- Parameters:
process_id – id (int) not label
- Returns:
[[machine onto, free positions,prod process onto]]
- init_number_of_products()
calculates the start number of products and the logging number of product
- setStartTime(product, time)
sets start of production
- Parameters:
product – onto
time – double
- transformToDict(id)
transform to dict :param id: string, one label or “all” :return:
Product type
- class ontologysim.ProductionSimulation.sim.ProductType.ProductType(simCore)
Bases:
object
handles the petri nets and the production process onto
- createProductType(product_type_config, process_config)
create product type and the product tree :param product_type_config: :param process_config: :return:
- getCompleteProductTypePath(label)
get complete product type path for api :param label: string :return: dict
- getProdProcessId()
all process ids in the pnml net
- Returns:
[process ids]
- init_percentage_dict()
initialize percentage dict of how far the product is processed, given a state :return:
- iterateAverageProductTree(state)
get the average product tree length :param state: onto :return:
- iterateMaxProductTree(state)
get max product tree :param state: :return:
- iterateMinProductTree(state)
get the min product type tree :param state: onto :return:
- loadPetrNetFromString(product_type_onto)
deprecated when loading an existing owl file, then the data from the onto are added to the dict
- Parameters:
product_type_onto –
Deprecated since version 0.1.0: pm4py excluded
- loadPetriNet(path)
depreciated loads petri net from path (pnml-file) and adds the date to product type onto checks the pnml net saves the net in the dict variable, for faster acess
- Parameters:
path –
Deprecated since version 0.1.0: pm4py excluded
- plotPetriNet(net, final_marking, initial_marking)
deprecated method for plotting the pnml
- Parameters:
net – pm4py-net
final_marking – pm4py marking
initial_marking – pm4py marking
Deprecated since version 0.1.0: pm4py excluded
- transformToDict(id)
transform to dict :param id: string one label or “all” :return: