cca-spec-babel
0.8.6-unstable(developer)
|
Event created when two components are connected. More...
Public Member Functions | |
EventType | getEventType () |
cca.TypeMap | getPortInfo () |
Get Properties of the affected Port. |
Event created when two components are connected.
Returns the integer from those enumerated that describes the event.
The semantics are noted before each member of the enum/static constant. We can add in different types of connect/disconnect as multiports and explicit local/global/sync/async semantics are agreed to in the future. At present we assume that:
All instances in a component cohort (often thought of as a single "parallel component") receive all the events and in the same order, but not necessarily globally synchronously.
For disconnections, within a process the events are delivered first to the using component then (if necessary) to the providing component.
Clearly some of the assumptions above may not suit a component instance in which multiple execution threads act on a single instance of the cca.Services
object (SMP). The Services specification is ambiguous as to whether such a component is even allowed.
When this is clarified, additional members of the enum may arise, in which case the assumptions here apply only to ConnectPending
, Connected
, DisconnectPending
, Disconnected
types.
cca.TypeMap gov.cca.ports.ConnectionEvent.getPortInfo | ( | ) |
Get Properties of the affected Port.
Among the standard properties are the name and type info. The keys are cca.portName, cca.portType.