import org.lsst.ccs.description.groovy.CCSBuilder
import org.lsst.ccs.bootstrap.BootstrapResourceUtils
import org.lsst.ccs.subsystem.utility.MpmMain
import org.lsst.ccs.subsystem.utility.MpmPlutoDevice
import org.lsst.ccs.subsystem.utility.MpmSimPlutoDevice
import org.lsst.ccs.subsystem.utility.MpmActionManager
import org.lsst.ccs.monitor.Channel

Properties props = BootstrapResourceUtils.getBootstrapSystemProperties()
runMode = props.getProperty("org.lsst.ccs.run.mode", "normal")
if (runMode.equals("simulation")) {
    mpmPlutoDevice = MpmSimPlutoDevice
}
else {
    mpmPlutoDevice = MpmPlutoDevice
} 

CCSBuilder builder = ["mpm"]

builder.main (MpmMain) {

    ActionManager (MpmActionManager)

    Pluto (mpmPlutoDevice)

    "CLP-RTD-03" (Channel, description: "Cold Plate RTD 03", units: "\u00b0C", format: ".0f",
                  devcName: "Pluto", hwChan: 1, type: "ADDREG:12", offset: -273)

    "CLP-RTD-05" (Channel, description: "Cold Plate RTD 05", units: "\u00b0C", format: ".0f",
                  devcName: "Pluto", hwChan: 1, type: "ADDREG:13", offset: -273)

    "CLP-RTD-50" (Channel, description: "Cold Plate RTD 50", units: "\u00b0C", format: ".0f",
                  devcName: "Pluto", hwChan: 1, type: "ADDREG:11", offset: -273)

    "CLP-RTD-55" (Channel, description: "Cold Plate RTD 55", units: "\u00b0C", format: ".0f",
                  devcName: "Pluto", hwChan: 1, type: "ADDREG:10", offset: -273)

    "CYP-RTD-12" (Channel, description: "Cryo Plate RTD 12", units: "\u00b0C", format: ".0f",
                  devcName: "Pluto", hwChan: 1, type: "ADDREG:23", offset: -273)

    "CYP-RTD-14" (Channel, description: "Cryo Plate RTD 14", units: "\u00b0C", format: ".0f",
                  devcName: "Pluto", hwChan: 1, type: "ADDREG:22", offset: -273)

    "CYP-RTD-31" (Channel, description: "Cryo Plate RTD 31", units: "\u00b0C", format: ".0f",
                  devcName: "Pluto", hwChan: 1, type: "ADDREG:21", offset: -273)

    "CYP-RTD-43" (Channel, description: "Cryo Plate RTD 43", units: "\u00b0C", format: ".0f",
                  devcName: "Pluto", hwChan: 1, type: "ADDREG:20", offset: -273)

}
