![]() |
Open Kilda Java Documentation
|
Public Member Functions | |
SimpleSwitch (SwitchId dpid) | |
SimpleSwitch | addOutbound (SimpleIsl isl) |
int | compareTo (SimpleSwitch other) |
boolean | equals (Object o) |
int | hashCode () |
String | toString () |
Public Attributes | |
final SwitchId | dpid |
final Map< SwitchId, Set< SimpleIsl > > | outbound |
This class is just a summary of what a switch is; sufficient for path computation.
Definition at line 30 of file SimpleSwitch.java.
org.openkilda.pce.model.SimpleSwitch.SimpleSwitch | ( | SwitchId | dpid | ) |
Definition at line 52 of file SimpleSwitch.java.
SimpleSwitch org.openkilda.pce.model.SimpleSwitch.addOutbound | ( | SimpleIsl | isl | ) |
Definition at line 57 of file SimpleSwitch.java.
int org.openkilda.pce.model.SimpleSwitch.compareTo | ( | SimpleSwitch | other | ) |
Definition at line 63 of file SimpleSwitch.java.
boolean org.openkilda.pce.model.SimpleSwitch.equals | ( | Object | o | ) |
Definition at line 70 of file SimpleSwitch.java.
int org.openkilda.pce.model.SimpleSwitch.hashCode | ( | ) |
Definition at line 83 of file SimpleSwitch.java.
String org.openkilda.pce.model.SimpleSwitch.toString | ( | ) |
Definition at line 89 of file SimpleSwitch.java.
final SwitchId org.openkilda.pce.model.SimpleSwitch.dpid |
The DPID is used as the primary key in most/all places.
Definition at line 35 of file SimpleSwitch.java.
We are mostly interested in who this switch connects with. It might have multiple connections to the same switch over different ports. Allow for this by creating an map of lists.
key (String) = The destination switch dpid.
Definition at line 43 of file SimpleSwitch.java.