public class DefaultLinkResourceAllocations extends Object implements LinkResourceAllocations
LinkResourceAllocations.| Constructor and Description |
|---|
DefaultLinkResourceAllocations(LinkResourceRequest request,
Map<Link,Set<ResourceAllocation>> allocations)
Creates a new link resource allocations.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Set<ResourceAllocation> |
getResourceAllocation(Link link)
Returns allocated resource for the given link.
|
int |
hashCode() |
IntentId |
intentId()
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 intentId()
LinkResourceAllocationsIntentId associated with the request.intentId in interface LinkResourceAllocationsIntentId associated with the requestpublic Collection<Link> links()
LinkResourceAllocationslinks in interface LinkResourceAllocationspublic Set<ResourceRequest> resources()
LinkResourceAllocationsresources in interface LinkResourceAllocationspublic ResourceType type()
ResourceAllocationtype in interface ResourceAllocationpublic Set<ResourceAllocation> getResourceAllocation(Link link)
LinkResourceAllocationsgetResourceAllocation in interface LinkResourceAllocationslink - the target linkCopyright © 2015. All rights reserved.