Open Kilda Java Documentation
org.openkilda.pce.provider.PathComputerMock Class Reference
Inheritance diagram for org.openkilda.pce.provider.PathComputerMock:
org.openkilda.pce.provider.PathComputer

Public Member Functions

Long getWeight (IslInfoData isl)
 
ImmutablePair< PathInfoData, PathInfoDatagetPath (Flow flow, AvailableNetwork currentNetwork, Strategy strategy)
 
ImmutablePair< PathInfoData, PathInfoDatagetPath (Flow flow, Strategy strategy)
 
List< FlowInfogetFlowInfo ()
 
AvailableNetwork getAvailableNetwork (boolean ignoreBandwidth, long requestedBandwidth)
 
PathComputer withNetwork (MutableNetwork< SwitchInfoData, IslInfoData > network)
 
- Public Member Functions inherited from org.openkilda.pce.provider.PathComputer
default List< FlowgetAllFlows ()
 
default List< FlowgetFlow (String flowId)
 
default List< FlowgetFlows (String flowId)
 
default List< SwitchInfoDatagetSwitches ()
 
default List< IslInfoDatagetIsls ()
 

Detailed Description

Definition at line 41 of file PathComputerMock.java.

Member Function Documentation

◆ getAvailableNetwork()

AvailableNetwork org.openkilda.pce.provider.PathComputerMock.getAvailableNetwork ( boolean  ignoreBandwidth,
long  requestedBandwidth 
)

Loads network and ignores all ISLs with not enough available bandwidth if ignoreBandwidth is false.

Parameters
ignoreBandwidthdefines if available bandwidth of links should be taken into account for calculations.
requestedBandwidthlinks in path should have enough amount of available bandwidth.
Returns
built network.

Implements org.openkilda.pce.provider.PathComputer.

Definition at line 87 of file PathComputerMock.java.

◆ getFlowInfo()

List<FlowInfo> org.openkilda.pce.provider.PathComputerMock.getFlowInfo ( )

Interact with the PathComputer to get the FlowInfo for all flows.

Returns
a list containing the "key" flow info for all flows.

Implements org.openkilda.pce.provider.PathComputer.

Definition at line 82 of file PathComputerMock.java.

◆ getPath() [1/2]

ImmutablePair<PathInfoData, PathInfoData> org.openkilda.pce.provider.PathComputerMock.getPath ( Flow  flow,
AvailableNetwork  network,
Strategy  strategy 
)

Gets path between source and destination switches for specified flow in preloaded network topology.

Parameters
flowFlow instances
networkprepared network where searching will be performed.
Returns
PathInfoData instances

Implements org.openkilda.pce.provider.PathComputer.

Definition at line 51 of file PathComputerMock.java.

◆ getPath() [2/2]

ImmutablePair<PathInfoData, PathInfoData> org.openkilda.pce.provider.PathComputerMock.getPath ( Flow  flow,
Strategy  strategy 
)

Gets path between source and destination switch for specified flow.

Parameters
flowFlow instances
Returns
PathInfoData instances

Implements org.openkilda.pce.provider.PathComputer.

Definition at line 77 of file PathComputerMock.java.

◆ getWeight()

Long org.openkilda.pce.provider.PathComputerMock.getWeight ( IslInfoData  isl)

Gets isl weight.

Parameters
islisl instance
Returns
isl weight

Implements org.openkilda.pce.provider.PathComputer.

Definition at line 45 of file PathComputerMock.java.

◆ withNetwork()

PathComputer org.openkilda.pce.provider.PathComputerMock.withNetwork ( MutableNetwork< SwitchInfoData, IslInfoData network)

Definition at line 161 of file PathComputerMock.java.


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