Hello Everyone:
Stage:
Windows 10 64-bit
Julia v 1.6.0
IDE: Pluto 0.14x
using SimJulia, Distributions
Does anyone know what the 'Resource' data type
has been updated to (from version 0.6.x)?
The dataypes are defined as:
function visit(customer::Process,
time_at_barber::Float64,
counter::Resource,
max_in_queue::Int)
arrive = now(customer);
I am attempting to execute a counter
as part of the following instructions
seed=100;
rand(seed);
sim = Simulation(Int(16));
k = Resource(sim, "Counter", Int8(1), false);
s = Process(sim, "Source");
activate(s,
0.0,
generate,
max_number,
mean_prep_time,
mean_haircut_time,
k,
max_queue);
And am returning:
UndefVarError: Resource not defined
The goal is to:
run(sim, max_time)
Any suggestions?
Presumably it was defined earlier in the tutorial where you took this snippet.
Andrey Oskin
I did not qualify the 'Resource' method.
Now, the new error is:
no method matching SimJulia.Resource(::Int64, ::String, ::Int64, ::Bool)
Last updated: Dec 28 2024 at 04:38 UTC