Open Kilda Java Documentation
org.openkilda.pce.model.SimpleSwitch Class Reference
Inheritance diagram for org.openkilda.pce.model.SimpleSwitch:

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
 

Detailed Description

This class is just a summary of what a switch is; sufficient for path computation.

Definition at line 30 of file SimpleSwitch.java.

Constructor & Destructor Documentation

◆ SimpleSwitch()

org.openkilda.pce.model.SimpleSwitch.SimpleSwitch ( SwitchId  dpid)

Definition at line 52 of file SimpleSwitch.java.

Member Function Documentation

◆ addOutbound()

SimpleSwitch org.openkilda.pce.model.SimpleSwitch.addOutbound ( SimpleIsl  isl)

Definition at line 57 of file SimpleSwitch.java.

◆ compareTo()

int org.openkilda.pce.model.SimpleSwitch.compareTo ( SimpleSwitch  other)

Definition at line 63 of file SimpleSwitch.java.

◆ equals()

boolean org.openkilda.pce.model.SimpleSwitch.equals ( Object  o)

Definition at line 70 of file SimpleSwitch.java.

◆ hashCode()

int org.openkilda.pce.model.SimpleSwitch.hashCode ( )

Definition at line 83 of file SimpleSwitch.java.

◆ toString()

String org.openkilda.pce.model.SimpleSwitch.toString ( )

Definition at line 89 of file SimpleSwitch.java.

Member Data Documentation

◆ dpid

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.

◆ outbound

final Map<SwitchId, Set<SimpleIsl> > org.openkilda.pce.model.SimpleSwitch.outbound

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.


The documentation for this class was generated from the following file: