public class EventMinimalImpl extends Object implements EventModel<EventMinimalImpl>
Constructor and Description |
---|
EventMinimalImpl(String type,
Identification source,
List<String> descriptors) |
EventMinimalImpl(String type,
Identification source,
List<String> descriptors,
java.util.function.Consumer<EventLifeCycle> callback) |
Modifier and Type | Method and Description |
---|---|
EventMinimalImpl |
addResource(ResourceModel resource)
adds a Resource to the Container
|
EventMinimalImpl |
addResources(List<ResourceModel> resources)
adds a List of Resources to the Container
|
boolean |
containsDescriptor(String descriptor)
returns whether the event contains the specific descriptor.
|
boolean |
equals(Object o) |
List<String> |
getAllInformations()
returns a List containing all the Descriptors and the type.
|
List<String> |
getDescriptors()
returns a List containing all the Descriptors.
|
EventBehaviourControllerModel |
getEventBehaviourController()
returns the associated EventBehaviourController
|
String |
getID()
An ID must always be unique.
|
ListResourceProvider |
getListResourceContainer()
returns all the Resources the Event currently has
|
Identification |
getSource()
returns the Source of the Event, e.g.
|
String |
getType()
The type of the Event.
|
int |
hashCode() |
void |
lifecycleCallback(EventLifeCycle eventLifeCycle)
this method gets called when the different lifecycle-stages got reached.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
isOwner
public EventMinimalImpl(String type, Identification source, List<String> descriptors)
public EventMinimalImpl(String type, Identification source, List<String> descriptors, java.util.function.Consumer<EventLifeCycle> callback)
public String getType()
getType
in interface EventModel<EventMinimalImpl>
public Identification getSource()
getSource
in interface EventModel<EventMinimalImpl>
public ListResourceProvider getListResourceContainer()
getListResourceContainer
in interface EventModel<EventMinimalImpl>
public EventMinimalImpl addResource(ResourceModel resource)
addResource
in interface EventModel<EventMinimalImpl>
resource
- an instance of the resource to addpublic EventMinimalImpl addResources(List<ResourceModel> resources)
addResources
in interface EventModel<EventMinimalImpl>
resources
- a list containing all the resourcespublic List<String> getDescriptors()
getDescriptors
in interface EventModel<EventMinimalImpl>
public List<String> getAllInformations()
getAllInformations
in interface EventModel<EventMinimalImpl>
public boolean containsDescriptor(String descriptor)
containsDescriptor
in interface EventModel<EventMinimalImpl>
descriptor
- a String with the ID of the Descriptorpublic EventBehaviourControllerModel getEventBehaviourController()
getEventBehaviourController
in interface EventModel<EventMinimalImpl>
public void lifecycleCallback(EventLifeCycle eventLifeCycle)
lifecycleCallback
in interface EventModel<EventMinimalImpl>
eventLifeCycle
- the lifecycle reached.public String getID()
getID
in interface Identifiable
Copyright © 2016. All rights reserved.