Exemplo n.º 1
0
        public SolidRouter(Building belt, Building beltGroundNormal, Building beltGroundFast, Building beltGroundExpress,
                           Building inserter, Building longInserter, Building fastInserter, Building splitter, SolutionGrader grader)
        {
            if (belt == null)
            {
                throw new ArgumentNullException("belt");
            }
            if (beltGroundNormal == null)
            {
                throw new ArgumentNullException("beltGroundNormal");
            }
            if (beltGroundFast == null)
            {
                throw new ArgumentNullException("beltGroundFast");
            }
            if (beltGroundExpress == null)
            {
                throw new ArgumentNullException("beltGroundExpress");
            }
            if (inserter == null)
            {
                throw new ArgumentNullException("inserter");
            }
            if (longInserter == null)
            {
                throw new ArgumentNullException("longInserter");
            }
            if (fastInserter == null)
            {
                throw new ArgumentNullException("fastInserter");
            }
            if (splitter == null)
            {
                throw new ArgumentNullException("splitter");
            }
            if (grader == null)
            {
                throw new ArgumentNullException("grader");
            }

            Belt              = belt;
            BeltGroundNormal  = beltGroundNormal;
            BeltGroundFast    = beltGroundFast;
            BeltGroundExpress = beltGroundExpress;
            Inserter          = inserter;
            LongInserter      = longInserter;
            FastInserter      = fastInserter;
            Splitter          = splitter;
            Grader            = grader;
        }
Exemplo n.º 2
0
        public FluidRouter(Building pipeToGround, Building pipe, SolutionGrader grader)
        {
            if (pipeToGround == null)
            {
                throw new ArgumentNullException("pipeToGround");
            }
            if (pipe == null)
            {
                throw new ArgumentNullException("pipe");
            }
            if (grader == null)
            {
                throw new ArgumentNullException("grader");
            }

            PipeToGround = pipeToGround;
            Pipe         = pipe;
            Grader       = grader;
        }
Exemplo n.º 3
0
 public SolutionGenerator(RecipeGraph factory)
 {
     Factory = factory;
     Grader  = new SolutionGrader();
 }