Examples of Ftn2D


Examples of jnode.ftn.types.Ftn2D

            net = Integer.valueOf(part[0]);
            node = Integer.valueOf(part[1]);
          } else {
            node = Integer.valueOf(part[0]);
          }
          seen.add(new Ftn2D(net, node));
        } catch (NumberFormatException e) {
          logger.l2(MessageFormat.format(
              "Error: fail write seen {0} for lines {1}", parts,
              seenByLines), e);
        }
View Full Code Here

Examples of jnode.ftn.types.Ftn2D

          net = Integer.valueOf(part[0]);
          node = Integer.valueOf(part[1]);
        } else {
          node = Integer.valueOf(part[0]);
        }
        seen.add(new Ftn2D(net, node));
      }
    }
    return seen;
  }
View Full Code Here

Examples of jnode.ftn.types.Ftn2D

    @Test
    public void testRead2D() throws Exception {
        List<Ftn2D> r = FtnTools.read2D("250/25 463/68 5000/111");

        TestCase.assertEquals(3, r.size());
        TestCase.assertEquals(new Ftn2D(250,25), r.get(0));
        TestCase.assertEquals(new Ftn2D(463,68), r.get(1));
        TestCase.assertEquals(new Ftn2D(5000,111), r.get(2));
    }
View Full Code Here

Examples of jnode.ftn.types.Ftn2D

    @Test
    public void testRead2DSmart() throws Exception {
        List<Ftn2D> r = FtnTools.read2D("5030/2104 2404 5051/41");

        TestCase.assertEquals(3, r.size());
        TestCase.assertEquals(new Ftn2D(5030,2104), r.get(0));
        TestCase.assertEquals(new Ftn2D(5030,2404), r.get(1));
        TestCase.assertEquals(new Ftn2D(5051,41), r.get(2));
    }
View Full Code Here

Examples of jnode.ftn.types.Ftn2D

    @Test
    public void testRead2DSmart2() throws Exception {
        List<Ftn2D> r = FtnTools.read2D("5020/2141 2140");

        TestCase.assertEquals(2, r.size());
        TestCase.assertEquals(new Ftn2D(5020,2141), r.get(0));
        TestCase.assertEquals(new Ftn2D(5020,2140), r.get(1));
    }
View Full Code Here

Examples of jnode.ftn.types.Ftn2D

    @Test
    public void testRead2DBad() throws Exception {
        List<Ftn2D> r = FtnTools.read2D("5020/2141 sd2140 5030/141");

        TestCase.assertEquals(2, r.size());
        TestCase.assertEquals(new Ftn2D(5020,2141), r.get(0));
        TestCase.assertEquals(new Ftn2D(5030,141), r.get(1));
    }
View Full Code Here

Examples of jnode.ftn.types.Ftn2D

    @Test
    public void testRead2DBad2() throws Exception {
        List<Ftn2D> r = FtnTools.read2D("5020/2141 as2140 141");

        TestCase.assertEquals(1, r.size());
        TestCase.assertEquals(new Ftn2D(5020,2141), r.get(0));
    }
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.