Examples of Position


Examples of com.artemis.component.Position

    _sealed = true;
   
    Entity e = world.createEntity(archetype);

    if (_id_position_x_y_) {
      Position c = positionMapper.get(e);
      c.x = _position_x;
      c.y = _position_y;
      _id_position_x_y_ = false;
    }
   
    if (_id_velocity_x_y_) {
      Velocity c = velocityMapper.get(e);
      c.x = _velocity_x;
      c.y = _velocity_y;
      _id_velocity_x_y_ = false;
    }
   
    if (_id_velocity_x_) {
      Velocity c = velocityMapper.get(e);
      c.x = _velocity_x;
      _id_velocity_x_ = false;
    }
   
    if (_id_asset_path_) {
      Asset c = assetMapper.get(e);
      c.path = _asset_path;
      _id_asset_path_ = false;
    }
   
    if (_id_culled_culled_) {
      Cullible c = cullibleMapper.get(e);
      c.culled = _cullible_culled;
      _id_culled_culled_ = false;
    }
   
    {
      HitPoints c = hitPointsMapper.get(e);
      c.current = _hitPoints_current;
    }
   
    if (_id_pos_x_y_) {
      Complex c = complexMapper.get(e);
      c.pos(_complex_x, _complex_y);
      _id_pos_x_y_ = false;
    }
   
    if (_id_hoho_x_y_) {
      Complex c = complexMapper.get(e);
      c.vel(_complex_x, _complex_y);
      _id_hoho_x_y_ = false;
    }
   
    if (_tag) {
      tagManager.register(_tag_tag, e);
View Full Code Here

Examples of com.bergerkiller.bukkit.mw.Position

  public boolean allowConsole() {
    return false;
  }

  public void execute() {
    Position pos = new Position(player.getLocation());
    this.genWorldname(0);
    if (this.handleWorld()) {
      WorldManager.setSpawn(worldname, pos);
      if (worldname.equalsIgnoreCase(player.getWorld().getName())) {
        player.getWorld().setSpawnLocation(pos.getBlockX(), pos.getBlockY(), pos.getBlockZ());
      }
      sender.sendMessage(ChatColor.GREEN + "Spawn location of world '" + worldname + "' set to your position!");
    }
  }
View Full Code Here

Examples of com.collective2.signalEntry.adapter.dynamicSimulator.portfolio.Position

                    throw new C2ServiceException("Relative price based on open price failure. No open price data.",false);
                }
                return dayOpenData.openingPrice(symbol).add(relativeLimit.value());

            case 'T'://T fill price of the open buy/sell  portfolio.position(symbol).openPrice();
                Position pos = portfolio.position(symbol);
                if (null == pos) {
                    throw new C2ServiceException("No position found for symbol "+symbol,false);
                }
                if (pos.quantity()==0) {
                    return BigDecimal.ZERO;
                }

                if (null == pos.openPrice()) {
                    throw new C2ServiceException("No open price found for position "+symbol,false);
                }
                return pos.openPrice().add(relativeLimit.value());

            default:
                return relativeLimit.value();
        }
    }
View Full Code Here

Examples of com.creativewidgetworks.goldparser.engine.Position

            if (ivtTokens.isEmpty()) {
                // Get next token from stream
                token = produceToken();
               
                // Token's position in source - initialize indentLevel stack
                Position position = token.getPosition();
                if (ivtIndentLevels.isEmpty()) {
                    ivtLine = position.getLine();
                    ivtIndentLevels.push(position);
                }
               
                // Trigger on change of line number
                if (position.getLine() != ivtLine) {
                    ivtLine = position.getLine();
                    int ivtColumn = ivtIndentLevels.peek().getColumn();
                    if (position.getColumn() > ivtColumn) {
                        ivtTokens.push(token);
                        ivtIndentLevels.push(position);
                        token = new Token(getSymbolByName(VT_INDENT_INCREASE), getIndentLevels(), position);
                    } else if (token.getPosition().getColumn() < ivtColumn) {
                        ivtTokens.push(token);
                        while (!ivtIndentLevels.isEmpty() && ivtIndentLevels.peek().getColumn() > position.getColumn()) {
                            ivtIndentLevels.pop();
                            ivtTokens.push(new Token(getSymbolByName(VT_INDENT_DECREASE), getIndentLevels(), position));
                        }
                        token = ivtTokens.pop();
                    }
View Full Code Here

Examples of com.datastax.demo.portfolio.Position

            for (Map.Entry<ByteBuffer, List<ColumnOrSuperColumn>> entry : prices.entrySet())
            {
                if (!entry.getValue().isEmpty())
                {
                    Double price = Double.valueOf(ByteBufferUtil.string(entry.getValue().get(0).column.value));
                    Position s = new Position(ByteBufferUtil.string(entry.getKey()), price, tickerLookup.get(entry.getKey()));
                    p.addToConstituents(s);
                    total += price * tickerLookup.get(entry.getKey());
                    basis += r.nextDouble() * 100 * tickerLookup.get(entry.getKey());

                }
View Full Code Here

Examples of com.eastidea.qaforum.model.Position

      Department depart = entityManager.find(Department.class, Long
          .valueOf(departmentid));
      user.setDepartment(depart);
    }
    if (positionid != null && !positionid.equals("")) {
      Position pos = entityManager.find(Position.class, Long
          .valueOf(positionid));
      user.setPosition(pos);
      user.setPositionName(pos.getName());
    }
    entityManager.persist(user);
  }
View Full Code Here

Examples of com.eclipsesource.tabris.geolocation.Position

  }

  @Override
  public void handleNotify( String event, JsonObject properties ) {
    if( EVENT_LOCATION_UPDATE_EVENT.equals( event ) ) {
      Position position = getPosition( properties );
      notifyListenersWithPosition( position );
    } else if( EVENT_LOCATION_UPDATE_ERROR_EVENT.equals( event ) ) {
      PositionError error = getPositionError( properties );
      notifyListenersWithError( error );
    }
View Full Code Here

Examples of com.google.collide.shared.document.Position

            new LineInfo(selectionModel.getCursorLine(), selectionModel.getCursorLineNumber());
        String text = selectionModel.getCursorLine().getText();
        final char cursorChar = text.charAt(selectionModel.getCursorColumn());
        final char searchChar;
        final boolean searchingForward = OPENING_GROUPS.indexOf(cursorChar) >= 0;
        final Position searchingTo;
        if (searchingForward) {
          searchChar = CLOSING_GROUPS.charAt(OPENING_GROUPS.indexOf(cursorChar));
          searchingTo =
              new Position(new LineInfo(document.getLastLine(), document.getLastLineNumber()),
                  document.getLastLine().length());
        } else if (CLOSING_GROUPS.indexOf(cursorChar) >= 0) {
          searchChar = OPENING_GROUPS.charAt(CLOSING_GROUPS.indexOf(cursorChar));
          searchingTo = new Position(new LineInfo(document.getFirstLine(), 0), 0);
        } else {
          return true; // not on a valid starting character
        }


        Position startingPosition = new Position(cursorLineInfo, selectionModel.getCursorColumn()
            + (searchingForward ? 0 : 1));
        PositionUtils.visit(new LineUtils.LineVisitor() {
          // keep a stack to match the correct corresponding bracket
          ScopeMatcher scopeMatcher = new ScopeMatcher(searchingForward, cursorChar, searchChar);
          @Override
View Full Code Here

Examples of com.google.gdt.eclipse.designer.uibinder.model.util.UiChildSupport.Position

            "    </t:topbutton>",
            "  </t:MyContainer>",
            "</ui:UiBinder>");
    refresh();
    WidgetInfo button_3 = getObjectByName("button_3");
    Position position = getPosition(container, "topbutton");
    // has 3 buttons, can not add more
    assertFalse(position.canAddChild());
    // delete "button_3", can add new one
    button_3.delete();
    assertTrue(position.canAddChild());
  }
View Full Code Here

Examples of com.google.transit.realtime.GtfsRealtime.Position

    }
  }

  private void applyVehiclePositionToRecord(VehiclePosition vehiclePosition,
      VehicleLocationRecord record) {
    Position position = vehiclePosition.getPosition();
    record.setCurrentLocationLat(position.getLatitude());
    record.setCurrentLocationLon(position.getLongitude());
  }
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.