public interface INodeUnassigner extends Serializable
INode
from an ILogicEntityRoute
.
A Node
can get unassigned
in two ways: Either through the
AutoFilter
or it
contained hard constraint violations
.
Modifier and Type | Method and Description |
---|---|
void |
addUnassignedNodes(List<? extends IOptimizationElement> unassignedNodes)
Removes from the input all
Nodes that were already unassigned so there
are no duplicates, then adds the remaining Nodes to the list. |
void |
cleanUnassignedNodeList()
Clears the
list of unassign Nodes . |
Optional<IOptimizationElement> |
getUnassignedFirstNodeById(String id)
Gets the first
Node in unassigned Node corresponding with that Id. |
List<IOptimizationElement> |
getUnassignedNodes()
Gets a new
ArrayList with all the unassigned Nodes . |
List<IOptimizationElement> |
getUnassignedNodesById(String id)
Gets all the
unassigned Nodes with that ID. |
int |
getUnassignedNodesCount()
Gets the number of
unassigned Nodes . |
boolean |
hasUnassignedNodes()
Returns
true if there are already unassigned Nodes . |
boolean |
removeUnassignedNode(IOptimizationElement unassignedNode)
Removes the given
Nodes from list of unassigned Nodes . |
boolean |
removeUnassignedNodes(List<? extends IOptimizationElement> unassignedNodes)
Removes the input from the
List of unassigned Nodes , then returns the remaining unassigned Nodes . |
List<INodeFilterReason> |
unassignNodes(List<IEntity> entities,
List<IOptimizationElement> unassignedNodes)
Unassigns the given
Nodes . |
List<INodeFilterReason> unassignNodes(List<IEntity> entities, List<IOptimizationElement> unassignedNodes)
Nodes
. If Nodes
were
related
to the Nodes
to be unassigned, its resource constraints
get detached and
INode#setUnassigned(boolean)
is set to true
.entities
- the list of iEntities of the Nodes
unassignedNodes
- the list of iOptimizationElements to be unassignedvoid cleanUnassignedNodeList()
list
of unassign Nodes
.boolean removeUnassignedNode(IOptimizationElement unassignedNode)
Nodes
from list
of unassigned Nodes
.unassignedNode
- the iOptimizationElement nodes to be unassignedvoid addUnassignedNodes(List<? extends IOptimizationElement> unassignedNodes)
Nodes
that were already unassigned
so there
are no duplicates, then adds the remaining Nodes
to the list.unassignedNodes
- the iOptimizationElement Nodes to be added to the listboolean hasUnassignedNodes()
true
if there are already unassigned Nodes
.false
no Nodes
have been unassigned yetboolean removeUnassignedNodes(List<? extends IOptimizationElement> unassignedNodes)
List
of unassigned Nodes
, then returns the remaining unassigned Nodes
.unassignedNodes
- the iOptimizationElement to be removedList<IOptimizationElement> getUnassignedNodesById(String id)
unassigned Nodes
with that ID.id
- the string id of the Nodes
Nodes
with that IDOptional<IOptimizationElement> getUnassignedFirstNodeById(String id)
Node
in unassigned Node
corresponding with that Id.id
- the string Id of the Node
Node
found with that IDList<IOptimizationElement> getUnassignedNodes()
ArrayList
with all the unassigned Nodes
.int getUnassignedNodesCount()
unassigned Nodes
.unassigned Nodes
Copyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.