Interface IRelationshipController
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
RelationshipController
The Interface IRelationshipController.
- Since:
- 27/09/2019
- Version:
- 16/04/2023
- Author:
- Jens Richter
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addRelationShipCost
(double addCost) Adds therelationship cost
to the already existingrelationship cost
.void
Adds the inputILogicRouteElementDetailItem
on theRelationshipController.node2DetailsPersistendMap
as well as on theRelationshipController.node2DetailsMap
.copy()
Returns a copy of theIRelationshipController
.Gets the persistent map with theIOptimizationElement
and theILogicRouteElementDetailItem
.Gets the map containing allINode2NodeRelations
and the linkedcost
double
Gets therelationship cost
.Gets theOptional
ILogicRouteElementDetailItem
.Returns a copy of theIRelationshipController
.void
Puts a cost of a certainINode2NodeRelation
in the map.void
Sets the persistent map with theIOptimizationElement
and theILogicRouteElementDetailItem
.void
Sets theINode2NodeRelation
tocost
item map.void
setRelationShipCost
(double cost) Sets the relationship cost.void
Sets the map with theIOptimizationElement
and theILogicRouteElementDetailItem
.
-
Method Details
-
putRelation2CostItem
Puts a cost of a certainINode2NodeRelation
in the map.- Parameters:
rel
- the iNode2NodeRelationcost
- the double cost
-
getRelation2CostItemMap
Map<INode2NodeRelation,RelationShipCostItem> getRelation2CostItemMap()Gets the map containing allINode2NodeRelations
and the linkedcost
- Returns:
- the relation to cost item map
-
setRelation2CostItemMap
Sets theINode2NodeRelation
tocost
item map.- Parameters:
map
- the map to set
-
setRelationShipCost
void setRelationShipCost(double cost) Sets the relationship cost.- Parameters:
cost
- the double new relation ship cost
-
addRelationShipCost
void addRelationShipCost(double addCost) Adds therelationship cost
to the already existingrelationship cost
.- Parameters:
addCost
- the double cost to add
-
getRelationShipCost
double getRelationShipCost()Gets therelationship cost
.- Returns:
- the relation ship cost
-
copy
IRelationshipController copy()Returns a copy of theIRelationshipController
.- Returns:
- the copy
-
addRelationShipDetails
Adds the inputILogicRouteElementDetailItem
on theRelationshipController.node2DetailsPersistendMap
as well as on theRelationshipController.node2DetailsMap
.- Parameters:
details
- the iLogicRouteElementDetailItem to add
-
getRelationShipDetails
Gets theOptional
ILogicRouteElementDetailItem
.If the
RelationshipController.node2DetailsMap
is empty returnsRelationshipController.node2DetailsPersistendMap
.- Parameters:
el
- the iLogicRouteElementDetailItem of theILogicRouteElementDetailItem
- Returns:
- the map
-
getRelationShipDetailMap
Map<IOptimizationElement,ILogicRouteElementDetailItem> getRelationShipDetailMap()- Returns:
- the map
-
setRelationShipDetailMap
Sets the map with theIOptimizationElement
and theILogicRouteElementDetailItem
.- Parameters:
map
- the map to set
-
getPersistendRelationShipDetailMap
Map<IOptimizationElement,ILogicRouteElementDetailItem> getPersistendRelationShipDetailMap()Gets the persistent map with theIOptimizationElement
and theILogicRouteElementDetailItem
.- Returns:
- the map
-
setPersistentRelationShipDetailMap
Sets the persistent map with theIOptimizationElement
and theILogicRouteElementDetailItem
.- Parameters:
map
- the map to set
-
partialCopy
IRelationshipController partialCopy()Returns a copy of theIRelationshipController
.- Returns:
- the controller
-