org.hd.d.pg2k.svrCore.location
Class Location

java.lang.Object
  extended by org.hd.d.pg2k.svrCore.location.Location

public final class Location
extends java.lang.Object

Classes to hold (time and space) location data on an item. Such location data is immutable.

This is not considered an attribute of an item in the Gallery, but instead data associated with such an item. Many may not have this data at all.

Location data is read from a Properties map using Location.Base.buildFromProperties() to construct the appropriate subtype of Base to contain the data (or throw an exception if there is one). See the routine's description for the properties used.

Note that while location data read for a specific exhibit is taken to be `specific' else not, this can be overridden by use of the `specific' flag which takes a boolean ``true'' or ``false'' value.

TODO: needs object verification after deserialisation and mutable values need to be cloned.

Version:
1.41 01/08/14
Author:
Damon Hart-Davis

Nested Class Summary
static class Location.Base
          Base of all location classes.
static class Location.DoubleValueAndBounds
          Value-and-error stored as doubles, eg for place.
static class Location.Estd
          Earth-standard coordinates.
static class Location.LongValueAndBounds
          Value-and-error stored as longs, eg for time.
private static class Location.None
          Singleton: represents an absence of location information.
static class Location.Time
          Just captures time; designed to be derived from.
static class Location.ValueAndBounds
          Base class of location value with error bounds.
 
Field Summary
static Location.Base NONE
          Single distinguished value meaning `no location info'.
 
Constructor Summary
private Location()
          Don't construct instances of this container class.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final Location.Base NONE
Single distinguished value meaning `no location info'.

Constructor Detail

Location

private Location()
Don't construct instances of this container class.


DHD Multimedia Gallery V1.57.21

Copyright (c) 1996-2011, Damon Hart-Davis. All rights reserved.