Blame view

src/Request/ParamsRequestImpl/Nodes/Requests/RequestOutputPlotYSerieNodeClass.php 1.37 KB
22521f1c   Benjamin Renard   First commit
1
2
3
4
5
<?php

define ("REQUESTOUTPUTPLOTYSERIE_XYPLOT_NAME", "yserie");
define ("REQUESTOUTPUTPLOTYSERIE_TIMEPLOT_NAME", "serie");

22521f1c   Benjamin Renard   First commit
6
define ("REQUESTOUTPUTPLOTYSERIE_INDEX", "index");
c0e7e5be   Benjamin Renard   Add integration f...
7
define ("REQUESTOUTPUTPLOTYSERIE_RESAMPLING", "resampling");
26a23052   Benjamin Renard   Add Interval Tick...
8
define ("REQUESTOUTPUTPLOTYSERIE_ERRORBAR", "errorBar");
22521f1c   Benjamin Renard   First commit
9
10
11
12
13
14

/**
 * @class RequestOutputPlotYSerieNodeClass
 * @brief Definition of a yserie for a plot of a plot request
 * @details
*/
26a23052   Benjamin Renard   Add Interval Tick...
15
class RequestOutputPlotYSerieNodeClass extends RequestOutputPlotBaseSerieNodeClass
22521f1c   Benjamin Renard   First commit
16
17
18
19
20
21
{
	public function __construct($name)
	{
		parent::__construct($name);
	}

22521f1c   Benjamin Renard   First commit
22
23
24
25
	public function setIndex($index)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTYSERIE_INDEX, $index);
	}
26a23052   Benjamin Renard   Add Interval Tick...
26
	
22521f1c   Benjamin Renard   First commit
27
28
29
30
	public function getIndex()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTYSERIE_INDEX);
	}
4ede4320   Benjamin Renard   Integration for s...
31
	
c0e7e5be   Benjamin Renard   Add integration f...
32
33
34
35
36
37
38
39
40
41
42
43
44
	public function getResampling()
	{
		$node = $this->getFirstChildByName(REQUESTOUTPUTPLOTYSERIE_RESAMPLING);
		
		if (!isset($node))
		{
			$node = new RequestOutputPlotResamplingNodeClass(REQUESTOUTPUTPLOTYSERIE_RESAMPLING);
			$this->addChild($node);
		}
		
		return $node;
	}
	
26a23052   Benjamin Renard   Add Interval Tick...
45
	public function getErrorBar()
f012b419   Benjamin Renard   Add integration f...
46
	{
26a23052   Benjamin Renard   Add Interval Tick...
47
		$node = $this->getFirstChildByName(REQUESTOUTPUTPLOTYSERIE_ERRORBAR);
f012b419   Benjamin Renard   Add integration f...
48
49
50
	
		if (!isset($node))
		{
26a23052   Benjamin Renard   Add Interval Tick...
51
			$node = new RequestOutputPlotYSerieErrorBarNodeClass(REQUESTOUTPUTPLOTYSERIE_ERRORBAR);
f012b419   Benjamin Renard   Add integration f...
52
53
54
55
56
			$this->addChild($node);
		}
	
		return $node;
	}
22521f1c   Benjamin Renard   First commit
57
58
59
}

?>