Using Java Analysis Studio with Objy
import COM.objy.db.*; //Import Objectivity for Java
import COM.objy.db.app.*;
class ObjyEventSource implements EventSource {
public void openFederation() {
connection = Connection.open(federation, openmode);
} catch (DatabaseNotFoundException exception) {
} catch (DatabaseOpenException exception) {
SchemaPolicy policy = connection.getSchemaPolicy();
policy.setPolicyLocked();
session.setOpenMode(openmode);
dbItr = CMSFD.containedDBs();
while(dbItr.hasMoreElements()) {
ooDBObj CMSDB = (ooDBObj) dbItr.nextElement();
evcItr = CMSDB.contains();
We developed a JAS Data Interface Module - ObjyDIM
- Implements LocalDIM with a Wizard calling ObjyEventSource
-
public hep.analysis.EventSource openDataSet(String name)
return new ObjyEventSource(name);
}
- ObjyEventSource opens the named federation, then supplies methods to:
- Iterate through named (or all) database(s)
- For each database, iterate through named (or all) containers
- For each container, iterate through all Event objects
- The JAS beforeFirstEvent, getNextEvent, etc. methods are thus supported