Skip to content
Snippets Groups Projects
Verified Commit 1bdfcbd4 authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

Make readout concrete

parent 4e921135
No related branches found
No related tags found
No related merge requests found
module InstantReadouts module InstantReadouts
import ...BuildingBlocks: BuildingBlock, BuildingBlockPlaceholder, duration, properties import ...BuildingBlocks: BuildingBlock, BuildingBlockPlaceholder, duration, properties
import ...SequenceBuilders: SequenceBuilder, start_time, to_block import ...SequenceBuilders: SequenceBuilder, start_time, to_block, AbstractSequence
import ...ConcreteBlocks: AbstractConcreteBlock import ...ConcreteBlocks: AbstractConcreteBlock, to_concrete_block
""" """
InstantReadout() InstantReadout()
...@@ -11,12 +11,13 @@ Represents an instantaneous `Readout` of the signal. ...@@ -11,12 +11,13 @@ Represents an instantaneous `Readout` of the signal.
It has no parameters or properties to set. It has no parameters or properties to set.
""" """
struct InstantReadout <: AbstractConcreteBlock struct InstantReadout <: AbstractConcreteBlock
builder::SequenceBuilder builder::AbstractSequence
end end
InstantReadout() = BuildingBlockPlaceholder{InstantReadout}() InstantReadout() = BuildingBlockPlaceholder{InstantReadout}()
properties(::Type{<:InstantReadout}) = [] properties(::Type{<:InstantReadout}) = []
to_block(builder::SequenceBuilder, cls::Type{<:InstantReadout}) = cls(builder) to_block(builder::SequenceBuilder, cls::Type{<:InstantReadout}) = cls(builder)
to_concrete_block(builder::AbstractSequence, ::InstantReadout) = InstantReadout(builder)
end end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment