public interface EventModel<X extends EventModel> extends Identifiable
Modifier and Type | Method and Description |
---|---|
X |
addResource(ResourceModel resource)
adds a resource to the container
|
X |
addResources(List<ResourceModel> resources)
adds a list of resources to the container
|
boolean |
containsDescriptor(String descriptor)
returns whether the event contains the specific descriptor.
|
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
|
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.
|
void |
lifecycleCallback(EventLifeCycle eventLifeCycle)
this method gets called when the different lifecycle-stages got reached.
|
getID, isOwner
String getType()
Identification getSource()
ListResourceProvider getListResourceContainer()
X addResource(ResourceModel resource)
resource
- an instance of the resource to addX addResources(List<ResourceModel> resources)
resources
- a list containing all the resourcesList<String> getDescriptors()
List<String> getAllInformations()
boolean containsDescriptor(String descriptor)
descriptor
- a string with the ID of the descriptorEventBehaviourControllerModel getEventBehaviourController()
void lifecycleCallback(EventLifeCycle eventLifeCycle)
eventLifeCycle
- the lifecycle reached.Copyright © 2016. All rights reserved.