RequestOutputPlotConstantNodeClass.php 874 Bytes
<?php

define ("REQUESTOUTPUTPLOTCONSTANT_NAME", "constantLine");
define ("REQUESTOUTPUTPLOTCONSTANT_VALUE", "value");
define ("REQUESTOUTPUTPLOTCONSTANT_ID", "id");

/**
 * @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);
	}
	
	public function setId($id)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTCONSTANT_ID, $id);
	}
	
	public function getId()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTCONSTANT_ID);
	}
}

?>