Package eas.simulation.spatial.standardBrains.mdle.plan

Examples of eas.simulation.spatial.standardBrains.mdle.plan.MDL2ePlan


  @Override
  public void implantBrain(AbstractBrain<?> brain) {
    this.brain = brain;
   
    if(brain instanceof MDL2eBrain<?>){
        MDL2ePlan root = ((MDL2eBrain<?>) brain).getPlan();
        MDL2eChecker.getInstance(this.getPars()).checkDepreciated(root);
    }
  }
View Full Code Here


    descheduleStack.deschedule();
   
    if (active) {

      MDL2ePlan currentAtom = executionStack.pop();

      if (currentAtom != null) {
        if (currentAtom.checkInterrupt(time)) {
          executionStack.push(currentAtom);

          currentAtom.execute(time);
          return;
        } else { // currentAtom.checkInterrupt(time) == false
          //queue for deschedule
          descheduleStack.push(currentAtom);
          //currentAtom.deschedule();

          while ((currentAtom = executionStack.pop()) != null) {
            MDL2ePlan schedulable = currentAtom.getSchedulable(
                time, executionStack);
            // schedulable atom found, its already on stack
            if (schedulable != null) {
              //if(schedulable.name.equals("MOVE")) System.out.println(schedulable);
              schedulable.execute(time);
              return;
            }
            // currentAtom has no schedulable children -->
            // queue for deschedule
            descheduleStack.push(currentAtom);
View Full Code Here

TOP

Related Classes of eas.simulation.spatial.standardBrains.mdle.plan.MDL2ePlan

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.