Пример #1
0
        public Solver(IntInterval horizon)
        {
            m_PropagationQueue = new PropagationQueueVar();
            m_IntObjective     = new IntObjective(this);

            Init(horizon);
        }
Пример #2
0
        public GoalStack(IntObjective intObjective)
        {
            m_StackAndState = new StackEx <StackEx <Goal> >();
            m_StackAnd      = new StackEx <Goal>();
            m_StackOr       = new StackEx <GoalOr>();
            m_IntObjective  = intObjective;

            m_IsExecuting = false;
            m_Stop        = false;

            m_StackAndMax  = 0;
            m_StackOrMax   = 0;
            m_StackOrCount = 0;

            m_IsFailed  = false;
            m_CountFail = 0;
        }
Пример #3
0
        public Solver( IntInterval horizon )
        {
            m_PropagationQueue	= new PropagationQueueVar();
            m_IntObjective		= new IntObjective( this );

            Init( horizon );
        }
Пример #4
0
 public SolutionGoal( Solver solver, IntObjective objective, Objective value, string instance )
     : base(solver)
 {
     m_Objective			= objective;
     m_Value				= value;
     m_Instance			= instance;
 }
Пример #5
0
 public void Register( IntObjective obj )
 {
     lock( this )
     {
         m_List.Add( obj );
     }
 }
Пример #6
0
        public GoalStack( IntObjective intObjective )
        {
            m_StackAndState	= new StackEx<StackEx<Goal>>();
            m_StackAnd		= new StackEx<Goal>();
            m_StackOr		= new StackEx<GoalOr>();
            m_IntObjective	= intObjective;

            m_IsExecuting	= false;
            m_Stop			= false;

            m_StackAndMax	= 0;
            m_StackOrMax	= 0;
            m_StackOrCount	= 0;

            m_IsFailed		= false;
            m_CountFail		= 0;
        }