Collaboration diagram for The interaction protocol:
Modules | |
Interactive object | |
The module for simulated object defined as interactive object. | |
Interactor | |
TO DO . | |
Interaction objects and ids | |
The types and ids used for interaction. |
The format of the event is AccessLevelEvent which is valued with an integer value which is the access level of the interactor.
sendValuedEvent( <interactive object id>, EventId::getParameters, OMK::Type::IntType( (int)<access level of the interactor> ) ) ;
The format of the event is ConnectorsCategoryListEvent which is valued with an list of pairs of ids, the first is the connector id, the second the connector category.
OM::Type::TwoIdsListPrm connectorsList ; connectorsList.push_back( OM::Iii::TwoIdsPrm( <connector id>, <connector category> ) ); ... sendValuedEvent( <interactor id>, EventId::availableConnectors, OM::Type::TwoIdsListType( connectorsList ) ) ;
The format of the event is AccessCurrentValueEvent which is valued with an integer value which is the access level of the interactor associated to a list of pairs of ids, the first is the connector id, the second the output id which will receive the value.
OM::Type::AccessCurrentValuePrm connectorsToGet( <access level of the interactor> ) ; connectorsToGet.addItem( OM::Iii::TwoIdsPrm( <connector id>, <id of the output which will receive the value> ) ) ; ... sendValuedEvent( <interactive object id>, EventId::currentValue, OM::Type::AccessCurrentValueType( connectorsToGet ) ) ;
The format of the event is valued event with a PsPair defined by an id associated to data of the parameter type, the first is the connector id, the second the value of the parameter.
sendValuedEvent< PsPair< PsName, Type > >( <interactor id>, EventId::currentValue, PsPair< PsName, <Type> >( <id of the output which will receive the value>, <the current value of the parameter> ) ) ;
The format of the event is AccessTakeOverEvent which is valued with an integer value which is the access level of the interactor associated to a list of pairs of ids associated to a flag, the first id is the connector id, the second the output id which will be connected, the flag is the freeze flag.
OM::Iii::AccessTakeOverPrm connectorsToControl( <access level of the interactor> ) ; connectorsToControl.addItem( OM::Iii::ControlTakeOverPrm( <connector id>, <id of the output which will receive the value>, <freeze flag> ) ) ; ... sendValuedEvent( <interactive object id>, EventId::controlTakeOver, OM::Iii::AccessTakeOverType( connectorsToControl ) ) ;
The format of the event is ConnectorsListEvent which is valued with a list of connector ids which are in fact controlled by the interactor.
There is two formats for this event the first format is ConnectorsListEvent which is valued with a list of connector ids.
OM::Iii::ConnectorsList connectorsList ; connectorsList.push_back( <connector id> ) ; ... sendValuedEvent( <interactive object id>, EventId::controlRelease, connectorsList ) ;
sendEvent( <interactive object id>, EventId::controlRelease ) ;
The format of the event is ConnectorsListEvent which is valued with a list of connector ids which are no more controlled by the interactor.
The format of the event is ConnectorsListEvent which is valued with a list of connector ids.
OM::Iii::ConnectorsList connectorsList ; connectorsList.push_back( <connector id> ) ; ... sendValuedEvent( <interactive object id>, EventId::controlFreeze, connectorsList ) ;
There is two formats for this event the first format is ConnectorsListEvent which is valued with a list of connector ids.
OM::Iii::ConnectorsList connectorsList ; connectorsList.push_back( <connector id> ) ; ... sendValuedEvent( <interactive object id>, EventId::controlRelease, connectorsList ) ;
sendEvent( <interactive object id>, EventId::controlUnfreeze ) ;
Documentation generated on Mon Jun 9 11:45:59 2008 |
Generated with doxygen by Dimitri van Heesch , 1997-2007 |