diff --git a/src/wait.jl b/src/wait.jl index bf3ec1b127e2bc6932bb2e25f4224261c6f780e9..2106ad674a85a2de87e39ec9200d709204bb86fb 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