Changes between Version 9 and Version 10 of Java API
- Timestamp:
- 10/29/12 10:05:50 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Java API
v9 v10 18 18 The conduit is the mechanism in the MUSCLE runtime environment to send data. In the API, the {{{ConduitEntrance}}} and {{{ConduitExit}}} are accessible. The {{{ConduitEntrance}}} is used to send data, while the {{{ConduitExit}}} receives data. These entrances and exits, as we call them, can be accessed in two ways. Either they are created in the {{{addPortals()}}} method, or they are called on the fly in the code using the {{{out()}}} and {{{in()}}} methods. 19 19 20 The [doxygen:addPortals ] {{{addPortals()}}}method is called before the submodel starts, so the exits and entrances are stored as fields of your class. The conduit exit and entrance uses Java Generics to define what kind of data will be received or sent, both in the field declaration and in the addExit or addEntrance method. This allows for compile-time and run-time checking of data that is sent over the conduit.20 The [doxygen:addPortals addPortals()] method is called before the submodel starts, so the exits and entrances are stored as fields of your class. The conduit exit and entrance uses Java Generics to define what kind of data will be received or sent, both in the field declaration and in the addExit or addEntrance method. This allows for compile-time and run-time checking of data that is sent over the conduit. 21 21 {{{ 22 22 ConduitExit<double[]> exitA;