Examples of State


Examples of fr.irit.halterego.ggp_agent.rlcpp.State

    }
   
    @Override
    public void learn(RState state, RAction action, RState result, double reward, Agent learner)
    {
        State vanstate = new State();
        vanstate.discreteState = id(state);
        vanstate.discrete = true;
       
        State nextState = null;
        if(result != null)
        {
            nextState = new State();
            nextState.discrete = true;
            nextState.discreteState = id(result);
        }
       
        Action vanactions[] = new Action[2];
View Full Code Here

Examples of heart.State

    NodeList stateNodes =  hmlElement.getElementsByTagName(HML_STATE);
    LinkedList<State> states = new LinkedList<State>();
    for(int index = 0; index < stateNodes.getLength(); index++){
      Node mainNode  = stateNodes.item(index);
     
      State state = new State();
      Attribute attr = null;
      //check if the node is element node. It should be state Element.
      //If it is not, continue to the main node
      if (mainNode.getNodeType() == Node.ELEMENT_NODE) {
        Element stateElement = (Element) mainNode;
        if(stateElement.hasAttribute(ID)){
          state.setId(stateElement.getAttribute(ID));
         
        }
        if(stateElement.hasAttribute(NAME)){
          state.setName(stateElement.getAttribute(NAME));
        }
       
        //Get a list of state elements frm this element
        NodeList stateElements = stateElement.getChildNodes();
        StateElement stateElementObject = null;
        for(int se = 0; se < stateElements.getLength(); se++){
          Node finalStateNode  = stateElements.item(se);
          if (finalStateNode.getNodeType() == Node.ELEMENT_NODE) {
            Element finalStateElement = (Element) finalStateNode;
            if(finalStateElement.getNodeName().equals(ATTREF)){
              stateElementObject = new StateElement();
              String attrId = finalStateElement.getAttribute(REF);
              attr = model.getAttributeById(attrId);
              stateElementObject.setAttributeName(attr.getName());
            }else if(finalStateElement.getNodeName().equals(SET)){
              Type corresponginType = attr.getType();
              ArrayList<Value> values = parseValues(finalStateElement, corresponginType.getBase());
              if(values.size() > 1){
                stateElementObject.setValue(new SetValue(values));
              }else{
                stateElementObject.setValue(values.get(0));
              }
              state.addStateElement(stateElementObject);
            }
          }
        }
      }
      if(state != null) states.add(state);
View Full Code Here

Examples of info.jtrac.domain.State

                                        }                                         
                                    };
                                    if(stateKeyRow == State.NEW && stateKeyCol != State.OPEN) {
                                        stateButton.setVisible(false);
                                    }
                                    State state = role.getStates().get(stateKeyRow);
                                    if(state != null && state.getTransitions().contains(stateKeyCol)) {
                                        stateButton.add(yes);                                       
                                    } else {
                                        stateButton.add(no);
                                    }
                                    listItem.add(stateButton);                                   
                                }                               
                            });
                            listItem.add(new ListView("fieldHeads", fields) {
                                protected void populateItem(ListItem listItem) {
                                    if(roles.size() == 1 && listItem.getIndex() % 2 == 0) {
                                        listItem.add(altClass);
                                    }
                                    final Field field = (Field) listItem.getModelObject();
                                    Button fieldButton = new Button("field") {
                                        @Override
                                        public void onSubmit() {
                                            space.getMetadata().switchMask(stateKeyRow, role.getName(), field.getName().getText());
                                            setResponsePage(new SpacePermissionsPage(space, previous));
                                        }                                         
                                    };
                                    State state = role.getStates().get(stateKeyRow);                                   
                                    int mask = state.getFields().get(field.getName());
                                    switch(mask) {
                                        case State.MASK_MANDATORY : fieldButton.add(mandatory); break;
                                        case State.MASK_OPTIONAL : fieldButton.add(optional); break;
                                        case State.MASK_READONLY : fieldButton.add(readonly); break;
                                        case State.MASK_HIDDEN : fieldButton.add(hidden); break;
View Full Code Here

Examples of io.netty.handler.codec.http.HttpObjectDecoder.State

        } catch (Exception e) {
            out.add(invalidMessage(e));
            return;
        }
        case READ_HEADER: try {
            State nextState = readHeaders(buffer);
            checkpoint(nextState);
            if (nextState == State.READ_CHUNK_SIZE) {
                if (!chunkedSupported) {
                    throw new IllegalArgumentException("Chunked messages not supported");
                }
View Full Code Here

Examples of java.lang.Thread.State

   * @return an EnumMap with Thread states as the key and the number of threads in that state as the value
   */
  public EnumMap<Thread.State, AtomicInteger> getThreadStates() {
    EnumMap<Thread.State, AtomicInteger> map = new EnumMap<State, AtomicInteger>(Thread.State.class);
    for(ThreadInfo ti : threadMxBean.getThreadInfo(threadMxBean.getAllThreadIds())) {
      State st = ti.getThreadState();
      AtomicInteger ai = map.get(st);
      if(ai==null) {
        ai = new AtomicInteger(0);
        map.put(st, ai);
      }
View Full Code Here

Examples of javaff.planning.State

    // ********************************

    // Get the initial state
    TemporalMetricState initialState = ground.getTemporalMetricInitialState();
   
                State goalState = goalState = performFFSearch(initialState);
               
    long afterPlanning = System.currentTimeMillis();

                TotalOrderPlan top = null;
    if (goalState != null) top = (TotalOrderPlan) goalState.getSolution();
    if (top != null) top.print(planOutput);


    /*javaff.planning.PlanningGraph pg = initialState.getRPG();
    Plan plan  = pg.getPlan(initialState);
View Full Code Here

Examples of jersey.repackaged.com.google.common.util.concurrent.Service.State

   *     method is called, {@link State#TERMINATED terminated} or {@link State#FAILED failed}.
   */
  public ServiceManager startAsync() {
    for (Map.Entry<Service, ServiceListener> entry : services.entrySet()) {
      Service service = entry.getKey();
      State state = service.state();
      checkState(state == State.NEW, "Service %s is %s, cannot start it.", service,
          state);
    }
    for (ServiceListener service : services.values()) {
      service.start();
View Full Code Here

Examples of jp.co.acroquest.endosnipe.javelin.converter.hadoop.HadoopTaskStatus.State

        {
            String stateStr = "";
            if (taskStatuses != null && taskStatuses.size() > 0 && taskStatuses.get(0) != null)
            {
                HadoopTaskStatus hadoopTaskStatus = taskStatuses.get(0);
                State state = hadoopTaskStatus.getState();
                if (state != null)
                {
                    stateStr = "(" + state.toString() + ")";
                }
            }
           
            for (HadoopTaskStatus status : taskStatuses)
            {
View Full Code Here

Examples of ket.math.State

  Vector<State> states;

  public CompoundState(Vector<Argument> args, int displayStyle) {
    states = new Vector<State>();
    for (Argument argument : args) {
      State state = argument.getState();
      states.add(state);
    }
    // Check
    switch (displayStyle) {
      case JOIN:
View Full Code Here

Examples of model.field.State

        turnState = (turnState == State.CIRCLE) ? State.CROSS : State.CIRCLE;
    }

    private int getLineLength(int row,      int column,
                              int rowShift, int columnShift) {
        State lineState = gameField.getCellState(row, column);

        // exclude start point from length
        int counter = -1;
        do {
            row += rowShift;
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.