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 theRtiAmbassadorfor the bridge between RTI and the ambassador.Returns the identifier of this federation for logging purposes.Provides access to theFederationManagementimplementation of this federation.Provides access to theInteractionManagementimplementation of this federation.Provides access to theMonitorimplementation of this federation.Provides access to theTimeManagementimplementation 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 theTimeManagementimplementation of this federation.- Returns:
- the
TimeManagementimplementation
-
getFederationManagement
Provides access to theFederationManagementimplementation of this federation. TheFederationManagementtakes care of deploying, starting, and stopping of federates.- Returns:
- the
FederationManagementimplementation
-
getInteractionManagement
Provides access to theInteractionManagementimplementation of this federation. TheInteractionManagementtakes care of distributing interactions to subscribed ambassadors.- Returns:
- the
InteractionManagementimplementation
-
getMonitor
Provides access to theMonitorimplementation of this federation. TheMonitorcan be use to monitor certain events, e.g. the begin of the simulation, time of interactions, and the like.- Returns:
- the
Monitorimplementation
-
createRtiAmbassador
Creates a new instance of theRtiAmbassadorfor 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
-