mirror of
https://github.com/Lukas0025/YAGS.git
synced 2025-04-10 17:32:17 +01:00
34 lines
1.6 KiB
PHP
34 lines
1.6 KiB
PHP
<?php
|
|
namespace DAL;
|
|
|
|
class receiver extends \wsos\database\core\row {
|
|
public \wsos\database\types\reference $station; // station with antena
|
|
public \wsos\database\types\reference $antenna; // YAGI, DISH, ....
|
|
public \wsos\database\types\integer $centerFrequency; // in Hz
|
|
public \wsos\database\types\integer $bandwidth; // in Hz
|
|
public \wsos\database\types\json $params; // params for use
|
|
public \wsos\database\types\integer $gain; // gain of reciver setup
|
|
public \wsos\database\types\json $autoPlan; // IDs of autoplan transmitters
|
|
|
|
function __construct(
|
|
$id = null,
|
|
$station = null,
|
|
$antenna = null,
|
|
$centerFrequency = 0,
|
|
$bandwidth = 0,
|
|
$params = [],
|
|
$gain = 0,
|
|
$autoPlan = []
|
|
) {
|
|
parent::__construct($id);
|
|
$this->station = new \wsos\database\types\reference($station, \DAL\station::class);
|
|
$this->antenna = new \wsos\database\types\reference($antenna, \DAL\antenna::class);
|
|
|
|
$this->centerFrequency = new \wsos\database\types\integer($centerFrequency);
|
|
$this->bandwidth = new \wsos\database\types\integer($bandwidth);
|
|
$this->params = new \wsos\database\types\json($params);
|
|
$this->gain = new \wsos\database\types\integer($gain);
|
|
$this->autoPlan = new \wsos\database\types\json($autoPlan);
|
|
}
|
|
}
|
|
?>
|