Blame view

src/Request/ParamsRequestImpl/Nodes/Requests/RequestOutputPlotConstantNodeClass.php 1.11 KB
51cbca5c   Benjamin Renard   Add constants def...
1
2
3
4
<?php

define ("REQUESTOUTPUTPLOTCONSTANT_NAME", "constantLine");
define ("REQUESTOUTPUTPLOTCONSTANT_VALUE", "value");
d7f73bcb   Benjamin Renard   Integration for c...
5
define ("REQUESTOUTPUTPLOTCONSTANT_ID", "id");
51cbca5c   Benjamin Renard   Add constants def...
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

/**
 * @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);
	}
d7f73bcb   Benjamin Renard   Integration for c...
28
29
30
31
32
33
34
35
36
37
	
	public function setId($id)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTCONSTANT_ID, $id);
	}
	
	public function getId()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTCONSTANT_ID);
	}
966bd5f8   Benjamin Renard   Add request to ge...
38
39
40
41
42
43
44
	
	public function loadFromNode($xmlNode)
	{
		$this->setConstantValue($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTCONSTANT_VALUE));
		$this->setId($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTCONSTANT_ID));
		parent::loadFromNode($xmlNode);
	}
51cbca5c   Benjamin Renard   Add constants def...
45
46
47
}

?>