16 package org.openkilda.topo;
18 import java.beans.Transient;
25 private final Switch topoSwitch;
26 private final Port switchPort;
28 private transient String slug;
30 private static final String NULL_ID =
"0";
39 if (topoSwitch == null)
throw new IllegalArgumentException(
"Switch can't be null");
40 this.topoSwitch = topoSwitch;
41 this.switchPort = (switchPort != null) ? switchPort:
new Port(this.topoSwitch,NULL_ID);
42 this.portQueue = (portQueue != null) ? portQueue:
new PortQueue(this.switchPort,NULL_ID);
47 this( (portQueue == null) ?
50 (portQueue == null) ? null : portQueue.
getParent(),
75 if (
this == o)
return true;
80 if (topoSwitch != null ? !topoSwitch.
equals(that.topoSwitch) : that.topoSwitch != null)
82 if (switchPort != null ? !switchPort.
equals(that.switchPort) : that.switchPort != null)
84 return portQueue != null ? portQueue.
equals(that.portQueue) : that.portQueue == null;
static void main(String[] args)
LinkEndpoint(PortQueue portQueue)
static final String toString(Switch aSwitch)
LinkEndpoint(Switch topoSwitch, Port switchPort, PortQueue portQueue)