Uses of Interface
com.dna.jopt.member.unit.resource.IResource
Package
Description
-
Uses of IResource in com.dna.jopt.framework.body
Modifier and TypeMethodDescriptionIOptimization.getReassignResources()
Optimization.getReassignResources()
Modifier and TypeMethodDescriptionvoid
IOptimization.addElement
(IResource res) Adds anIResource
to the optimization.void
Optimization.addElement
(IResource res) Modifier and TypeMethodDescriptionvoid
IOptimization.addReassignResources
(List<IResource> ress) Adds reassign resources.void
Optimization.addReassignResources
(List<IResource> ress) void
IOptimization.addResources
(List<IResource> resources) Adds allresources
in the list to the optimization.void
Optimization.addResources
(List<IResource> resources) -
Uses of IResource in com.dna.jopt.member.bucket.entity
Modifier and TypeMethodDescriptionModifier and TypeMethodDescriptionEntity.getRoutesByResource
(IResource res) IEntity.getRoutesByResource
(IResource res) -
Uses of IResource in com.dna.jopt.member.bucket.route
Modifier and TypeMethodDescriptionILogicEntityRoute.getCurrentVisitingResource()
Gets theIResource
that is visiting thisRoute
.LogicEntityRoute.getCurrentVisitingResource()
Modifier and TypeMethodDescriptionvoid
ILogicEntityRoute.setCurrentVisitingResource
(IResource res, int workingHourIndex) void
LogicEntityRoute.setCurrentVisitingResource
(IResource res, int workingHourIndex) -
Uses of IResource in com.dna.jopt.member.unit.node
Modifier and TypeMethodDescriptionvoid
IPillarNode.attachResource
(IResource mandatoryVisitor) Attaching themandatoryVisitor
as the visitingresource
will be treated as ahard constraint
if amandatoryVisitor
was set using this method. -
Uses of IResource in com.dna.jopt.member.unit.node.event
Modifier and TypeMethodDescriptionvoid
PillarEventNode.attachResource
(IResource mandatoryVisitor) -
Uses of IResource in com.dna.jopt.member.unit.node.geo
Modifier and TypeMethodDescriptionvoid
PillarTimeWindowGeoNode.attachResource
(IResource mandatoryVisitor) -
Uses of IResource in com.dna.jopt.member.unit.nodeedge
Modifier and TypeMethodDescriptionINodeEdgeConnector.getNodeConnection
(IOptimizationElement from, IOptimizationElement to, IResource visitor) Gets a specific node connection.NodeEdgeConnector.getNodeConnection
(IOptimizationElement fromElement, IOptimizationElement toElement, IResource visitor) long
INodeConnectorItem.getTimeMillis
(IResource visitor) Gets the traveling time in milliseconds correct for potential visitor modifications.long
INodeConnectorItem.getTimeMillis
(IResource visitor, Instant time) Gets the driving time as function of time.long
NodeEdgeConnectorItem.getTimeMillis
(IResource visitor) long
NodeEdgeConnectorItem.getTimeMillis
(IResource visitor, Instant time) -
Uses of IResource in com.dna.jopt.member.unit.nodeedge.backupconnector
Modifier and TypeMethodDescriptionjavax.measure.Quantity<javax.measure.quantity.Length>
DefaultFlatEarthAverageSpeedBackupElementConnector.getElement2ElementDistance
(String fromElementId, double fromElementLon, double fromElementLat, String toElementId, double toElementLon, double toElementLat, IResource visitor) Using flat place on earth formula to calculate the distance between twoIOptimizationElement
.javax.measure.Quantity<javax.measure.quantity.Length>
IBackupElementConnector.getElement2ElementDistance
(String fromElementId, double fromElementLon, double fromElementLat, String toElementId, double toElementLon, double toElementLat, IResource visitor) Calculates the distance between twoIOptimizationElement
defined by their unique id.DefaultFlatEarthAverageSpeedBackupElementConnector.getElement2ElementDuration
(String fromElementId, String toElementId, double distanceMeter, IResource visitor) Calculates the driving duration between twoIOptimizationElement
assuming the average resource-visitor speed.IBackupElementConnector.getElement2ElementDuration
(String fromElementId, String toElementId, double distanceMeter, IResource visitor) Calculates the driving duration between twoIOptimizationElement
defined by their unique id. -
Uses of IResource in com.dna.jopt.member.unit.nodeedge.externalprovider
Modifier and TypeMethodDescriptionIExternalConnectionProvider.getConnection
(IOptimizationElement fromElement, IOptimizationElement toElement, IResource visitor) Gets the connection. -
Uses of IResource in com.dna.jopt.member.unit.nodeedge.externalprovider.separatedprovider
Modifier and TypeMethodDescriptionSeparatedTestConnectionProvider.getConnection
(IOptimizationElement fromElement, IOptimizationElement toElement, IResource visitor) -
Uses of IResource in com.dna.jopt.member.unit.resource
Modifier and TypeClassDescriptionclass
Modifier and TypeFieldDescriptionstatic final Comparator<IResource>
ResourceComparators.EFF_FIXCOST_EFF_RES_COMP
static final Comparator<IResource>
ResourceComparators.EFF_RES_COMP
static final Comparator<IResource>
ResourceComparators.FIXCOST_RES_COMP
Modifier and TypeMethodDescriptionstatic IResource
AbstractBasicCapacityResource.copyWithNewId
(IResource src, String targetId) Modifier and TypeMethodDescriptionstatic IResource
AbstractBasicCapacityResource.copyWithNewId
(IResource src, String targetId) -
Uses of IResource in com.dna.jopt.util
Modifier and TypeMethodDescriptionExtractUtil.getResource
(IEntity entity, IDutyHours whs) Find any resource in routes of optimization results who's duty hours intersect with parameter whsExtractUtil.getResource
(IEntity entity, String resourceId) find resource by ID in routes of optimization result -
Uses of IResource in com.dna.jopt.util.nodesplitter
Modifier and TypeMethodDescriptionNodeSplitter.optiToResourceMap
(IOptimization opti) NodeSplitter.resourcesToResourceMap
(List<IResource> ress) Modifier and TypeMethodDescriptionNodeSplitter.resourcesToResourceMap
(List<IResource> ress) NodeSplitter.splitNodeByConstantMaxDuration
(INode srcNode, Map<String, IResource> map, BiFunction<INode, Integer, String> idGenerator, Duration maxIndividualDuration) Split node by constant max duration.NodeSplitter.splitNodeByConstantMaxNumber
(INode srcNode, Map<String, IResource> map, BiFunction<INode, Integer, String> idGenerator, int numElements) NodeSplitter.splitNodeByFlexibleDuration
(INode srcNode, Map<String, IResource> map, Duration maxIndividualDuration) Split node by flexible duration.NodeSplitter.splitNodeByFlexibleDuration
(INode srcNode, Map<String, IResource> map, Duration maxIndividualDuration, Duration minIndividualDuration) NodeSplitter.splitNodeByFlexibleDuration
(INode srcNode, Map<String, IResource> map, BiFunction<INode, Integer, String> idGenerator, Duration maxIndividualDuration, Duration minIndividualDuration, double splitRatio)