public class ExtractUtil extends Object
Modifier and Type | Method and Description |
---|---|
static Optional<ILogicEntityRoute> |
findFirstRoute(IEntity entity,
Optional<String> resourceId,
Boolean pillars,
Boolean anchors)
Find any route satisfied by conditions in params
|
static Optional<INode> |
getNodeById(IEntity entity,
String id)
Try to find node by id in routes of optimization entity
in case of violations we don't try to find filtered nodes
|
static Optional<INode> |
getNodeById(IEntity entity,
String id,
INodeUnassigner unassignNodeManager)
Try to find node by ID in routes of optimization entity or unassignedNodeManager
(in this case, if node was filtered, it is in UnassignedNodeManager)
|
static List<INode> |
getNodesByType(IEntity entity,
Class<? extends INode> clazz)
Find nodes by type in routes of optimization result
|
static Optional<IResource> |
getResource(IEntity entity,
IDutyHours whs)
Find any resource in routes of optimization results who's duty hours intersect with
parameter whs
|
static Optional<IResource> |
getResource(IEntity entity,
String resourceId)
find resource by ID in routes of optimization result
|
static List<ILogicEntityRoute> |
getRoutes(IEntity entity,
IDutyHours whs)
Get routes with resource duty hours got intersection with working hours specified by param whs
|
static List<ILogicEntityRoute> |
getRoutesHavingPillars(IEntity entity)
Get routes containing pillars
|
static List<ILogicEntityRoute> |
getRoutesONS(IEntity entity,
Boolean justInUse)
Get routes containing ONS nodes
|
static List<IPillarNode> |
getRoutesPillars(IEntity entity)
get pillar nodes of all result routes
|
public static Optional<INode> getNodeById(IEntity entity, String id, INodeUnassigner unassignNodeManager)
entity
- result of optimizationid
- idunassignNodeManager
- - try to find node in unassignNodeManager toopublic static Optional<INode> getNodeById(IEntity entity, String id)
entity
- result of optimizationid
- idpublic static List<INode> getNodesByType(IEntity entity, Class<? extends INode> clazz)
entity
- result of optimizationclazz
- type of node to findpublic static Optional<IResource> getResource(IEntity entity, String resourceId)
entity
- result of optimizationresourceId
- resource Idpublic static Optional<IResource> getResource(IEntity entity, IDutyHours whs)
entity
- result of optimizationwhs
- working hours to checkpublic static List<ILogicEntityRoute> getRoutes(IEntity entity, IDutyHours whs)
entity
- result of optimizationwhs
- working hourspublic static List<ILogicEntityRoute> getRoutesONS(IEntity entity, Boolean justInUse)
entity
- result of optimizationjustInUse
- take in account just elements which are in use in the routespublic static List<IPillarNode> getRoutesPillars(IEntity entity)
entity
- entitypublic static List<ILogicEntityRoute> getRoutesHavingPillars(IEntity entity)
entity
- result of optimizationpublic static Optional<ILogicEntityRoute> findFirstRoute(IEntity entity, Optional<String> resourceId, Boolean pillars, Boolean anchors)
entity
- result of optimizationresourceId
- if present, look for routes containing this resource IDpillars
- if true, look for routes containing pillarsanchors
- if true, look for routes containing anchorsCopyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.