Ray Milkey

Expose the obstacles Set in a method - needed for REST APIs

Change-Id: Ia688cb7d9407525673006f0fa61eab84eef5edee
......@@ -45,6 +45,15 @@ public class ObstacleConstraint extends BooleanConstraint {
this.obstacles = Collections.emptySet();
}
/**
* Returns the obstacle device ids.
*
* @return Set of obstacle device ids
*/
public Set<DeviceId> obstacles() {
return obstacles;
}
@Override
public boolean isValid(Link link, LinkResourceService resourceService) {
DeviceId src = link.src().deviceId();
......