RequestOutputPlotFillSerieConstantNodeClass.php 1.27 KB
<?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);
	}
	
	public function loadFromNode($xmlNode)
	{
		$this->setSerieId($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTFILLSERIECONSTANT_SERIEID));
		$this->setConstantId($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTFILLSERIECONSTANT_CONSTANTID));
		parent::loadFromNode($xmlNode);
	}
}

?>