public class ProvisioningAction
extends Object
Provides a set of actions to be returned by provisioning algorithms. These actions are:
Although the ProvisioningAction
class is common for all actions, its meaning (i.e.
action type) depends on the constructor used to get an instance. Take a look
on the description of the constructors to obtain more information.
Modifier and Type | Class and Description |
---|---|
static class |
ProvisioningAction.ActionType
Type of action.
|
Constructor and Description |
---|
ProvisioningAction(int routeId)
Constructor to define a 'restore to primary' action.
|
ProvisioningAction(int routeId,
double trafficVolumeInErlangs,
int[] sequenceOfLinksAndSegments)
Constructor to define a 'reroute' action.
|
Modifier and Type | Method and Description |
---|---|
ProvisioningAction.ActionType |
getActionType()
Returns the action type.
|
int |
getModifyRouteId()
Returns the identifier of the route to be modified.
|
int[] |
getModifySequenceOfLinksAndSegments()
Returns the new sequence of links of the route to be modified.
|
double |
getModifyTrafficVolumeInErlangs()
Returns the new traffic volume of the route to be modified.
|
int |
getRestoreRouteId()
Returns the identifier of the route to be restored.
|
String |
toString()
Returns a
String representation of the object. |
public ProvisioningAction(int routeId)
Constructor to define a 'restore to primary' action.
routeId
- Route identifierpublic ProvisioningAction(int routeId, double trafficVolumeInErlangs, int[] sequenceOfLinksAndSegments)
Constructor to define a 'reroute' action.
routeId
- Route identifiertrafficVolumeInErlangs
- New traffic volumesequenceOfLinksAndSegments
- New sequence of links (and segments)public ProvisioningAction.ActionType getActionType()
public int getModifyRouteId()
public double getModifyTrafficVolumeInErlangs()
public int[] getModifySequenceOfLinksAndSegments()
public int getRestoreRouteId()
public String toString()
String
representation of the object.toString
in class Object
String
representation of the object