at.ac.tuwien.infosys.sm4all.copal.api.processor
Interface ContextProcessor

All Known Implementing Classes:
AnnotatedProcessor, BaseProcessor

public interface ContextProcessor

Interface which processors of ContextEvents have to implement.

Author:
fei, sanjin

Method Summary
 ProcessorAction[] getActions()
          Returns the ProcessorAction which this ContextProcessor can process.
 java.lang.String getName()
          Returns the globally unique name of this ContextProcessor.
 ContextEvent[] process(ProcessorAction action, ContextEvent event)
          This method is called when a ContextEvent occurs which needs specified ProcessorAction to be executed on it that this ContextProcessor can handle.
 

Method Detail

getName

java.lang.String getName()
Returns the globally unique name of this ContextProcessor.

Returns:
the globally unique name of this ContextProcessor.

getActions

ProcessorAction[] getActions()
Returns the ProcessorAction which this ContextProcessor can process.

Returns:
the ProcessorAction which this ContextProcessor can process.

process

ContextEvent[] process(ProcessorAction action,
                       ContextEvent event)
This method is called when a ContextEvent occurs which needs specified ProcessorAction to be executed on it that this ContextProcessor can handle.

Parameters:
action - the ProcessorAction to be executed.
event - the occurred ContextEvent.
Returns:
the resulting ContextEvents of executing action on specified ContextEvent.


Copyright © 2010 Distributed Systems Group, Vienna University of Technology. All Rights Reserved.