36 lines
1.5 KiB
PHP
36 lines
1.5 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Belevo\EnelixEMS;
|
|
|
|
/**
|
|
* Registriert die gemeinsamen Properties und Variablen aller EMS-Verbraucher.
|
|
*
|
|
* Das Trait ist noch keine vollstaendige Steuerungsimplementierung. Die
|
|
* konkreten Module ergaenzen Geraeteanbindung, Leistungsangebot und Zustand.
|
|
*/
|
|
trait VerbraucherBasisTrait
|
|
{
|
|
protected function registriereVerbraucherBasis(): void
|
|
{
|
|
$this->RegisterPropertyInteger('PrioritaetPV', 0);
|
|
$this->RegisterPropertyInteger('PrioritaetPeak', 0);
|
|
$this->RegisterPropertyInteger('Meldeintervall', 10);
|
|
$this->RegisterPropertyInteger('VorgabeTimeout', 30);
|
|
$this->RegisterPropertyBoolean('EinstellungenInVisu', false);
|
|
$this->RegisterPropertyBoolean('LoggingEin', false);
|
|
|
|
$this->RegisterVariableBoolean('Aktiv', 'Aktiv', '~Switch', 10);
|
|
$this->EnableAction('Aktiv');
|
|
$this->RegisterVariableFloat('Istleistung', 'Istleistung', '', 20);
|
|
$this->RegisterVariableInteger('Leistungsquelle', 'Leistungsquelle', '', 30);
|
|
$this->RegisterVariableInteger('Sollleistung', 'Sollleistung', '', 40);
|
|
$this->RegisterVariableBoolean('SollwertGueltig', 'Sollwert gueltig', '~Switch', 50);
|
|
$this->RegisterVariableBoolean('Verfuegbar', 'Verfuegbar', '~Switch', 60);
|
|
$this->RegisterVariableBoolean('AenderungMoeglich', 'Aenderung moeglich', '~Switch', 70);
|
|
$this->RegisterVariableBoolean('Stoerung', 'Stoerung', '', 80);
|
|
$this->RegisterVariableString('Stoertext', 'Stoertext', '', 90);
|
|
}
|
|
}
|