Example #1
0
        public void Setup()
        {
            _fact = new STRIPS.Fact("OneParam", new STRIPS.ValueParameter(null));
            var action = new SomeOtherAction();

            _result = action.IsApplicableForAdd(new STRIPS.SimpleGoal(_fact), new List <STRIPS.Fact>());
        }
 public void Setup()
 {
     _result = new STRIPS.Fact("name", _param, _param2, _param3);
     _result.Substitute(new Dictionary <string, object> {
         { "test", _obj }
     });
 }
        public void Setup()
        {
            var fact = new STRIPS.Fact("name", new STRIPS.ValueParameter(null));

            _result = fact.IsMoreGeneralThanOrEqualTo(new STRIPS.Fact("name", new STRIPS.ValueParameter(null)));

            var fact2 = new STRIPS.Fact("name", new STRIPS.ValueParameter("test"));

            _result2 = fact2.IsMoreGeneralThanOrEqualTo(new STRIPS.Fact("name", new STRIPS.ValueParameter("test")));
        }
        public void Setup()
        {
            var fact = new STRIPS.Fact("name", new STRIPS.ValueParameter(null));

            _result = fact.IsSameAs(new STRIPS.Fact("name", new STRIPS.NamedParameter("test")));

            var fact2 = new STRIPS.Fact("name", new STRIPS.NamedParameter("test"));

            _result2 = fact2.IsSameAs(new STRIPS.Fact("name", new STRIPS.ValueParameter(null)));
        }
            public PutDownAction(Table table)
            {
                _table = table;
                var block = new STRIPS.NamedParameter("param1");
                var goal1 = new STRIPS.Fact(Definitions.ArmHolds, block);

                Preconditions.Add(goal1);
                AddList.Add(new STRIPS.Fact(Definitions.ArmHolds, new STRIPS.ValueParameter(null)));
                AddList.Add(new STRIPS.Fact(Definitions.On, block, new STRIPS.ValueParameter(table)));
                AddList.Add(new STRIPS.Fact(Definitions.Clear, block));
                DeleteList.Add(goal1);
                Constraints.Add(TypeCheck(typeof(Block), block));
            }
            public StackAction()
            {
                var param1 = new STRIPS.NamedParameter("param1");
                var param2 = new STRIPS.NamedParameter("param2");
                var goal1  = new STRIPS.Fact(Definitions.ArmHolds, param1);
                var goal2  = new STRIPS.Fact(Definitions.Clear, param2);

                Preconditions.Add(goal1);
                Preconditions.Add(goal2);
                AddList.Add(new STRIPS.Fact(Definitions.ArmHolds, new STRIPS.ValueParameter(null)));
                AddList.Add(new STRIPS.Fact(Definitions.On, param1, param2));
                AddList.Add(new STRIPS.Fact(Definitions.Clear, param1));
                DeleteList.Add(goal1);
                DeleteList.Add(goal2);
                Constraints.Add(TypeCheck(typeof(Block), param1));
                Constraints.Add(TypeCheck(typeof(Block), param2));
                Constraints.Add(NotEqualsCheck(param1, param2));
            }
Example #7
0
        public void Setup()
        {
            var fact = new STRIPS.Fact("name", new STRIPS.NamedParameter("blurp"));

            _result = fact.IsMoreGeneralThanOrEqualTo(new STRIPS.Fact("name", new STRIPS.NamedParameter("test")));
        }
Example #8
0
        public void Setup()
        {
            var fact = new STRIPS.Fact("name", new STRIPS.ValueParameter("test"));

            _result = fact.NeedsSubstitution();
        }
Example #9
0
        public void Setup()
        {
            var fact = new STRIPS.Fact("name", new STRIPS.ValueParameter(null));

            _result = fact.IsSameAs(new STRIPS.Fact("name"));
        }
Example #10
0
 public void Setup()
 {
     _fact   = new STRIPS.Fact("name");
     _action = new SomeAction();
     _result = new STRIPS.SimpleGoal(_fact, _action);
 }
Example #11
0
 public void Setup()
 {
     _result = new STRIPS.Fact("name", _param, _param2);
 }
        public void Setup()
        {
            var action = new SomeAction();

            _result = action.IsApplicableForAdd(new STRIPS.SimpleGoal(new STRIPS.Fact("OneParam")), new List <STRIPS.Fact>());
        }
Example #13
0
 public void Setup()
 {
     _fact   = new STRIPS.Fact("OneParam", new STRIPS.ValueParameter("test"));
     _result = _action.IsApplicableForAdd(new STRIPS.SimpleGoal(_fact), new List <STRIPS.Fact>());
 }
Example #14
0
        public void Setup()
        {
            var fact = new STRIPS.Fact("name");

            _result = fact.IsSameAs(new STRIPS.Fact("othername"));
        }
        public void Setup()
        {
            var fact = new STRIPS.Fact("name", new STRIPS.NamedParameter("test"));

            _result = fact.IsSameAs(new STRIPS.Fact("name", new STRIPS.NamedParameter("test2")));
        }
Example #16
0
        public void Setup()
        {
            var fact = new STRIPS.Fact("name1");

            _result = fact.IsMoreGeneralThanOrEqualTo(new STRIPS.Fact("name2"));
        }