Examples of ordinal()


Examples of com.vmware.vim.binding.vim.VirtualMachine.FaultToleranceState.ordinal()

            if (vcVm == null) {
               logger.info("vm: " + vmId + " is not found.");
               return false;
            }
            FaultToleranceState ftState = vcVm.getFTState();
            if (FaultToleranceState.notConfigured.ordinal() == ftState
                  .ordinal()) {
               return false;
            }
            return true;
         }
View Full Code Here

Examples of crazypants.enderio.conduit.ConnectionMode.ordinal()

      byte[] modes = new byte[6];
      int i = 0;
      for (ForgeDirection dir : ForgeDirection.VALID_DIRECTIONS) {
        ConnectionMode mode = forcedConnections.get(dir);
        if(mode != null) {
          modes[i] = (byte) mode.ordinal();
        } else {
          modes[i] = -1;
        }
        i++;
      }
View Full Code Here

Examples of crazypants.util.DyeColor.ordinal()

    cb = new ColorButton(gui, ID_COLOR_BUTTON, x, y);
    cb.setToolTipHeading(Lang.localize("gui.conduit.redstone.signalColor"));
    if(con instanceof IInsulatedRedstoneConduit) {
      insCon = (IInsulatedRedstoneConduit) con;
      DyeColor sigCol = insCon.getSignalColor(gui.getDir());
      cb.setColorIndex(sigCol.ordinal());
    }
  }

  @Override
  public void actionPerformed(GuiButton guiButton) {
View Full Code Here

Examples of edu.brown.benchmark.auctionmark.AuctionMarkConstants.ItemStatus.ordinal()

                output_rows[i] = new Object[] { itemId,         // i_id
                                                sellerId,       // i_u_id
                                                numBids,        // i_num_bids
                                                currentPrice,   // i_current_price
                                                endDate,        // i_end_date
                                                itemStatus.ordinal(), // i_status
                                                null,           // imb_ib_id
                                                null            // ib_buyer_id
                };
               
                // Has bid on this item - set status to WAITING_FOR_PURCHASE
View Full Code Here

Examples of edu.brown.benchmark.tpce.generators.TradeGenerator.TradeType.ordinal()

                }
            }

            inputStructure.setTypeIsMargin(0);
        }
        iTradeType = eTradeType.ordinal();
       
        if (rnd.rndPercent(driverCETxnSettings.TO_settings.cur_lifo)){
          inputStructure.setIsLifo(1);
        }
        else inputStructure.setIsLifo(0);
View Full Code Here

Examples of edu.brown.hstore.Hstoreservice.Status.ordinal()

//            }
//        }
       
        if (m_txnStats.isResponsesStatusesEnabled()) {
            synchronized (m_txnStats.responseStatuses) {
                m_txnStats.responseStatuses.put(status.ordinal());   
            } // SYNCH
        }
    }
   
    // ----------------------------------------------------------------------------
View Full Code Here

Examples of edu.byu.ece.rapidSmith.util.FamilyType.ordinal()

      return true;
    }
    // If its not an exact match, lets check if this site can accommodate
    // the otherType
    FamilyType baseFamilyType = tile.getDevice().getFamilyType();
    PrimitiveType[] compatibleTypes = compatibleTypesArray[baseFamilyType.ordinal()].get(otherType);
    if(compatibleTypes == null){
      return false;
    }
    // Check if this site is in the compatible type list for otherType
    // (NOTE: These arrays are generally very short, so hopefully this will
View Full Code Here

Examples of electricexpansion.common.misc.EnumAdvBattBoxMode.ordinal()

    this.guiTopLeftX = (this.width - this.xSize) / 2;
    this.guiTopLeftY = (this.height - this.ySize) / 2;
    this.drawTexturedModalRect(this.guiTopLeftX, this.guiTopLeftY, 0, 0, this.xSize, this.ySize);

    EnumAdvBattBoxMode mode = this.tileEntity.getInputMode();
    this.drawTexturedModalRect(this.guiTopLeftX + 197, guiTopLeftY + 41, mode.ordinal() * 17, 169, 16, 16);

    mode = this.tileEntity.getOutputMode();
    this.drawTexturedModalRect(this.guiTopLeftX + 197, guiTopLeftY + 65, mode.ordinal() * 17, 186, 16, 16);

    int scale = (int) (this.tileEntity.getEnergyStored() / this.tileEntity.getMaxEnergyStored() * 72.0D);
 
View Full Code Here

Examples of erjang.beam.BeamOpcode.ordinal()

          break;
        }
        default:
          throw new Error("unhandled test: " + insn_.toSymbolic() +
                  " at index " + insn_idx +
                  " // " + test + ":" + test.ordinal());
        }//switch

      }

      /**
 
View Full Code Here

Examples of erogenousbeef.bigreactors.common.multiblock.tileentity.TileEntityReactorRedNetPort.CircuitType.ordinal()

    if(clickedButton.id == 0) {
      CircuitType newCircuitType = getUserSelectedCircuitType();
      int actualOutputLevel = this.outputLevel;
      if(newCircuitType == CircuitType.inputSetControlRod && this.greaterThan && this.retract) { actualOutputLevel *= -1; }

            CommonPacketHandler.INSTANCE.sendToServer(new ReactorRedstonePortChangeMessage(port, newCircuitType.ordinal(), actualOutputLevel, this.greaterThan, this.activeOnPulse));
        }
    else if(clickedButton.id == 1) {
      for(Entry<CircuitType, GuiSelectableButton> pair : btnMap.entrySet()) {
        pair.getValue().setSelected(pair.getKey() == port.getCircuitType());
      }
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.