Ejemplo n.º 1
0
        public Solver(IntInterval horizon)
        {
            m_PropagationQueue = new PropagationQueueVar();
            m_IntObjective     = new IntObjective(this);

            Init(horizon);
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 3
0
        public Solver( IntInterval horizon )
        {
            m_PropagationQueue	= new PropagationQueueVar();
            m_IntObjective		= new IntObjective( this );

            Init( horizon );
        }
Ejemplo n.º 4
0
 public SolutionGoal( Solver solver, IntObjective objective, Objective value, string instance )
     : base(solver)
 {
     m_Objective			= objective;
     m_Value				= value;
     m_Instance			= instance;
 }
Ejemplo n.º 5
0
 public void Register( IntObjective obj )
 {
     lock( this )
     {
         m_List.Add( obj );
     }
 }
Ejemplo n.º 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;
        }