|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Sensor<C extends Communication>
Brillien represents the probelms of real world as a free communications' flow. Components have 3 roles basically: start, receive communication and alter during communications This interface define all receptive behaviors which belongs to receiving part of its roles. A component should define and provide information about accepted message names, parameteres, types, synchronous or asynchronous call possibilities. This interface define the message-receiver functionality of a component. A Sensor object could contain an InputDivision object to validate the incoming messages. This is a decision point before procesing any incomping messages. Invalid input message are not delegeted to the component.
Method Summary | |
---|---|
void |
activateMessaging()
Makes the object active |
Object |
communicationReceived(C message)
Notification method about an incoming text-based message addressed to this Sensor. |
Object |
errorReceived(C message)
Special method invoked by Brillien if an error message has been received. |
void |
passivateMessaging()
Makes the object passive. |
void |
presenseChangedState(String entityName,
State oldState,
State newState)
Invoked when this entity has been registered as a listener to other entity's state change events |
Method Detail |
---|
Object errorReceived(C message) throws BrillienException
message
- error message received
BrillienException
- in case of unhandled errorObject communicationReceived(C message) throws BrillienException
message
- message object received
BrillienException
- Exception thrown in a problematic situationvoid activateMessaging() throws BrillienException
BrillienException
void passivateMessaging() throws BrillienException
BrillienException
void presenseChangedState(String entityName, State oldState, State newState) throws BrillienException
BrillienException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |