|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.agmodel.genericBroker.DataSourceDetail
Holds a general description of a database containing spatially-oriented agricultural information.
Used by GenericBrokerRMI to pass database metadata to client applications, so Serializable.
Includes the concept of default display region, which is a small "sample" of the data set suitable
as a starting point for a graphical display (eg, show Mt Fuji or Tokyo Bay as a starting point for a database covering the whole of Japan).
Descendant classes describe particular kinds of databases (eg weather, maps, soils).
| Constructor Summary | |
DataSourceDetail(String ID,
String sourceName,
GeographicalArea coverage,
int loginRequirements)
Creates a data source description with default display region the same as coverage |
|
DataSourceDetail(String ID,
String sourceName,
GeographicalArea coverage,
int loginRequirements,
GeographicalArea defaultDisplayRegion)
Create a description of this database |
|
| Method Summary | |
int |
compareTo(Object o)
|
GeographicalArea |
getDefaultDisplayRegion()
A (small) sample area to display when the database is selected, particularly important if the database covers a wide area. |
GeographicalArea |
getGeographicalArea()
The portion of the globe that the database covers |
String |
getID()
Returns a unique ID which programs can use to identify the database. |
int |
getLoginRequirements()
Indicate the usercode and password detail that need to be supplied by users of the database Use the constants included with this interface. |
String |
getName()
The name of the database, suitable for presentation to the user. |
String |
toString()
The default to String is the name of the data source |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DataSourceDetail(String ID,
String sourceName,
GeographicalArea coverage,
int loginRequirements,
GeographicalArea defaultDisplayRegion)
ID - the identifier assigned by the broker to this database and used internally by applications.sourceName - the name of this database in the user's preferred languagecoverage - the area of the world that this database coversloginRequirements - whether this database requires that the user log in (see constants in GenericBrokerRMI)defaultDisplayRegion - an (interesting) sample display region for this database.
public DataSourceDetail(String ID,
String sourceName,
GeographicalArea coverage,
int loginRequirements)
ID - the identifier assigned by the broker to this database and used internally by applications.sourceName - the name of this database in the user's preferred languagecoverage - the area of the world that this database coversloginRequirements - whether this database requires that the user log in (see constants in GenericBrokerRMI)| Method Detail |
public String getID()
public String getName()
public GeographicalArea getGeographicalArea()
public GeographicalArea getDefaultDisplayRegion()
public int getLoginRequirements()
public String toString()
public int compareTo(Object o)
compareTo in interface Comparable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||