RequestOutputPlotBaseSerieNodeClass.php 2.78 KB
<?php

define ("REQUESTOUTPUTPLOTBASESERIE_YAXIS", "yAxis");
define ("REQUESTOUTPUTPLOTBASESERIE_XAXIS", "xAxis");
define ("REQUESTOUTPUTPLOTBASESERIE_COLORSERIEID", "colorSerieId");
define ("REQUESTOUTPUTPLOTBASESERIE_LINE", "line");
define ("REQUESTOUTPUTPLOTBASESERIE_SYMBOL", "symbol");
define ("REQUESTOUTPUTPLOTBASESERIE_TIMETICKS", "timeTick");
define ("REQUESTOUTPUTPLOTBASESERIE_INTERVALTICKS", "intervalTick");
define ("REQUESTOUTPUTPLOTBASESERIE_ID", "id");

/**
 * @class RequestOutputPlotBaseSerieNodeClass
 * @brief Definition of a base serie for a plot of a plot request
 * @details
*/
class RequestOutputPlotBaseSerieNodeClass extends NodeClass
{
	public function __construct($name)
	{
		parent::__construct($name);
	}

	public function setYAxisId($axisId)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTBASESERIE_YAXIS, $axisId);
	}

	public function getYAxisId()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTBASESERIE_YAXIS);
	}
	
	public function setXAxisId($axisId)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTBASESERIE_XAXIS, $axisId);
	}
	
	public function getXAxisId()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTBASESERIE_XAXIS);
	}
	

	public function setColorSerieId($colorSerieId)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTBASESERIE_COLORSERIEID, $colorSerieId);
	}
	
	public function getColorSerieId()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTBASESERIE_COLORSERIEID);
	}
	
	public function getLine()
	{
		$node = $this->getFirstChildByName(REQUESTOUTPUTPLOTBASESERIE_LINE);
	
		if (!isset($node))
		{
			$node = new RequestOutputPlotLineNodeClass(REQUESTOUTPUTPLOTBASESERIE_LINE);
			$this->addChild($node);
		}
	
		return $node;
	}
	
	public function getSymbol()
	{
		$node = $this->getFirstChildByName(REQUESTOUTPUTPLOTBASESERIE_SYMBOL);
		
		if (!isset($node))
		{
			$node = new RequestOutputPlotSymbolNodeClass(REQUESTOUTPUTPLOTBASESERIE_SYMBOL);
			$this->addChild($node);
		}
		
		return $node;
	}
	
	public function getTimeTicks()
	{
		$node = $this->getFirstChildByName(REQUESTOUTPUTPLOTBASESERIE_TIMETICKS);
	
		if (!isset($node))
		{
			$node = new RequestOutputPlotSerieTimeTicksNodeClass(REQUESTOUTPUTPLOTBASESERIE_TIMETICKS);
			$this->addChild($node);
		}
	
		return $node;
	}
	
	public function getIntervalTicks()
	{
		$node = $this->getFirstChildByName(REQUESTOUTPUTPLOTBASESERIE_INTERVALTICKS);
	
		if (!isset($node))
		{
			$node = new RequestOutputPlotSerieIntervalTicksNodeClass(REQUESTOUTPUTPLOTBASESERIE_INTERVALTICKS);
			$this->addChild($node);
		}
	
		return $node;
	}
	
	public function setId($id)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTBASESERIE_ID, $id);
	}
	
	public function getId()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTBASESERIE_ID);
	}
}

?>