Examples of BoostRef


Examples of project.gluebooster.object.BoostRef

      Pair<Map<Vertex, RectangularShape>, Map<Edge, Pair<RectangularShape, PolyLine>>> result = new Pair<Map<Vertex, RectangularShape>, Map<Edge, Pair<RectangularShape, PolyLine>>>();
      result.setFirst(new HashMap<Vertex, RectangularShape>());
      result.setSecond(new HashMap<Edge, Pair<RectangularShape, PolyLine>>());
      for (Entry<BoostRef, RectangularShape> entry : newLayout.getFirst().entrySet())
      {
         BoostRef key = entry.getKey();
         Object keyRef = key.getObject();
         if (VERTEX.equals(key.getInternalInformation().getType()))
         {
            result.getFirst().put((Vertex) keyRef, entry.getValue());
         } else if (EDGE.equals(key.getInternalInformation().getType()))
         {
            Pair<RectangularShape, PolyLine> pair = new Pair<RectangularShape, PolyLine>();
            pair.setFirst(entry.getValue());
            pair.setSecond(new PolyLine());
            result.getSecond().put((Edge) keyRef, pair);
View Full Code Here

Examples of project.gluebooster.object.BoostRef

      addVertex(from);

    if (! containsVertex(to))
      addVertex(to);

    addEdge(new BoostRef(), from, to);
  }
View Full Code Here

Examples of project.gluebooster.object.BoostRef

      BigDecimalUnaryOperation/*<BigDecimal>*/ squareFunction1 = new BigDecimalUnaryOperation(BigDecimalUnaryOperation.Operation.squared);
      PropertyChangeEventSourceByFunction squareEventSource1 = new PropertyChangeEventSourceByFunction("first", squareFunction1);
      Implements3<Predicate, HasPropertyChangeListener, Flushable> squareVertex1 = new Implements3<Predicate, HasPropertyChangeListener, Flushable>(squareEventSource1);
      squareEventSource1.setEventSource(squareVertex1);
     
      BoostRef edge1 = new BoostRef();
     
      BigDecimalUnaryOperation/*<BigDecimal>*/ squareFunction2 = new BigDecimalUnaryOperation(BigDecimalUnaryOperation.Operation.squared);
      PropertyChangeEventSourceByFunction squareEventSource2 = new PropertyChangeEventSourceByFunction("second", squareFunction2);
      Implements3<Predicate, HasPropertyChangeListener, Flushable> squareVertex2 = new Implements3<Predicate, HasPropertyChangeListener, Flushable>(squareEventSource2);
      squareEventSource2.setEventSource(squareVertex2);
View Full Code Here

Examples of project.gluebooster.object.BoostRef

      BigDecimalUnaryOperation/*<BigDecimal>*/ squareFunction1 = new BigDecimalUnaryOperation(BigDecimalUnaryOperation.Operation.squared);
      PropertyChangeEventSourceByFunction squareEventSource1 = new PropertyChangeEventSourceByFunction("first", squareFunction1);
      Implements3<Predicate, HasPropertyChangeListener, Flushable> squareVertex1 = new Implements3<Predicate, HasPropertyChangeListener, Flushable>(squareEventSource1);
      squareEventSource1.setEventSource(squareVertex1);
     
      BoostRef edge1 = new BoostRef(true);
     
     
      BigDecimalUnaryOperation/*<BigDecimal>*/ squareFunction2 = new BigDecimalUnaryOperation(BigDecimalUnaryOperation.Operation.squared);
      PropertyChangeEventSourceByFunction squareEventSource2 = new PropertyChangeEventSourceByFunction("second", squareFunction2);
      Implements3<Predicate, HasPropertyChangeListener, Flushable> squareVertex2 = new Implements3<Predicate, HasPropertyChangeListener, Flushable>(squareEventSource2);
      squareEventSource2.setEventSource(squareVertex2);

      BoostRef edge2 = new BoostRef(true);
     
      BigDecimalUnaryOperation/*<BigDecimal>*/ squareFunction3 = new BigDecimalUnaryOperation(BigDecimalUnaryOperation.Operation.squared);
      PropertyChangeEventSourceByFunction squareEventSource3 = new PropertyChangeEventSourceByFunction("third", squareFunction3);
      Implements3<Predicate, HasPropertyChangeListener, Flushable> squareVertex3 = new Implements3<Predicate, HasPropertyChangeListener, Flushable>(squareEventSource3);
      squareEventSource3.setEventSource(squareVertex3);
View Full Code Here

Examples of project.gluebooster.object.BoostRef

   public void testSimpleGraph3() throws Exception
   {
      //The graph are 2 successive square functions
     
      BigDecimalUnaryOperation/*<BigDecimal>*/ squareFunction1 = new BigDecimalUnaryOperation(BigDecimalUnaryOperation.Operation.squared);
      BoostRef edge1 = new BoostRef();
     
      BigDecimalUnaryOperation/*<BigDecimal>*/ squareFunction2 = new BigDecimalUnaryOperation(BigDecimalUnaryOperation.Operation.squared);


     DirectedSparseGraph<BigDecimalUnaryOperation/*<BigDecimal>*/, BoostRef> graph = new DirectedSparseGraph<BigDecimalUnaryOperation/*<BigDecimal>*/, BoostRef>();
View Full Code Here

Examples of project.gluebooster.object.BoostRef

   public void testSimpleGraph4() throws Exception
   {
      //The graph are 3 successive square functions
     
      BigDecimalUnaryOperation/*<BigDecimal>*/ squareFunction1 = new BigDecimalUnaryOperation(BigDecimalUnaryOperation.Operation.squared);
      BoostRef edge1 = new BoostRef();
      BigDecimalUnaryOperation/*<BigDecimal>*/ squareFunction2 = new BigDecimalUnaryOperation(BigDecimalUnaryOperation.Operation.squared);
      BoostRef edge2 = new BoostRef();
      BigDecimalUnaryOperation/*<BigDecimal>*/ squareFunction3 = new BigDecimalUnaryOperation(BigDecimalUnaryOperation.Operation.squared);


     DirectedSparseGraph<BigDecimalUnaryOperation/*<BigDecimal>*/, BoostRef> graph = new DirectedSparseGraph<BigDecimalUnaryOperation/*<BigDecimal>*/, BoostRef>();
     graph.addVertex(squareFunction1);
View Full Code Here

Examples of project.gluebooster.object.BoostRef

  
      //The graph operations are increment, increment, negate, increment, increment, negate in a loop
     
      BigDecimalUnaryOperation increment1 = new BigDecimalUnaryOperation(BigDecimalUnaryOperation.Operation.increment);
      increment1.getInternalInformation().setName("Increment 1");
      BoostRef edge1 = new BoostRef();
      BigDecimalUnaryOperation increment2 = new BigDecimalUnaryOperation(BigDecimalUnaryOperation.Operation.increment);
      increment2.getInternalInformation().setName("Increment 2");
      BoostRef edge2 = new BoostRef();
      BigDecimalUnaryOperation negate1 = new BigDecimalUnaryOperation(BigDecimalUnaryOperation.Operation.negate);
      negate1.getInternalInformation().setName("Negate 1");
      BoostRef edge3 = new BoostRef();
      BigDecimalUnaryOperation increment3 = new BigDecimalUnaryOperation(BigDecimalUnaryOperation.Operation.increment);
      increment3.getInternalInformation().setName("Increment 3");
      BoostRef edge4 = new BoostRef();
      BigDecimalUnaryOperation increment4 = new BigDecimalUnaryOperation(BigDecimalUnaryOperation.Operation.increment);
      increment4.getInternalInformation().setName("Increment 4");
      BoostRef edge5 = new BoostRef();
      BigDecimalUnaryOperation negate2 = new BigDecimalUnaryOperation(BigDecimalUnaryOperation.Operation.increment);//new BigDecimalUnaryOperation(BigDecimalUnaryOperation.Operation.negate);
      negate2.getInternalInformation().setName("Negate 2");
      BoostRef edge6 = new BoostRef();


     DirectedSparseGraph<BigDecimalUnaryOperation, BoostRef> graph = new DirectedSparseGraph<BigDecimalUnaryOperation, BoostRef>();
     graph.addVertex(increment1);
     graph.addVertex(increment2);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.