Examples of Phase


Examples of edu.hawaii.ics.csdl.jupiter.file.property.Phase

    for (Entry<String, FilterPhase> mapEntry : phaseNameFilterPhaseMap.entrySet()) {
      String phaseName = mapEntry.getKey();
      String phaseNameKey = ReviewI18n.getKey(phaseName);
      FilterPhase filterPhase = mapEntry.getValue();
     
      Phase jaxbPhase = getJAXBPhase(phaseNameKey);
      jaxbPhase.setEnabled(filterPhase.isEnabled());
     
      List<Filter> filterList = jaxbPhase.getFilter();
      // clear out any existing filters
      filterList.clear();
     
      for (Iterator<FilterEntry> j = filterPhase.iterator(); j.hasNext();) {
        FilterEntry filterEntry = j.next();
View Full Code Here

Examples of examples.devs.processor.ProcessorState.Phase

    return new ProcessorState();
  }

  @Override
  protected void deltaExternal(double elapsedTime) {
    Phase phase = getState().getPhase();
    if (phase == Phase.PASSIVE) {
      getState().setPhase(Phase.ACTIVE);
      getState().setSigma(processingTime);

      // get job
View Full Code Here

Examples of it.polito.appeal.traci.Phase

   
    Phase[] phases = logic.getPhases();
    assertEquals(8, phases.length);
   
    for (int i=0; i<phases.length; i++) {
      Phase ph = phases[i];
      assertEquals(PHASES_DURATION[i] * 1000, ph.getDuration());
      assertArrayEquals(PHASES[i], ph.getState().lightStates);
    }
  }
View Full Code Here

Examples of jfun.yan.lifecycle.Phase

    throws Throwable{
      final Container yan = new DefaultContainer();
      final Component real_engine =
        Components.useKey("real engine").singleton(new ThreadLocalScope());
      final DefaultLifecycleDescriptor desc = new DefaultLifecycleDescriptor();
      desc.setCloser(new Phase(desc.getCloser().getPhaseKey(), ExceptionHandlers.suppresser()));
      desc.setStopper(new Phase(desc.getStopper().getPhaseKey(), ExceptionHandlers.suppresser()));
      final DefaultLifecycleManager lm = new DefaultLifecycleManager(desc);
      final DefaultLifecycleManager.DefaultLifecycle lc = lm.newLifecycle()
      .starter("start")
      .stopper("stop")
      .initializer("initialize")
View Full Code Here

Examples of mage.game.turn.Phase

  }

  public void playNext(Game game, UUID activePlayerId, SimulationNode node) {
    boolean skip = false;
    while (true) {
      Phase currentPhase = game.getPhase();
      if (!skip)
        currentPhase.getStep().endStep(game, activePlayerId);
      game.applyEffects();
      switch (currentPhase.getStep().getType()) {
        case UNTAP:
          game.getPhase().setStep(new UpkeepStep());
          break;
        case UPKEEP:
          game.getPhase().setStep(new DrawStep());
          break;
        case DRAW:
          game.getTurn().setPhase(new PreCombatMainPhase());
          game.getPhase().setStep(new PreCombatMainStep());
          break;
        case PRECOMBAT_MAIN:
          game.getTurn().setPhase(new CombatPhase());
          game.getPhase().setStep(new BeginCombatStep());
          break;
        case BEGIN_COMBAT:
          game.getPhase().setStep(new DeclareAttackersStep());
          break;
        case DECLARE_ATTACKERS:
          game.getPhase().setStep(new DeclareBlockersStep());
          break;
        case DECLARE_BLOCKERS:
          game.getPhase().setStep(new CombatDamageStep(true));
          break;
        case COMBAT_DAMAGE:
          if (((CombatDamageStep)currentPhase.getStep()).getFirst())
            game.getPhase().setStep(new CombatDamageStep(false));
          else
            game.getPhase().setStep(new EndOfCombatStep());
          break;
        case END_COMBAT:
View Full Code Here

Examples of org.apache.axis2.engine.Phase

        while (phases.hasNext()) {
            OMElement phaseelement = (OMElement) phases.next();
            String phaseName =
                    phaseelement.getAttribute(new QName(ATTRIBUTE_NAME)).getAttributeValue();
            String phaseClass = phaseelement.getAttributeValue(new QName(TAG_CLASS_NAME));
            Phase phase;

            try {
                phase = getPhase(phaseClass);
            } catch (Exception e) {
                throw new DeploymentException(
                        Messages.getMessage("phaseclassnotfound", phaseClass, e.getMessage()));
            }

            phase.setName(phaseName);

            Iterator handlers = phaseelement.getChildrenWithName(new QName(TAG_HANDLER));

            while (handlers.hasNext()) {
                OMElement omElement = (OMElement) handlers.next();
                HandlerDescription handler = processHandler(omElement, axisConfig, phaseName);

                handler.getRules().setPhaseName(phaseName);
                try {
                    if (Utils.loadHandler(axisConfig.getSystemClassLoader(), handler)) {
                        try {
                            phase.addHandler(handler);
                        } catch (PhaseException e) {
                            throw new DeploymentException(e);
                        }
                    }
                } catch (UnsupportedClassVersionError e) {
View Full Code Here

Examples of org.apache.axis2.engine.Phase

    }

    private Phase getPhase(String className)
            throws ClassNotFoundException, IllegalAccessException, InstantiationException {
        if (className == null) {
            return new Phase();
        }
        Class phaseClass = Loader.loadClass(axisConfig.getSystemClassLoader(), className);
        return (Phase) phaseClass.newInstance();
    }
View Full Code Here

Examples of org.apache.axis2.engine.Phase

    return messageBoxOperation;
  }

  private void checkAction(MessageContext msgContext) throws AxisFault {

    Phase addPhase = getAddressingPhase(msgContext);

    if (addPhase == null) {
      logger.error("unable to locate addressing phase object");
    }

    if (msgContext.getCurrentPhaseIndex() + 1 == addPhase.getHandlerCount()) {
      if (msgContext.getAxisService() == null
          || msgContext.getAxisOperation() == null)
        AddressingFaultsHelper.triggerActionNotSupportedFault(
            msgContext, msgContext.getWSAAction());
    }
View Full Code Here

Examples of org.apache.axis2.engine.Phase

    config = service.getAxisConfiguration();
    phases = config.getInFlowPhases();

    for (Iterator iterator = phases.iterator(); iterator.hasNext();) {
      Phase phase = (Phase) iterator.next();
      if ("Security".equals(phase.getPhaseName())) {
        phase.addHandler(new MyProxySecurityHandler());
        phase.addHandler(new AmazonSecurityHandler());
        return;
      }
    }

  }
View Full Code Here

Examples of org.apache.cxf.phase.Phase

    protected ServiceInfo serviceInfo;
   
    @Before
    public void setUp() throws Exception {
        SortedSet<Phase> phases = new TreeSet<Phase>();
        Phase phase1 = new Phase("phase1", 1);
        Phase phase2 = new Phase("phase2", 2);
        Phase phase3 = new Phase("phase3", 3);
        phases.add(phase1);
        phases.add(phase2);
        phases.add(phase3);
        chain = new PhaseInterceptorChain(phases);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.