WSClientInterface.php 4.15 KB
<?php 
abstract class WSOutputFileFormat
{
	const NETCDF  = "netCDF";
	const VOTABLE = "VOTable";
	const ASCII   = "ASCII";
	const CDF   = "CDF";
}

abstract class WSOutputTimeFormat
{
	const ISO  = "ISO8601";
	const TIMESTAMP = "unixtime";
}

abstract class WSOrbitUnit
{
	const KM  = "km";
	const RS  = "Rs";
	const RJ  = "Rj";
	const RCA = "Rca";
	const RGA = "Rga";
	const RIO = "Rio";
	const REU = "Reu";
	const RV  = "Rv";
	const RM  = "Rm";
	const RE  = "Re";
	const AU  = "AU";
}

abstract class WSSpacecraft
{
	const CASSINI       = "Cassini";
	const GALILEO       = "Galileo";
	const VOYAGER1      = "Voyager_1";
	const VOYAGER2      = "Voyager_2";
	const PIONEER10     = "Pioneer_10";
	const PIONEER11     = "Pioneer_11";
	const PVO           = "PVO";
	const ACE           = "ACE";
	const VEX           = "VEX";
	const MEX           = "MEX";
	const MGS           = "MGS";
	const MAVEN         = "MAVEN";
	const MESSENGER     = "MESSENGER";
	const ULYSSES       = "ULYSSES";
	const STEREOA       = "Stereo-A";
	const STEREOB       = "Stereo-B";
	const WIND          = "WIND";
	const THEMISA       = "THEMIS-A";
	const THEMISB       = "THEMIS-B";
	const THEMISC       = "THEMIS-C";
	const THEMISD       = "THEMIS-D";
	const THEMISE       = "THEMIS-E";
	const CLUSTER1      = "CLUSTER1";
	const CLUSTER2      = "CLUSTER2";
	const CLUSTER3      = "CLUSTER3";
	const CLUSTER4      = "CLUSTER4";
	const DOUBLESTAR1   = "DoubleStar1";
	const IMP8          = "IMP-8";
	const GEOTAIL       = "GEOTAIL";
	const POLAR         = "POLAR";
	const INTERBALLTAIL = "INTERBALL-Tail";
	const ISEE1         = "ISEE-1";
	const ISEE2         = "ISEE-2";
}

abstract class WSCoordinatesSytem
{
	const CPHIO              = "CPHIO";
	const GPHIO              = "GPHIO";
	const IPHIO              = "IPHIO";
	const EPHIO              = "EPHIO";
	const EQUATORIAL         = "Equatorial";
	const CGM                = "CGM";
	const CARRINGTON         = "Carrington";
	const DM                 = "DM";
	const GEI                = "GEI";
	const GEO                = "GEO";
	const GSE                = "GSE";
	const GSEQ               = "GSEQ";
	const GSM                = "GSM";
	const HAE                = "HAE";
	const HCC                = "HCC";
	const HCI                = "HCI";
	const HCR                = "HCR";
	const HEE                = "HEE";
	const HEEQ               = "HEEQ";
	const HG                 = "HG";
	const HGI                = "HGI";
	const HPC                = "HPC";
	const HPR                = "HPR";
	const J2000              = "J2000";
	const LGM                = "LGM";
	const MAG                = "MAG";
	const MFA                = "MFA";
	const RTN                = "RTN";
	const SC                 = "SC";
	const SE                 = "SE";
	const SM                 = "SM";
	const SR                 = "SR";
	const SR2                = "SR2";
	const SSE                = "SSE";
	const SSE_L              = "SSE_L";
	const SPACECRAFTORBPLANE = "SpacecraftOrbitPlane";
	const WGS84              = "WGS84";
	const MSO                = "MSO";
	const VSO                = "VSO";
}

Interface WSClientInterface
{
	public function getTimeTablesList($userID = "", $password = "");

	public function getTimeTable($ttID, $userID = "", $password = "");

	public function getParameterList($userID, $password = "");

	public function getParameter($startTime, $stopTime, $parameterID, $sampling = 0, $userID = "", $password = "",
			$outputFormat = WSOutputFileFormat::NETCDF, $timeFormat = WSOutputTimeFormat::ISO, $gzip = 0);
			
	public function getStatus($processID);
	
	public function getDataset($startTime, $stopTime, $datasetID, $sampling = 0, $userID = "", $password = "",
			$outputFormat = WSOutputFileFormat::NETCDF, $timeFormat = WSOutputTimeFormat::ISO, $gzip = 0);

	public function getPlot($startTime, $stopTime, $missionID, $userID = "", $password = "");

	public function getResultPlot($plotDirectoryURL);

	public function getOrbites($startTime, $stopTime, $spacecraft, $coordinateSystem, $units = WSOrbitUnit::KM,
			$sampling = 0, $userID = "", $password = "", $outputFormat = WSOutputFileFormat::NETCDF,
			$timeFormat = WSOutputTimeFormat::ISO, $gzip = 0);

	public function isAlive();

	public function getObsDataTree();
}
?>