Package org.eclipse.mosaic.rti.api
Interface ComponentProvider
- All Known Implementing Classes:
MosaicComponentProvider
public interface ComponentProvider
Provides access to all components required for the simulation, such as the
TimeManagement
,
InteractionManagement
or FederationManagement
instances.-
Method Summary
Modifier and TypeMethodDescriptionCreates a new instance of aRandomNumberGenerator
.createRtiAmbassador
(String federateId) Creates a new instance of theRtiAmbassador
for the bridge between RTI and the ambassador.Returns the identifier of this federation for logging purposes.Provides access to theFederationManagement
implementation of this federation.Provides access to theInteractionManagement
implementation of this federation.Provides access to theMonitor
implementation of this federation.Provides access to theTimeManagement
implementation of this federation.
-
Method Details
-
getFederationId
Returns the identifier of this federation for logging purposes.- Returns:
- the identifier of this federation
-
getTimeManagement
Provides access to theTimeManagement
implementation of this federation.- Returns:
- the
TimeManagement
implementation
-
getFederationManagement
Provides access to theFederationManagement
implementation of this federation. TheFederationManagement
takes care of deploying, starting, and stopping of federates.- Returns:
- the
FederationManagement
implementation
-
getInteractionManagement
Provides access to theInteractionManagement
implementation of this federation. TheInteractionManagement
takes care of distributing interactions to subscribed ambassadors.- Returns:
- the
InteractionManagement
implementation
-
getMonitor
Provides access to theMonitor
implementation of this federation. TheMonitor
can be use to monitor certain events, e.g. the begin of the simulation, time of interactions, and the like.- Returns:
- the
Monitor
implementation
-
createRtiAmbassador
Creates a new instance of theRtiAmbassador
for the bridge between RTI and the ambassador.- Parameters:
federateId
- the unique ID of the federate- Returns:
- a new instance of the
RtiAmbassador
-
createRandomNumberGenerator
Creates a new instance of aRandomNumberGenerator
.- Returns:
- a new instance of the
RandomNumberGenerator
-