Package ch.rakudave.jnetmap.model.IF

Examples of ch.rakudave.jnetmap.model.IF.LogicalIF


  }
 
  private void addInterfaceIfMissing(Connection arg0, Device arg1, Device arg2) {
    if (arg1.getInterfaceFor(arg0) == null) {
      if (arg1.equals(arg2)) {
        arg1.addInterface(new LogicalIF(arg1, arg0, ""));
      } else {
        String t = arg1.getType().toString() + "";
        NetworkIF nif;
        if (t.contains("Switch") || t.contains("Hub") || t.contains("Wireless")) {
          nif = new TransparentIF(arg1, arg0, arg2.getInterfaceFor(arg0));
View Full Code Here


    c.setBandwidth(100);
    c.setType(Type.Ethernet);
    c.setStatus(i, Status.UP);
    h = new Host();
    i = new PhysicalIF(h, c, "192.168.0.35");
    ii = new LogicalIF(h, new Connection(), "127.0.0.1");
    iii = null;
    interfaces = new LinkedList<NetworkIF>();
    ifs = new LinkedList<NetworkIF>();
    interfaces.add(0, i);
    interfaces.add(1, ii);
View Full Code Here

TOP

Related Classes of ch.rakudave.jnetmap.model.IF.LogicalIF

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.