Class RelationshipController
java.lang.Object
com.dna.jopt.member.bucket.entity.controller.relationship.RelationshipController
- All Implemented Interfaces:
- IRelationshipController,- Serializable
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddRelationShipCost(double addCost) Adds therelationship costto the already existingrelationship cost.voidAdds the inputILogicRouteElementDetailItemon thenode2DetailsPersistendMapas well as on thenode2DetailsMap.copy()Returns a copy of theIRelationshipController.Gets the persistent map with theIOptimizationElementand theILogicRouteElementDetailItem.Gets the map containing allINode2NodeRelationsand the linkedcostdoubleGets therelationship cost.Gets theOptionalILogicRouteElementDetailItem.Returns a copy of theIRelationshipController.voidputRelation2CostItem(INode2NodeRelation rel, RelationShipCostItem costitem) Puts a cost of a certainINode2NodeRelationin the map.voidSets the persistent map with theIOptimizationElementand theILogicRouteElementDetailItem.voidSets theINode2NodeRelationtocostitem map.voidsetRelationShipCost(double cost) Sets the relationship cost.voidSets the map with theIOptimizationElementand theILogicRouteElementDetailItem.
- 
Constructor Details- 
RelationshipControllerpublic RelationshipController()
 
- 
- 
Method Details- 
putRelation2CostItemDescription copied from interface:IRelationshipControllerPuts a cost of a certainINode2NodeRelationin the map.- Specified by:
- putRelation2CostItemin interface- IRelationshipController
- Parameters:
- rel- the iNode2NodeRelation
- costitem- the double cost
 
- 
getRelation2CostItemMapDescription copied from interface:IRelationshipControllerGets the map containing allINode2NodeRelationsand the linkedcost- Specified by:
- getRelation2CostItemMapin interface- IRelationshipController
- Returns:
- the relation to cost item map
 
- 
setRelation2CostItemMapDescription copied from interface:IRelationshipControllerSets theINode2NodeRelationtocostitem map.- Specified by:
- setRelation2CostItemMapin interface- IRelationshipController
- Parameters:
- map- the map to set
 
- 
setRelationShipCostpublic void setRelationShipCost(double cost) Description copied from interface:IRelationshipControllerSets the relationship cost.- Specified by:
- setRelationShipCostin interface- IRelationshipController
- Parameters:
- cost- the double new relation ship cost
 
- 
getRelationShipCostpublic double getRelationShipCost()Description copied from interface:IRelationshipControllerGets therelationship cost.- Specified by:
- getRelationShipCostin interface- IRelationshipController
- Returns:
- the relation ship cost
 
- 
addRelationShipCostpublic void addRelationShipCost(double addCost) Description copied from interface:IRelationshipControllerAdds therelationship costto the already existingrelationship cost.- Specified by:
- addRelationShipCostin interface- IRelationshipController
- Parameters:
- addCost- the double cost to add
 
- 
addRelationShipDetailsDescription copied from interface:IRelationshipControllerAdds the inputILogicRouteElementDetailItemon thenode2DetailsPersistendMapas well as on thenode2DetailsMap.- Specified by:
- addRelationShipDetailsin interface- IRelationshipController
- Parameters:
- details- the iLogicRouteElementDetailItem to add
 
- 
getRelationShipDetailsDescription copied from interface:IRelationshipControllerGets theOptionalILogicRouteElementDetailItem.If the node2DetailsMapis empty returnsnode2DetailsPersistendMap.- Specified by:
- getRelationShipDetailsin interface- IRelationshipController
- Parameters:
- el- the iLogicRouteElementDetailItem of the- ILogicRouteElementDetailItem
- Returns:
- the map
 
- 
getRelationShipDetailMapDescription copied from interface:IRelationshipController- Specified by:
- getRelationShipDetailMapin interface- IRelationshipController
- Returns:
- the map
 
- 
setRelationShipDetailMapDescription copied from interface:IRelationshipControllerSets the map with theIOptimizationElementand theILogicRouteElementDetailItem.- Specified by:
- setRelationShipDetailMapin interface- IRelationshipController
- Parameters:
- map- the map to set
 
- 
getPersistendRelationShipDetailMapDescription copied from interface:IRelationshipControllerGets the persistent map with theIOptimizationElementand theILogicRouteElementDetailItem.- Specified by:
- getPersistendRelationShipDetailMapin interface- IRelationshipController
- Returns:
- the map
 
- 
setPersistentRelationShipDetailMappublic void setPersistentRelationShipDetailMap(Map<IOptimizationElement, ILogicRouteElementDetailItem> map) Description copied from interface:IRelationshipControllerSets the persistent map with theIOptimizationElementand theILogicRouteElementDetailItem.- Specified by:
- setPersistentRelationShipDetailMapin interface- IRelationshipController
- Parameters:
- map- the map to set
 
- 
partialCopyDescription copied from interface:IRelationshipControllerReturns a copy of theIRelationshipController.- Specified by:
- partialCopyin interface- IRelationshipController
- Returns:
- the controller
 
- 
copyDescription copied from interface:IRelationshipControllerReturns a copy of theIRelationshipController.- Specified by:
- copyin interface- IRelationshipController
- Returns:
- the copy
 
 
-