Examples of Condition

@version $Id: Condition.java,v 1.2 2008/01/22 14:50:05 kebernet Exp $ @author Robert "kebernet" Cooper
  • org.rzo.yajsw.condition.Condition
  • org.rzo.yajsw.nettyutils.Condition
  • org.sonar.api.issue.condition.Condition
    @since 3.6
  • org.sonatype.mavenbook.weather.model.Condition
  • org.sonatype.nexus.capability.Condition
    An evaluable condition.
  • org.sonatype.nexus.client.core.Condition
    A condition to be satisfied by Nexus status in order for Nexus client to connect. @since 2.1
  • org.springframework.context.annotation.Condition
    A single {@code condition} that must be {@linkplain #matches matched} in orderfor a component to be registered.

    Conditions are checked immediately before the bean-definition is due to be registered and are free to veto registration based on any criteria that can be determined at that point.

    Conditions must follow the same restrictions as {@link BeanFactoryPostProcessor}and take care to never interact with bean instances. For more fine-grained control of conditions that interact with {@code @Configuration} beans consider the{@link ConfigurationCondition} interface. @author Phillip Webb @since 4.0 @see ConfigurationCondition @see Conditional @see ConditionContext

  • org.springmodules.validation.util.condition.Condition
    Represents a instantCondition that can be checked against an object. @author Uri Boness
  • org.teiid.language.Condition
    Represents criteria, which is also a boolean expression
  • org.teiid.query.processor.xml.Condition
    This is a condition which can be evaluated, and which supplies a Program instance which should act as the resulting sub Program to be run if the condition evaluates to true.
  • org.uengine.kernel.Condition
    @author Jinyoung Jang
  • org.w3c.css.sac.Condition
    @version $Revision: 1.3 $ @author Philippe Le Hegaret
  • org.w3c.flex.forks.css.sac.Condition
    @version $Revision: 1.3 $ @author Philippe Le Hegaret
  • org.xorm.query.Condition
  • pojo.Condition
    Condition generated by hbm2java
  • railo.transformer.bytecode.statement.Condition
  • robocode.Condition
    Condition is used to define custom {@link AdvancedRobot#waitFor(Condition) waitFor(Condition)} and custom events for an {@link AdvancedRobot}. The code below is taken from the sample robot named {@code sample.Target}. See the {@code sample/Target.java} for details.
     addCustomEvent( new Condition("triggerhit") { public boolean test() { return (getEnergy() <= trigger); }; } ); 
    You should note that by extending Condition this way, you are actually creating an inner class -- so if you distribute your robot, there will be multiple class files. (i.e. {@code Target$1.class}) @see AdvancedRobot#waitFor(Condition) @see AdvancedRobot#addCustomEvent(Condition) @see AdvancedRobot#removeCustomEvent(Condition) @see AdvancedRobot#onCustomEvent(CustomEvent) @author Mathew A. Nelson (original) @author Flemming N. Larsen (contributor) @author Nathaniel Troutman (contributor)
  • solver.constraints.nary.alldifferent.conditions.Condition
    A condition over integer variables

  • Examples of net.bytten.metazelda.Condition

                    constraints.initialRooms());
            assert possibleEntries.size() > 0;
            id = possibleEntries.get(random.nextInt(possibleEntries.size()));
           
            Room entry = new Room(id, constraints.getCoords(id), null,
                    new Symbol(Symbol.START), new Condition());
            dungeon.add(entry);
           
            levels.addRoom(0, entry);
        }
    View Full Code Here

    Examples of net.grinder.util.thread.Condition

      }

      @Test
      public void testValidation() throws EngineException, DirectoryException, IOException {
        File file = new ClassPathResource("/validation/script_1time.py").getFile();
        Condition m_eventSync = new Condition();
        File log = validationService.doValidate(file.getParentFile(), file, m_eventSync, false, "");
        assertThat(log.length(), greaterThan(1000L));
      }
    View Full Code Here

    Examples of net.openai.util.fsm.Condition

        State monthNumState = new NamedState("MONTH_NUM");
        State monthDaySeparatorState = new NamedState("MONTH_DAY_SEP");
        State dayNumState = new NamedState("DAY_NUM");
        State dayYearSeparatorState = new NamedState("DAY_YEAR_SEP");

        Condition monthNumCondition = new IntegerRangeCondition(MIN_MONTH,
            MAX_MONTH);
        Condition mdFslashCondition = new PunctuationValueCondition('/');
        Condition mdDashCondition = new PunctuationValueCondition('-');
        Condition dyFslashCondition = new PunctuationValueCondition('/');
        Condition dyDashCondition = new PunctuationValueCondition('-');
        Condition dayNumCondition = new IntegerRangeCondition(MIN_DAY, MAX_DAY);
        Condition yearNumCondition = new IntegerRangeCondition(MIN_YEAR,
            MAX_YEAR);

        // condition that is not a fslash or dash
        Condition notFslashNotDashCondition = new CombineCondition(
            new NegateCondition(mdFslashCondition), new NegateCondition(
                mdDashCondition));

        startState.addTransition(monthNumCondition, monthNumState);
        startState.addTransition(new AnyCondition(), startState);
    View Full Code Here

    Examples of net.sf.l2j.gameserver.skills.conditions.Condition

                 armorPiece = (L2Armor) dummy.getItem();
                 */
                //TODO add checks for shield here.
            }

            Condition preCondition = _preCondition;
            if(itemOrWeapon) preCondition = _itemPreCondition;
            if (preCondition == null) return true;

            Env env = new Env();
            env.player = activeChar;
            if (target instanceof L2Character) // TODO: object or char?
              env.target = (L2Character)target;
            env.skill = this;

            if (!preCondition.test(env))
            {
                String msg = preCondition.getMessage();
                if (msg != null)
                {
                    SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
                    sm.addString(msg);
                    activeChar.sendPacket(sm);
    View Full Code Here

    Examples of net.sf.laja.template.Condition

        return new ConditionElement();
      }

      @Override
      public ICondition createCondition() {
        return new Condition();
      }
    View Full Code Here

    Examples of net.sf.minuteProject.configuration.bean.Condition

          return GenerationCondition.FILTER_FILE_TYPE_INCLUDE;
        return (filterFileType.equals(GenerationCondition.FILTER_FILE_TYPE_EXCLUDE))? GenerationCondition.FILTER_FILE_TYPE_INCLUDE: GenerationCondition.FILTER_FILE_TYPE_EXCLUDE;
      }

      private Condition getCondition(String filename, String type) {
        Condition condition = new Condition();
        condition.setType(type);
        condition.setStartsWith(filename);
        return condition;
      }
    View Full Code Here

    Examples of net.suncrescent.clicker.robot.action.Condition

      private ArrayList<Action> actionList = new ArrayList<Action>();

      public FarmVilleActionLoader() {

        // if 845,700 is blue
        Condition oneButtonDialogIsVisible = new Condition(ConditionType.PIXEL_COLOR_MATCHES);
        oneButtonDialogIsVisible.setConditionParameters(new Point(845, 700), new Color(2, 114, 171));

        // if 899,699 is blue
        Condition dialogIsVisible = new Condition(ConditionType.PIXEL_COLOR_MATCHES);
        dialogIsVisible.setConditionParameters(new Point(899, 699), new Color(2, 114, 171));

        // Setup Time
        this.actionList.add(new Action(15000, 1216, 572, MouseAction.NONE));

        // Dialog
    View Full Code Here

    Examples of org.activiti.engine.impl.Condition

        List<PvmTransition> transitionsToTake = new ArrayList<PvmTransition>();

        List<PvmTransition> outgoingTransitions = execution.getActivity().getOutgoingTransitions();
        for (PvmTransition outgoingTransition : outgoingTransitions) {
          if (defaultSequenceFlow == null || !outgoingTransition.getId().equals(defaultSequenceFlow)) {
            Condition condition = (Condition) outgoingTransition.getProperty(BpmnParse.PROPERTYNAME_CONDITION);
            if (condition == null || !checkConditions || condition.evaluate(execution)) {
              transitionsToTake.add(outgoingTransition);
            }
          }
        }
    View Full Code Here

    Examples of org.apache.accumulo.core.data.Condition

            break;
        }

        ArrayList<ConditionalMutation> mutations = new ArrayList<ConditionalMutation>();

        ConditionalMutation cm0 = new ConditionalMutation("99006", new Condition("tx", "seq").setVisibility(cvaob));
        cm0.put("name+", "last", cvaob, "doe");
        cm0.put("name", "first", cvaob, "john");
        cm0.put("tx", "seq", cvaob, "1");
        mutations.add(cm0);

        ConditionalMutation cm1 = new ConditionalMutation("59056", new Condition("tx", "seq").setVisibility(cvaab));
        cm1.put("name", "last", cvaab, "doe");
        cm1.put("name", "first", cvaab, "jane");
        cm1.put("tx", "seq", cvaab, "1");
        mutations.add(cm1);

        ConditionalMutation cm2 = new ConditionalMutation("19059", new Condition("tx", "seq").setVisibility(cvaob));
        cm2.put("name", "last", cvaob, "doe");
        cm2.put("name", "first", cvaob, "jack");
        cm2.put("tx", "seq", cvaob, "1");
        mutations.add(cm2);

        ConditionalMutation cm3 = new ConditionalMutation("90909", new Condition("tx", "seq").setVisibility(cvaob).setValue("1"));
        cm3.put("name", "last", cvaob, "doe");
        cm3.put("name", "first", cvaob, "john");
        cm3.put("tx", "seq", cvaob, "2");
        mutations.add(cm3);
    View Full Code Here

    Examples of org.apache.accumulo.proxy.thrift.Condition

        assertFalse(client.testTableClassLoad(creds, "bar", "abc123", SortedKeyValueIterator.class.getName()));
        assertTrue(client.testTableClassLoad(creds, "bar", VersioningIterator.class.getName(), SortedKeyValueIterator.class.getName()));
      }

      private Condition newCondition(String cf, String cq) {
        return new Condition(new Column(s2bb(cf), s2bb(cq), s2bb("")));
      }
    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.