Documentation ¶
Overview ¶
Package target provides the construction of a target machine from a collection of devices
Index ¶
- Constants
- Variables
- func WithTarget(parent context.Context, t *Target) context.Context
- type Files
- type Finalizer
- type Graph
- type Initializer
- type Manual
- type Mix
- type MixSummary
- type Order
- type PlatePrep
- type Prompt
- type Run
- type SetupIncubator
- type SetupMixer
- type Target
- type TimeEstimator
- type TimedWait
- type TipEstimator
- type Wait
Constants ¶
const ( // DriverSelectorV1Name is the basic selector name for device plugins // (drivers) DriverSelectorV1Name = "antha.driver.v1.TypeReply.type" )
Variables ¶
var ( DriverSelectorV1Human = ast.NameValue{ Name: DriverSelectorV1Name, Value: "antha.human.v1.Human", } DriverSelectorV1ShakerIncubator = ast.NameValue{ Name: DriverSelectorV1Name, Value: "antha.shakerincubator.v1.ShakerIncubator", } DriverSelectorV1Mixer = ast.NameValue{ Name: DriverSelectorV1Name, Value: "antha.mixer.v1.Mixer", } DriverSelectorV1Prompter = ast.NameValue{ Name: DriverSelectorV1Name, Value: "antha.prompter.v1.Prompter", } DriverSelectorV1DataSource = ast.NameValue{ Name: DriverSelectorV1Name, Value: "antha.datasource.v1.DataSource", } DriverSelectorV1WriteOnlyPlateReader = ast.NameValue{ Name: DriverSelectorV1Name, Value: "antha.platereader.v1.PlateReader", } DriverSelectorV1QPCRDevice = ast.NameValue{ Name: DriverSelectorV1Name, Value: "antha.quantstudio.v1.QuantStudioService", } )
Well known device plugins (drivers) selectors
Functions ¶
Types ¶
type Files ¶
type Files struct { Type string // Pseudo MIME-type describing contents of tarball Tarball []byte // Tar'ed and gzip'ed files }
Files are binary data encoded in tar.gz bytes
type Initializer ¶
An Initializer is an instruction with initialization instructions
type Manual ¶
type Manual struct { Dev ast.Device Label string Details string // contains filtered or unexported fields }
A Manual is human-aided interaction
func (*Manual) AppendDependsOn ¶
AppendDependsOn implements an Inst
func (*Manual) SetDependsOn ¶
SetDependsOn implements an Inst
type Mix ¶
type Mix struct { Dev ast.Device Request *lh.LHRequest Properties *liquidhandling.LHProperties FinalProperties *liquidhandling.LHProperties Final map[string]string // Map from ids in Properties to FinalProperties Files Files Initializers []ast.Inst Summary *MixSummary // contains filtered or unexported fields }
A Mix is a task that runs a mixer
func (*Mix) AppendDependsOn ¶
AppendDependsOn implements an Inst
func (*Mix) GetInitializers ¶
GetInitializers implements an Initializer
func (*Mix) GetTimeEstimate ¶
GetTimeEstimate implements a TimeEstimator
func (*Mix) GetTipEstimates ¶
func (a *Mix) GetTipEstimates() []wtype.TipEstimate
GetTipEstimates implements a TipEstimator
func (*Mix) SetDependsOn ¶
SetDependsOn implements an Inst
type MixSummary ¶
type MixSummary struct { // Layout is a validated JSON summary of the deck layouts before and after // the mix operation takes place, suitable for consumption by the front end. // The JSON schema is available at microArch/driver/liquidhandling/schemas/layout.schema.json Layout []byte // Actions is a validated JSON summary of the steps taken during the liquidhandling // operation, suitable for consumption by the front end. // The JSON schema is available at microArch/driver/liquidhandling/schemas/actions.schema.json Actions []byte }
MixSummary contains all the summary information which describes the mix instruction
func NewMixSummary ¶
func NewMixSummary(itree *liquidhandling.ITree, initial *liquidhandling.LHProperties, final *liquidhandling.LHProperties, idMap map[string]string) (*MixSummary, error)
NewMixSummary construct a new MixSummary object from the instructions and initial and final robot states an error is returned if the parameters are invalid of if either summary object fails JSON-schema validation
type Order ¶
An Order is a task to order physical components
func (*Order) AppendDependsOn ¶
AppendDependsOn implements an Inst
func (*Order) SetDependsOn ¶
SetDependsOn implements an Inst
type PlatePrep ¶
A PlatePrep is a task to setup plates
func (*PlatePrep) AppendDependsOn ¶
AppendDependsOn implements an Inst
func (*PlatePrep) SetDependsOn ¶
SetDependsOn implements an Inst
type Prompt ¶
type Prompt struct { Message string // contains filtered or unexported fields }
Prompt is manual prompt instruction
func (*Prompt) AppendDependsOn ¶
AppendDependsOn implements an Inst
func (*Prompt) SetDependsOn ¶
SetDependsOn implements an Inst
type Run ¶
type Run struct { Dev ast.Device Label string Details string Calls []driver.Call // Additional instructions to add to beginning of instruction stream. // Instructions are assumed to depend in FIFO order. Initializers []ast.Inst // Additional instructions to add to end of instruction stream. // Instructions are assumed to depend in LIFO order. Finalizers []ast.Inst // contains filtered or unexported fields }
Run calls on device
func (*Run) AppendDependsOn ¶
AppendDependsOn implements an Inst
func (*Run) GetFinalizers ¶
GetFinalizers implements a Finalizer instruction
func (*Run) GetInitializers ¶
GetInitializers implements an Initializer instruction
func (*Run) SetDependsOn ¶
SetDependsOn implements an Inst
type SetupIncubator ¶
A SetupIncubator is a task to setup an incubator
func (*SetupIncubator) AppendDependsOn ¶
AppendDependsOn implements an Inst
func (*SetupIncubator) SetDependsOn ¶
SetDependsOn implements an Inst
type SetupMixer ¶
A SetupMixer is a task to setup a mixer
func (*SetupMixer) AppendDependsOn ¶
AppendDependsOn implements an Inst
func (*SetupMixer) SetDependsOn ¶
SetDependsOn implements an Inst
type Target ¶
type Target struct {
// contains filtered or unexported fields
}
Target for execution (collection of devices).
type TimeEstimator ¶
type TimeEstimator interface { // GetTimeEstimate returns a time estimate for this instruction in seconds GetTimeEstimate() float64 }
A TimeEstimator is an instruction that can estimate its own execution time
type TimedWait ¶
TimedWait is a wait for a period of time.
func (*TimedWait) AppendDependsOn ¶
AppendDependsOn implements an Inst
func (*TimedWait) SetDependsOn ¶
SetDependsOn implements an Inst
type TipEstimator ¶
type TipEstimator interface { // GetTipEstimates returns an estimate of how many tips this instruction will use GetTipEstimates() []wtype.TipEstimate }
A TipEstimator is an instruction that uses tips and provides information on how many
type Wait ¶
type Wait struct {
// contains filtered or unexported fields
}
Wait is a virtual instruction to hang dependencies on. A better name might been no-op.
func (*Wait) AppendDependsOn ¶
AppendDependsOn implements an Inst
func (*Wait) SetDependsOn ¶
SetDependsOn implements an Inst
Directories ¶
Path | Synopsis |
---|---|
Package auto provides methods for creating a simulation target based on auto discovery of drivers via gRPC
|
Package auto provides methods for creating a simulation target based on auto discovery of drivers via gRPC |