Blame view

php/RemoteDataCenter/SINP.php 1.37 KB
bf74fc2d   Elena.Budnik   IMPEX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?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';
bf74fc2d   Elena.Budnik   IMPEX
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
		
	// 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;
	 }

}
?>