Package com.hp.hpl.jena.gvs.impl.util

Examples of com.hp.hpl.jena.gvs.impl.util.ToyClock


   * @see com.hp.hpl.jena.gvs.test.TestPerformer#perfromTest(org.wymiwyg.rdf.graphs.Graph[])
   */
  public boolean performTest(FCAGraph[] graphs) {
    try {
      for (int k = 0; k < 10; k++) {
        ToyClock clock = new ToyClock();
        Store store = new MemoryStoreImpl(clock);
        Source source = new SourceImpl(
            "http://example.org/graph-source");
        for (int i = 0; i < graphs.length; i++) {
          //TODO leanify on dec
          graphs[i] = new FCAGraphImpl(MoleculeBasedLeanifier
              .getLeanVersionOf(graphs[i]));
        }
        TimedGraphSequence tgs = TimedGraphSequence
            .getSequenceWithRandomDates(graphs);
        for (int i = 0; i < tgs.getSize(); i++) {
          clock.setTime(tgs.getDate(i));
          store.updateGraph(source, tgs.getGraph(i));
        }
        if (!StoreTest.compareAllVersions(store, source, tgs)) {
          return false;
        }
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.gvs.impl.util.ToyClock

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.