public class ProgressResource extends Resource<HashMap<String,Long>>
Constructor and Description |
---|
ProgressResource(Identification provider)
creates a new Resource.
|
ProgressResource(Identification provider,
Identification consumer)
creates a new Resource.
|
ProgressResource(Identification provider,
Progress progress)
creates a new Resource.
|
ProgressResource(Identification provider,
Progress progress,
Identification consumer)
creates a new Resource.
|
Modifier and Type | Method and Description |
---|---|
static Optional<Progress> |
getProgress(EventModel eventModel)
gets the first Progress if found in the EventModel
|
getConsumer, getID, getProvider, getResource, getResourceID, hasProvider, setConsumer, setProvider, setResource, toList, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isOwner
public static final String ID
public ProgressResource(Identification provider)
provider
- the Provider of the Resourcepublic ProgressResource(Identification provider, Progress progress)
provider
- the Provider of the Resourceprogress
- the resourcepublic ProgressResource(Identification provider, Identification consumer)
provider
- the Provider of the Resourceconsumer
- the ID of the Consumerpublic ProgressResource(Identification provider, Progress progress, Identification consumer)
provider
- the Provider of the Resourceprogress
- the resourceconsumer
- the ID of the Consumerpublic static Optional<Progress> getProgress(EventModel eventModel)
eventModel
- the EventModelCopyright © 2016. All rights reserved.