|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.rmi.server.RemoteObject | +--java.rmi.server.RemoteServer | +--java.rmi.server.UnicastRemoteObject | +--saaps.dbt.DatabaseRMIImpl
Provides a RMI server for Database
access.
Through the use of the DatabaseRMI
interface
it's possible to:
get information of available databases,
get MetaData
for a specific databse,
get different types of data from the database.
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Constructor Summary | |
DatabaseRMIImpl()
Runs the constructor of the superclass UnicastRemoteObject . |
Method Summary | |
java.util.Vector |
getData(java.lang.String theDb,
java.util.Date sd,
java.util.Date ed)
Gets a Vector of Database objects. |
java.util.Vector |
getDatabaseList()
Gets a list of available Database s. |
MetaData |
getMetaData(java.lang.String theDb)
Gets the MetaData for this Database . |
NetworkParam |
getNetworkParam(java.lang.String netParam)
Gets the parameters for the neural network. |
NormParam |
getNormParam(java.lang.String normParam,
int nof)
Gets the normalization parameters needed for the preprocessing of a TimeSeries object before it is input to a network. |
TimeSeries |
getTimeSeries(java.lang.String theDb,
java.util.Date sd,
java.util.Date ed)
Gets a TimeSeries object. |
static void |
main(java.lang.String[] args)
The main for the RMI server. |
TimeSeries |
retrieveElFluence()
|
TimeSeries |
retrieveElFluence(java.util.Date d)
|
ObjectTimeSeries |
retrieveOTS(java.lang.String theDB,
java.util.Date sd,
java.util.Date ed,
boolean before)
Gets an ObjectTimeSeries containing data between
the dates. |
TimeSeries |
retrieveSEA(java.lang.String theDB,
int fieldIndex,
java.util.Date[] events,
long start,
long end,
boolean withAdditionalInfo)
Retrieves a TimeSeries object containing the averaged data for the input event list. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone,
exportObject,
exportObject,
exportObject,
unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost,
getLog,
setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals,
getRef,
hashCode,
toString,
toStub |
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public DatabaseRMIImpl() throws java.rmi.RemoteException
UnicastRemoteObject
.Method Detail |
public java.util.Vector getDatabaseList()
Database
s.Vector
of Database
namespublic MetaData getMetaData(java.lang.String theDb)
MetaData
for this Database
.theDb
- Database
nameMetaData
for this Database
public java.util.Vector getData(java.lang.String theDb, java.util.Date sd, java.util.Date ed) throws java.io.IOException
Vector
of Database
objects.theDb
- Database
namesd
- start date/timeed
- end date/timepublic TimeSeries getTimeSeries(java.lang.String theDb, java.util.Date sd, java.util.Date ed) throws java.io.IOException
TimeSeries
object.theDb
- Database
namesd
- start date/timeed
- end date/timeTimeSeries
public ObjectTimeSeries retrieveOTS(java.lang.String theDB, java.util.Date sd, java.util.Date ed, boolean before) throws java.io.IOException, IllegalTimeSeriesException
ObjectTimeSeries
containing data between
the dates.theDB
- SAAPS database namesd
- start date for searched
- end date for searchbefore
- if true
then the first object returned
is before the start search date.public TimeSeries retrieveSEA(java.lang.String theDB, int fieldIndex, java.util.Date[] events, long start, long end, boolean withAdditionalInfo) throws java.io.IOException, TimeSeriesIndexException, IllegalTimeSeriesException
Database.retrieveSEA(int, Date[], long, long, boolean )
.theDB
- name of the SAAPS Database
fieldIndex
- index of the data fieldevents
- array of event timesstart
- event window starts here (normally negative [milliseconds])end
- event window ends here (normally positiv [milliseconds])withAdditionalInfo
- if true
get also the number of
data points and the standard deviation from the average.TimeSeries
object with fieldName
data for start to end time for every eventfieldIndex
is out of boundspublic NetworkParam getNetworkParam(java.lang.String netParam)
netParam
- network parameter nameNetworkParam
public NormParam getNormParam(java.lang.String normParam, int nof)
TimeSeries
object before it is input to a network.normParam
- normalization parameter namenof
- number of fieldsNormParam
public static void main(java.lang.String[] args)
DatabaseRMIImpl
to the registry.public TimeSeries retrieveElFluence() throws java.rmi.RemoteException
public TimeSeries retrieveElFluence(java.util.Date d) throws java.rmi.RemoteException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |