public DefaultAutoPlay( IMusicProviderFactory musicProviderFactory, IDataService<MapReduceResult<TrackScore>> trackScoreDataService, IDataService<QueuedTrack> queuedTrackDataService, IRandomizerFactory randomizerFactory, Settings settings ) { this.trackScoreDataService = trackScoreDataService; this.queuedTrackDataService = queuedTrackDataService; this.musicProviderFactory = musicProviderFactory; this.randomizerFactory = randomizerFactory; this.settings = settings; }
public DefaultAutoPlay( IMusicProviderFactory musicProviderFactory, IDataService <MapReduceResult <TrackScore> > trackScoreDataService, IDataService <QueuedTrack> queuedTrackDataService, IRandomizerFactory randomizerFactory, Settings settings ) { this.trackScoreDataService = trackScoreDataService; this.queuedTrackDataService = queuedTrackDataService; this.musicProviderFactory = musicProviderFactory; this.randomizerFactory = randomizerFactory; this.settings = settings; }
public void Initialize(IEventManager eventMgr, IPhysicalProcessor physProc, IRandomizerFactory randomizerFactory, IReportObserver reporter) { this.eventMgr = eventMgr; this.physProc = physProc; this.randomizerFactory = randomizerFactory; this.reporter = reporter; isInitialized = true; }
public FloodingQueryNodeFactory(IEventManager eventMgr, IPhysicalProcessor physProc, IRandomizerFactory randomizerFactory, IReportObserver reporter) { Initialize(eventMgr, physProc, randomizerFactory, reporter); }
public SpiralDeployer(INodes nodes, INodeFactory nodeFactory, ILocation[] field, IRandomizerFactory randFactory) { Initialize(nodes, nodeFactory, field, randFactory); }
public void Initialize(INodes nodes, INodeFactory nodeFactory, ILocation[] field, IRandomizerFactory randFactory) { this.nodes = nodes; this.nodeFactory = nodeFactory; this.randFactory = randFactory; if (field is XYDoubleLocation[]) this.field = (XYDoubleLocation[])field; else throw new InvalidCastException("RandomDeployer must take XYDoubleLocation field"); panelObjsHelper = new PanelObjHelper(panelObjs); a = panelObjsHelper.GetIntByName("a"); b = panelObjsHelper.GetDoubleByName("b"); nodeDistance = panelObjsHelper.GetDoubleByName("NodeDistance"); isInitialized = true; }
/* / \ * // | \\ * / | \ * | */ public void Initialize(IEventManager eventMgr, IPhysicalProcessor physProc, IRandomizerFactory randomizerFactory, IReportObserver reporter) { _eventManager = eventMgr; _physicalProcessor = physProc; _randomizerFactory = randomizerFactory; _reporter = reporter; _isInitialized = true; panelObjsHelper = new PanelObjHelper(panelObjs); _NUM_ID_BYTES = panelObjsHelper.GetIntByName("NUM_ID_BYTES"); _RANDOM_WAIT = panelObjsHelper.GetDoubleByName("RANDOM_WAIT"); _TIMER_ACK = panelObjsHelper.GetDoubleByName("TIMER_ACK"); _TIMER_BUILDTREE = panelObjsHelper.GetDoubleByName("TIMER_BUILDTREE"); _TIMER_HELLO = panelObjsHelper.GetDoubleByName("TIMER_HELLO"); _TIMER_SEARCH = panelObjsHelper.GetDoubleByName("TIMER_SEARCH"); _TIMER_SUBSCRIBE = panelObjsHelper.GetDoubleByName("TIMER_SUBSCRIBE"); _HELLO_SUPPRESS_REPORT = panelObjsHelper.GetBoolByName("CHECK_HELLOSUPPRESS"); _EXPLICIT_COLLISIONS = panelObjsHelper.GetBoolByName("CHECK_EXPLICIT_COLLISIONS"); //_INFO_REPORTS = panelObjsHelper.GetBoolByName("INFO_REPORTS"); _NODE_REPORTS = panelObjsHelper.GetBoolByName("NODE_REPORTS"); _SINK_REPORTS = panelObjsHelper.GetBoolByName("SINK_REPORTS"); }