org.demac.process.base.event
Class RequestServiceEvent
java.lang.Object
org.demac.event.Event
org.demac.event.MulticastEvent
org.demac.process.core.event.ProcessEvent
org.demac.process.base.event.RequestServiceEvent
public class RequestServiceEvent
- extends ProcessEvent
An Event to request a service.
Dispatched by the Process Service to request a service.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RequestServiceEvent
public RequestServiceEvent(java.lang.String id,
ServiceHandle service,
StrategyHandle strategy,
ParticipantHandle participant)
- Constructor to create a new org.demac.process.base.event.RequestServiceEvent
- Parameters:
id
- the id of the org.demac.process.base.dpdl.ActivityRef requsting the serviceservice
- the org.demac.process.core.dpdl.ServiceHandlestrategy
- a org.demac.process.core.dpdl.Strategy as a constraintparticipant
- a special org.demac.process.core.dpdl.Participant,
to determine whether the own device is the right participant to perform the activity.
getEventHandle
public EventHandle getEventHandle()
- Description copied from class:
Event
- Method to get the type of the event.
- Specified by:
getEventHandle
in class ProcessEvent
- Returns:
- the type of this event
- See Also:
Event.getEventHandle()
getPayload
public java.lang.Object getPayload()
- Description copied from class:
Event
- Method to get the payload of the event.
- Specified by:
getPayload
in class ProcessEvent
- Returns:
- the payload of the event.
- See Also:
Event.getPayload()