Examples of State


Examples of org.cipango.kaleo.event.Subscription.State

        while (it.hasNext())
        {
          Subscription subscription = it.next();
          SubHandling subHandling = policy.getPolicy(subscription.getUri());
         
          State state = subscription.getState();
          boolean authorised = subscription.isAuthorized();
          switch (subHandling)
          {
          case ALLOW:
            subscription.setState(State.ACTIVE, Reason.APPROVED, true);
View Full Code Here

Examples of org.drools.State

        final List list = new ArrayList();
        workingMemory.setGlobal( "list",
                                 list );

        final State state = new State( "initial" );
        workingMemory.insert( state,
                              true );
        workingMemory.fireAllRules();

        assertEquals( 1,
                      list.size() );

        state.setFlag( true );
        assertEquals( 1,
                      list.size() );

        workingMemory.fireAllRules();
        assertEquals( 2,
                      list.size() );

        state.setState( "finished" );
        workingMemory.fireAllRules();
        assertEquals( 3,
                      list.size() );

    }
View Full Code Here

Examples of org.drools.compiler.State

         final List list = new ArrayList();
         session.setGlobal( "list",
                            list );

         final State state = new State( "initial" );
         session.insert( state );
         session.fireAllRules();

         assertEquals( 1,
                       ((List) session.getGlobal( "list" )).size() );

         state.setFlag( true );
         assertEquals( 1,
                       ((List) session.getGlobal( "list" )).size() );

         session.fireAllRules();
         assertEquals( 2,
                       ((List) session.getGlobal( "list" )).size() );

         state.setState( "finished" );

         session.dispose();

         // checks that the session removed itself from the bean listeners list
         assertEquals( 0,
                       state.getPropertyChangeListeners().length );
     }
View Full Code Here

Examples of org.drools.jpdl.core.node.State

                    }
                }
            }
            node = newNode;
        } else if (jPDLnode instanceof org.jbpm.graph.node.State) {
            node = new State();
        }
        return node;
    }
View Full Code Here

Examples of org.eclipse.core.commands.State

      command.define(name, tooltip, category, null);

      // TODO Decide the command state.
      final String style = readOptional(element, ATT_STYLE);
      if (STYLE_RADIO.equals(style)) {
        final State state = new RadioState();
        // TODO How to set the id?
        final boolean checked = readBoolean(element, ATT_STATE, false);
        state.setValue((checked) ? Boolean.TRUE : Boolean.FALSE);
        command.addState(IMenuStateIds.STYLE, state);

      } else if (STYLE_TOGGLE.equals(style)) {
        final State state = new ToggleState();
        final boolean checked = readBoolean(element, ATT_STATE, false);
        state.setValue((checked) ? Boolean.TRUE : Boolean.FALSE);
        command.addState(IMenuStateIds.STYLE, state);
      }
    }
    // this allows us to look up a "commandId" give the contributionId
    // and the actionId
View Full Code Here

Examples of org.eclipse.jdt.internal.core.builder.State

    for (int i = 0, max = elements.length; i < max; i++) {
      // collect all the java project
      IJavaElement element = elements[i];
      IJavaProject javaProject = element.getJavaProject();
      IProject project = javaProject.getProject();
      State state = null;
      State currentState = (State) projectsStates.get(project);
      if (currentState != null) {
        state = currentState;
      } else {
        state = (State) JavaModelManager.getJavaModelManager().getLastBuiltState(project, null);
        if (state != null) {
View Full Code Here

Examples of org.eclipse.osgi.service.resolver.State

      contextFinder = register(new String[] {ClassLoader.class.getName()}, tccl, props);
    }

    // Always call the adaptor.frameworkStart() at the end of this method.
    framework.adaptor.frameworkStart(bc);
    State state = framework.adaptor.getState();
    if (state instanceof StateImpl)
      ((StateImpl) state).setResolverHookFactory(new CoreResolverHookFactory((BundleContextImpl) context, framework.getServiceRegistry()));
    // attempt to resolve all bundles
    // this is done after the adaptor.frameworkStart has been called
    // this should be the first time the resolver State is accessed
View Full Code Here

Examples of org.eclipse.uml2.uml.State

  private void addAllSubNodes(Vertex in_oVertex)
  {
    boolean bHasSubRegions = false;
    if(in_oVertex instanceof State)
    {
      State oState = (State)in_oVertex;
      if(!oState.getRegions().isEmpty())
        bHasSubRegions = true;
     
      if(bHasSubRegions == true)
        m_colVertices.addAll(getAtomicSubVertices(oState));
    }
View Full Code Here

Examples of org.encog.ml.world.State

    Set<SuccessorState> result = new TreeSet<SuccessorState>();

    if (action != null) {
      // probability of successful action
      if (this.probabilitySuccess > Encog.DEFAULT_DOUBLE_EQUAL) {
        State newState = determineActionState((GridState) state, action);
        if( newState!=null )
          result.add(new SuccessorState(newState, this.probabilitySuccess));
      }

      // probability of left
      if (this.probabilityLeft > Encog.DEFAULT_DOUBLE_EQUAL) {
        State newState = determineActionState((GridState) state,
            GridWorld.leftOfAction(action));
        if( newState!=null )
          result.add(new SuccessorState(newState, this.probabilityLeft));
      }

      // probability of right
      if (this.probabilityRight > Encog.DEFAULT_DOUBLE_EQUAL) {
        State newState = determineActionState((GridState) state,
            GridWorld.rightOfAction(action));
        if( newState!=null )
          result.add(new SuccessorState(newState, this.probabilityRight));
      }

      // probability of reverse
      if (this.probabilityReverse > Encog.DEFAULT_DOUBLE_EQUAL) {
        State newState = determineActionState((GridState) state,
            GridWorld.reverseOfAction(action));
        if( newState!=null )
          result.add(new SuccessorState(newState, this.probabilityReverse));
      }
    }
View Full Code Here

Examples of org.eurekastreams.server.action.request.start.SetGadgetStateRequest.State

     * @param viewParams
     *            the params.
     */
    public void setGadgetState(final State state, final String viewParams)
    {
        State previousGadgetState = gadgetState;
        gadgetState = state;

        if (state != State.MINIMIZED)
        {
            // Hide user preferences if it is shown for any reason while changing state.
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.