Class RelationshipController
java.lang.Object
com.dna.jopt.member.bucket.entity.controller.relationship.RelationshipController
- All Implemented Interfaces:
IRelationshipController
,Serializable
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addRelationShipCost
(double addCost) Adds therelationship cost
to the already existingrelationship cost
.void
Adds the inputILogicRouteElementDetailItem
on thenode2DetailsPersistendMap
as well as on thenode2DetailsMap
.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
putRelation2CostItem
(INode2NodeRelation rel, RelationShipCostItem costitem) 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
.
-
Constructor Details
-
RelationshipController
public RelationshipController()
-
-
Method Details
-
putRelation2CostItem
Description copied from interface:IRelationshipController
Puts a cost of a certainINode2NodeRelation
in the map.- Specified by:
putRelation2CostItem
in interfaceIRelationshipController
- Parameters:
rel
- the iNode2NodeRelationcostitem
- the double cost
-
getRelation2CostItemMap
Description copied from interface:IRelationshipController
Gets the map containing allINode2NodeRelations
and the linkedcost
- Specified by:
getRelation2CostItemMap
in interfaceIRelationshipController
- Returns:
- the relation to cost item map
-
setRelation2CostItemMap
Description copied from interface:IRelationshipController
Sets theINode2NodeRelation
tocost
item map.- Specified by:
setRelation2CostItemMap
in interfaceIRelationshipController
- Parameters:
map
- the map to set
-
setRelationShipCost
public void setRelationShipCost(double cost) Description copied from interface:IRelationshipController
Sets the relationship cost.- Specified by:
setRelationShipCost
in interfaceIRelationshipController
- Parameters:
cost
- the double new relation ship cost
-
getRelationShipCost
public double getRelationShipCost()Description copied from interface:IRelationshipController
Gets therelationship cost
.- Specified by:
getRelationShipCost
in interfaceIRelationshipController
- Returns:
- the relation ship cost
-
addRelationShipCost
public void addRelationShipCost(double addCost) Description copied from interface:IRelationshipController
Adds therelationship cost
to the already existingrelationship cost
.- Specified by:
addRelationShipCost
in interfaceIRelationshipController
- Parameters:
addCost
- the double cost to add
-
addRelationShipDetails
Description copied from interface:IRelationshipController
Adds the inputILogicRouteElementDetailItem
on thenode2DetailsPersistendMap
as well as on thenode2DetailsMap
.- Specified by:
addRelationShipDetails
in interfaceIRelationshipController
- Parameters:
details
- the iLogicRouteElementDetailItem to add
-
getRelationShipDetails
Description copied from interface:IRelationshipController
Gets theOptional
ILogicRouteElementDetailItem
.If the
node2DetailsMap
is empty returnsnode2DetailsPersistendMap
.- Specified by:
getRelationShipDetails
in interfaceIRelationshipController
- Parameters:
el
- the iLogicRouteElementDetailItem of theILogicRouteElementDetailItem
- Returns:
- the map
-
getRelationShipDetailMap
Description copied from interface:IRelationshipController
- Specified by:
getRelationShipDetailMap
in interfaceIRelationshipController
- Returns:
- the map
-
setRelationShipDetailMap
Description copied from interface:IRelationshipController
Sets the map with theIOptimizationElement
and theILogicRouteElementDetailItem
.- Specified by:
setRelationShipDetailMap
in interfaceIRelationshipController
- Parameters:
map
- the map to set
-
getPersistendRelationShipDetailMap
Description copied from interface:IRelationshipController
Gets the persistent map with theIOptimizationElement
and theILogicRouteElementDetailItem
.- Specified by:
getPersistendRelationShipDetailMap
in interfaceIRelationshipController
- Returns:
- the map
-
setPersistentRelationShipDetailMap
public void setPersistentRelationShipDetailMap(Map<IOptimizationElement, ILogicRouteElementDetailItem> map) Description copied from interface:IRelationshipController
Sets the persistent map with theIOptimizationElement
and theILogicRouteElementDetailItem
.- Specified by:
setPersistentRelationShipDetailMap
in interfaceIRelationshipController
- Parameters:
map
- the map to set
-
partialCopy
Description copied from interface:IRelationshipController
Returns a copy of theIRelationshipController
.- Specified by:
partialCopy
in interfaceIRelationshipController
- Returns:
- the controller
-
copy
Description copied from interface:IRelationshipController
Returns a copy of theIRelationshipController
.- Specified by:
copy
in interfaceIRelationshipController
- Returns:
- the copy
-