|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--generator2.Reporter
|
+--generator2.OracleReporter
Class for reporting the computed moving objects into an Oracle database. Requires classes111.zip or classes12.zip in the classpath.
| Field Summary | |
protected java.sql.Connection |
con
Database connection. |
protected java.lang.String |
dbExternalObjectTableName
Name of the table storing the external objects. |
protected java.lang.String |
dbMovingObjectTableName
Name of the table storing the moving objects. |
protected java.sql.PreparedStatement |
prepExtObjStmt
Prepared database statement for storing external objects. |
protected java.sql.PreparedStatement |
prepMovObjStmt
Prepared database statement for storing moving objects. |
| Fields inherited from class generator2.Reporter |
DEL_OBJECT, MOVE_OBJECT, NEW_OBJECT, numOfEdges, numOfPoints, objects, properties, random, SYMBOLLAYER, visualize, VIZ |
| Constructor Summary | |
OracleReporter(java.util.Properties properties,
DrawableObjects objects)
Constructor of the Oracle reporter. |
|
| Method Summary | |
void |
close()
Closes the reporter. |
static java.sql.Connection |
getConnection(java.util.Properties properties)
Returns the connection to the database. |
void |
removeReportedObjects()
Removes all reported objects. |
void |
reportDisappearingExternalObject(int time,
long id,
int repNum,
int objClass,
java.awt.Rectangle rect)
Reports a disappearing external object. |
void |
reportDisappearingObject(int time,
long id,
int repNum,
int objClass,
int x,
int y,
double doneDist,
int reportProbability)
Reports the characteristic properties of a dispappering object at a time stamp |
void |
reportMovingExternalObject(int time,
long id,
int repNum,
int objClass,
java.awt.Rectangle rect)
Reports a moved external object. |
int |
reportMovingObject(int time,
long id,
int repNum,
int objClass,
double x,
double y,
double speed,
double doneDist,
int nextNodeX,
int nextNodeY,
int reportProbability)
Reports the characteristic properties of a moving object at a time stamp according to its report probability. |
void |
reportNewExternalObject(int time,
long id,
int objClass,
java.awt.Rectangle rect)
Reports a new external object. |
int |
reportNewMovingObject(int time,
long id,
int objClass,
int x,
int y,
double speed,
int nextNodeX,
int nextNodeY,
int reportProbability)
Reports an new moving object if its report probability > 0. |
| Methods inherited from class generator2.Reporter |
getNumberOfReportedEdges, getNumberOfReportedPoints, reportDisappearingObject, reportDouble, reportEdge, reportInt, visualizeExternalObject, visualizeMovingObject |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.sql.Connection con
protected java.lang.String dbExternalObjectTableName
protected java.lang.String dbMovingObjectTableName
protected java.sql.PreparedStatement prepExtObjStmt
protected java.sql.PreparedStatement prepMovObjStmt
| Constructor Detail |
public OracleReporter(java.util.Properties properties,
DrawableObjects objects)
properties - properties of the generatorobjects - container of drawable objects| Method Detail |
public void close()
close in class Reporter
public static java.sql.Connection getConnection(java.util.Properties properties)
throws java.sql.SQLException,
java.lang.ClassNotFoundException
properties - properties of the generator
java.sql.SQLException
java.lang.ClassNotFoundExceptionpublic void removeReportedObjects()
removeReportedObjects in class Reporter
public void reportDisappearingExternalObject(int time,
long id,
int repNum,
int objClass,
java.awt.Rectangle rect)
reportDisappearingExternalObject in class Reportertime - time stampid - object idrepNum - report numberobjClass - object classrect - the area
public void reportDisappearingObject(int time,
long id,
int repNum,
int objClass,
int x,
int y,
double doneDist,
int reportProbability)
time - time stampid - object idrepNum - report numberobjClass - object classx - x-coordinatey - y-coordinatedoneDist - the distance since the last reportingreportProbability - value between (0..1000)
public void reportMovingExternalObject(int time,
long id,
int repNum,
int objClass,
java.awt.Rectangle rect)
reportMovingExternalObject in class Reportertime - time stampid - object idrepNum - report numberobjClass - object classrect - the area
public int reportMovingObject(int time,
long id,
int repNum,
int objClass,
double x,
double y,
double speed,
double doneDist,
int nextNodeX,
int nextNodeY,
int reportProbability)
reportMovingObject in class Reportertime - time stampid - object idrepNum - report numberobjClass - object classx - x-coordinatey - y-coordinatespeed - current speeddoneDist - the distance since the last reportingnextNodeX - x-coordinate of the next nodenextNodeY - y-coordinate of the next nodereportProbability - value between (0..1000)
public void reportNewExternalObject(int time,
long id,
int objClass,
java.awt.Rectangle rect)
reportNewExternalObject in class Reportertime - time stampid - object idobjClass - object classrect - the area
public int reportNewMovingObject(int time,
long id,
int objClass,
int x,
int y,
double speed,
int nextNodeX,
int nextNodeY,
int reportProbability)
reportNewMovingObject in class Reportertime - time stampid - object idobjClass - object classx - x-coordinate of starty - y-coordinate of startspeed - current speednextNodeX - x-coordinate of the next nodenextNodeY - y-coordinate of the next nodereportProbability - value between (0..1000)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||