Examples of Trapezoid


Examples of org.foo.shape.trapezoid.Trapezoid

   */
  private static void publishTrapezoidService() {
    Hashtable dict = new Hashtable();
    dict.put(SimpleShape.NAME_PROPERTY, "Trapezoid");
    dict.put(SimpleShape.ICON_PROPERTY, new ImageIcon(Trapezoid.class.getResource("trapezoid.png")));
    fwk.getBundleContext().registerService(SimpleShape.class.getName(), new Trapezoid(), dict);
  }
View Full Code Here

Examples of org.neuroph.core.transfer.Trapezoid

    Iterator<Neuron> ii = setLayer.getNeuronsIterator();
    Enumeration<Integer> en;// =setLayer.neurons();
    int c = 0;
    while (ii.hasNext()) {
      Neuron cell = ii.next();
      Trapezoid tf = (Trapezoid) cell.getTransferFunction();

      if (c <= 3) {
        tf.setLeftLow(pointsSets[c][0]);
        tf.setLeftHigh(pointsSets[c][1]);
        tf.setRightLow(pointsSets[c][3]);
        tf.setRightHigh(pointsSets[c][2]);
      } else {
        tf.setLeftLow(timeSets[c - 4][0]);
        tf.setLeftHigh(timeSets[c - 4][1]);
        tf.setRightLow(timeSets[c - 4][3]);
        tf.setRightHigh(timeSets[c - 4][2]);
      }
      c++;
    }

    // povezi prvi i drugi sloj
View Full Code Here

Examples of org.neuroph.core.transfer.Trapezoid

    Iterator<Neuron> ii = setLayer.getNeuronsIterator();
    Enumeration<Integer> en;// =setLayer.neurons();
    int c = 0;
    while (ii.hasNext()) {
      Neuron cell = ii.next();
      Trapezoid tf = (Trapezoid) cell.getTransferFunction();
      /*
       * if (c<=3) { tf.setLeftLow(pointsSets[c][0]);
       * tf.setLeftHigh(pointsSets[c][1]); tf.setRightLow(pointsSets[c][3]);
       * tf.setRightHigh(pointsSets[c][2]); } else { tf.setLeftLow(timeSets[c-4][0]);
       * tf.setLeftHigh(timeSets[c-4][1]); tf.setRightLow(timeSets[c-4][3]);
View Full Code Here

Examples of org.ow2.easybeans.tests.common.ejbs.entity.geometricforms.Trapezoid

     * Creates an entity Trapezoid and modifies it.
     */
    @Override
    protected void createAndModifyEntity() {
        //creates a trapezoid
        Trapezoid trapezoid = new Trapezoid();
        trapezoid.setSide1(1);
        trapezoid.setSide2(2);
        trapezoid.setFormType(FormType.TRAPEZOID);
        entityManager.persist(trapezoid);
        entityManager.flush();

        //modifies the trapezoid
        trapezoid.setSide1(2);
        trapezoid.setSide2(1);
        entityManager.flush();
    }
View Full Code Here

Examples of org.ow2.easybeans.tests.common.ejbs.entity.geometricforms.Trapezoid

     * Creates an entity Trapezoid, modifies and refreshes it.
     */
    @Override
    protected void createAndRefreshEntity() {
        //creates a trapezoid
        Trapezoid trapezoid = new Trapezoid();
        trapezoid.setSide1(1);
        trapezoid.setSide2(2);
        trapezoid.setFormType(FormType.TRAPEZOID);
        entityManager.persist(trapezoid);
        entityManager.flush();

        //refresh the trapezoid
        trapezoid.setSide1(2);
        trapezoid.setSide2(1);
        entityManager.refresh(trapezoid);

    }
View Full Code Here

Examples of org.ow2.easybeans.tests.common.ejbs.entity.geometricforms.Trapezoid

     * Creates an entity Trapezoid and removes it.
     */
    @Override
    protected void createAndRemoveEntity() {
        //creates a trapezoid
        Trapezoid trapezoid = new Trapezoid();
        trapezoid.setSide1(1);
        trapezoid.setSide2(2);
        trapezoid.setFormType(FormType.TRAPEZOID);
        entityManager.persist(trapezoid);
        entityManager.flush();

        //removes the trapezoid
        entityManager.remove(trapezoid);
View Full Code Here

Examples of org.ow2.easybeans.tests.common.ejbs.entity.geometricforms.Trapezoid

     * Creates an entity Trapezoid.
     */
    @Override
    protected void createEntity() {
        //creates a trapezoid
        Trapezoid trapezoid = new Trapezoid();
        trapezoid.setSide1(1);
        trapezoid.setSide2(2);
        trapezoid.setFormType(FormType.TRAPEZOID);
        entityManager.persist(trapezoid);
        entityManager.flush();
    }
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.