Documentation
This commit is contained in:
@@ -1,81 +1,90 @@
|
||||
@startuml
|
||||
interface Sensor {
|
||||
+ {abstract} int Value()
|
||||
}
|
||||
|
||||
class LMSensor {
|
||||
package sensor {
|
||||
interface Sensor {
|
||||
+ {abstract} int Value()
|
||||
}
|
||||
|
||||
class LMSensor {
|
||||
- string Label
|
||||
|
||||
+ int Value()
|
||||
}
|
||||
}
|
||||
|
||||
class GPUSensor {
|
||||
class GPUSensor {
|
||||
+ int Value()
|
||||
}
|
||||
|
||||
class LMSensorsFacade
|
||||
{
|
||||
+ List<Sensor> RPMSensors()
|
||||
+ List<Sensor> TemperatureSensors()
|
||||
}
|
||||
|
||||
class GPUSensorsFacade
|
||||
{
|
||||
+ List<Sensor> TemperatureSensors()
|
||||
}
|
||||
|
||||
class SensorManager
|
||||
{
|
||||
- LMSensorsFacade
|
||||
- GPUSensorsFacade
|
||||
|
||||
+ List<Sensor> RPMSensors()
|
||||
+ List<Sensor> TemperatureSensors()
|
||||
}
|
||||
}
|
||||
|
||||
class HWMONFan {
|
||||
package fan
|
||||
{
|
||||
class HWMONFan {
|
||||
- string Label
|
||||
- Sensor RPMSensor
|
||||
- PWMControl PWMControl
|
||||
|
||||
+ int RPM()
|
||||
+ void PWMPercent(int value)
|
||||
}
|
||||
}
|
||||
|
||||
class PWMControl {
|
||||
+ void PWMPercent(int value)
|
||||
+ int PWM()
|
||||
}
|
||||
|
||||
class PWMControlFacade {
|
||||
+ List<PWMControl> PWMControls()
|
||||
}
|
||||
|
||||
class LMSensorsFacade
|
||||
{
|
||||
+ List<Sensor> RPMSensors()
|
||||
+ List<Sensor> TemperatureSensors()
|
||||
}
|
||||
|
||||
class GPUSensorsFacade
|
||||
{
|
||||
+ List<Sensor> TemperatureSensors()
|
||||
}
|
||||
|
||||
class SensorManager
|
||||
{
|
||||
- LMSensorsFacade
|
||||
- GPUSensorsFacade
|
||||
|
||||
+ List<Sensor> RPMSensors()
|
||||
+ List<Sensor> TemperatureSensors()
|
||||
}
|
||||
|
||||
class FanGenerator
|
||||
{
|
||||
class FanGenerator
|
||||
{
|
||||
+ FanList FindFans(List<RPMSensor>, List<PWMControl>)
|
||||
}
|
||||
}
|
||||
|
||||
struct FanStep
|
||||
{
|
||||
struct FanStep
|
||||
{
|
||||
int Temp
|
||||
int Percent
|
||||
}
|
||||
}
|
||||
|
||||
class FanCurve
|
||||
{
|
||||
class FanCurve
|
||||
{
|
||||
- List<FanStep> Steps
|
||||
- List<Sensor> TempSensor
|
||||
- List<HWMONFan> Fan
|
||||
|
||||
+ DoFanControl()
|
||||
}
|
||||
}
|
||||
|
||||
class FanController
|
||||
{
|
||||
class FanController
|
||||
{
|
||||
- List<FanCurve>
|
||||
|
||||
+ void StartFanControlLoop()
|
||||
}
|
||||
}
|
||||
|
||||
package pwm
|
||||
{
|
||||
class PWMControl {
|
||||
+ void PWMPercent(int value)
|
||||
+ int PWM()
|
||||
}
|
||||
|
||||
class PWMControlFacade {
|
||||
+ List<PWMControl> PWMControls()
|
||||
}
|
||||
}
|
||||
|
||||
class ConfigManager
|
||||
@@ -85,9 +94,9 @@ class ConfigManager
|
||||
|
||||
HWMONFan -- Sensor
|
||||
HWMONFan -- PWMControl
|
||||
HWMONFan - FanCurve
|
||||
HWMONFan -- FanCurve
|
||||
|
||||
PWMControl -- PWMControlFacade
|
||||
PWMControlFacade -- PWMControl
|
||||
|
||||
Sensor <|-- LMSensor
|
||||
Sensor <|-- GPUSensor
|
||||
@@ -99,13 +108,12 @@ GPUSensor -- GPUSensorsFacade
|
||||
LMSensorsFacade -- SensorManager
|
||||
GPUSensorsFacade -- SensorManager
|
||||
|
||||
FanGenerator - HWMONFan
|
||||
FanGenerator - SensorManager
|
||||
FanGenerator - PWMControl
|
||||
FanGenerator -- HWMONFan
|
||||
FanGenerator -- SensorManager : uses >
|
||||
FanGenerator -- PWMControlFacade : uses >
|
||||
|
||||
Sensor - FanCurve
|
||||
FanCurve -- FanStep
|
||||
FanCurve -- SensorAggregateFunction
|
||||
|
||||
FanController -- FanCurve
|
||||
FanCurve -- FanController
|
||||
@enduml
|
||||
|
||||
Reference in New Issue
Block a user