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 eu.ha3.matmos.engine.core.implem.Condition

            if (entry.getValue().sheet.equals(Dynamic.DEDICATED_SHEET))
            {
              indexNotComputed = dynamicSheetHash(indexNotComputed);
            }
           
            this.elements.add(new Condition(
              entry.getKey(), this.providers.getSheetCommander(), new SheetEntry(
                entry.getValue().sheet, indexNotComputed),
              Operator.fromSerializedForm(entry.getValue().symbol), entry.getValue().value));
          }
        }
    View Full Code Here

    Examples of fmg.fmg8.endlAutomat.conditions.Condition

                    while (it2.hasNext()) {
                        boolean gebogen = true;
                       
                        knot2 = g.holeKnoten((Integer) it2.next());
                        koord2 = (Vektor2D) this.gesetzteKn.get(knot2.holeName());
                        Condition cond
                            = knot1.getInfo().getTransZuZustand(
                                    knot2.holeName()).get(0).getCond();
                        double staerke = SonstMeth.condStrength(cond,
                                                       Konstanten.STAERKE_ERST,
                                                       Konstanten.STAERKE_ZWEIT);
    View Full Code Here

    Examples of gov.nasa.arc.mct.util.condition.Condition

            final AbstractButton button = TestUtilities.findDescendantButtonWithText(dlg, "Close");
            assertNotNull(button);
           
            TestUtilities.setVisible(dlg, true);
           
            Condition.waitForCondition(5000, new Condition() {
                public boolean getValue() {return dlg.isVisible();}
            });
            assertTrue(dlg.isVisible());
           
            TestUtilities.doClick(button);
           
            Condition.waitForCondition(5000, new Condition() {
                public boolean getValue() {return !dlg.isVisible();}
            });
            assertTrue(!dlg.isVisible());
        }
    View Full Code Here

    Examples of grammar.model.verbs.CliticOrder.Condition

            markers[idx] = li.next();
          }
         
          Then thenObj = new Then(getLanguage(), segments, markers);
         
          Condition cond;
          if (unconditionalContext)
            cond = new Condition(new If(), thenObj);
          else
            cond = new Condition(ifObj, thenObj);
         
          conditions.add(cond);
        }
        else if (qName.equals("unconditional")) {
          unconditionalContext = false;
    View Full Code Here

    Examples of it.freedomotic.core.Condition

            if (reader.getNodeName().equalsIgnoreCase("conditions")) {
                while (reader.hasMoreChildren()) {
                    //read a single condition
                    reader.moveDown(); //move down to condition
                    reader.moveDown(); //move down to target
                    Condition condition = new Condition();
                    condition.setTarget(reader.getValue().trim());
                    reader.moveUp(); //move up to condition
                    //parse statement
                    ArrayList<String> statementValues = new ArrayList<String>();
                    reader.moveDown(); //move down to statement
                    while (reader.hasMoreChildren()) { //childs of statement (logical, attribute, ...)
                        reader.moveDown(); //move down to statement property
                        System.out.println("    " + reader.getValue().trim());
                        statementValues.add(reader.getValue());
                        reader.moveUp(); //move up to statement
                    }
                    reader.moveUp();//move up to condition
                    Statement stm = new Statement();
                    stm.create(statementValues.get(0),
                            statementValues.get(1),
                            statementValues.get(2),
                            statementValues.get(3));
                    condition.setStatement(stm);
                    conditions.add(condition);
                    reader.moveUp(); //move up to conditions
                }
                reader.moveUp(); //move up to root
                reader.moveDown();//move down to sequence
    View Full Code Here

    Examples of java.util.concurrent.locks.Condition

            final UNICAST unicast=new UNICAST();
            final AtomicInteger counter=new AtomicInteger(num_msgs);
            final AtomicLong seqno=new AtomicLong(1);
            final AtomicInteger delivered_msgs=new AtomicInteger(0);
            final Lock lock=new ReentrantLock();
            final Condition all_msgs_delivered=lock.newCondition();
            final ConcurrentLinkedQueue<Long> delivered_msg_list=new ConcurrentLinkedQueue<Long>();
            final Address local_addr=Util.createRandomAddress("A");
            final Address sender=Util.createRandomAddress("B");

            unicast.setDownProtocol(new Protocol() {
                public Object down(Event evt) {
                    return null;
                }
            });

            unicast.setUpProtocol(new Protocol() {
                public Object up(Event evt) {
                    if(evt.getType() == Event.MSG) {
                        delivered_msgs.incrementAndGet();
                        UNICAST.UnicastHeader hdr=(UNICAST.UnicastHeader)((Message)evt.getArg()).getHeader(UNICAST_ID);
                        if(hdr != null)
                            delivered_msg_list.add(hdr.getSeqno());

                        if(delivered_msgs.get() >= num_msgs) {
                            lock.lock();
                            try {
                                all_msgs_delivered.signalAll();
                            }
                            finally {
                                lock.unlock();
                            }
                        }
                    }
                    return null;
                }
            });

            unicast.down(new Event(Event.SET_LOCAL_ADDRESS, local_addr));
            unicast.setMaxMessageBatchSize(max_msg_batch_size);

            // send the first message manually, to initialize the AckReceiverWindow tables
            Message msg=createMessage(local_addr, sender, 1L, oob, true);
            unicast.up(new Event(Event.MSG, msg));
            Util.sleep(500);


            final CountDownLatch latch=new CountDownLatch(1);
            Adder[] adders=new Adder[num_threads];
            for(int i=0; i < adders.length; i++) {
                adders[i]=new Adder(unicast, latch, counter, seqno, oob, local_addr, sender);
                adders[i].start();
            }

            long start=System.currentTimeMillis();
            latch.countDown(); // starts all adders

            lock.lock();
            try {
                while(delivered_msgs.get() < num_msgs) {
                    try {
                        all_msgs_delivered.await(1000, TimeUnit.MILLISECONDS);
                        System.out.println("received " + delivered_msgs.get() + " msgs");
                       
                        // send a spurious message to trigger removal of pending messages in AckReceiverWindow
                        msg=createMessage(local_addr, sender, 1L, oob, false);
                        unicast.up(new Event(Event.MSG, msg));
    View Full Code Here

    Examples of javaff.data.Condition

      public boolean isStatic()
      {
        Iterator it = literals.iterator();
        while (it.hasNext())
        {
          Condition c = (Condition) it.next();
          if (!c.isStatic()) return false;
        }
        return true;
      }
    View Full Code Here

    Examples of l2p.gameserver.skills.conditions.Condition

            {
              parseBeanSet(n, ((EffectTemplate) template).getParam(), new Integer(((L2Skill) ((EffectTemplate) template).getParam().getObject("object")).getLevel()));
            }
            else
            {
              Condition cond = parseCondition(n);
              if(cond != null)
              {
                ((EffectTemplate) template).attachCond(cond);
              }
            }
    View Full Code Here

    Examples of lineage2.gameserver.stats.conditions.Condition

                template.setUnequipeSkill(skill);
              }
            }
            else if (subName.equalsIgnoreCase("cond"))
            {
              Condition condition = parseFirstCond(subElement);
              if (condition != null)
              {
                int msgId = parseNumber(subElement.attributeValue("msgId")).intValue();
                condition.setSystemMsg(msgId);
                template.setCondition(condition);
              }
            }
            else if (subName.equalsIgnoreCase("attributes"))
            {
    View Full Code Here

    Examples of mage.abilities.condition.Condition

            this.color.setBlack(true);
            this.power = new MageInt(1);
            this.toughness = new MageInt(1);

            // As long as an opponent has 10 or less life, Guul Draz Vampire gets +2/+1 and has intimidate. (It can't be blocked except by artifact creatures and/or creatures that share a color with it.)
            Condition condition = new TenOrLessLifeCondition(TenOrLessLifeCondition.CheckType.AN_OPPONENT);
            ConditionalContinousEffect effect1 = new ConditionalContinousEffect(new BoostSourceEffect(2, 1, Duration.WhileOnBattlefield), condition, rule1);
            this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, effect1));
            ConditionalContinousEffect effect2 = new ConditionalContinousEffect(new GainAbilitySourceEffect(IntimidateAbility.getInstance()), condition, rule2);
            this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, effect2));
    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.