public LinEquationsSetBuilder(
     MEAPContext meapContext,
     TapeSegContext tapeSegContext,
     LinEquationContext linEquationContext)
     : base(meapContext, tapeSegContext, linEquationContext)
 {
 }
 protected TapeSegContextBase(
     MEAPContext meapContext,
     TapeSegContext tapeSegContext)
 {
     this.meapContext    = meapContext;
     this.tapeSegContext = tapeSegContext;
 }
Exemplo n.º 3
0
 public CommoditiesSelector(
     MEAPContext meapContext,
     TapeSegContext tapeSegContext)
 {
     this.meapContext    = meapContext;
     this.tapeSegContext = tapeSegContext;
 }
Exemplo n.º 4
0
 protected LinEqsSetBuilder(
     MEAPContext meapContext,
     TapeSegContext tapeSegContext,
     LinEquationContext linEquationContext)
     : base(meapContext, tapeSegContext, linEquationContext)
 {
 }
 public CommTConsistPathFinder(
     MEAPContext meapContext,
     TapeSegContext tapeSegContext,
     LinEquationContext linEquationContext)
     : base(meapContext, tapeSegContext, linEquationContext)
 {
 }
Exemplo n.º 6
0
 public LPTConsistPathFinder(
     MEAPContext meapContext,
     TapeSegContext tapeSegContext,
     LinEquationContext linEquationContext)
     : base(meapContext, tapeSegContext, linEquationContext)
 {
     this.configuration = Core.AppContext.GetConfiguration();
 }
 public ComputeKStepDUPairs(
     MEAPContext meapContext,
     Tuple <long, long, long> kSteps)
 {
     this.meapContext = meapContext;
     this.kSteps      = kSteps;
     this.nodeVLevels = meapContext.MEAPSharedContext.NodeLevelInfo.NodeVLevels;
 }
 public LinEquationsContextBase(
     MEAPContext meapContext,
     TapeSegContext tapeSegContext,
     LinEquationContext linEquationContext)
     : base(meapContext, tapeSegContext)
 {
     this.linEquationContext = linEquationContext;
 }
Exemplo n.º 9
0
        protected CommoditiesBuilder(MEAPContext meapContext)
        {
            this.configuration = Core.AppContext.GetConfiguration();

            this.meapContext = meapContext;

            this.sNodeId = meapContext.TArbSeqCFG.GetSourceNodeId();
            this.tNodeId = meapContext.TArbSeqCFG.GetSinkNodeId();
        }
Exemplo n.º 10
0
        public void CheckCommoditiesHaveNoSingleNodes(MEAPContext meapContext)
        {
            log.Info("CheckCommoditiesHaveNoSingleNodes");

            foreach (Commodity commodity in meapContext.Commodities.Values)
            {
                Ensure.That(IsGraphHasSingleNode(commodity.Gi)).IsFalse();
            }
        }
        public MEAPCurrentStepFactCPLTM(MEAPContext meapContext)
            : base(meapContext)
        {
            this.configuration = Core.AppContext.GetConfiguration();

            this.tasgBuilder             = meapContext.MEAPSharedContext.TASGBuilder;
            this.meapContext.TASGBuilder = tasgBuilder;
            this.tasgBuilder.meapContext = meapContext;
            this.CPLTMInfo = meapContext.MEAPSharedContext.CPLTMInfo;
        }
Exemplo n.º 12
0
 public LinEqsSetBuilder GetLinEquationsSetBuilder(
     MEAPContext meapContext,
     TapeSegContext tapeSegContext,
     LinEquationContext linEquationContext)
 {
     return(new LinEquationsSetBuilder(
                meapContext,
                tapeSegContext,
                linEquationContext));
 }
Exemplo n.º 13
0
 public NodesCoverageKeeper(
     MEAPContext meapContext,
     TapeSegContext tapeSegContext,
     SortedDictionary <long, Commodity> commoditiesSubset,
     SortedSet <long> totalExcludedComms)
 {
     this.meapContext        = meapContext;
     this.tapeSegContext     = tapeSegContext;
     this.commoditiesSubset  = commoditiesSubset;
     this.totalExcludedComms = totalExcludedComms;
 }
Exemplo n.º 14
0
 public NotUsedCommsDetector(
     MEAPContext meapContext,
     TapeSegContext tapeSegContext,
     SortedDictionary <long, Commodity> commoditiesSubset,
     NodesCoverageKeeper nodesCoverageKeeper)
 {
     this.meapContext         = meapContext;
     this.tapeSegContext      = tapeSegContext;
     this.commoditiesSubset   = commoditiesSubset;
     this.nodesCoverageKeeper = nodesCoverageKeeper;
 }
        public override void Run()
        {
            meapContext = new MEAPContext
            {
                mu = currentMu
            };

            meapContext.TapeSegContext    = new TapeSegContext();
            meapContext.MEAPSharedContext = MEAPSharedContext;

            log.DebugFormat("CurrentMu = {0}", currentMu);

            IMeapCurrentStep currentStep = configuration.Get <IMeapCurrentStep>(
                new Ninject.Parameters.ConstructorArgument(nameof(meapContext), meapContext));

            currentStep.Run(meapContext.MEAPSharedContext.MNP.F);
            bool gammaF = meapContext.PathExists;

            if (gammaF)
            {
                if (!meapContext.PathFound)
                {
                    currentStep.RetrievePath();
                }

                Result = meapContext.PathExists;
                Output = meapContext.Output;

                Done = true;
            }

            if ((!Done) && (!meapContext.MEAPSharedContext.MNP.AcceptingPathAlwaysExists))
            {
                currentStep.Run(meapContext.MEAPSharedContext.MNP.QAny);
                bool gammaAny = meapContext.PathExists;

                if (!gammaAny)
                {
                    Result = false;
                    Output = Array.Empty <int>();

                    Done = true;
                }
            }

            if (Done)
            {
                lock (meapContext.MEAPSharedContext)
                {
                    meapContext.MEAPSharedContext.DeterminePathRunnerDoneMu = currentMu;
                    meapContext.MEAPSharedContext.CancellationTokenSource.Cancel();
                }
            }
        }
Exemplo n.º 16
0
 protected CommodityChecker(
     MEAPContext meapContext,
     TapeSegContext tapeSegContext,
     Commodity commodity,
     SortedSet <long> tConsistPathComms,
     SortedSet <long> tInconsistPathComms)
     : base(meapContext, tapeSegContext)
 {
     this.commodity           = commodity;
     this.tConsistPathComms   = tConsistPathComms;
     this.tInconsistPathComms = tInconsistPathComms;
 }
Exemplo n.º 17
0
        public TapeSegRunner(
            long id,
            MEAPContext meapContext,
            TapeSegContext tapeSegContext,
            List <TapeSegRunnerState> allowedStates
            )
            : base(meapContext, tapeSegContext)
        {
            this.configuration = Core.AppContext.GetConfiguration();

            this.Id = id;
            this.tapeSegRunnerStateTable = new TapeSegRunnerStateTable(allowedStates);
        }
Exemplo n.º 18
0
 public CommodityChecker GetTCPEPCommChecker(
     MEAPContext meapContext,
     TapeSegContext tapeSegContext,
     Commodity commodity,
     SortedSet <long> tConsistPathComms,
     SortedSet <long> tInconsistPathComms)
 {
     return(new CommodityCheckerSparseMThreads(
                meapContext,
                tapeSegContext,
                commodity,
                tConsistPathComms,
                tInconsistPathComms));
 }
Exemplo n.º 19
0
 public CommodityCheckerSparse(
     MEAPContext meapContext,
     TapeSegContext tapeSegContext,
     Commodity commodity,
     SortedSet <long> tConsistPathComms,
     SortedSet <long> tInconsistPathComms)
     : base(
         meapContext,
         tapeSegContext,
         commodity,
         tConsistPathComms,
         tInconsistPathComms)
 {
     this.configuration = Core.AppContext.GetConfiguration();
 }
Exemplo n.º 20
0
 public CommoditiesBuilderFactCPLTM(MEAPContext meapContext)
     : base(meapContext)
 {
 }
        public DetermineIfExistsTCPath(MEAPContext meapContext)
        {
            this.configuration = Core.AppContext.GetConfiguration();

            this.meapContext = meapContext;
        }
 public CommoditiesBuilderSlotsMThreads(MEAPContext meapContext)
     : base(meapContext)
 {
 }
        public TConsistPairSetBuilderOrd(MEAPContext meapContext)
        {
            this.configuration = Core.AppContext.GetConfiguration();

            this.meapContext = meapContext;
        }
Exemplo n.º 24
0
 protected TCPEPSolver(MEAPContext meapContext, TapeSegContext tapeSegContext)
     : base(meapContext, tapeSegContext)
 {
 }
Exemplo n.º 25
0
 protected MEAPCurrentStep(MEAPContext meapContext)
 {
     this.meapContext = meapContext;
 }
Exemplo n.º 26
0
 public PathFinderFactCPLTM(MEAPContext meapContext)
 {
     this.meapContext = meapContext;
 }
 public MEAPCurrentStepSlotsMultiThreads(MEAPContext meapContext)
     : base(meapContext)
 {
     this.configuration = Core.AppContext.GetConfiguration();
 }
 public MEAPCurrentStepFactComm(MEAPContext meapContext)
     : base(meapContext)
 {
     this.configuration = Core.AppContext.GetConfiguration();
 }
Exemplo n.º 29
0
 public GraphTConZetaBuilder(MEAPContext meapContext)
 {
     this.meapContext = meapContext;
 }
Exemplo n.º 30
0
 public virtual void CheckNCGNodesHaveTheSameSymbol(MEAPContext meapContext)
 {
 }