Fixed Issue 651.
3 This Source Code Form is subject to the terms of the Mozilla Public
4 License, v. 2.0. If a copy of the MPL was not distributed with this
5 file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 Copyright (C) 2009-2012 Michael Möller <mmoeller@openhardwaremonitor.org>
12 using System.Collections.Generic;
13 using OpenHardwareMonitor.Collections;
15 namespace OpenHardwareMonitor.Hardware {
17 public enum SensorType {
28 Data, // GB = 2^30 Bytes
31 public struct SensorValue {
32 private readonly float value;
33 private readonly DateTime time;
35 public SensorValue(float value, DateTime time) {
40 public float Value { get { return value; } }
41 public DateTime Time { get { return time; } }
44 public interface ISensor : IElement {
46 IHardware Hardware { get; }
48 SensorType SensorType { get; }
49 Identifier Identifier { get; }
51 string Name { get; set; }
54 bool IsDefaultHidden { get; }
56 IReadOnlyArray<IParameter> Parameters { get; }
65 IEnumerable<SensorValue> Values { get; }
67 IControl Control { get; }