Parent type for a sequence with free variables ([`SequenceBuilder`](@ref)) or without free variables (`ConcreteSequence`).
"""
abstract type AbstractSequenceend
"""
SequenceBuilder(blocks...)
...
...
@@ -13,7 +18,7 @@ Defines a sequence as a series of [`BuildingBlock`](@ref) objects.
After defining the blocks, the user can add one or more constraints and an objective function to the properties of the [`BuildingBlock`](@ref) objects.
A sequence matching these constraints will be produced by calling [`solve`](@ref)(builder) or [`Sequence`](@ref)(builder).
"""
struct SequenceBuilder
struct SequenceBuilder<:AbstractSequence
model::Model
scanner::Scanner
blocks::Vector{<:BuildingBlock}
...
...
@@ -35,6 +40,8 @@ struct SequenceBuilder
end
end
get_blocks(seq::SequenceBuilder)=seq.blocks
function to_block(model::SequenceBuilder,placeholder::BuildingBlockPlaceholder{T})where{T}