SINP.php 1.37 KB
<?php
/**
 * @class SINP
 * @brief  
 * @details
 */
class SINP extends SimulationDataCenterClass
{
	protected $url = "http://smdc.sinp.msu.ru/impex";
	protected $treeXML = "SINP_tree.xml";
	protected $WSDL = "SINP_methods.wsdl";
	
	protected $needsArgs = true;
	protected $soapMethod = 'calculateDataPointValue';
		
	// OutputFormat  netCDF VOTable 
	public $outputFormat = "VOTable";
		
	protected function createMissionNodes() 
	 {	 
		$missionNodes =  array();
		
		foreach ($this->tree->SimulationModel as $sm)
		{			
			$ResourceID = trim($sm->ResourceID);
			if (strpos($ResourceID, 'Static') === false)
			{			
				$simulationModel = $this->domAmda->createElement('simulationModel');

				$simulationModel->setAttribute('xml:id', $sm->ResourceID);
				$simulationModel->setAttribute('name',   $sm->ResourceHeader->ResourceName);
			
				$simulationModel->setAttribute('desc',   $sm->ResourceHeader->Description.'<br/> ReleaseDate: '.$sm->ResourceHeader->ReleaseDate);					
				$this->setModelHelp($simulationModel,"");
				
				if ($this->tree->SimulationRun->count() > 0)			
				{
					$simulationRegionNodes = $this->createSimulationRegionNodes(trim($simulationModel->getAttribute('xml:id')));
					foreach ( $simulationRegionNodes as $node )
						$simulationModel->appendChild($node);
				}			
				$missionNodes[] = $simulationModel;
			}
	   }
	   
	   return $missionNodes;
	 }

}
?>