public static class PlacementConstraint.DelayedOr extends PlacementConstraint.CompositeConstraint<PlacementConstraint.TimedPlacementConstraint>
PlacementConstraint.TimedPlacementConstraint
). The scheduler
should try to satisfy first the first timed child constraint within the
specified time window. If this is not possible, it should attempt to
satisfy the second, and so on.Constructor and Description |
---|
DelayedOr(List<PlacementConstraint.TimedPlacementConstraint> children) |
DelayedOr(PlacementConstraint.TimedPlacementConstraint... children) |
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(PlacementConstraint.Visitor<T> visitor)
Visitor pattern.
|
List<PlacementConstraint.TimedPlacementConstraint> |
getChildren()
Get the children of this composite constraint.
|
String |
toString() |
equals, hashCode
build
public DelayedOr(List<PlacementConstraint.TimedPlacementConstraint> children)
public DelayedOr(PlacementConstraint.TimedPlacementConstraint... children)
public List<PlacementConstraint.TimedPlacementConstraint> getChildren()
PlacementConstraint.CompositeConstraint
getChildren
in class PlacementConstraint.CompositeConstraint<PlacementConstraint.TimedPlacementConstraint>
public <T> T accept(PlacementConstraint.Visitor<T> visitor)
PlacementConstraint.Visitable
T
- defines the type that the visitor will use and the return type
of the accept.visitor
- visitor to be usedpublic String toString()
toString
in class PlacementConstraint.AbstractConstraint
Copyright © 2008–2021 Apache Software Foundation. All rights reserved.