Blame view

src/Request/ParamsRequestImpl/Nodes/Requests/RequestOutputPlotFillSerieConstantNodeClass.php 1.27 KB
bbe4d005   Benjamin Renard   Integration for f...
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
<?php

define ("REQUESTOUTPUTPLOTFILLSERIECONSTANT_NAME", "fillSerieConstant");
define ("REQUESTOUTPUTPLOTFILLSERIECONSTANT_SERIEID", "serieId");
define ("REQUESTOUTPUTPLOTFILLSERIECONSTANT_CONSTANTID", "constantId");

/**
 * @class RequestOutputPlotFillSerieConstantNodeClass
 * @brief Definition of fill serie/constant for a plot
 * @details
 */
class RequestOutputPlotFillSerieConstantNodeClass extends RequestOutputPlotFillNodeClass
{
	public function __construct()
	{
		parent::__construct(REQUESTOUTPUTPLOTFILLSERIECONSTANT_NAME);
	}
	
	public function setSerieId($id)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTFILLSERIECONSTANT_SERIEID, $id);
	}
	
	public function getSerieId()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTFILLSERIECONSTANT_SERIEID);
	}
	
	public function setConstantId($id)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTFILLSERIECONSTANT_CONSTANTID, $id);
	}
	
	public function getConstantId()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTFILLSERIECONSTANT_CONSTANTID);
	}
966bd5f8   Benjamin Renard   Add request to ge...
38
39
40
41
42
43
44
	
	public function loadFromNode($xmlNode)
	{
		$this->setSerieId($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTFILLSERIECONSTANT_SERIEID));
		$this->setConstantId($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTFILLSERIECONSTANT_CONSTANTID));
		parent::loadFromNode($xmlNode);
	}
bbe4d005   Benjamin Renard   Integration for f...
45
46
47
}

?>