コード例 #1
0
ファイル: Sum.go プロジェクト: cgravill/antha
func (c *Sum) ComponentInfo() *execute.ComponentInfo {
	inp := make([]execute.PortInfo, 0)
	outp := make([]execute.PortInfo, 0)
	inp = append(inp, *execute.NewPortInfo("A", "int", "A", true, true, nil, nil))
	inp = append(inp, *execute.NewPortInfo("B", "int", "B", true, true, nil, nil))
	outp = append(outp, *execute.NewPortInfo("Sum", "int", "Sum", true, true, nil, nil))

	ci := execute.NewComponentInfo("Sum", "Sum", "", false, inp, outp)

	return ci
}
コード例 #2
0
func (c *TypeIISConstructAssembly) ComponentInfo() *execute.ComponentInfo {
	inp := make([]execute.PortInfo, 0)
	outp := make([]execute.PortInfo, 0)
	inp = append(inp, *execute.NewPortInfo("ReactionVolume", "wunit.Volume", "ReactionVolume", true, true, nil, nil))
	inp = append(inp, *execute.NewPortInfo("PartConc", "wunit.Concentration", "PartConc", true, true, nil, nil))
	inp = append(inp, *execute.NewPortInfo("VectorConc", "wunit.Concentration", "VectorConc", true, true, nil, nil))
	inp = append(inp, *execute.NewPortInfo("AtpVol", "wunit.Volume", "AtpVol", true, true, nil, nil))
	inp = append(inp, *execute.NewPortInfo("ReVol", "wunit.Volume", "ReVol", true, true, nil, nil))
	inp = append(inp, *execute.NewPortInfo("LigVol", "wunit.Volume", "LigVol", true, true, nil, nil))
	inp = append(inp, *execute.NewPortInfo("ReactionTemp", "wunit.Temperature", "ReactionTemp", true, true, nil, nil))
	inp = append(inp, *execute.NewPortInfo("ReactionTime", "wunit.Time", "ReactionTime", true, true, nil, nil))
	inp = append(inp, *execute.NewPortInfo("InactivationTemp", "wunit.Temperature", "InactivationTemp", true, true, nil, nil))
	inp = append(inp, *execute.NewPortInfo("InactivationTime", "wunit.Time", "InactivationTime", true, true, nil, nil))
	inp = append(inp, *execute.NewPortInfo("Parts", "[]*wtype.LHComponent", "Parts", true, true, nil, nil))
	inp = append(inp, *execute.NewPortInfo("Vector", "*wtype.LHComponent", "Vector", true, true, nil, nil))
	inp = append(inp, *execute.NewPortInfo("RestrictionEnzyme", "*wtype.LHComponent", "RestrictionEnzyme", true, true, nil, nil))
	inp = append(inp, *execute.NewPortInfo("Buffer", "*wtype.LHComponent", "Buffer", true, true, nil, nil))
	inp = append(inp, *execute.NewPortInfo("Ligase", "*wtype.LHComponent", "Ligase", true, true, nil, nil))
	inp = append(inp, *execute.NewPortInfo("Atp", "*wtype.LHComponent", "Atp", true, true, nil, nil))
	inp = append(inp, *execute.NewPortInfo("OutPlate", "*wtype.LHPlate", "OutPlate", true, true, nil, nil))
	outp = append(outp, *execute.NewPortInfo("Reaction", "*wtype.LHSolution", "Reaction", true, true, nil, nil))

	ci := execute.NewComponentInfo("TypeIISConstructAssembly", "TypeIISConstructAssembly", "", false, inp, outp)

	return ci
}