Package gog

Examples of gog.MDBObject


        List<gaiasimu.gaia.spacecraft.Transit> fovTransitsSub = fovTransits.subList(0, gc.getTransitNumber());
        fovTransits = fovTransitsSub;
      }
      // create and write MDBObject parameters as requested
      long t2 = System.currentTimeMillis();
      MDBObject mdbo = createMDBObject(as, fovTransits, random);
      mdbo.update();
      writeMDBObject(mdbo);
      if (as instanceof gaiasimu.universe.source.stellar.StarSystem) {
        gaiasimu.universe.source.AstroSource[] astroSourceComponents = as.getComponents();
        for (gaiasimu.universe.source.AstroSource asComponent : astroSourceComponents) {
          MDBObject componentMDBObject = createMDBObject(asComponent, fovTransits, new Random());
          componentMDBObject.update();
          writeMDBObject(componentMDBObject);
        }
      }

     
View Full Code Here


   * @return MDBObject MDBObject
   */
  private static MDBObject createMDBObject(final gaiasimu.universe.source.AstroSource anAstroSource, final List<gaiasimu.gaia.spacecraft.Transit> aFovTransits,
      final Random aRandom) throws GogException {
    try {
      MDBObject mdbo = new MDBObject(anAstroSource, aRandom, aFovTransits);
      return mdbo;
    } catch (Exception e) {
      throw new GogException(ErrorMessageFormat.format(GogErrorMessageKeys.Data.CREATION_FAILED, "MDB Object : "
          + e), e);
    }
View Full Code Here

TOP

Related Classes of gog.MDBObject

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.