HiRISE

HiRISE.HiPlan.HOGG
Class HiLiner

java.lang.Object
  extended by HiRISE.HiPlan.HOGG.HiLiner
All Implemented Interfaces:
edu.asu.jmars.layer.obs.mro.MroCustomData

public class HiLiner
extends Object
implements edu.asu.jmars.layer.obs.mro.MroCustomData

A source of HiRISE footprint outline data for MTT.

Version:
2.23
Author:
Christian Schaller - UA/PIRL

Nested Class Summary
static class HiLiner.CrosshairsColor
           
static class HiLiner.CrosshairsStyle
           
static class HiLiner.Footprint
          A HiRISE CCD footprint.
 
Field Summary
static String CROSSHAIRS_COLOR
           
static String CROSSHAIRS_STYLE
           
static HiLiner.CrosshairsColor DEFAULT_CROSSHAIRS_COLOR
           
static HiLiner.CrosshairsStyle DEFAULT_CROSSHAIRS_STYLE
           
static String ID
          Class identification name with source code version and date.
 
Constructor Summary
HiLiner(Observation_Record_Broker broker)
          Creates a HiLiner from a specified observation record broker.
 
Method Summary
 Map<String,Object> getProperties(String ptfRecordText)
          Retrieves custom properties for the requested PTF observation.
 List<Map<String,Object>> getProperties(String[] ptfRecordTextArray)
          Retrieves custom properties for each requested PTF observation.
protected  void updateCache(Observation_Record observation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
Class identification name with source code version and date.

See Also:
Constant Field Values

CROSSHAIRS_STYLE

public static final String CROSSHAIRS_STYLE
See Also:
Constant Field Values

DEFAULT_CROSSHAIRS_STYLE

public static final HiLiner.CrosshairsStyle DEFAULT_CROSSHAIRS_STYLE

CROSSHAIRS_COLOR

public static final String CROSSHAIRS_COLOR
See Also:
Constant Field Values

DEFAULT_CROSSHAIRS_COLOR

public static final HiLiner.CrosshairsColor DEFAULT_CROSSHAIRS_COLOR
Constructor Detail

HiLiner

public HiLiner(Observation_Record_Broker broker)
Creates a HiLiner from a specified observation record broker.

Parameters:
broker - the broker responsible for retrieving observation records from HiCat.
Method Detail

getProperties

public Map<String,Object> getProperties(String ptfRecordText)
                                 throws edu.asu.jmars.layer.obs.mro.RestartableException
Retrieves custom properties for the requested PTF observation.

If the HiLiner's database connection is not open, it will be opened for the retrieval of data for the requested observation. If opened by this method, it will be closed by this method.

Specified by:
getProperties in interface edu.asu.jmars.layer.obs.mro.MroCustomData
Parameters:
ptfRecordText - an entire PTF record in text format; the team ID is the usual primary key, but the entire PTF record is passed to maximize query context.
Returns:
a map of name/value pairs for the requested observation.
Throws:
edu.asu.jmars.layer.obs.mro.RestartableException - if a problem occurs that does not preclude additional attempts to retrieve the data.

getProperties

public List<Map<String,Object>> getProperties(String[] ptfRecordTextArray)
                                       throws edu.asu.jmars.layer.obs.mro.RestartableException
Retrieves custom properties for each requested PTF observation.

If the HiLiner's database connection is not open, it will be opened and held open for the bulk retrieval of data for each requested observation. If opened by this method, it will be closed by this method.

Specified by:
getProperties in interface edu.asu.jmars.layer.obs.mro.MroCustomData
Parameters:
ptfRecordTextArray - an array of PTF records in text format; the team ID is the usual primary key, but the entire PTF record in the array to maximize query context.
Returns:
an array of maps of PTF record/property set pairs; each property set is a map of property name/value pairs.
Throws:
edu.asu.jmars.layer.obs.mro.RestartableException - if a problem occurs that does not preclude additional attempts to retrieve the data.

updateCache

protected void updateCache(Observation_Record observation)

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona