stella.util
Interface TargetQuickProviding<T extends TargetDefinition>

All Superinterfaces:
TargetProviding<T>
All Known Implementing Classes:
TargetDatabase

public interface TargetQuickProviding<T extends TargetDefinition>
extends TargetProviding<T>

Classes implementing this interface are not only providing fully-fledged target definitions, but also provide some quick-access to stripped-down versions of the target definitions. This interface is only intended to solve problems, where quick accessibility of data is needed, i.e. on user interaction in GUIs etc. Per definition, this always acts on all targets, no discrimination on finished/activated are done.


Field Summary
 
Fields inherited from interface stella.TargetProviding
SERIAL, XML
 
Method Summary
 Map<String,StarDescription> mapToStars()
          This method retrieves a mapping of target names to StarDescription of the main star, if there is one.
 Map<String,String> mapToUsers()
          For convenience, as this is a often-used linking, this method returns a mapping of target-names (which are unique for a single telescope) to user names.
 
Methods inherited from interface stella.TargetProviding
addTarget, clear, getActiveTargets, getAllTargets, getCompletedTargets, getFromActive, getFromAll, removeTarget, restore
 

Method Detail

mapToUsers

Map<String,String> mapToUsers()
For convenience, as this is a often-used linking, this method returns a mapping of target-names (which are unique for a single telescope) to user names. Many classes do not require the full target defnitions but just a knowledge of target names as they are owned by PIs.


mapToStars

Map<String,StarDescription> mapToStars()
This method retrieves a mapping of target names to StarDescription of the main star, if there is one. The main star is guranteed to be at least marginally valid, i.e. it provides ra and de.