EdgeAgent

constructor(apollo: Apollo, castor: Castor, pluto: Pluto, mercury: Mercury, pollux: Pollux, connectionManager: ConnectionManager, seed: Seed?, api: Api?, logger: PrismLogger = PrismLoggerImpl(LogComponent.PRISM_AGENT), agentOptions: AgentOptions = AgentOptions())(source)

Initializes the EdgeAgent with the given dependencies.

Parameters

apollo

The Apollo instance used by the EdgeAgent.

castor

The Castor instance used by the EdgeAgent.

pluto

The Pluto instance used by the EdgeAgent.

mercury

The Mercury instance used by the EdgeAgent.

pollux

The Pollux instance used by the EdgeAgent.

connectionManager

The ConnectionManager instance used by the EdgeAgent.

seed

An optional Seed instance used by the Apollo if provided, otherwise a random seed will be used.

api

An optional Api instance used by the EdgeAgent if provided, otherwise a default ApiImpl will be used.

logger

An optional PrismLogger instance used by the EdgeAgent if provided, otherwise a PrismLoggerImpl with LogComponent.PRISM_AGENT will be used.

agentOptions

Options to configure certain features with in the prism agent.


constructor(apollo: Apollo, castor: Castor, pluto: Pluto, mercury: Mercury, pollux: Pollux, seed: Seed? = null, api: Api? = null, mediatorHandler: MediationHandler, logger: PrismLogger = PrismLoggerImpl(LogComponent.PRISM_AGENT), agentOptions: AgentOptions = AgentOptions())(source)

Initializes the EdgeAgent constructor.

Parameters

apollo

The instance of Apollo.

castor

The instance of Castor.

pluto

The instance of Pluto.

mercury

The instance of Mercury.

pollux

The instance of Pollux.

seed

The seed value for random generation. Default is null.

api

The instance of the API. Default is null.

mediatorHandler

The mediator handler.

logger

The logger for EdgeAgent. Default is PrismLoggerImpl with LogComponent.PRISM_AGENT.

agentOptions

Options to configure certain features with in the prism agent.