Examples of Entity


Examples of org.xtext.example.mydsl.myDsl.Entity

   * <!-- end-user-doc -->
   * @generated
   */
  public void setType(Entity newType)
  {
    Entity oldType = type;
    type = newType;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, MyDslPackage.REFERENCE__TYPE, oldType, type));
  }
View Full Code Here

Examples of oss.ngocminh.lego.data.Entity

    String message = null;
    try {
      Connection conn = getConnection();
      categoryDAO.setConnection(conn);
      int id = Integer.parseInt(request.getParameter("id"));
      Entity category = categoryDAO.findById(id);
      if (category == null) {
        message = "Không tìm thấy chủ đề #" + id;
      } else {
        category.put("name", request.getParameter("name"));
        category.put("image", request.getParameter("image"));
        categoryDAO.update(category);
        message = "Đã lưu chủ đề " + category.get("name");
      }
      conn.close();
    } catch (NumberFormatException e) {
      message = "Mã chủ đề không hợp lệ: " + request.getParameter("id");
    } catch (SQLException e) {
View Full Code Here

Examples of pl.edu.pw.elka.mmarkiew.model.entities.Entity

    else
    {
      // Create appropriate entity and possibly hide it behind destructive block
      if ( GameEntities.getEnumEntity("" + charAt) != GameEntities.UNDEFINED)
      {
        Entity e = EntityFactory.createEntity( GameEntities.getEnumEntity("" + charAt),
              (int) GameMap.getPositionCenterFromTile(i), (int) GameMap.getPositionCenterFromTile(j));
       
        // If it's enemy add it into map else if it's bonus add it into map and hide it
        if (e instanceof Enemy)
        {
View Full Code Here

Examples of ptolemy.kernel.Entity

        // FIXME: Should this also remove class definitions?
        // To do that, use classDefinitionList().
        Iterator entities = actor.entityList().iterator();

        while (entities.hasNext()) {
            Entity entity = (Entity) entities.next();
            delete.append("<deleteEntity name=\"" + entity.getName()
                    + "\" class=\"" + entity.getClass().getName() + "\"/>");
        }

        Iterator relations = actor.relationList().iterator();

        while (relations.hasNext()) {
View Full Code Here

Examples of railo.commons.net.http.Entity

    bucketName=checkBucket(bucketName);
    boolean hasObj=!StringUtil.isEmpty(objectName);
    if(hasObj)objectName=checkObjectName(objectName);
   

    Entity re = HTTPEngine3Impl.getByteArrayEntity(acp.toXMLString().getBytes(CharsetUtil.ISO88591),"text/html");
   
   
    String dateTimeString = Util.toHTTPTimeString();
   
   
    String cs = "PUT\n\n"+re.contentType()+"\n"+dateTimeString+"\n/"+bucketName+"/"+(hasObj?objectName:"")+"?acl";
    String signature = createSignature(cs, getSecretAccessKeyValidate(), "iso-8859-1");
    Header[] headers = new Header[]{
        header("Content-Type",re.contentType()),
        header("Content-Length",Long.toString(re.contentLength())),
        header("Date",dateTimeString),
        header("Authorization","AWS "+getAccessKeyIdValidate()+":"+signature),
    };
   
    String strUrl="http://"+bucketName+"."+host+"/";
View Full Code Here

Examples of rcl.internal.Entity

 
  public static void __assign(Object modified, Object newValue) {
    if (newValue instanceof Resource && modified instanceof Entity) {
      Resource v = (Resource) newValue;
      if (((Object)v.__getController()) instanceof ThreadStagingArea) {
        Entity m = (Entity) modified;
        while (m instanceof Resource && m != newValue) {
          m = ((Resource)m).__getController();
        }
        if (!(m instanceof Resource)) {
          v.__setControl((Entity)modified);
View Full Code Here

Examples of rtype.entity.Entity

  private void checkCollisons()
  {
    // Check bullets with enemies
    ArrayList<Entity> bulletsArray = bullets.entities;
    ArrayList<Entity> enemiesArray = enemies.entities;
    Entity currentBullet = null;
    Entity currentEnemy = null;
    for (int i = 0; i < bulletsArray.size() ; i++)
    {
     
     
      for (int j= 0 ; j < enemiesArray.size(); j++ )
      {
        if (j < 0)
          continue;
        if (i<0)
          break;
        currentBullet = bulletsArray.get(i);
        currentEnemy = enemiesArray.get(j);
       
        if (Collision.boxBoxOverlap(currentBullet,
                      currentEnemy
                      ))
        {
          player1.hiscore++;
         
          if (currentBullet.collided(currentEnemy))
          i--;
         
          if (currentEnemy.collided(currentBullet))
          j--;
        }
       
      }
    }
    textHisCore.setString("HISCORE:"+player1.hiscore);
   
    // Check players with bonuses
    ArrayList<Entity> bonusArray = bonus.entities;
    Entity currentBonus = null;
    for (int j= 0 ; j < bonusArray.size(); j++ )
    {
      currentBonus = bonusArray.get(j);
      if(
        Collision.boxBoxOverlap( player1,
                     currentBonus
                    )
         
        )
      {
        if (currentBonus.collided(player1))
          j--;
        player1.collided(currentBonus);
      }
    }
  }
View Full Code Here

Examples of skadistats.clarity.model.Entity

   
    private void logCreate(CDOTAUserMsg_ParticleManager message, Match match) {
        int entityHandle = message.getCreateParticle().getEntityHandle();
//        int entityIndex = Handle.indexForHandle(entityHandle);
//        int entitySerial = Handle.serialForHandle(entityHandle);
        Entity parent = match.getEntities().getByHandle(entityHandle);
        String name = match.getStringTables().forName("ParticleEffectNames").getNameByIndex(message.getCreateParticle().getParticleNameIndex());
        log.debug("{} {} [index={}, entity={}({}), effect={}, attach={}]",
            match.getReplayTimeAsString(),
            "PARTICLE_CREATE",
            message.getIndex(),
            entityHandle,
            parent == null ? "NOT_FOUND" : parent.getDtClass().getDtName(),
            name == null ? "NOT_FOUND" : name,
            message.getCreateParticle().getAttachType()
        );
        //log.debug(message.toString());
    }
View Full Code Here

Examples of soc.qase.state.Entity

    try
    {
      while(true)
      {
        entity = new Entity();
        bitmask = processBitmask();
        entity.setNumber(processNumber());

        if(entity.getNumber() == 0)
          break;
View Full Code Here

Examples of soj.internal.Entity

 
  public static void __assign(Object modified, Object newValue) {
    if (newValue instanceof Resource && modified instanceof Entity) {
      Resource v = (Resource) newValue;
      if (((Object)v.__getController()) instanceof ThreadStagingArea) {
        Entity m = (Entity) modified;
        while (m instanceof Resource && m != newValue) {
          m = ((Resource)m).__getController();
        }
        if (!(m instanceof Resource)) {
          v.__setControl((Entity)modified);
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.