FMI_GUMICS.php 1.16 KB
<?php
/**
 * @class FMI_GUMICS
 * @brief  
 * @details
 */
class FMI_GUMICS extends SimulationDataCenterClass
{
	protected $url = "http://impex-fp7.fmi.fi/ws";
	protected $treeXML = "Tree_FMI_GUMICS.xml";
	protected $WSDL = "Methods_FMI.wsdl";
	
	protected $templateFile = "FMI_GUMICS_Templates.xml";
	protected $needsArgs = true;
	
	public $soapMethod = "getDataPointValue";
	 // OutputFormat netCDF, VOTable, ASCII 
	public $outputFormat = "VOTable";
	
	protected function createSimulationRegionNodes($id)
	{
		$simulationRegionNodes =  array();
		$simReg = "Earth.Magnetosphere";
		
		$simuRegion = $this->domAmda->createElement('simulationRegion');
		$simuRegion->setAttribute('xml:id', $this->param2dd("FMI_GUMICS_$simReg"));
		$simuRegion->setAttribute('name', $simReg); 
		$simuRegion->setAttribute('isAddable', true); 
		$simuRegion->setAttribute('rank', "5");
		$simuRegion->setAttribute('att', "simu/simu$simReg");
		
		$this->addSimulatedRegionToTargetsFile($simReg, "GSE"); 
		
		$simulationRegionNodes[] = $simuRegion;
		
		return $simulationRegionNodes;
	}
	
	protected function setModelHelp($node, $helpFile)
	{
		$node->setAttribute('att', 'simu/Gumics');	  
	}	 	 	 
}
?>