private void eventRaisedHandles(final star.event.Event event) {
   if (event
           .getClass()
           .getName()
           .equals(
               "molecule.ui.adjust.center.protein.tertiary.signal.CenterProteinTertiarySelectionEvent")
       && event.isValid()) {
     utils.Runner.runOnThread(
         new Runnable() {
           public void run() {
             long start = System.nanoTime();
             handleCenterProteinTertiarySelectionRaiser(
                 (molecule.ui.adjust.center.protein.tertiary.signal
                         .CenterProteinTertiarySelectionRaiser)
                     event.getSource());
             long end = System.nanoTime();
             if (end - start > 500000000) {
               System.out.println(
                   this.getClass().getName()
                       + ".handleCenterProteinTertiarySelectionRaiser "
                       + (end - start) / 1000000);
             }
           }
         },
         this,
         2);
   }
   if (event
           .getClass()
           .getName()
           .equals(
               "molecule.ui.adjust.center.protein.tertiary.signal.CenterProteinTertiaryFilterEvent")
       && event.isValid()) {
     utils.Runner.runOnThread(
         new Runnable() {
           public void run() {
             long start = System.nanoTime();
             handleCenterProteinTertiaryFilterRaiser(
                 (molecule.ui.adjust.center.protein.tertiary.signal
                         .CenterProteinTertiaryFilterRaiser)
                     event.getSource());
             long end = System.nanoTime();
             if (end - start > 500000000) {
               System.out.println(
                   this.getClass().getName()
                       + ".handleCenterProteinTertiaryFilterRaiser "
                       + (end - start) / 1000000);
             }
           }
         },
         this,
         2);
   }
 }
 private void eventAndGateRaisedHandles(final star.event.Event in_event[], final boolean valid) {
   final star.event.Event[] event = in_event;
   if (event != null
       && valid
       && event.length == 8
       && event[0]
           .getClass()
           .getName()
           .equals("star.hydrology.events.map.FlowaccumulationMapLayerEvent")
       && event[1]
           .getClass()
           .getName()
           .equals("star.hydrology.events.map.FlowdirectionMapLayerEvent")
       && event[2].getClass().getName().equals("star.hydrology.events.map.WatershedLayerEvent")
       && event[3]
           .getClass()
           .getName()
           .equals("star.hydrology.events.map.CurvaturePDFLMapLayerEvent")
       && event[4].getClass().getName().equals("star.hydrology.events.map.SlopePDFMapLayerEvent")
       && event[5]
           .getClass()
           .getName()
           .equals("star.hydrology.events.map.TopindexPDFMapLayerEvent")
       && event[6].getClass().getName().equals("star.hydrology.events.map.FilledMapLayerEvent")
       && event[7].getClass().getName().equals("star.hydrology.events.map.RegionalizationEvent")
       && true) {
     (new star.hydrology.events.map.RegionalizationStatisticsEvent(this, false)).raise();
     (new star.hydrology.events.map.RegionalizeWorkerMapLayerEvent(this, false)).raise();
     utils.Runner.runOnThread(
         new Runnable() {
           public void run() {
             long start = System.nanoTime();
             handle(
                 (star.hydrology.events.map.FlowaccumulationMapLayerRaiser) event[0].getSource(),
                 (star.hydrology.events.map.FlowdirectionMapLayerRaiser) event[1].getSource(),
                 (star.hydrology.events.map.WatershedLayerRaiser) event[2].getSource(),
                 (star.hydrology.events.map.CurvaturePDFLMapLayerRaiser) event[3].getSource(),
                 (star.hydrology.events.map.SlopePDFMapLayerRaiser) event[4].getSource(),
                 (star.hydrology.events.map.TopindexPDFMapLayerRaiser) event[5].getSource(),
                 (star.hydrology.events.map.FilledMapLayerRaiser) event[6].getSource(),
                 (star.hydrology.events.map.RegionalizationRaiser) event[7].getSource());
             long end = System.nanoTime();
             if (end - start > 500000000) {
               System.out.println(
                   this.getClass().getName() + ".handle " + (end - start) / 1000000);
             }
           }
         },
         this,
         2);
   }
 }
Exemplo n.º 3
0
 public static void main(String[] args) {
   Runner.runGroovyExample("io/vertx/example/web/authjdbc/server.groovy");
 }
Exemplo n.º 4
0
 public static void main(String[] args) {
   Runner.runJSExample("io/vertx/example/web/templating/server.js");
 }
Exemplo n.º 5
0
 public static void main(String[] args) {
   Runner.runJSExample("io/vertx/example/web/helloworld/server.js");
 }
Exemplo n.º 6
0
 public static void main(String[] args) {
   Runner.runRubyExample("io/vertx/example/web/sessions/server.rb");
 }
Exemplo n.º 7
0
 public static void main(String[] args) {
   Runner.runGroovyExample("io/vertx/example/web/rest/simple_rest.groovy");
 }
Exemplo n.º 8
0
  // Convenience method so you can run it in your IDE, from Vertx examples
  @BeforeClass
  public static void main() {

    Runner.runExample(TimeTests.class);
  }