public class DefaultLinkResourceAllocations extends Object implements LinkResourceAllocations
LinkResourceAllocations.LinkResourceRequest.Builder| Constructor and Description |
|---|
DefaultLinkResourceAllocations(LinkResourceRequest request,
Map<Link,Set<ResourceAllocation>> allocations)
Creates a new link resource allocations.
|
| Modifier and Type | Method and Description |
|---|---|
Set<ResourceAllocation> |
getResourceAllocation(Link link)
Returns allocated resource for the given link.
|
IntentId |
intendId()
Returns the
IntentId associated with the request. |
Collection<Link> |
links()
Returns the set of target links.
|
Set<ResourceRequest> |
resources()
Returns the set of resource requests.
|
String |
toString() |
ResourceType |
type()
Returns the resource type.
|
public DefaultLinkResourceAllocations(LinkResourceRequest request, Map<Link,Set<ResourceAllocation>> allocations)
request - requested resourcesallocations - allocated resourcespublic IntentId intendId()
LinkResourceRequestIntentId associated with the request.intendId in interface LinkResourceRequestIntentId associated with the requestpublic Collection<Link> links()
LinkResourceRequestlinks in interface LinkResourceRequestpublic Set<ResourceRequest> resources()
LinkResourceRequestresources in interface LinkResourceRequestpublic ResourceType type()
ResourceRequesttype in interface ResourceRequestpublic Set<ResourceAllocation> getResourceAllocation(Link link)
LinkResourceAllocationsgetResourceAllocation in interface LinkResourceAllocationslink - the target linkCopyright © 2015. All rights reserved.