public static ISensor getSimulatedSensor(SensorType sensorType, string sensorName) { SimulatedSensor sim = new SimulatedSensor(); sim.SensorType = sensorType; sim.Name = sensorName; return(sim); }
/// <summary> /// CTOR /// </summary> public SimulatedIOHardware() { ISensor[] sensorArray = { SimulatedSensor.getSimulatedSensor(SensorType.Voltage, "CPU VCore"), SimulatedSensor.getSimulatedSensor(SensorType.Voltage, "AVCC"), SimulatedSensor.getSimulatedSensor(SensorType.Voltage, "3VCC"), SimulatedSensor.getSimulatedSensor(SensorType.Voltage, "3VSB"), SimulatedSensor.getSimulatedSensor(SensorType.Voltage, "VBAT"), SimulatedSensor.getSimulatedSensor(SensorType.Voltage, "VTT"), SimulatedSensor.getSimulatedSensor(SensorType.Temperature, "CPU Core"), SimulatedSensor.getSimulatedSensor(SensorType.Control, "Fan"), }; this.sensors = new List <ISensor>(sensorArray); }
/// <summary> /// CTOR /// </summary> public SimulatedCPU() { ISensor[] sensorArray = { //TODO: get actual names from OHW GUI for consistency SimulatedSensor.getSimulatedSensor(SensorType.Load, "CPU Total"), SimulatedSensor.getSimulatedSensor(SensorType.Power, "CPU Package"), SimulatedSensor.getSimulatedSensor(SensorType.Power, "CPU Cores"), SimulatedSensor.getSimulatedSensor(SensorType.Temperature, "CPU Package"), SimulatedSensor.getSimulatedSensor(SensorType.Load, "Core"), SimulatedSensor.getSimulatedSensor(SensorType.Temperature, "Core"), SimulatedSensor.getSimulatedSensor(SensorType.Clock, "Core") }; this.sensors = new List <ISensor>(sensorArray); }