RequestOutputPlotConstantNodeClass.php
1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
define ("REQUESTOUTPUTPLOTCONSTANT_NAME", "constantLine");
define ("REQUESTOUTPUTPLOTCONSTANT_VALUE", "value");
define ("REQUESTOUTPUTPLOTCONSTANT_ID", "id");
/**
* @class RequestOutputPlotConstantNodeClass
* @brief Definition of a constant element for a plot
* @details
*/
class RequestOutputPlotConstantNodeClass extends RequestOutputPlotCurveNodeClass
{
public function __construct()
{
parent::__construct(REQUESTOUTPUTPLOTCONSTANT_NAME);
}
public function setConstantValue($value)
{
$this->setAttribute(REQUESTOUTPUTPLOTCONSTANT_VALUE, $value);
}
public function getConstantValue()
{
return $this->getAttribute(REQUESTOUTPUTPLOTCONSTANT_VALUE);
}
public function setId($id)
{
$this->setAttribute(REQUESTOUTPUTPLOTCONSTANT_ID, $id);
}
public function getId()
{
return $this->getAttribute(REQUESTOUTPUTPLOTCONSTANT_ID);
}
public function loadFromNode($xmlNode)
{
$this->setConstantValue($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTCONSTANT_VALUE));
$this->setId($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTCONSTANT_ID));
parent::loadFromNode($xmlNode);
}
}
?>