public YoVariableServer(String mainClazz, PeriodicThreadSchedulerFactory schedulerFactory, LogModelProvider logModelProvider, LogSettings logSettings, double dt)
{
LoggerConfigurationLoader config;
try
{
config = new LoggerConfigurationLoader();
}
catch (IOException e1)
{
throw new RuntimeException("Cannot load configuration to start logger, aborting", e1);
}
this.dt = dt;
this.schedulerFactory = schedulerFactory;
try
{
this.dataProducerParticipant = new DataProducerParticipant(mainClazz, logModelProvider, this, config.getPublicBroadcast());
this.dataProducerParticipant.setLog(logSettings.isLog());
addCameras(config, logSettings);
this.timestampScheduler = schedulerFactory.createPeriodicThreadScheduler("timestampPublisher");
this.timestampPublisher = new TimestampPublisher(dataProducerParticipant);
}
catch (IOException e)
{
throw new RuntimeException(e);
}
}