Define and initialize the objects required: Model, Source, Station, Sink, Part.
Buffers are included in the object Station.
Each instance has to be linked with the model taken into consideration.
# Create a Model instance, with the name of the model
model = Model("JSIM_production")
source = Source(model, "Source") # 1
sink = Sink(model, "Sink") # 2
In this model, the components are neglected and the machines are modelled as manufacturing stations instead of assembly ones.
This simplification is allowed because such components can be considered always available thanks to the above assumptions, so their assembly can be considered simply as a manufactuirng process.
The buffer size of the machines is unitary since the buffers are modelled as independent stations.
m1 = Station(model, "PPW1", buffer_size=1)
The rotating transfer station is modelled as a set of machines, each one representative of one available position in the rotating table.
b1 = Station(model, "RT1_1", buffer_size=1)
b2 = Station(model, "RT1_2", buffer_size=1)
b3 = Station(model, "RT1_3", buffer_size=1)
b4 = Station(model, "RT1_4", buffer_size=1)
b5 = Station(model, "RT1_5", buffer_size=1)
The conveyor belt acts also as buffer and processes the parts with a FIFO logic.
Each buffer is modelled as a set of 5 machines with unitary capacity, each one representative of one available space.
The number of available spaces depends on the distance between each set of stations.
c1_1 = Station(model, "B1_1", buffer_size=1)
c1_2 = Station(model, "B1_2", buffer_size=1)
c1_3 = Station(model, "B1_3", buffer_size=1)
c1_4 = Station(model, "B1_4", buffer_size=1)
c1_5 = Station(model, "B1_5", buffer_size=1)