From d92560407de00de1a790b95d8ccd240137edb6b4 Mon Sep 17 00:00:00 2001 From: Michiel Cottaar <michiel.cottaar@ndcn.ox.ac.uk> Date: Fri, 26 Jan 2024 15:14:28 +0000 Subject: [PATCH] Make WaitBlock concrete --- src/wait.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wait.jl b/src/wait.jl index bf3ec1b..2106ad6 100644 --- a/src/wait.jl +++ b/src/wait.jl @@ -1,7 +1,7 @@ module Wait -import JuMP: Model, @constraint, @variable, VariableRef, owner_model +import JuMP: Model, @constraint, @variable, VariableRef, owner_model, value import ..BuildingBlocks: BuildingBlock, duration, properties, apply_simple_constraint!, BuildingBlockPlaceholder -import ..SequenceBuilders: SequenceBuilder, to_block +import ..SequenceBuilders: SequenceBuilder, to_block, AbstractSequence import ..ConcreteBlocks: to_concrete_block, ConcreteBlock import ...Scanners: Scanner @@ -42,6 +42,6 @@ duration(wb::WaitBlock) = wb.duration scanner_constraints!(::Model, ::WaitBlock, ::Scanner) = nothing -to_concrete_block(builder::SequenceBuilder, wb::WaitBlock) = ConcreteBlock(builder, duration(wb)) +to_concrete_block(builder::AbstractSequence, wb::WaitBlock) = ConcreteBlock(builder, value(duration(wb))) end \ No newline at end of file -- GitLab