query
stringlengths 7
33.1k
| document
stringlengths 7
335k
| metadata
dict | negatives
sequencelengths 3
101
| negative_scores
sequencelengths 3
101
| document_score
stringlengths 3
10
| document_rank
stringclasses 102
values |
---|---|---|---|---|---|---|
Write data into the EEPROM user area | public void writeEEPROMUserArea(byte[] data) throws FTD2XXException {
Memory source = new Memory(data.length);
source.write(0, data, 0, data.length);
ensureFTStatus(ftd2xx.FT_EE_UAWrite(ftHandle, source, data.length));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void writeEEPROMUserArea(String data) throws FTD2XXException {\n Memory source = new Memory(data.length());\n source.setString(0, data);\n ensureFTStatus(ftd2xx.FT_EE_UAWrite(ftHandle, source, data.length()));\n }",
"public void writeEEPROM(EEPROMData programData) throws FTD2XXException {\n ensureFTStatus(ftd2xx.FT_EE_Program(ftHandle, programData.ft_program_data));\n }",
"public void writeEEPROM_X(EepromX eeprom) throws FTD2XXException {\n String manufacturer = eeprom.getManufacturer();\n Memory mManufacturer = new Memory(manufacturer.length() + 1);\n mManufacturer.setString(0, manufacturer);\n\n String manufacturerId = eeprom.getManufacturerId();\n Memory mManufacturerId = new Memory(manufacturerId.length() + 1);\n mManufacturerId.setString(0, manufacturerId);\n\n String description = eeprom.getDescription();\n Memory mDescription = new Memory(description.length() + 1);\n mDescription.setString(0, description);\n\n String serialNumber = eeprom.getSerialNumber();\n Memory mSerialNumber = new Memory(serialNumber.length() + 1);\n mSerialNumber.setString(0, serialNumber);\n\n ensureFTStatus(ftd2xx\n .FT_EEPROM_Program(ftHandle, eeprom.eeprom, eeprom.eeprom.size(), mManufacturer, mManufacturerId,\n mDescription, mSerialNumber));\n\n devSerialNumber = serialNumber;\n devDescription = description;\n }",
"void writeEeprom(ImuEepromWriter sensor, int scaleNo, short[] data);",
"public void writeData(byte[] data){\n if (mWriteCharacteristic!=null &&data!=null){\n mWriteCharacteristic.setValue(data[0],BluetoothGattCharacteristic.FORMAT_UINT8,0);\n mWriteCharacteristic.setValue(data);\n bluetoothGatt.writeCharacteristic(mWriteCharacteristic);\n }\n }",
"public void write(WriteOnly data) {\n\t\tdata.writeData(\"new data\"); // Ok\n\t}",
"public void saveData ( ) {\n\t\tinvokeSafe ( \"saveData\" );\n\t}",
"@Override\n\tpublic void saveData()\n\t{\n ssaMain.d1.pin = ssaMain.tmp_pin1;\n ssaMain.d1.balance = ssaMain.tmp_balance1;\n System.out.println(\"Your account has been established successfully.\");\n\t}",
"public void storeData() {\n try {\n ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(\"DB/Guest.ser\"));\n out.writeInt(guestList.size());\n out.writeInt(Guest.getMaxID());\n for (Guest guest : guestList)\n out.writeObject(guest);\n //System.out.printf(\"GuestController: %,d Entries Saved.\\n\", guestList.size());\n out.close();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }",
"private void write( byte[] data) throws IOException {\n ByteBuffer buffer = ByteBuffer.wrap(data);\n\n int write = 0;\n // Keep trying to write until buffer is empty\n while(buffer.hasRemaining() && write != -1)\n {\n write = channel.write(buffer);\n }\n\n checkIfClosed(write); // check for error\n\n if(ProjectProperties.DEBUG_FULL){\n System.out.println(\"Data size: \" + data.length);\n }\n\n key.interestOps(SelectionKey.OP_READ);// make key read for reading again\n\n }",
"public void write(byte[] data, long offset);",
"public void writeUserInro(String name,String key){\n SharedPreferences user = context.getSharedPreferences(\"user_info\",0);\n SharedPreferences.Editor mydata = user.edit();\n mydata.putString(\"uName\" ,name);\n mydata.putString(\"uKey\",key);\n mydata.commit();\n }",
"public void saveData(){\n SerializableManager.saveSerializable(this,user,\"userInfo.data\");\n SerializableManager.saveSerializable(this,todayCollectedID,\"todayCollectedCoinID.data\");\n SerializableManager.saveSerializable(this,CollectedCoins,\"collectedCoin.data\");\n uploadUserData uploadUserData = new uploadUserData(this);\n uploadUserData.execute(this.Uid);\n System.out.println(Uid);\n\n }",
"public void store() {\r\n\t\tdata = busExt.get();\r\n\t}",
"@Override\n public void onDataWrite(String deviceName, String data)\n {\n if(mTruconnectHandler.getLastWritePacket().contentEquals(data))\n {\n mTruconnectCallbacks.onDataWritten(data);\n\n String nextPacket = mTruconnectHandler.getNextWriteDataPacket();\n if(!nextPacket.contentEquals(\"\"))\n {\n mBLEHandler.writeData(deviceName, nextPacket);\n }\n }\n else\n {\n mTruconnectCallbacks.onError(TruconnectErrorCode.WRITE_FAILED);\n mTruconnectHandler.onError();\n }\n }",
"public void writeToStorage() throws Exception {\n TaggingDeviceRestTest.ensureDeviceExists(eKey);\n String baseUrl = REST_URL + \"/core/device\";\n TaggingDeviceRestTest\n .putSecurityIPs(baseUrl,\n eKey,\n Collections.singletonList(IPv4.fromIPv4Address(ip)));\n }",
"private void writeAccount() {\n SharedPreferences pref = getSharedPreferences(\"ACCOUNT\", Context.MODE_PRIVATE);\n SharedPreferences.Editor edt = pref.edit();\n\n edt.putString(\"email\", Me.getInstance().getEmail());\n edt.putString(\"password\", txtPassword.getText().toString().trim());\n\n edt.commit();\n }",
"void setData(byte[] data);",
"public abstract void write(EmitterSystemState data)\n\t\t\tthrows FailedToWriteToDatastoreException;",
"public void saveData() {\n try {\n JsonWriter jw = new JsonWriter(openFileOutput(DATA_FILE, Context.MODE_PRIVATE));\n jw.write(user);\n jw.close();\n } catch(Exception e) {\n Log.i(\"Exception :\", e.toString());\n }\n }",
"public void setData(byte data) {\n this.data = data;\n }",
"public void setUserData(Object data);",
"public void setData( E data ) {\n\t\tthis.data = data;\n\t}",
"private void EnviarDatos(String data) \n {\n\n try \n {\n Output.write(data.getBytes());\n\n } catch (IOException e) {\n\n System.exit(ERROR);\n }\n }",
"public void save() {\n DataBuffer.saveDataLocally();\n\n //TODO save to db must be done properly\n DataBuffer.save(session);\n\n //TODO recording saved confirmation\n }",
"private void setUserData(){\n }",
"public synchronized void write(String data){\n\t\tlog.debug(\"[SC] Writing \"+data, 4);\n\t\twriteBuffer.add(data.getBytes());\n\t}",
"private static void writeDATA(int data) {\n writeByte(true,data);\n }",
"public static void lcd_WriteCMD(int data) {\n lcd_RawWrite(data & 0xF0);\n lcd_RawWrite((data <<4 ) & 0xF0);\n }",
"public abstract int writeData(int address, byte[] buffer, int length);",
"public void setData(E data){\n\t\t\tthis.data = data;\n\t\t}",
"public void writeIO(int addr, char data)\n {\n switch (addr)\n {\n case IO.UDR0:\n {\n this.io[IO.UCSR0A] &= ~32;\n }\n case IO.UDR1:\n {\n this.io[IO.UCSR1A] &= ~32;\n }\n }\n super.writeIO(addr, data);\n }",
"abstract public void setUserData(Object data);",
"public void persist(DataOutputStream dos) throws Exception;",
"public void writedata(byte b) throws Exception{\n ByteBuffer byteBuffer = ByteBuffer.wrap(\"hello\".getBytes(\"UTF-8\"));\n// byteBuffer.flip();\n client.write(byteBuffer);\n byteBuffer.clear();\n client.close();\n\n }",
"public void setData(byte[] data) {\n this.data = data;\n }",
"public void onWritePersistent(View view) {\n if(view != null) {\n // Create and populate the properites\n ApplikationEinstellungen applikationEinstellungen = new ApplikationEinstellungen(getApplicationContext());\n ArrayList<String> zeiten = new ArrayList<>();\n zeiten.add(this.zeit1Von.getText().toString());\n zeiten.add(this.zeit1Bis.getText().toString());\n zeiten.add(this.zeit2Von.getText().toString());\n zeiten.add(this.zeit2Bis.getText().toString());\n zeiten.add(this.zeit3Von.getText().toString());\n zeiten.add(this.zeit3Bis.getText().toString());\n zeiten.add(this.zeit4Von.getText().toString());\n zeiten.add(this.zeit4Bis.getText().toString());\n applikationEinstellungen.setZeiten(zeiten);\n applikationEinstellungen.setSchwellwertBewegungssensor(this.seekbarSchwellwert.getProgress());\n applikationEinstellungen.setIntervallSmsBenachrichtigung(Integer.parseInt(smsIntervall.getText().toString()) * 60 * 1000);\n applikationEinstellungen.setMonitorAktiv(this.monitorAktiv.isChecked() ? 1 : 0);\n applikationEinstellungen.setBenutzerName(this.benutzerName.getText().toString());\n // Write persistent\n Datenbank.getInstanz(getApplicationContext()).set(applikationEinstellungen);\n finish();\n }\n }",
"public void saveData() {\n\t\t//place to save notes e.g to file\n\t}",
"protected void sendDataToRobot(byte[] data) {\n\t\thandler.sendData(data);\n\t}",
"public void save() {\n UTILS.write(FILE.getAbsolutePath(), data);\n }",
"public int takerWriteBoard(CommonBoardVO vo) throws Exception;",
"private void writeData(String data) {\n try {\n outStream = btSocket.getOutputStream();\n } catch (IOException e) {\n }\n\n String message = data;\n byte[] msgBuffer = message.getBytes();\n\n try {\n outStream.write(msgBuffer);\n } catch (IOException e) {\n }\n }",
"private void saveData() {\n }",
"public void writeData(UserInfo info)\n\t{\n\t\tSystem.out.println(\"file has been written!\");\n\t\tuserinfos.add(info);\n\t}",
"void setUserData(Object userData);",
"public void onClick(DialogInterface dialog, int whichButton) {\n userNameEditTextValue = edittext.getText().toString() + \"\\n\";\n\n byte[] bytes = userNameEditTextValue.getBytes();\n\n if (sPort != null) {\n\n try {\n sPort.write(bytes, 1000);\n Log.e(LOG_TAG, \"inside write\");\n// mExecutor.submit(mSerialIoManager);\n } catch (IOException e) {\n e.printStackTrace();\n Log.e(LOG_TAG, \"Exception \" + e);\n }\n } else {\n Log.e(LOG_TAG, \"UsbSerialPort is null\");\n }\n\n }",
"public void setData(E data)\n {\n this.data = data;\n }",
"void setData(byte[] data) {\n this.data = data;\n }",
"void saveUserData(User user);",
"@Override\n public void write(DataOutput dataOutput) throws IOException {\n dataOutput.writeUTF(logTimestamp);\n dataOutput.writeUTF(logID);\n dataOutput.writeUTF(userNumber);\n dataOutput.writeUTF(menuName);\n }",
"private void saveData() {\n\t\tdataSaver.save(data);\n\t}",
"public void setIOPortByte(int portAddress, byte data)\n {\n// \tSystem.out.println(\"setIOPortByte : \"+ portAddress +\" : \"+ data);\n// \tSystem.out.printf(\"setIOPortByte : %x : %x\\n\", portAddress, data);\n boolean needUpdate = false; // Determine if a screen refresh is needed \n\n // Check if correct ports are addressed while in monochrome / colour mode; if not, ignore OUT\n if ((videocard.miscOutputRegister.ioAddressSelect != 0) && (portAddress >= 0x3B0) && (portAddress <= 0x03BF))\n return;\n if ((videocard.miscOutputRegister.ioAddressSelect == 0) && (portAddress >= 0x03D0) && (portAddress <= 0x03DF))\n return;\n\n switch (portAddress)\n {\n case 0x3BA: // Ext. reg: Feature Control Register (Monochrome)\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3BA (Feature Control Register, monochrome): reserved\");\n break;\n\n case 0x3C0: // Attribute controller: Address register\n // Determine whether in address/data mode\n if (videocard.attributeController.dataAddressFlipFlop)\n {\n // Data mode\n switch (videocard.attributeController.index)\n {\n case 0x00: // Internal Palette Index\n case 0x01:\n case 0x02:\n case 0x03:\n case 0x04:\n case 0x05:\n case 0x06:\n case 0x07:\n case 0x08:\n case 0x09:\n case 0x0A:\n case 0x0B:\n case 0x0C:\n case 0x0D:\n case 0x0E:\n case 0x0F:\n if (data != videocard.attributeController.paletteRegister[videocard.attributeController.index])\n {\n videocard.attributeController.paletteRegister[videocard.attributeController.index] = data;\n needUpdate = true;\n }\n break;\n \n case 0x10: // Mode control register\n // Store previous values for check\n byte oldLineGraphics = videocard.attributeController.modeControlReg.lineGraphicsEnable;\n byte oldPaletteBitsSelect = videocard.attributeController.modeControlReg.paletteBitsSelect;\n \n videocard.attributeController.modeControlReg.graphicsEnable = (byte) ((data >> 0) & 0x01);\n videocard.attributeController.modeControlReg.monoColourEmu = (byte) ((data >> 1) & 0x01);\n videocard.attributeController.modeControlReg.lineGraphicsEnable = (byte) ((data >> 2) & 0x01);\n videocard.attributeController.modeControlReg.blinkIntensity = (byte) ((data >> 3) & 0x01);\n videocard.attributeController.modeControlReg.pixelPanningMode = (byte) ((data >> 5) & 0x01);\n videocard.attributeController.modeControlReg.colour8Bit = (byte) ((data >> 6) & 0x01);\n videocard.attributeController.modeControlReg.paletteBitsSelect = (byte) ((data >> 7) & 0x01);\n \n // Check if updates are necessary\n if (videocard.attributeController.modeControlReg.lineGraphicsEnable != oldLineGraphics)\n {\n screen.updateCodePage(0x20000 + videocard.sequencer.charMapAddress);\n videocard.vgaMemReqUpdate = true;\n }\n if (videocard.attributeController.modeControlReg.paletteBitsSelect != oldPaletteBitsSelect)\n {\n needUpdate = true;\n }\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Mode control: \" + data);\n break;\n \n case 0x11: // Overscan Colour Register\n videocard.attributeController.overscanColour = (byte) (data & 0x3f);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Overscan colour = \" + data);\n break;\n \n case 0x12: // Colour Plane Enable Register\n videocard.attributeController.colourPlaneEnable = (byte) (data & 0x0f);\n needUpdate = true;\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Colour plane enable = \" + data);\n break;\n \n case 0x13: // Horizontal Pixel Panning Register\n videocard.attributeController.horizPixelPanning = (byte) (data & 0x0f);\n needUpdate = true;\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Horiz. pixel panning = \" + data);\n break;\n \n case 0x14: // Colour Select Register\n videocard.attributeController.colourSelect = (byte) (data & 0x0f);\n needUpdate = true;\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Colour select = \" + videocard.attributeController.colourSelect);\n break;\n \n default:\n logger.log(Level.WARNING, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Data mode (unknown register) \" + videocard.attributeController.index);\n } \n \n \n }\n else\n {\n // Address mode\n int oldPaletteAddressSource = videocard.attributeController.paletteAddressSource;\n\n videocard.attributeController.paletteAddressSource = (byte) ((data >> 5) & 0x01);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: address mode = \" + videocard.attributeController.paletteAddressSource);\n\n if (videocard.attributeController.paletteAddressSource == 0)\n screen.clearScreen();\n else if (!(oldPaletteAddressSource != 0))\n {\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"found enable transition\");\n needUpdate = true;\n }\n \n data &= 0x1F; // Attribute Address bits\n \n videocard.attributeController.index = data;\n switch (data)\n {\n case 0x00:\n case 0x01:\n case 0x02:\n case 0x03:\n case 0x04:\n case 0x05:\n case 0x06:\n case 0x07:\n case 0x08:\n case 0x09:\n case 0x0A:\n case 0x0B:\n case 0x0C:\n case 0x0D:\n case 0x0E:\n case 0x0F:\n break;\n\n default:\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Address mode reg = \" + data);\n }\n }\n \n // Flip the flip-flop\n videocard.attributeController.dataAddressFlipFlop = !videocard.attributeController.dataAddressFlipFlop;\n break;\n\n case 0x3C2: // Miscellaneous Output Register\n videocard.miscOutputRegister.ioAddressSelect = (byte) ((data >> 0) & 0x01);\n videocard.miscOutputRegister.ramEnable = (byte) ((data >> 1) & 0x01);\n videocard.miscOutputRegister.clockSelect = (byte) ((data >> 2) & 0x03);\n videocard.miscOutputRegister.lowHighPage = (byte) ((data >> 5) & 0x01);\n videocard.miscOutputRegister.horizontalSyncPol = (byte) ((data >> 6) & 0x01);\n videocard.miscOutputRegister.verticalSyncPol = (byte) ((data >> 7) & 0x01);\n\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3C2:\");\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O Address select = \" + videocard.miscOutputRegister.ioAddressSelect);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Ram Enable = \" + videocard.miscOutputRegister.ramEnable);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Clock Select = \" + videocard.miscOutputRegister.clockSelect);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Low/High Page = \" + videocard.miscOutputRegister.lowHighPage);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Horiz Sync Polarity = \" + videocard.miscOutputRegister.horizontalSyncPol);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Vert Sync Polarity = \" + videocard.miscOutputRegister.verticalSyncPol);\n break;\n\n case 0x3C3: // Video Subsystem Enable; currently only uses bit 0 to check if enabled/disabled\n videocard.vgaEnabled = (data & 0x01) == 1 ? true : false;\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" set I/O port 0x3C3: VGA Enabled = \" + videocard.vgaEnabled);\n break;\n\n case 0x3C4: // Sequencer Index Register\n if (data > 4)\n {\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3C4: index > 4\");\n }\n videocard.sequencer.index = data;\n break;\n\n case 0x3C5: // Sequencer Data Registers\n // Determine register to write to\n switch (videocard.sequencer.index)\n {\n case 0: // Reset register\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write 0x3C5: Sequencer reset: \" + data);\n if ((videocard.sequencer.aSynchReset != 0) && ((data & 0x01) == 0))\n {\n videocard.sequencer.characterMapSelect = 0;\n videocard.sequencer.charMapAddress = 0;\n screen.updateCodePage(0x20000 + videocard.sequencer.charMapAddress);\n videocard.vgaMemReqUpdate = true;\n }\n videocard.sequencer.aSynchReset = (byte) ((data >> 0) & 0x01);\n videocard.sequencer.synchReset = (byte) ((data >> 1) & 0x01);\n break;\n \n case 1: // Clocking mode register\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C5 (clocking mode): \" + data);\n videocard.sequencer.clockingMode = (byte) (data & 0x3D);\n videocard.sequencer.dotClockRate = ((data & 0x08) > 0) ? (byte) 1 : 0;\n break;\n \n case 2: // Map Mask register\n videocard.sequencer.mapMask = (byte) (data & 0x0F);\n for (int i = 0; i < 4; i++)\n videocard.sequencer.mapMaskArray[i] = (byte) ((data >> i) & 0x01);\n break;\n \n case 3: // Character Map select register\n videocard.sequencer.characterMapSelect = (byte) (data & 0x3F);\n \n byte charSetA = (byte) (data & 0x13); // Text mode font used when attribute byte bit 3 == 1\n if (charSetA > 3)\n charSetA = (byte) ((charSetA & 3) + 4);\n \n byte charSetB = (byte) ((data & 0x2C) >> 2); // Text mode font used when attribute byte bit 3 == 0\n if (charSetB > 3)\n charSetB = (byte) ((charSetB & 3) + 4);\n \n // Select font from font table\n // FIXME: Ensure this check is correct\n if (videocard.crtControllerRegister.regArray[0x09] != 0)\n {\n videocard.sequencer.charMapAddress = SequencerRegister.charMapOffset[charSetA];\n screen.updateCodePage(0x20000 + videocard.sequencer.charMapAddress);\n videocard.vgaMemReqUpdate = true;\n }\n \n // Different fonts not supported at this time\n if (charSetB != charSetA)\n logger.log(Level.WARNING, \"[\" + MODULE_TYPE + \"]\" + \"Character map select: map #2 in block \" + charSetB + \" unused\");\n break;\n \n case 4: // Memory Mode register\n videocard.sequencer.extendedMemory = (byte) ((data >> 1) & 0x01);\n videocard.sequencer.oddEvenDisable = (byte) ((data >> 2) & 0x01);\n videocard.sequencer.chainFourEnable = (byte) ((data >> 3) & 0x01);\n\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3C5 (memory mode):\");\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Extended Memory = \" + videocard.sequencer.extendedMemory);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Odd/Even disable = \" + videocard.sequencer.oddEvenDisable);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Chain 4 enable = \" + videocard.sequencer.chainFourEnable);\n break;\n \n default:\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C5: index \" + videocard.sequencer.index + \" unhandled\");\n }\n break;\n\n case 0x3C6: // Pixel mask\n videocard.colourRegister.pixelMask = data;\n if (videocard.colourRegister.pixelMask != (byte) 0xFF)\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3C6: Pixel mask= \" + data + \" != 0xFF\");\n break;\n\n case 0x3C7: // DAC Address Read Mode register\n videocard.colourRegister.dacReadAddress = data;\n videocard.colourRegister.dacReadCounter = 0;\n videocard.colourRegister.dacState = 0x03;\n break;\n\n case 0x3C8: // DAC Address Write Mode register\n videocard.colourRegister.dacWriteAddress = data;\n videocard.colourRegister.dacWriteCounter = 0;\n videocard.colourRegister.dacState = 0x00;\n break;\n\n case 0x3C9: // DAC Data Register\n // Determine sub-colour to be written \n switch (videocard.colourRegister.dacWriteCounter)\n {\n case 0:\n videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)].red = data;\n break;\n case 1:\n videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)].green = data;\n break;\n case 2:\n videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)] .blue = data;\n\n needUpdate |= screen.setPaletteColour(videocard.colourRegister.dacWriteAddress, (videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)].red) << 2,\n (videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)].green) << 2,\n (videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)].blue) << 2);\n break;\n }\n\n videocard.colourRegister.dacWriteCounter++;\n\n // Reset counter when 3 values are written and automatically update the address\n if (videocard.colourRegister.dacWriteCounter >= 3)\n {\n videocard.colourRegister.dacWriteCounter = 0;\n videocard.colourRegister.dacWriteAddress++;\n }\n break;\n\n case 0x3CA: // Feature Control Register\n // Read only (write at 0x3BA mono, 0x3DA colour)\n break;\n\n case 0x3CC: // Miscellaneous Output Register\n // Read only (write at 0x3C2\n break;\n\n case 0x3CD: // Unknown\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" I/O write to unknown port 0x3CD = \" + data);\n break;\n\n case 0x3CE: // Graphics Controller Address Register\n // Only 9 register accessible\n if (data > 0x08)\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" /O write port 0x3CE: index > 8\");\n videocard.graphicsController.index = data;\n break;\n\n case 0x3CF: // Graphics Controller Data Register\n switch (videocard.graphicsController.index)\n {\n case 0: // Set/Reset\n videocard.graphicsController.setReset = (byte) (data & 0x0F);\n break;\n \n case 1: // Enable Set/Reset\n videocard.graphicsController.enableSetReset = (byte) (data & 0x0F);\n break;\n \n case 2: // Colour Compare\n videocard.graphicsController.colourCompare = (byte) (data & 0x0F);\n break;\n \n case 3: // Data Rotate\n videocard.graphicsController.dataRotate = (byte) (data & 0x07);\n videocard.graphicsController.dataOperation = (byte) ((data >> 3) & 0x03);\n break;\n \n case 4: // Read Map Select\n videocard.graphicsController.readMapSelect = (byte) (data & 0x03);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3CF (Read Map Select): \" + data);\n break;\n \n case 5: // Graphics Mode\n videocard.graphicsController.writeMode = (byte) (data & 0x03);\n videocard.graphicsController.readMode = (byte) ((data >> 3) & 0x01);\n videocard.graphicsController.hostOddEvenEnable = (byte) ((data >> 4) & 0x01);\n videocard.graphicsController.shift256Reg = (byte) ((data >> 5) & 0x03);\n\n if (videocard.graphicsController.hostOddEvenEnable != 0)\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3CF (graphics mode): value = \" + data);\n if (videocard.graphicsController.shift256Reg != 0)\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3CF (graphics mode): value = \" + data);\n break;\n \n case 6: // Miscellaneous\n // Store old values for check later\n byte oldAlphaNumDisable = videocard.graphicsController.alphaNumDisable;\n byte oldMemoryMapSelect = videocard.graphicsController.memoryMapSelect;\n\n videocard.graphicsController.alphaNumDisable = (byte) (data & 0x01);\n videocard.graphicsController.chainOddEvenEnable = (byte) ((data >> 1) & 0x01);\n videocard.graphicsController.memoryMapSelect = (byte) ((data >> 2) & 0x03);\n\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3CF (Miscellaneous): \" + data);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Alpha Num Disable: \" + videocard.graphicsController.alphaNumDisable);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Memory map select: \" + videocard.graphicsController.memoryMapSelect);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Odd/Even enable : \" + videocard.graphicsController.hostOddEvenEnable);\n \n\n if (oldMemoryMapSelect != videocard.graphicsController.memoryMapSelect)\n needUpdate = true;\n if (oldAlphaNumDisable != videocard.graphicsController.alphaNumDisable)\n {\n needUpdate = true;\n oldScreenHeight = 0;\n }\n break;\n \n case 7: // Colour Don't Care\n videocard.graphicsController.colourDontCare = (byte) (data & 0x0F);\n break;\n \n case 8: // Bit Mask\n videocard.graphicsController.bitMask = data;\n break;\n \n default:\n // Unknown index addressed\n logger.log(Level.WARNING, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3CF: index \" + videocard.graphicsController.index + \" unhandled\");\n }\n break;\n\n case 0x3B4: // CRT Controller Address Register (monochrome)\n case 0x3D4: // CRT Controller Address Register (colour)\n // Set index to be accessed in CRTC Data Register cycle\n videocard.crtControllerRegister.index = (byte) (data & 0x7F);\n if (videocard.crtControllerRegister.index > 0x18)\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3(B|D)4: invalid CRTC register \" + videocard.crtControllerRegister.index + \" selected\");\n break;\n\n case 0x3B5: // CRTC Data Register (monochrome)\n case 0x3D5: // CRTC Data Register (colour)\n if (videocard.crtControllerRegister.index > 0x18)\n {\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3(B|D)5: invalid CRTC Register (\" + videocard.crtControllerRegister.index + \"); ignored\");\n return;\n }\n // Check if writing is allowed for registers 0x00 - 0x07\n if ((videocard.crtControllerRegister.protectEnable) && (videocard.crtControllerRegister.index < 0x08))\n {\n // Only write exception in protectEnable is lineCompare of Overflow register (0x07)\n if (videocard.crtControllerRegister.index == 0x07)\n {\n // Reset variables before ORing\n videocard.crtControllerRegister.regArray[videocard.crtControllerRegister.index] &= ~0x10;\n videocard.lineCompare &= 0x2ff;\n \n // Bit 4 specifies lineCompare bit 8 \n videocard.crtControllerRegister.regArray[videocard.crtControllerRegister.index] |= (data & 0x10);\n if ((videocard.crtControllerRegister.regArray[0x07] & 0x10) != 0)\n videocard.lineCompare |= 0x100;\n needUpdate = true;\n break;\n }\n else\n {\n return;\n }\n }\n if (data != videocard.crtControllerRegister.regArray[videocard.crtControllerRegister.index])\n {\n videocard.crtControllerRegister.regArray[videocard.crtControllerRegister.index] = data;\n switch (videocard.crtControllerRegister.index)\n {\n case 0x07:\n // Overflow register; specifies bit 8, 9 for several fields\n \n // Reset variables before ORing\n videocard.verticalDisplayEnd &= 0xFF;\n videocard.lineCompare &= 0x2FF;\n\n // Bit 1 specifies verticalDisplayEnd bit 8 \n if ((videocard.crtControllerRegister.regArray[0x07] & 0x02) != 0)\n videocard.verticalDisplayEnd |= 0x100;\n // Bit 6 specifies verticalDisplayEnd bit 9\n if ((videocard.crtControllerRegister.regArray[0x07] & 0x40) != 0)\n videocard.verticalDisplayEnd |= 0x200;\n // Bit 4 specifies lineCompare bit 8\n if ((videocard.crtControllerRegister.regArray[0x07] & 0x10) != 0)\n videocard.lineCompare |= 0x100;\n needUpdate = true;\n break;\n \n case 0x08:\n // Preset row scan; bits 5-6 allow 15/31/35 pixel shift without change in start address, \n // bits 0-4 specify number of scanlines to scroll up (more precise than start address)\n needUpdate = true;\n break;\n \n case 0x09:\n // Maximum scan line; for text mode, value should be char. height - 1, \n // for graphic mode a non-zero value causes repeat of scanline by MSL+1 \n\n // Bit 7 sets scan doubling:\n // FIXME: Why is this ANDed with 0x9F if bit 7 is required?\n videocard.crtControllerRegister.scanDoubling = ((data & 0x9F) > 0) ? (byte) 1 : 0;\n\n // Reset variables before ORing\n videocard.lineCompare &= 0x1FF;\n\n // Bit 6 specifies bit 9 of line_compare\n if ((videocard.crtControllerRegister.regArray[0x09] & 0x40) != 0)\n videocard.lineCompare |= 0x200;\n needUpdate = true;\n break;\n \n case 0x0A:\n case 0x0B:\n case 0x0E:\n case 0x0F:\n // Cursor start & end / cursor location; specifies the scanlines \n // at which the cursor should start and end, and the location of the cursor\n videocard.vgaMemReqUpdate = true;\n break;\n \n case 0x0C:\n case 0x0D:\n // Start address; specifies the display memory address of the upper left pixel/character\n if (videocard.graphicsController.alphaNumDisable != 0)\n {\n needUpdate = true;\n }\n else\n {\n videocard.vgaMemReqUpdate = true;\n }\n break;\n \n case 0x11:\n // Change vertical retrace end\n videocard.crtControllerRegister.protectEnable = ((videocard.crtControllerRegister.regArray[0x11] & 0x80) > 0) ? true : false;\n break;\n \n case 0x12:\n // Change vertical display end\n videocard.verticalDisplayEnd &= 0x300;\n videocard.verticalDisplayEnd |= (((int) videocard.crtControllerRegister.regArray[0x12]) & 0xFF);\n break;\n \n case 0x13:\n case 0x14:\n case 0x17:\n // Line offset; specifies address difference between consecutive scanlines/character lines \n videocard.lineOffset = videocard.crtControllerRegister.regArray[0x13] << 1;\n if ((videocard.crtControllerRegister.regArray[0x14] & 0x40) != 0)\n {\n videocard.lineOffset <<= 2;\n }\n else if ((videocard.crtControllerRegister.regArray[0x17] & 0x40) == 0)\n {\n videocard.lineOffset <<= 1;\n }\n needUpdate = true;\n break;\n\n case 0x18:\n // Line compare; indicates scan line where horiz. division can occur. No division when set to 0x3FF\n videocard.lineCompare &= 0x300;\n videocard.lineCompare |= (((short) videocard.crtControllerRegister.regArray[0x18]) & 0xFF); // Cast from byte to short\n needUpdate = true;\n break;\n }\n\n }\n break;\n\n case 0x3Da: // Feature Control (colour)\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3DA (Feature Control Register, colour): reserved\");\n break;\n\n case 0x03C1: // Attribute Data Read Register\n // Read only\n break;\n \n default:\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" unsupported I/O write to port \" + portAddress + \", data =\" + data);\n\n }\n\n if (needUpdate)\n {\n // Mark all video as updated so the changes will go through\n setAreaForUpdate(0, 0, oldScreenWidth, oldScreenHeight);\n }\n return;\n }",
"public void saveUserData(UserData userData){\n userDataRepository.save(userData);\n }",
"public void setUser(UserData data) {\n user = data;\n }",
"public void setData(E data) {\r\n\t\tthis.data = data;\r\n\t}",
"public void setData(byte[] data) {\r\n this.bytes = data;\r\n }",
"public static void save(Superuser pdApp) throws IOException {\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(storeDir + File.separator + storeFile));\n\t\t\toos.writeObject(pdApp);\n\t\t\toos.close();\n\t}",
"void bytetest() {\n byte[] myByteArray = new byte[256];\n for (int i = 0; i < 256; ++i) {\n myByteArray[i] = (byte)i;\n }\n\n Intent writeIntent = new Intent(BGXpressService.ACTION_WRITE_SERIAL_BIN_DATA);\n writeIntent.putExtra(\"value\", myByteArray);\n writeIntent.setClass(mContext, BGXpressService.class);\n writeIntent.putExtra(\"DeviceAddress\", mDeviceAddress);\n startService(writeIntent);\n }",
"public void setUserKey(byte[] u) throws IOException\n {\n COSString user = new COSString();\n user.append( u );\n encryptionDictionary.setItem( COSName.getPDFName( \"U\" ), user );\n }",
"public void writeEquipment() {\n try {\n FileOutputStream fileOut = new FileOutputStream(\"temp/equipment.ser\");\n ObjectOutputStream out = new ObjectOutputStream(fileOut);\n out.writeObject(equipment);\n out.close();\n fileOut.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void setUserData (Object userData) {\n\t\tthis.userData = userData;\n\t}",
"public boolean write(BluetoothGattCharacteristic characteristic, byte[] payload, boolean withEOD) {\n Log.v(TAG, String.format(\"write called: device=%s base64=%s value=%s length=%d characteristicUUID=%s\", getMACAddress(), Base64.encodeToString(payload, Base64.DEFAULT), BleDriver.bytesToHex(payload), payload.length, characteristic.getUuid()));\n\n if (!isClientConnected()) {\n Log.e(TAG, \"write error: device not connected\");\n return false;\n }\n\n int minOffset = 0;\n int maxOffset;\n\n // Send data to fit with MTU value\n while (minOffset != payload.length) {\n maxOffset = minOffset + getMtu() - GattServer.ATT_HEADER_SIZE > payload.length ? payload.length : minOffset + getMtu() - GattServer.ATT_HEADER_SIZE;\n final byte[] toWrite = Arrays.copyOfRange(payload, minOffset, maxOffset);\n minOffset = maxOffset;\n Log.v(TAG, String.format(\"write: data chunk: device=%s base64=%s value=%s length=%d characteristicUUID=%s\", getMACAddress(), Base64.encodeToString(toWrite, Base64.DEFAULT), BleDriver.bytesToHex(toWrite), toWrite.length, characteristic.getUuid()));\n if (!internalWrite(characteristic, toWrite)) {\n Log.e(TAG, String.format(\"write payload failed: device=%s\", getMACAddress()));\n return false;\n }\n }\n\n if (withEOD && !internalWrite(characteristic, EOD.getBytes())) {\n Log.e(TAG, String.format(\"write EOD failed: device=%s\", getMACAddress()));\n return false;\n }\n return true;\n }",
"private void saveData() {\n // Actualiza la información\n client.setName(nameTextField.getText());\n client.setLastName(lastNameTextField.getText());\n client.setDni(dniTextField.getText());\n client.setAddress(addressTextField.getText());\n client.setTelephone(telephoneTextField.getText());\n\n // Guarda la información\n DBManager.getInstance().saveData(client);\n }",
"public void Send_To_Arduino()\n{\n float[] toSend = new float[6];\n\n toSend[0] = PApplet.parseFloat(SPField.getText());\n toSend[1] = PApplet.parseFloat(InField.getText());\n toSend[2] = PApplet.parseFloat(OutField.getText());\n toSend[3] = PApplet.parseFloat(PField.getText());\n toSend[4] = PApplet.parseFloat(IField.getText());\n toSend[5] = PApplet.parseFloat(DField.getText());\n Byte a = (AMLabel.valueLabel().getText()==\"Manual\")?(byte)0:(byte)1;\n Byte d = (DRLabel.valueLabel().getText()==\"Direct\")?(byte)0:(byte)1;\n myPort.write(a);\n myPort.write(d);\n myPort.write(floatArrayToByteArray(toSend));\n justSent=true;\n}",
"public long writeMem(int index, long data) throws Exception{\n\t\tif(index >= 0 && index < Constants.MEM_SIZE){\n\t\t\tmemory[index] = data;\n\t\t} else {\n\t\t\tthrow new Exception(\"Invalid memory location!!\");\n\t\t}\n\t\treturn memory[index];\n\t}",
"public void save() {\r\n IniReader.write(FILE_NAME, \"x\", x, \"y\", y, \"fullscreen\", fullscreen, \"controlType\", controlType, \"vol\", volMul,\r\n \"keyUpMouse\", getKeyUpMouseName(), \"keyDownMouse\", getKeyDownMouseName(), \"keyUp\", getKeyUpName(), \"keyDown\", keyDownName,\r\n \"keyLeft\", keyLeftName, \"keyRight\", keyRightName, \"keyShoot\", keyShootName, \"keyShoot2\", getKeyShoot2Name(),\r\n \"keyAbility\", getKeyAbilityName(), \"keyEscape\", getKeyEscapeName(), \"keyMap\", keyMapName, \"keyInventory\", keyInventoryName,\r\n \"keyTalk\", getKeyTalkName(), \"keyPause\", getKeyPauseName(), \"keyDrop\", getKeyDropName(), \"keySellMenu\", getKeySellMenuName(),\r\n \"keyBuyMenu\", getKeyBuyMenuName(), \"keyChangeShipMenu\", getKeyChangeShipMenuName(), \"keyHireShipMenu\", getKeyHireShipMenuName());\r\n }",
"@Override\n public void write(byte[] data) throws SerialError {\n int offset= 0;\n int size_toupload=0;\n byte[] buffer = new byte[SIZE_SERIALUSB];\n if(!isConnected())\n {\n open();\n }\n try\n {\n while(offset < data.length) {\n\n if(offset+SIZE_SERIALUSB > data.length)\n {\n size_toupload = data.length-offset;\n }\n System.arraycopy(data, offset, buffer, 0, size_toupload);\n int size_uploaded = conn.bulkTransfer(epOUT, buffer, size_toupload, TIMEOUT);\n if(size_uploaded<0)\n {\n throw new SerialError(\" bulk Transfer fail\");\n }\n offset += size_uploaded;\n }\n\n }catch (Exception e)\n {\n throw new SerialError(e.getMessage());\n }\n }",
"@Override\r\n public void storePin() {\n DataStoreGP1 data = (DataStoreGP1) ds;\r\n data.pin = data.temp_p;\r\n System.out.println(\"Pin has been saved successfully..\");\r\n }",
"public synchronized void writeNow(String data){\n\t\tlog.debug(\"[SC] Writing now unencrypted - \"+data, 4);\n\t\tif(out!=null){\n\t\t\ttry {\n\t\t\t\tif(!data.endsWith(\"\\n\")){\n\t\t\t\t\tdata = data + \"\\n\";\n\t\t\t\t}\n\t\t\t\tout.write(data.getBytes());\n\t\t\t\tout.flush();\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog.error(\"[SC] Could not write to socket\");\n\t\t\t}\t\n\t\t}else{\n\t\t\tlog.error(\"[SC] Could not write to socket\");\n\t\t}\n\t}",
"@Override\r\n\tpublic void setData(E data) {\n\t\tthis.data=data;\r\n\t}",
"public void sendData(IoBuffer outData) {\n\t\ttry {\n\t\t\tsession.write(outData);\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n public void write(int address, int data) {\n Preconditions.checkBits8(data);\n Preconditions.checkBits16(address);\n\n boolean previousState = state();\n\n switch (address) {\n\n case AddressMap.REG_DIV:\n DIV = 0;\n break;\n\n case AddressMap.REG_TIMA:\n TIMA = data;\n break;\n\n case AddressMap.REG_TMA:\n TMA = data;\n break;\n\n case AddressMap.REG_TAC:\n TAC = data;\n break;\n\n default:\n break;\n }\n\n incTIMAIfChange(previousState);\n }",
"public void updateDevice(UeiData ueiData)\n\t{\n\t\tAbstractUei uei = (AbstractUei) this.devicesDiscovered.get(ueiData.getId()).get(0);\n\t\t\n\t\t// update\n\t\tuei.updateStatus(ueiData);\n\t\t\n\t\t// push over MQTT\n\t\tHashMap<String, Object> valuesMap = new HashMap<String, Object>();\n\t\tvaluesMap.put(\"getTemperature\", uei.getTemperature());\n\t\tvaluesMap.put(\"getLevel\", uei.getLevel());\n\t\tvaluesMap.put(\"getBattery\", uei.getBattery());\n\t\tPWALNewDataAvailableEvent event = new PWALNewDataAvailableEvent(uei.getUpdatedAt(), uei.getPwalId(),\n\t\t\t\tuei.getExpiresAt(), valuesMap, uei);\n\t\tlogger.info(\"Device {} is publishing a new data available event on topic: {}\", uei.getPwalId(),\n\t\t\t\tuei.getEventPublisher().getTopics());\n\t\tuei.getEventPublisher().publish(event);\n\t}",
"private void saveNewAddress() {\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(deviceAddress, \"previousDeviceAddress\");\n editor.commit();\n }",
"void writeBytes(byte[] value);",
"native int _writeSerialPort(int port, byte data[]);",
"public void write(int ireg, byte[] data)\n {\n try\n {\n synchronized (this.lock)\n {\n // Wait until we can write to the write cache\n while (this.writeCacheStatus != WRITE_CACHE_STATUS.IDLE)\n {\n this.lock.wait();\n }\n\n // Indicate where we want to write\n this.i2cDevice.enableI2cWriteMode(ireg, data.length);\n \n // Indicate we are dirty so the callback will write us out\n this.writeCacheStatus = WRITE_CACHE_STATUS.DIRTY;\n\n // Provide the data we want to write\n this.writeCacheLock.lockInterruptibly();\n try\n {\n System.arraycopy(data, 0, this.writeCache, dibCacheOverhead, data.length);\n }\n finally\n {\n this.writeCacheLock.unlock();\n }\n }\n }\n catch (InterruptedException e)\n {\n throw SwerveRuntimeException.wrap(e);\n }\n }",
"private void saveToFileData() {//Context context) {\n try {\n FileOutputStream fileOutputStream = openFileOutput(fileNameData, Context.MODE_PRIVATE);\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream);\n objectOutputStream.writeObject(Data.userData);\n objectOutputStream.close();\n fileOutputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public abstract void write(List<EmitterSystemState> data)\n\t\t\tthrows FailedToWriteToDatastoreException;",
"public static void lcd_WriteChar ( int data) {\n lcd_RawWrite( Rs | (data & 0xF0));\n lcd_RawWrite( Rs | ((data <<4 ) & 0xF0));\n }",
"public boolean save(T data) throws MIDaaSException;",
"public void write(int index, UnsignedByte unsignedByte) {\n memory[index] = unsignedByte;\n }",
"public void setUserData(Object userData) {\n this.userData = userData;\n }",
"@Override\n public void write(final byte[] data) throws IOException {\n write(data, 0, data.length);\n }",
"public void Write_data() {\n // add-write text into file\n try {\n FileOutputStream fileout=openFileOutput(\"savedata11.txt\", MODE_PRIVATE);\n OutputStreamWriter outputWriter=new OutputStreamWriter(fileout);\n outputWriter.write(Integer.toString(_cnt));\n outputWriter.close();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"void setUserData(KingdomUser user, String path, Object value);",
"public void StoreData(DataStore ds)\n {\n ((DataStore2)ds).setPin();\n\tSystem.out.println(\"Account 2:The set PIN is \" + ((DataStore2)ds).getPin() );\n ((DataStore2)ds).setUid();\n\tSystem.out.println(\"Account 2:The set User ID is \" + ((DataStore2)ds).getUid() );\n ((DataStore2)ds).setBalance();\n\tSystem.out.println(\"Account 2:The Balance is \" + ((DataStore2)ds).getBalance() );\n }",
"@Override\n\tpublic void EmergencySend(byte[] data) {\n\t\t\n\t}",
"private void writeData(String data) throws IOException\n {\n this.writer.println(data);\n this.writer.flush();\n }",
"public void write(int address, int value){\n\r\n switch (address){\r\n case CONTROL_REGISTER_1:{ // 0\r\n //logger.info(\"Write \" + Integer.toHexString(value) + \" to \" + Integer.toHexString(address));\r\n registers_w[CONTROL_REGISTER_1] = value & 0xFF;\r\n if ((value & CR1_SPRITE_SIZE) != 0){\r\n doubleSizeSprites = true;\r\n }\r\n else {\r\n doubleSizeSprites = false;\r\n }\r\n /**\r\n * creates a 0-3 index into the name table address array\r\n * by setting which way we go horizontally and vertically\r\n */\r\n int oldH = horizontalNameLatch;\r\n int oldV = verticalNameLatch;\r\n horizontalNameLatch = value & 0x1;\r\n if (shouldLog && oldH != horizontalNameLatch){\r\n logger.info(\"Set H to \" + horizontalNameLatch);\r\n }\r\n verticalNameLatch = (value & 0x2) >> 1;\r\n if (shouldLog && oldV != verticalNameLatch){\r\n logger.info(\"Set V to \" + verticalNameLatch);\r\n }\r\n playfieldSelector = (value & CR1_SCREEN_PATTERN_ADDRESS) >> 4;\r\n break;\r\n }\r\n case CONTROL_REGISTER_2:{ // 1\r\n // logger.info(\"CR2: \" + Integer.toHexString(value));\r\n registers_w[CONTROL_REGISTER_2] = value & 0xFF;\r\n displayEnabled = (registers_w[CONTROL_REGISTER_2] & CR2_SCREEN_SWITCH) != 0;\r\n spritesEnabled = (registers_w[CONTROL_REGISTER_2] & CR2_SPRITE_SWITCH) != 0;\r\n\r\n \r\n break;\r\n }\r\n case 2: {\r\n break;\r\n }\r\n case SPRITE_MEMORY_ADDRESS:{ // 3\r\n setSpriteMemoryAddress(value);\r\n break;\r\n }\r\n case SPRITE_MEMORY_DATA:{ // 4\r\n writeToSpriteMemory(value);\r\n break;\r\n }\r\n case SCROLL_OFFSET:{ // 5\r\n if (shouldLog)\r\n logger.info(\"Wrote to scroll offset: \" + value);\r\n registers_w[SCROLL_OFFSET] = value;\r\n if (isFirstWriteToScroll){\r\n horizontalTileLatch = (value & 0xF8) >> 3;\r\n fineHorizontalCounter = value & 0x7; // immediate effect... but what's it used for?\r\n isFirstWriteToScroll = false;\r\n }\r\n else {\r\n verticalTileLatch = (value & 0xF8) >> 3;\r\n fineVerticalLatch = value & 0x7;\r\n isFirstWriteToScroll = true;\r\n }\r\n break;\r\n }\r\n case PPU_MEMORY_ADDRESS:{ /** 6 - write high byte, then low byte */\r\n if (lastPPUAddressWasHigh){\r\n lastPPUAddressWasHigh = false;\r\n\r\n\r\n // System.out.println(\"Scanline = \" + scanLine);\r\n horizontalTileLatch = value & 0x1F;\r\n verticalTileLatch |= ((value & 0xE0) >> 5); // gets top 2 bits from first write\r\n\r\n loadAddressFromLatches();\r\n // System.out.println(\"PPU Address: \" + Integer.toHexString(ppuMemoryAddress));\r\n // ppuMemoryAddress = ((registers_w[address] & 0xFF) << 8) | (value & 0xFF);\r\n // System.out.println(\"PPU Address after real load: \" + Integer.toHexString(ppuMemoryAddress));\r\n\r\n\r\n }\r\n else { // this is the 1st write\r\n verticalTileLatch = (value & 0x3) << 3; // the upper 2 bits of latch\r\n horizontalNameLatch = (value & 0x4) >> 2;\r\n verticalNameLatch = (value & 0x8) >> 3;\r\n fineVerticalLatch = (value & 0x30) >> 4;\r\n lastPPUAddressWasHigh = true;\r\n }\r\n registers_w[address] = value & 0xFF;\r\n break;\r\n }\r\n case PPU_MEMORY_DATA: { // 7\r\n // System.out.println(\"PPU MEMORY WRITE: \" + Integer.toHexString(ppuMemoryAddress) + \",\" + Integer.toHexString(value));\r\n //memory.write(ppuMemoryAddress, value & 0xFF);\r\n\t\t\tint writeAddress = horizontalTileCounter \r\n | (verticalTileCounter << 5)\r\n | (horizontalNameCounter << 10)\r\n | (verticalNameCounter << 11)\r\n | ((fineVerticalCounter & 0x3) << 12);\r\n\t\t\tif (writeAddress == 0x3F10 ||\r\n\t\t\t\t\twriteAddress == 0x3F14 ||\r\n\t\t\t\t\twriteAddress == 0x3F18 ||\r\n\t\t\t\t\twriteAddress == 0x3F1C) {\r\n\t\t\t\twriteAddress = writeAddress & 0x3F0F;\r\n\t\t\t}\r\n memory.write(writeAddress, value & 0xFF);\r\n /*\r\n if (ppuMemoryAddress < 0x3F00){\r\n memory.write(ppuMemoryAddress, value & 0xFF);\r\n }\r\n else {\r\n memory.write(ppuMemoryAddress - 0x3F00, value & 0xFF);\r\n }\r\n */\r\n incrementCounters();\r\n /*\r\n if ((registers_w[CONTROL_REGISTER_1] & CR1_VERTICAL_WRITE) == 0){\r\n ppuMemoryAddress++;\r\n }\r\n else {\r\n ppuMemoryAddress += 32;\r\n }\r\n */\r\n // if (ppuMemoryAddress >= ram.size()) { ppuMemoryAddress = 0; }\r\n break;\r\n }\r\n\r\n default: throw new RuntimeException(\"Invalid write attempt: \" + Integer.toHexString(address));\r\n }\r\n }",
"public void sendToArduino(char flag, String[] data) {\n\t\t// Uncomment for logging\n\t\t// StringBuffer dataString = new StringBuffer();\n\t\t// for (int i = 0; i < data.length; i++) {\n\t\t// dataString.append(data[i]);\n\t\t// if (i < data.length - 1) {\n\t\t// dataString = dataString.append(\",\");\n\t\t// }\n\t\t// }\n\t\t// RoboLog.log(mService, \"Send data to Robot \" + mName + \": Flag: \" +\n\t\t// flag + \" Data: \"\n\t\t// + dataString, false);\n\t\tAmarino.sendDataToArduino(mService, mAddress, flag, data);\n\t}",
"public void onClick(DialogInterface dialog, int whichButton) {\n passwordEditTextValue = edittext.getText().toString() + \"\\n\";\n\n byte[] bytes = passwordEditTextValue.getBytes();\n\n if (sPort != null) {\n\n try {\n sPort.write(bytes, 1000);\n Log.e(LOG_TAG, \"inside write\");\n// mExecutor.submit(mSerialIoManager);\n } catch (IOException e) {\n e.printStackTrace();\n Log.e(LOG_TAG, \"Exception \" + e);\n }\n } else {\n Log.e(LOG_TAG, \"UsbSerialPort is null\");\n }\n }",
"@Override\r\n\tpublic void pushDataToEcc() {\n\t\t\r\n\t}",
"void write();",
"public void setByte(int offset, byte data)\n {\n writeMode(offset + 0xA0000, data);\n }",
"public void setUserDataAt(int index, Object data) {\n\t\tif (this.userData == null) {\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\t}\n\t\tthis.userData.set(index, data);\n\t}",
"public static void save(Context context,User user){\n try\n {\n\n FileOutputStream fileOutputStream = context.openFileOutput(\"UserData.dat\", Context.MODE_PRIVATE);\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream);\n objectOutputStream.writeObject(user);\n objectOutputStream.close();\n fileOutputStream.close();\n\n }\n\n catch(IOException ex) {\n System.out.println(\"IOException is caught\");\n }\n }",
"private void publish(String deviceAddress)\n {\n if(mMqttServiceBound)\n {\n try\n {\n TexTronicsDevice device = mTexTronicsList.get(deviceAddress);\n if(device != null)\n {\n // Get the byte array from the CSV file stored in the device\n byte[] buffer = IOUtil.readFile(device.getCsvFile());\n // Create a new string using device info and new byte array\n String json = MqttConnectionService.generateJson(device.getDate(),\n device.getDeviceAddress(),\n Choice.toString(device.getChoice()),\n device.getExerciseID(),\n device.getRoutineID(),\n new String(buffer));\n Log.d(\"SmartGlove\", \"JSON: \" + json);\n // Call the service to publish this string, now in JSON format\n mMqttService.publishMessage(json);\n String exe_nm = MainActivity.exercise_name;\n\n List<Integer> ids = new ArrayList<>();\n try{\n ids = UserRepository.getInstance(getApplicationContext()).getAllIdentities();\n }\n catch (Exception e){\n Log.e(TAG, \"onCreate: \", e);\n }\n\n int current = ids.size();\n\n Log.d(TAG, \"UpdateData: logging the data\");\n\n if (exe_nm.equals(\"Finger_Tap\") && deviceAddress.equals(\"LEFT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_finTap_left(json,current);\n }\n else if (exe_nm.equals(\"Closed_Grip\") && deviceAddress.equals(\"LEFT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_opCl_left(json,current);\n }\n else if (exe_nm.equals(\"Hand_Flip\") && deviceAddress.equals(\"LEFT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_h_flip_left(json,current);\n }\n else if (exe_nm.equals(\"Finger_to_Nose\") && deviceAddress.equals(\"LEFT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_finNose_left(json,current);\n }\n else if (exe_nm.equals(\"Hold_Hands_Out\") && deviceAddress.equals(\"LEFT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_handout_left(json,current);\n }\n else if (exe_nm.equals(\"Resting_Hands_on_Thighs\") && deviceAddress.equals(\"LEFT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_handrest_left(json,current);\n }\n else if (exe_nm.equals(\"Finger_Tap\") && deviceAddress.equals(\"RIGHT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_finTap_right(json,current);\n }\n else if (exe_nm.equals(\"Closed_Grip\") && deviceAddress.equals(\"RIGHT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_opCl_right(json,current);\n }\n else if (exe_nm.equals(\"Hand_Flip\") && deviceAddress.equals(\"RIGHT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_h_flip_right(json,current);\n }\n else if (exe_nm.equals(\"Finger_to_Nose\") && deviceAddress.equals(\"RIGHT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_finNose_right(json,current);\n }\n else if (exe_nm.equals(\"Hold_Hands_Out\") && deviceAddress.equals(\"RIGHT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_handout_right(json,current);\n }\n else if (exe_nm.equals(\"Resting_Hands_on_Thighs\") && deviceAddress.equals(\"RIGHT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_handrest_right(json,current);\n }\n else if (exe_nm.equals(\"Heel_Stomp\") && deviceAddress.equals(\"RIGHT_SHOE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_heelStmp_right(json,current);\n }\n else if (exe_nm.equals(\"Toe_Tap\") && deviceAddress.equals(\"RIGHT_SHOE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_toeTap_right(json,current);\n }\n else if (exe_nm.equals(\"Walk_Steps\") && deviceAddress.equals(\"RIGHT_SHOE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_gait_right(json,current);\n }\n else if (exe_nm.equals(\"Heel_Stomp\") && deviceAddress.equals(\"LEFT_SHOE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_heelStmp_left(json,current);\n }\n else if (exe_nm.equals(\"Toe_Tap\") && deviceAddress.equals(\"LEFT_SHOE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_toeTap_left(json,current);\n }\n else if (exe_nm.equals(\"Walk_Steps\") && deviceAddress.equals(\"LEFT_SHOE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_gait_left(json,current);\n }\n }\n else {\n Log.d(TAG, \"publish: Publish failed. Device is null\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"public void writeUnsafe(UnsafeMemory um) {\n int mySize = getWriteUnsafeSize();\n um.putInt(mySize);\n //serial\n um.putLong(serialVersionUID);\n\n //class member\n um.putString(fileName);\n\n\n //rocksDbKlueFileName\n um.putString(rocksDbKlueFileName);\n //boolean readOnly\n um.putBoolean(readOnly);\n\n um.putInt(last);\n\n //arrays\n um.put(nameIndex, UnsafeMemory.ARRAYLIST_STRING_TYPE);\n um.put(entries, UnsafeMemory.ARRAYLIST_KID_TYPE);\n um.put(kingdoms,UnsafeMemory.HASHMAP_INTEGER_CHARACTER_TYPE);\n\n\n //No longer stored in memory\n //um.put(sequences,UnsafeMemory.ARRAYLIST_DNABITSTRING_TYPE);\n\n\n\n //ArrayList<Integer> sequenceLength = new ArrayList<Integer>();\n um.put(sequenceLength, UnsafeMemory.ARRAYLIST_INT_TYPE);\n //ArrayList<HashMap<Integer,Character>> exceptionsArr;\n\n int total = 0;\n total += UnsafeMemory.SIZE_OF_INT // byte header\n + UnsafeMemory.SIZE_OF_LONG // SerialUID\n + UnsafeMemory.SIZE_OF_INT; // number of entries\n\n for (int z=0; z < exceptionsArr.size(); z++){\n total += UnsafeMemory.getWriteUnsafeSize(exceptionsArr.get(z), UnsafeMemory.HASHMAP_INTEGER_CHARACTER_TYPE);\n }\n\n um.putInt(total);\n um.putLong(serialVersionUID_ArrayListHashMap_INT_CHAR);\n um.putInt(exceptionsArr.size());\n for (int z=0; z < exceptionsArr.size(); z++){\n um.put(exceptionsArr.get(z), UnsafeMemory.HASHMAP_INTEGER_CHARACTER_TYPE);\n }\n\n }",
"public synchronized void writeData(int id, String key, RMItem value) {\n if (id >= 0) {\n txLocal.get(id).put(key, value);\n } else {\n getMaster().put(key, value);\n }\n }"
] | [
"0.78525543",
"0.672499",
"0.6327859",
"0.60783595",
"0.58349353",
"0.579472",
"0.56224227",
"0.5617363",
"0.55781245",
"0.55541164",
"0.55467296",
"0.5506329",
"0.5467428",
"0.5459998",
"0.54518855",
"0.54213244",
"0.54054666",
"0.5402348",
"0.5368188",
"0.53468937",
"0.5341433",
"0.5333596",
"0.53271914",
"0.5314412",
"0.53064793",
"0.5295925",
"0.52826554",
"0.526557",
"0.5265493",
"0.52648234",
"0.5258132",
"0.5255037",
"0.5237843",
"0.52274126",
"0.5223341",
"0.52119726",
"0.51993054",
"0.51976633",
"0.51955086",
"0.51940864",
"0.51697665",
"0.51671875",
"0.51598996",
"0.5158353",
"0.51529205",
"0.5149271",
"0.51476026",
"0.5144518",
"0.5139638",
"0.5139362",
"0.51374245",
"0.51320297",
"0.5112565",
"0.5108883",
"0.51081914",
"0.5105619",
"0.5095085",
"0.50794053",
"0.50738025",
"0.5070006",
"0.5066552",
"0.50661933",
"0.5062472",
"0.50621474",
"0.5051957",
"0.5047968",
"0.50413215",
"0.50328344",
"0.5028163",
"0.50207275",
"0.4997122",
"0.49895212",
"0.49893555",
"0.4985086",
"0.49796984",
"0.49738628",
"0.49670902",
"0.49649587",
"0.49595517",
"0.495793",
"0.49575442",
"0.49541405",
"0.4953026",
"0.49509308",
"0.49455532",
"0.49398375",
"0.49313527",
"0.49307793",
"0.49248797",
"0.4923095",
"0.4917367",
"0.49147668",
"0.49127182",
"0.49126393",
"0.4908681",
"0.49077964",
"0.49032748",
"0.49024537",
"0.48977897",
"0.48886243"
] | 0.81055474 | 0 |
Write string into the EEPROM user area | public void writeEEPROMUserArea(String data) throws FTD2XXException {
Memory source = new Memory(data.length());
source.setString(0, data);
ensureFTStatus(ftd2xx.FT_EE_UAWrite(ftHandle, source, data.length()));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void writeString(String value);",
"public void writeEEPROMUserArea(byte[] data) throws FTD2XXException {\n Memory source = new Memory(data.length);\n source.write(0, data, 0, data.length);\n ensureFTStatus(ftd2xx.FT_EE_UAWrite(ftHandle, source, data.length));\n }",
"public void writeString(String s){ \r\n message = \"String written\";\r\n byte[] pLen = new byte[1];\r\n byte[] pTAG = new byte[1];\r\n byte[] pSN = new byte[10];\r\n byte[] pNumTagFound = new byte[1];\r\n short tag = cardReader.select(handle,pTAG, pLen, pSN);\r\n if (tag < 0 ){\r\n message = \"No card found\";\r\n System.err.println(message);\r\n }\r\n if (!login())\r\n return;\r\n s = s + \" \"; // padding in case len < 16\r\n byte[] b = s.getBytes();\r\n byte[] b16 = new byte[16];\r\n for (int i=0;i<16;i++) \r\n b16[i] = b[i];\r\n int result = cardReader.write(handle,blocknr,b16);\r\n if (result < 0) {\r\n message = \"write block failed\";\r\n }\r\n System.err.println(message); \r\n }",
"public void writeString(String s) throws Exception {\r\n\tout.write(s.getBytes());\r\n}",
"void write (String s, int offset);",
"public void writeString(String message);",
"public void write(String str) throws IOException {\n\t\toffset = dataBase.getFilePointer();\n\t\tdataBase.writeBytes(str + \"\\n\");\n\t}",
"public void write(String input) {\n byte[] msgBuffer = input.getBytes(); //converts entered String into bytes\n try {\n mmOutStream.write(msgBuffer); //write bytes over BT connection via outstream\n } catch (IOException e) {\n //if you cannot write, close the application\n Toast.makeText(getBaseContext(), \"Connection Failure\", Toast.LENGTH_LONG).show();\n finish();\n }\n }",
"public synchronized void write(String data){\n\t\tlog.debug(\"[SC] Writing \"+data, 4);\n\t\twriteBuffer.add(data.getBytes());\n\t}",
"void write(String text);",
"public void writeEEPROM_X(EepromX eeprom) throws FTD2XXException {\n String manufacturer = eeprom.getManufacturer();\n Memory mManufacturer = new Memory(manufacturer.length() + 1);\n mManufacturer.setString(0, manufacturer);\n\n String manufacturerId = eeprom.getManufacturerId();\n Memory mManufacturerId = new Memory(manufacturerId.length() + 1);\n mManufacturerId.setString(0, manufacturerId);\n\n String description = eeprom.getDescription();\n Memory mDescription = new Memory(description.length() + 1);\n mDescription.setString(0, description);\n\n String serialNumber = eeprom.getSerialNumber();\n Memory mSerialNumber = new Memory(serialNumber.length() + 1);\n mSerialNumber.setString(0, serialNumber);\n\n ensureFTStatus(ftd2xx\n .FT_EEPROM_Program(ftHandle, eeprom.eeprom, eeprom.eeprom.size(), mManufacturer, mManufacturerId,\n mDescription, mSerialNumber));\n\n devSerialNumber = serialNumber;\n devDescription = description;\n }",
"public void write(String str) {\n Log.d(TAG, \"-> \"+str);\n mmOutStream.println(str);\n mmOutStream.flush();\n }",
"private static void writeToFile(String string){\n try {\n buffer.write(string);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void write(String value){\r\n for(int i=0; i<value.length(); i++){\r\n mBufferData.add(value.charAt(i));\r\n }\r\n }",
"private void EnviarDatos(String data) \n {\n\n try \n {\n Output.write(data.getBytes());\n\n } catch (IOException e) {\n\n System.exit(ERROR);\n }\n }",
"public boolean writeString( String str ) {\n log_d( \"writeString() \" + str );\n // Check that there's actually something to send\n if ( str.length() == 0 ) return false;\n\t\t// Get the message bytes and tell the BluetoothChatService to write\n\t\treturn writeBytes( str.getBytes() );\n }",
"public void write(String text) throws ShellIOException;",
"void writeUTF(String s) throws IOException;",
"public void write(String string) throws IOException{\r\n if(closed){\r\n throw new IOException(\"The stream is not open.\");\r\n }\r\n getBuffer().append(string);\r\n }",
"public void write (String s) {\n pw.print(s);\n }",
"public Write(String string) {\r\n\t\tthis.varName = string;\r\n\t}",
"private void WriteStringActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_WriteStringActionPerformed\r\n String string = StringText.getText();\r\n long serial = reader.readTag();\r\n if(string.equals(\"\")){\r\n string = \"Empty\";\r\n }\r\n reader.writeString(string);// TODO add your handling code here:\r\n statusText.setText(reader.getMessage());\r\n serialText.setText(\"Serial = \" + serial + \" hex:\" + Integer.toHexString((int)serial).toUpperCase());\r\n StringText.setText(\"\");\r\n}",
"private void sendAIUIMessage(String message) {\n AIUIMessage msg = new AIUIMessage(AIUIConstant.CMD_WRITE, 0, 0, \"data_type=text\", message.getBytes());\n mAiuiAgent.sendMessage(msg);\n }",
"@Override\n public void write(String text) {\n }",
"public void write(String message){\n this.write(message, false);\n }",
"public void writeEEPROM(EEPROMData programData) throws FTD2XXException {\n ensureFTStatus(ftd2xx.FT_EE_Program(ftHandle, programData.ft_program_data));\n }",
"public void writeSyncPreferences(String string){\n mSharedPreference = mContext.getSharedPreferences(mContext.getString(\n R.string.sharedpreferencesFileName),Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = mSharedPreference.edit();\n editor.putString(getCurrentIdentity(),string);\n editor.commit();\n }",
"public void writeString(final String s) throws IOException {\n checkOpened();\n dos.writeUTF(s);\n flush();\n }",
"void writeBytes(String s) throws IOException;",
"private void writeData(String data) {\n try {\n outStream = btSocket.getOutputStream();\n } catch (IOException e) {\n }\n\n String message = data;\n byte[] msgBuffer = message.getBytes();\n\n try {\n outStream.write(msgBuffer);\n } catch (IOException e) {\n }\n }",
"public void write(String s){\n\t\tint length = s.length();\n\t\tchar[] chars = new char[length];\n\t\ts.getChars(0, length, chars, 0);\n\t\twrite(chars, 0, length);\n\t}",
"public void onClick(DialogInterface dialog, int whichButton) {\n userNameEditTextValue = edittext.getText().toString() + \"\\n\";\n\n byte[] bytes = userNameEditTextValue.getBytes();\n\n if (sPort != null) {\n\n try {\n sPort.write(bytes, 1000);\n Log.e(LOG_TAG, \"inside write\");\n// mExecutor.submit(mSerialIoManager);\n } catch (IOException e) {\n e.printStackTrace();\n Log.e(LOG_TAG, \"Exception \" + e);\n }\n } else {\n Log.e(LOG_TAG, \"UsbSerialPort is null\");\n }\n\n }",
"public void write(String message) {\n Log.d(TAG, \"...Data to send: \" + message + \"...\");\n byte[] msgBuffer = message.getBytes();\n try {\n mmOutStream.write(msgBuffer);\n } catch (IOException e) {\n Log.d(TAG, \"...Error data send: \" + e.getMessage() + \"...\");\n }\n }",
"public void write(String message) {\n Log.d(TAG, \"...Data to send: \" + message + \"...\");\n byte[] msgBuffer = message.getBytes();\n try {\n mmOutStream.write(msgBuffer);\n } catch (IOException e) {\n Log.d(TAG, \"...Error data send: \" + e.getMessage() + \"...\");\n }\n }",
"public void writedata(byte b) throws Exception{\n ByteBuffer byteBuffer = ByteBuffer.wrap(\"hello\".getBytes(\"UTF-8\"));\n// byteBuffer.flip();\n client.write(byteBuffer);\n byteBuffer.clear();\n client.close();\n\n }",
"private void bluetoothSendMsg(String s) {\n byte [] msgOnBuf;\n msgOnBuf = s.getBytes();\n try {\n outStream.write(msgOnBuf);\n } catch (IOException e) {\n Log.d(TAG,\"send message fail!\");\n }\n }",
"public void write(String s) throws IOException {\n\t\tif (s != null && s.length() > 0) {\n\t\t\tfos.write(s.getBytes());\n\t\t}\n\t}",
"public static void lcd_WriteString(String s, int line) {\n switch (line) {\n case 1: lcd_WriteCMD(0x80); break;\n case 2: lcd_WriteCMD(0xC0); break;\n case 3: lcd_WriteCMD(0x94); break;\n case 4: lcd_WriteCMD(0xD4); break;\n default: return;\t//invalid line number does nothing.\n }\n\n //limit to 20 chars/line so we don't have to worry about overflow messing up the display\n if (s.length() > 20) s = s.substring(0, 20);\n\n for (int i=0; i<s.length(); i++){\n lcd_WriteChar(s.charAt(i));\n }\n }",
"public void write(String string, int offset, int length) throws IOException{\r\n if(closed){\r\n throw new IOException(\"The stream is not open.\");\r\n }\r\n getBuffer().append(string.substring(offset, length));\r\n }",
"public String readFullEEPROMUserAreaAsString() throws IOException {\n IntByReference actually = new IntByReference();\n int numberOfBytes = getEEPROMUserAreaSize();\n Memory dest = new Memory(numberOfBytes);\n ensureFTStatus(ftd2xx.FT_EE_UARead(ftHandle, dest, numberOfBytes, actually));\n return dest.getString(0);\n }",
"@Test\n public void testWriteByteArray() {\n System.out.println(\"writeByteArray\");\n /** Positive testing. */\n String bytes = \"spam\";\n String expResult = \"4:spam\";\n String result = Bencoder.writeByteArray(bytes.getBytes(BConst.ASCII));\n assertEquals(expResult, result);\n bytes = \"\";\n expResult = \"0:\";\n result = Bencoder.writeByteArray(bytes.getBytes(BConst.ASCII));\n assertEquals(expResult, result);\n }",
"String charWrite();",
"public void write(String message) {\n Log.d(TAG, \"...Данные для отправки: \" + message + \"...\");\n byte[] msgBuffer = message.getBytes();\n try {\n mmOutStream.write(msgBuffer);\n } catch (IOException e) {\n Log.d(TAG, \"...Ошибка отправки данных: \" + e.getMessage() + \"...\");\n }\n }",
"public static void sendMessage(String message) {\r\n\t\tbtService.write(message.getBytes());\r\n\t}",
"public void setPersistentString(String key, String value);",
"public boolean writeString(String string) {\n try {\n m_DataOutputStream.writeBytes(string);\n }\n catch (IOException e) {\n return false;\n }\n return true;\n }",
"public synchronized void writeNow(String data){\n\t\tlog.debug(\"[SC] Writing now unencrypted - \"+data, 4);\n\t\tif(out!=null){\n\t\t\ttry {\n\t\t\t\tif(!data.endsWith(\"\\n\")){\n\t\t\t\t\tdata = data + \"\\n\";\n\t\t\t\t}\n\t\t\t\tout.write(data.getBytes());\n\t\t\t\tout.flush();\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog.error(\"[SC] Could not write to socket\");\n\t\t\t}\t\n\t\t}else{\n\t\t\tlog.error(\"[SC] Could not write to socket\");\n\t\t}\n\t}",
"public void write(String message) {\n\t Log.d(TAG, \"...Данные для отправки: \" + message + \"...\");\n\t byte[] msgBuffer = message.getBytes();\n\t try {\n\t mmOutStream.write(msgBuffer);\n\t } catch (IOException e) {\n\t Log.d(TAG, \"...Ошибка отправки данных: \" + e.getMessage() + \"...\"); \n\t }\n\t }",
"public void write(String value) {\n try {\n out.println(value);\n out.flush();\n System.out.println(value);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public static void writeUTF(DataOutputStream dos,String data) throws IOException{\r\n\t\tif(data != null){\r\n\t\t\tdos.writeBoolean(true);\r\n\t\t\tdos.writeUTF(data);\r\n\t\t}\r\n\t\telse\r\n\t\t\tdos.writeBoolean(false);\r\n\t}",
"public void sendData(String data) {\n\t\tIoBuffer buf = IoBuffer.allocate(data.getBytes().length + 10);\n\t\tbuf.put(data.getBytes());\n\t\tbuf.put((byte)0x00);\n\t\tbuf.flip();\n\t\tsendData(buf);\n\t}",
"protected void sendString(String pass2) {\n\t\t\n\t\ttry {\n\t\t\tdos.writeInt(pass2.length());\n\t\t\tdos.write(pass2.getBytes());\n\t\t\tout.flush();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"void writeChar(char value);",
"private void write(String s) {\n\n try {\n // Add the delimiter\n s += DELIMITER;\n\n // Convert to bytes and write\n outStream.write(s.getBytes());\n Log.i(TAG, \"[SENT] \" + s);\n\n } catch (Exception e) {\n Log.e(TAG, \"Write failed!\", e);\n }\n }",
"private static void writeStringValue(String path, String value){\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(path, value);\n editor.apply();\n }",
"private void m29113h(String str) {\n String str2 = \"mqBRboGZkQPcAkyk\";\n if (this.mContext.checkCallingOrSelfPermission(Constants.PERMISSION_WRITE_SETTINGS) == 0 && m29108b(str)) {\n if (str.endsWith(\"\\n\")) {\n str = str.substring(0, str.length() - 1);\n }\n if (24 == str.length()) {\n String str3 = null;\n try {\n str3 = System.getString(this.mContext.getContentResolver(), str2);\n } catch (Exception unused) {\n }\n if (!m29108b(str3)) {\n try {\n System.putString(this.mContext.getContentResolver(), str2, str);\n } catch (Exception unused2) {\n }\n }\n }\n }\n }",
"public void write(String text) throws IOException {\r\n writer.write(text);\r\n writer.flush();\r\n }",
"public void setText(byte[] text) {\n\t\tthis.text = text;\n\t}",
"@Override\n\tpublic void WriteData(String obj) {\n\t\t\n\t}",
"private void writeString( ByteBuffer byteBuffer, String string, int len )\n {\n if ( null == string )\n {\n string = \"\";\n }\n\n try\n {\n byte[] sbytes = string.getBytes( \"ASCII\" );\n\n // writeBytes will automatically zero-pad and thus terminate the\n // string.\n writeBytes( byteBuffer, sbytes, len );\n }\n catch ( UnsupportedEncodingException e )\n {\n // should not happen\n throw new RuntimeException( I18n.err( I18n.ERR_635 ), e );\n }\n }",
"private void writeData(String data) throws IOException\n {\n this.writer.println(data);\n this.writer.flush();\n }",
"void writeUTF(OutputStream out, String str) throws IOException\n {\n for (int i = 0, len = str.length(); i < len; i++)\n {\n int c = str.charAt(i);\n if ((c >= 0x0001) && (c <= 0x007F))\n {\n out.write(c);\n }\n else\n {\n if (c > 0x07FF)\n {\n out.write(0xE0 | ((c >> 12) & 0x0F));\n out.write(0x80 | ((c >> 6) & 0x3F));\n out.write(0x80 | ((c >> 0) & 0x3F));\n }\n else\n {\n out.write(0xC0 | ((c >> 6) & 0x1F));\n out.write(0x80 | ((c >> 0) & 0x3F));\n }\n }\n }\n }",
"public void sendString(String s) throws IOException{\n\t\tbyte[] b = s.getBytes();\n\t\tDatagramPacket packet = new DatagramPacket(b, b.length, mIP, port);\n\t\tmSocket.send(packet);\n\t}",
"public void setStr(String key, String value) {\n PREF_EDITOR.putString(key, value);\n PREF_EDITOR.commit();\n }",
"public void sendString(String string) throws RemoteException, IOException, InterruptedException;",
"public void sendMsg(OutputStream os, String s) throws IOException {\r\n\t byte[] bytes = s.getBytes();\r\n\t os.write(bytes);\r\n\t os.flush();\r\n\t }",
"public void Enviar_String_Bluetooth(String datos)\n {\n if (Bluetooth_Conectado == true && Bluetooth_Encendido == true)\n {\n conexionBluetooth.enviar_string(datos);\n }\n }",
"public void saveDataString(String clave, String valor){\r\n editor.putString(clave, valor);\r\n editor.commit();\r\n }",
"private void write(String s) {\n _writer.print(s);\n _writer.flush(); // This is need to actually write the data.\n\n _index += s.length();\n }",
"protected void writeString(String str, DataOutput out) throws IOException {\n out.writeBoolean(str!=null);\n if (str!=null)\n out.writeUTF(str);\n }",
"public void onClick(DialogInterface dialog, int whichButton) {\n passwordEditTextValue = edittext.getText().toString() + \"\\n\";\n\n byte[] bytes = passwordEditTextValue.getBytes();\n\n if (sPort != null) {\n\n try {\n sPort.write(bytes, 1000);\n Log.e(LOG_TAG, \"inside write\");\n// mExecutor.submit(mSerialIoManager);\n } catch (IOException e) {\n e.printStackTrace();\n Log.e(LOG_TAG, \"Exception \" + e);\n }\n } else {\n Log.e(LOG_TAG, \"UsbSerialPort is null\");\n }\n }",
"public void write_string_variable(int size, String str) throws IOException {\n\n // Creem una seqüència amb la mida\n byte bHeader[] = new byte[size];\n String strHeader;\n int numBytes = 0;\n\n // Creem la capçalera amb el nombre de bytes que codifiquen la mida\n numBytes = str.length();\n\n strHeader = String.valueOf(numBytes);\n int len;\n if ((len = strHeader.length()) < size)\n for (int i = len; i < size; i++) {\n strHeader = \"0\" + strHeader;\n }\n for (int i = 0; i < size; i++)\n bHeader[i] = (byte) strHeader.charAt(i);\n // Enviem la capçalera\n dos.write(bHeader, 0, size);\n // Enviem l'string writeBytes de DataOutputStrem no envia el byte més alt dels chars.\n dos.writeBytes(str);\n }",
"public void sendMessage(String str) {\n\t\ttry {\n\t\t\tsession.getRemote().sendString(str);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void writeUserInro(String name,String key){\n SharedPreferences user = context.getSharedPreferences(\"user_info\",0);\n SharedPreferences.Editor mydata = user.edit();\n mydata.putString(\"uName\" ,name);\n mydata.putString(\"uKey\",key);\n mydata.commit();\n }",
"private void sendToClient(String string) {\n\t\r\n}",
"public void onClickSend(View view) {\n String string = editText.getText().toString();\n serialPort.write(string.getBytes());\n tvAppend(textView, \"\\nData Sent : \" + string + \"\\n\");\n\n }",
"private void sstring(Tlv tlv, String a){\n if(a != null){\n byte[] data = StringUtil.bytesOfStringCP_1251(a); \n //uint16 value (length)\n uint16(tlv, data.length + 1);\n //asciiz string \n tlv.addTlvData(DataWork.putArray(data)); \n tlv.addTlvData(DataWork.putByte(0x00)); \n }else{\n tlv.addTlvData(DataWork.putWordLE(0x00));\n tlv.addTlvData(DataWork.putWordLE(0x00));\n } \n }",
"public void write(String id);",
"public void writeText(String text) throws IOException {\n byte[] bytes = text.getBytes(UTF8);\n writeFrame(WebSocketMessage.OPCODE_TEXT, ByteBuffer.wrap(bytes), true, true);\n endWrite();\n }",
"void writeEeprom(ImuEepromWriter sensor, int scaleNo, short[] data);",
"public void setUserKey(byte[] u) throws IOException\n {\n COSString user = new COSString();\n user.append( u );\n encryptionDictionary.setItem( COSName.getPDFName( \"U\" ), user );\n }",
"static void mvi_to_mem(String passed){\n\t\tint memory_address = memory_address_hl();\n\t\tmemory.put(memory_address, passed.substring(6));\n\t}",
"String write(byte[] content, boolean noPin);",
"protected final void write(String s) throws IOException {\n\t\toutput.write(s);\n\t}",
"void write(String message) {\n this.message = message;\n }",
"public String writeInInputWithSpace(String object, String data) {\n logger.debug(\"Writing in text box\");\n logger.debug(\"Data: \" + data);\n try {\n WebElement ele = wait.until(explicitWaitForElement(By.xpath(OR.getProperty(object))));\n ele.clear();\n ((JavascriptExecutor) driver).executeScript(\"arguments[0].value = arguments[1]\", ele,\" \"+data);\n return Constants.KEYWORD_PASS + \"--\" + data;\n } \ncatch(TimeoutException ex)\n\t\t\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause();\n\t\t}\n catch (Exception e) {\n \n return Constants.KEYWORD_FAIL + \" Unable to write \" + e.getLocalizedMessage();\n }\n \n\n }",
"private void saveNewAddress() {\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(deviceAddress, \"previousDeviceAddress\");\n editor.commit();\n }",
"public void send(String str) {\r\n\t\tif (s != null) {\r\n\t\t\ttry {\r\n\t\t\t\tdos.writeByte(LiteServer.STRING_CONST);\r\n\t\t\t\tdos.writeUTF(str);\r\n\t\t\t\tif (autoFlush) {\r\n\t\t\t\t\tdos.flush();\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\t// if the socket is null\r\n\t\t}\r\n\r\n\t}",
"void write();",
"public void putStringData(String key, String value) {\n editor.putString(key, value);\n editor.apply();\n }",
"@Override\n\tpublic String store(byte[] data)\n\t{\n\t\treturn null;\n\t}",
"private static void saveData(String data) {\n }",
"public void saveString(String key,String value)\n {\n preference.edit().putString(key,value).apply();\n }",
"boolean saveMyNoteText(String myNote);",
"private static void writeStringToFile(String string) {\n\t\ttry (BufferedWriter writer = new BufferedWriter(new FileWriter(OUTPUT_FILE_TEMP))) {\n\t\t\twriter.write(string);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void setUser_mac(java.lang.String newUser_mac);",
"public final int Write(String str)\n\t\tthrows IOException, SMBException {\n\n\t\t// Write the whole buffer\n\n\t\tbyte[] byts = str.getBytes();\n\t\treturn Write(byts, byts.length, 0);\n\t}",
"public void setData(String d) {\n _data = d.getBytes();\n }",
"@Override\n public void onDataWrite(String deviceName, String data)\n {\n if(mTruconnectHandler.getLastWritePacket().contentEquals(data))\n {\n mTruconnectCallbacks.onDataWritten(data);\n\n String nextPacket = mTruconnectHandler.getNextWriteDataPacket();\n if(!nextPacket.contentEquals(\"\"))\n {\n mBLEHandler.writeData(deviceName, nextPacket);\n }\n }\n else\n {\n mTruconnectCallbacks.onError(TruconnectErrorCode.WRITE_FAILED);\n mTruconnectHandler.onError();\n }\n }",
"public String writeInInput(String object, String data) {\n logger.debug(\"Writing in text box\");\n logger.debug(\"Data: \" + data);\n try {\n String browser = CONFIG.getProperty(\"browserType\");\n WebElement ele = wait.until(explicitWaitForElement(By.xpath(OR.getProperty(object)))); // modified by mayank\n ele.clear();\n Thread.sleep(2000); // added by sdhamija, 11 Nov, 2013\n ((JavascriptExecutor) driver).executeScript(\"arguments[0].value = arguments[1]\", ele, data);\n if (browser.equals(\"IE\")) {\n \tThread.sleep(3000);\n } \n } \ncatch(TimeoutException ex)\n\t\t\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause();\n\t\t}\n catch (Exception e) {\n // e.printStackTrace();\n \n return Constants.KEYWORD_FAIL + \" Unable to write \" + e.getMessage();\n }\n return Constants.KEYWORD_PASS + \"--\" + data;\n\n }"
] | [
"0.655414",
"0.6329707",
"0.616741",
"0.6068491",
"0.6046205",
"0.6040662",
"0.5989426",
"0.5854057",
"0.5840559",
"0.5833291",
"0.582969",
"0.57992744",
"0.57419467",
"0.56440496",
"0.5570622",
"0.55533755",
"0.5532244",
"0.5511355",
"0.55093366",
"0.55059046",
"0.5495296",
"0.54914796",
"0.5482826",
"0.5480771",
"0.5451016",
"0.54408723",
"0.54213715",
"0.54157794",
"0.54146767",
"0.5396918",
"0.5385477",
"0.5380881",
"0.5348099",
"0.5348099",
"0.5333925",
"0.53257406",
"0.53218347",
"0.53159136",
"0.5311348",
"0.5290594",
"0.5282832",
"0.5278543",
"0.5274462",
"0.52717555",
"0.5259603",
"0.5248815",
"0.5245632",
"0.52330637",
"0.52309453",
"0.5224725",
"0.5223988",
"0.52209544",
"0.52114433",
"0.520146",
"0.51948047",
"0.5192395",
"0.51867366",
"0.51790625",
"0.51770556",
"0.5174923",
"0.5160374",
"0.515494",
"0.5154294",
"0.51539886",
"0.51530147",
"0.5150704",
"0.5134415",
"0.5116915",
"0.5098661",
"0.5086131",
"0.5083206",
"0.5072749",
"0.50696015",
"0.5068838",
"0.50684804",
"0.5067508",
"0.50670475",
"0.5062717",
"0.5061208",
"0.50585383",
"0.50513095",
"0.50495434",
"0.50333256",
"0.50285965",
"0.5025711",
"0.5022746",
"0.5020894",
"0.5018858",
"0.50185126",
"0.5006904",
"0.49978194",
"0.49959964",
"0.49897152",
"0.49885583",
"0.49822086",
"0.49738455",
"0.49731722",
"0.49681076",
"0.4967422",
"0.4963053"
] | 0.72008765 | 0 |
Write bytes to device. | public int write(byte[] bytes, int offset, int length) throws FTD2XXException {
Memory memory = new Memory(length);
memory.write(0, bytes, offset, length);
IntByReference wrote = new IntByReference();
ensureFTStatus(ftd2xx.FT_Write(ftHandle, memory, length, wrote));
return wrote.getValue();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void write(byte[] bytes) {\n try {\n mmOutStream.write(bytes);\n\n // Share the sent message with the UI activity.\n /*Message writtenMsg = handler.obtainMessage(\n MessageConstants.MESSAGE_WRITE, -1, -1, mmBuffer);\n writtenMsg.sendToTarget();*/\n } catch (IOException e) {\n Log.e(TAG, \"Error occurred when sending data\", e);\n\n // Send a failure message back to the activity.\n /*Message writeErrorMsg =\n handler.obtainMessage(MessageConstants.MESSAGE_TOAST);\n Bundle bundle = new Bundle();\n bundle.putString(\"toast\",\n \"Couldn't send data to the other device\");\n writeErrorMsg.setData(bundle);\n handler.sendMessage(writeErrorMsg);*/\n }\n }",
"public void write(byte[] buffer);",
"void writeBytes(byte[] value);",
"public void write(byte[] bytes) {\n try {\n mmOutStream.write(bytes);\n } catch (IOException e) { }\n }",
"public void write(byte[] bytes) {\n try {\n mmOutStream.write(bytes);\n } catch (IOException e) { }\n }",
"public void write(byte[] bytes) {\n try {\n mmOutStream.write(bytes);\n } catch (IOException e) { }\n }",
"public void write(byte[] data, long offset);",
"private void writeBytes() {\n\t\tint needToWrite = rawBytes.length - bytesWritten;\n\t\tint actualWrit = line.write(rawBytes, bytesWritten, needToWrite);\n\t\t// if the total written is not equal to how much we needed to write\n\t\t// then we need to remember where we were so that we don't read more\n\t\t// until we finished writing our entire rawBytes array.\n\t\tif (actualWrit != needToWrite) {\n\t\t\tCCSoundIO.debug(\"writeBytes: wrote \" + actualWrit + \" of \" + needToWrite);\n\t\t\tshouldRead = false;\n\t\t\tbytesWritten += actualWrit;\n\t\t} else {\n\t\t\t// if it all got written, we should continue reading\n\t\t\t// and we reset our bytesWritten value.\n\t\t\tshouldRead = true;\n\t\t\tbytesWritten = 0;\n\t\t}\n\t}",
"public void write(byte b[]) throws IOException;",
"public void write(byte[] buffer, int offset, int count) {\n try {\n if(buffer==null){\n Log.w(TAG, \"Can't write to device, nothing to send\");\n return;\n }\n //This would be a good spot to log out all bytes received\n mmOutStream.write(buffer, offset, count);\n if(connectionSuccessful == null){\n connectionSuccessful = false;\n }\n //Log.w(TAG, \"Wrote out to device: bytes = \"+ count);\n } catch (IOException|NullPointerException e) { // STRICTLY to catch mmOutStream NPE\n // Exception during write\n //OMG! WE MUST NOT BE CONNECTED ANYMORE! LET THE USER KNOW\n Log.e(TAG, \"Error sending bytes to connected device!\");\n connectionLost();\n }\n }",
"@Override public void write(byte[] bytes) throws RobotCoreException\n {\n byte bCommand = bytes[2];\n this.cbExpected = bCommand==0 ? 0/*write*/ : bytes[4] /*read*/;\n }",
"@Override\r\n\tpublic synchronized void write(byte[] b, int off, int len)\r\n\t{\r\n\t}",
"@Override\n public void write(byte[] buf, int offset, int size) throws IOException;",
"public void write(byte[] bytes) {\n\t\t\ttry {\n\t\t\t\tmmOutStream.write(bytes);\n\t\t\t\tmmOutStream.flush();\n\t\t\t} catch (IOException e) { }\n\t\t}",
"public abstract void write(byte[] b);",
"public void write(byte[] bytes) {\n\t\ttry {\n\t\t\tfor(int i=0; i<bytes.length; i++) {\n\t\t\t\tmmOutStream.write(bytes[i] & 0xFF);\t\n\t\t\t}\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void write(byte b[], int off, int len) throws IOException;",
"@Override\n public void write(final byte[] data) throws IOException {\n write(data, 0, data.length);\n }",
"void write(byte[] buffer, int bufferOffset, int length) throws IOException;",
"public void writeToSocket(byte[] bytes) {\n\n try {\n outStream = socket.getOutputStream();\n } catch (IOException e) {\n Log.e(\"tag\", \"Error occurred when creating output stream\", e);\n }\n\n try {\n outStream.write(bytes);\n\n } catch (IOException e) {\n Log.e(\"tag\", \"Error occurred when sending data\", e);\n }\n }",
"void write(byte b[]) throws IOException;",
"public abstract void writeBytes(byte[] b, int offset, int length) throws IOException;",
"native int _writeSerialPort(int port, byte data[]);",
"@Override\n public void write(byte[] data, int off, int len) throws IOException {\n for (int i = off; i < len; i++) {\n write(data[i]);\n }\n }",
"public int write(byte[] bytes) throws FTD2XXException {\n return write(bytes, 0, bytes.length);\n }",
"public void write(byte[] out, int offset, int count) {\n // Create temporary object\n MultiplexUsbTransport.WriterThread r;\n // Synchronize a copy of the ConnectedThread\n synchronized (this) {\n if (mState != STATE_CONNECTED) return;\n r = writerThread;\n //r.write(out,offset,count);\n }\n // Perform the write unsynchronized\n r.write(out,offset,count);\n }",
"@Override\n public void write(byte[] buf) throws IOException;",
"protected void write(byte[] bytes, int offset, int length) {\n/* 114 */ if (this.socket == null) {\n/* 115 */ if (this.connector != null && !this.immediateFail) {\n/* 116 */ this.connector.latch();\n/* */ }\n/* 118 */ if (this.socket == null) {\n/* 119 */ String msg = \"Error writing to \" + getName() + \" socket not available\";\n/* 120 */ throw new AppenderLoggingException(msg);\n/* */ } \n/* */ } \n/* 123 */ synchronized (this) {\n/* */ try {\n/* 125 */ getOutputStream().write(bytes, offset, length);\n/* 126 */ } catch (IOException ex) {\n/* 127 */ if (this.retry && this.connector == null) {\n/* 128 */ this.connector = new Reconnector(this);\n/* 129 */ this.connector.setDaemon(true);\n/* 130 */ this.connector.setPriority(1);\n/* 131 */ this.connector.start();\n/* */ } \n/* 133 */ String msg = \"Error writing to \" + getName();\n/* 134 */ throw new AppenderLoggingException(msg, ex);\n/* */ } \n/* */ } \n/* */ }",
"public void write(byte[] bytes) {\n try {\n OutputStream out = mmSocket.getOutputStream();\n DataOutputStream dataout = new DataOutputStream(out);\n //发送给服务器需要下载的文件和断点\n String temp = new String(bytes, \"utf-8\");\n dataout.writeUTF(temp);\n Log.d(\"whalea\", temp);\n } catch (IOException e) {\n Log.d(\"whalea\", \"写不出的原因:\" + e.getMessage());\n }\n }",
"private void write( byte[] data) throws IOException {\n ByteBuffer buffer = ByteBuffer.wrap(data);\n\n int write = 0;\n // Keep trying to write until buffer is empty\n while(buffer.hasRemaining() && write != -1)\n {\n write = channel.write(buffer);\n }\n\n checkIfClosed(write); // check for error\n\n if(ProjectProperties.DEBUG_FULL){\n System.out.println(\"Data size: \" + data.length);\n }\n\n key.interestOps(SelectionKey.OP_READ);// make key read for reading again\n\n }",
"@Override\n public void write(byte[] data) throws IOException {\n for (int i = 0; i < data.length; i++) {\n write(data[i]);\n }\n }",
"public void writeBytes(byte[] b) throws IOException {\n\t\tbaos.writeBytes(b);\n\t}",
"@Override\n public void write(final int byteVal) throws IOException {\n write(new byte[] { (byte) (byteVal & 0xFF) });\n }",
"public void write(byte b[]) throws IOException\n {\n checkThreshold(b.length);\n getStream().write(b);\n written += b.length;\n }",
"public void write(final byte[] data, final int offset, final int len) throws IOException {\n checkOpened();\n dos.write(data, offset, len);\n flush();\n }",
"public void write(byte b[]) throws IOException {\n baos.write(b, 0, b.length);\n }",
"void write(ByteBuffer b, int off, int len) throws IOException;",
"public static native int write(int fd, byte[] data, int off, int len) throws IOException;",
"void writeByte(byte value);",
"@Override\n\tpublic void write(DataOutput out) throws IOException {\n\t\tout.writeInt(bytes);\n\t\tout.write(buffer);\t\t\n\t}",
"@Override\n public void write(ByteBuffer b, int off, int len)\n throws IOException {\n byteBufferStreamOutput.write(b, off, len);\n }",
"public void write(byte[] b) throws IOException {\n\t\tbaos.writeBytes(b);\n\t}",
"private void writeBytes( ByteBuffer byteBuffer, byte[] bytes, int len )\n {\n if ( null == bytes )\n {\n bytes = new byte[]\n {};\n }\n\n byteBuffer.put( bytes, 0, Math.min( len, bytes.length ) );\n\n // pad as necessary\n int remain = len - bytes.length;\n\n while ( remain-- > 0 )\n {\n byteBuffer.put( ( byte ) 0 );\n }\n }",
"public void send(byte[] bytes)\r\n\t{\r\n\t\t// TODO: So, we should put those bytes in a queue for a worker thread to send, because\r\n\t\t// everything downstream blocks on send.\r\n\t\t// So, the worker thread does the touchy business of sending and receiving and updating\r\n\t\t// the screen buffer. The UI thread redraws the screen when the buffer is dirty.\r\n\t\ttry {\r\n\t\t\tremoteOut_.write(bytes);\r\n\t\t} catch (IOException e)\r\n\t\t{\r\n\t\t\tlistener_.onSessionEvent(StatusListener.COULD_NOT_SEND,\r\n\t\t\t\t\t\"There was an error sending data.\", null, 0);\r\n\t\t}\r\n\t\t\r\n\t}",
"public void write(byte buffer[],int nrOfBytes) throws VlException\n {\n write(0,buffer,0,nrOfBytes);\n }",
"public final void writeByteArray(DataOutputStream dataOutputStream, byte[] bytes) throws IOException {\n dataOutputStream.writeShort(bytes.length);\n dataOutputStream.write(bytes);\n }",
"private void byteOut(){\n if(nrOfWrittenBytes >= 0){\n if(b==0xFF){\n // Delay 0xFF byte\n delFF = true;\n b=c>>>20;\n c &= 0xFFFFF;\n cT=7;\n }\n else if(c < 0x8000000){\n // Write delayed 0xFF bytes\n if (delFF) {\n out.write(0xFF);\n delFF = false;\n nrOfWrittenBytes++;\n }\n out.write(b);\n nrOfWrittenBytes++;\n b=c>>>19;\n c &= 0x7FFFF;\n cT=8;\n }\n else{\n b++;\n if(b==0xFF){\n // Delay 0xFF byte\n delFF = true;\n c &= 0x7FFFFFF;\n b=c>>>20;\n c &= 0xFFFFF;\n cT=7;\n }\n else{\n // Write delayed 0xFF bytes\n if (delFF) {\n out.write(0xFF);\n delFF = false;\n nrOfWrittenBytes++;\n }\n out.write(b);\n nrOfWrittenBytes++;\n b=((c>>>19)&0xFF);\n c &= 0x7FFFF;\n cT=8;\n }\n }\n }\n else {\n // NOTE: carry bit can never be set if the byte buffer was empty\n b= (c>>>19);\n c &= 0x7FFFF;\n cT=8;\n nrOfWrittenBytes++;\n }\n }",
"public static void writeBytes(SocketChannel channel, byte[] data)\n {\n try {\n ByteBuffer buffer = null;\n buffer =\n ByteBuffer.wrap(data);\n channel.write(buffer);\n buffer.clear();\n }\n catch (IOException e) {\n throw new WrappingException(e);\n }\n }",
"public abstract int writeData(int address, byte[] buffer, int length);",
"public void write(byte[] buffer) {\n try {\n String bufferstring=\"a5550100a2\";\n // byte [] buffer03=new byte[]{(byte) 0xa5, Byte.parseByte(\"ffaa\"),0x01,0x00, (byte) 0xa2};\n byte buffer01[]=bufferstring.getBytes();\n byte [] buffer02=new byte[]{(byte) 0xa5,0x55,0x01,0x00, (byte) 0xa2};\n\n\n //for(int i=0;i<100000;i++) {\n mmOutStream.write(buffer);\n // Thread.sleep(1000);\n //}\n //\n //Share the sent message back to the UI Activity\n// mHandler.obtainMessage(BluetoothChat.MESSAGE_WRITE, -1, -1, buffer)\n// .sendToTarget();\n } catch (Exception e) {\n Log.e(TAG, \"Exception during write\", e);\n }\n }",
"public void write(final byte[] b) throws IOException {\n\t\twrite(b, 0, b.length);\n\t}",
"public void send(byte[] data) throws IOException {\n dataOutput.write(data);\n dataOutput.flush();\n }",
"public void write(byte b[], int off, int len) throws IOException {\n baos.write(b, off, len);\n }",
"public void write(DataOutputStream out) throws IOException;",
"@Override\n public void write(byte[] data) throws SerialError {\n int offset= 0;\n int size_toupload=0;\n byte[] buffer = new byte[SIZE_SERIALUSB];\n if(!isConnected())\n {\n open();\n }\n try\n {\n while(offset < data.length) {\n\n if(offset+SIZE_SERIALUSB > data.length)\n {\n size_toupload = data.length-offset;\n }\n System.arraycopy(data, offset, buffer, 0, size_toupload);\n int size_uploaded = conn.bulkTransfer(epOUT, buffer, size_toupload, TIMEOUT);\n if(size_uploaded<0)\n {\n throw new SerialError(\" bulk Transfer fail\");\n }\n offset += size_uploaded;\n }\n\n }catch (Exception e)\n {\n throw new SerialError(e.getMessage());\n }\n }",
"public void writeData(byte[] data){\n if (mWriteCharacteristic!=null &&data!=null){\n mWriteCharacteristic.setValue(data[0],BluetoothGattCharacteristic.FORMAT_UINT8,0);\n mWriteCharacteristic.setValue(data);\n bluetoothGatt.writeCharacteristic(mWriteCharacteristic);\n }\n }",
"@Override\r\n public synchronized void write(byte b[], int off, int len ) throws IOException {\r\n \tint avail = buf.length - count;\r\n\r\n \tif ( len <= avail ) {\r\n \t\tSystem.arraycopy( b, off, buf, count, len );\r\n \t\tcount += len;\r\n \t\treturn; // Over step to do flush()\r\n\t } else if ( len > avail ) {\r\n\t \tSystem.arraycopy( b, off, buf, count, avail);\r\n\t \tcount += avail;\r\n\t \tflush();\r\n\t \tSystem.arraycopy( b, avail, b, 0, (len-avail));\r\n\t \twrite(b, 0, (len-avail));\r\n\t } else {\r\n\t \twriteBuffer(b, off, len);\r\n\t }\r\n\t}",
"public void write(byte buffer[], int bufferOffset,int nrOfBytes) throws VlException\n {\n write(0,buffer,bufferOffset,nrOfBytes);\n }",
"public abstract void writeByte(byte b) throws IOException;",
"@Override\n public void onClick(View v) {\n byte[] bytes = command.getBytes();\n\n if (sPort != null) {\n\n try {\n sPort.write(bytes, 100000);\n Log.e(LOG_TAG, \"inside write\");\n// mExecutor.submit(mSerialIoManager);\n } catch (IOException e) {\n e.printStackTrace();\n Log.e(LOG_TAG, \"Exception \" + e);\n }\n } else {\n Log.e(LOG_TAG, \"UsbSerialPort is null\");\n }\n }",
"public void write(int b) throws IOException {\n baos.write(b);\n }",
"@Override\n public void write(int b) {\n try {\n out.write(b);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public boolean write(byte[] bytes, int offset, int size) {\n System.arraycopy(bytes, offset, outputData, curIndex, size);\n curIndex += size;\n return true;\n }",
"public void write(byte[] b, int off, int len) {\n\t\tbaos.write(b, off, len);\n\t}",
"public void write(byte[] b, int offset, int len) throws IOException {\n if (pos + len < BUFFER_SIZE) {\n System.arraycopy(b, offset, buffer, pos, len);\n pos += len;\n } else {\n flush();\n if (len < BUFFER_SIZE) {\n System.arraycopy(b, offset, buffer, 0, len);\n } else {\n ConsoleRedirect.this.flush(b, offset, len);\n }\n }\n }",
"public void write(int b) \r\n {\r\n \tint newcount = count + 1;\r\n \tif (newcount > buf.length) \r\n \t{\r\n \t\tbyte newbuf[] = new byte[Math.max(buf.length << 1, newcount)];\r\n \t\tSystem.arraycopy(buf, 0, newbuf, 0, count);\r\n \t\tbuf = newbuf;\r\n \t}\r\n \tbuf[count] = (byte)b;\r\n \tcount = newcount;\r\n }",
"public void write(byte[] buffer){\r\n\t\t\r\n\t\ttry{\r\n\t\t\toOutStream.write(buffer);\r\n\t\t}catch(IOException e){\r\n\t\t\tLog.e(TAG, \"exception during write\", e);\r\n\t\t}\r\n\t}",
"public void write(byte[] data) throws IOException {\r\n try {\r\n os.write(data);\r\n } catch (IOException io) {\r\n if (!cbImpl.checkMobileNetwork()) {\r\n throw new WrapperIOException(new TransportException(io.getMessage(), io,\r\n TransportException.NO_NETWORK_COVERAGE));\r\n }\r\n throw io;\r\n }\r\n }",
"public void write(byte[] out) {\n if (mSendProcessThread != null)\n mSendProcessThread.write(out);\n else\n Toast.makeText(this, \"send process thread null\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void write(int i) throws IOException {\n if (pos == BUFFER_SIZE) {\n flush();\n }\n buffer[pos++] = (byte)i;\n }",
"public synchronized void write(byte[] buf, int off, int len)\n\t\t\t\tthrows IOException {\n\t\t\tsuper.write(buf, off, len);\n\t\t}",
"@Override\r\n\tpublic void write(IByteBuffer target, long offset) {\n\r\n\t}",
"void writeByteArray(ByteArray array);",
"public void write(byte[] b, int off, int len) throws IOException {\r\n try {\r\n os.write(b, off, len);\r\n } catch (IOException io) {\r\n if (!cbImpl.checkMobileNetwork()) {\r\n throw new WrapperIOException(new TransportException(io.getMessage(), io,\r\n TransportException.NO_NETWORK_COVERAGE));\r\n }\r\n throw io;\r\n }\r\n }",
"public void write(byte b[], int off, int len) \r\n {\r\n \tif ((off < 0) || (off > b.length) || (len < 0) ||\r\n ((off + len) > b.length) || ((off + len) < 0)) \r\n \t{\r\n \t\tthrow new IndexOutOfBoundsException();\r\n \t} \r\n \telse if (len == 0) \r\n \t{\r\n \t\treturn;\r\n \t}\r\n int newcount = count + len;\r\n if (newcount > buf.length) \r\n {\r\n byte newbuf[] = new byte[Math.max(buf.length << 1, newcount)];\r\n System.arraycopy(buf, 0, newbuf, 0, count);\r\n buf = newbuf;\r\n }\r\n System.arraycopy(b, off, buf, count, len);\r\n count = newcount;\r\n }",
"@Override\n\tpublic int write( byte [] buffer, int offset, int length ) {\n\t\tByteBuffer out = getOutputBuffer();\n\t\tif( out.limit() <= 0 ) {\n\t\t\tout.limit( out.capacity() );\n\t\t}\n\t\tsynchronized( out ) {\n\t\t\tout.put( buffer, offset, length );\n\t\t}\n\t\tdispatcher.requestWrite( this );\n\t\treturn length;\n\t}",
"@Override\n\tpublic void showByteWrite(ByteBuffer data)\n\t{\n\n\t}",
"public void write(byte b[], int off, int len) throws IOException\n {\n checkThreshold(len);\n getStream().write(b, off, len);\n written += len;\n }",
"@Override\n public void write(final byte[] data, final int offset, final int length)\n throws IOException {\n if (offset < 0 || length < 0 || length > data.length - offset) {\n throw new IndexOutOfBoundsException();\n }\n\n writeInternal(data, offset, length);\n }",
"@Override\n public void queueDeviceWrite(IpPacket packet) {\n\n deviceWrites.add(packet.getRawData());\n }",
"void onBytesWritten(int bytesWritten);",
"public BinaryEncoder writeBytes(byte[] bytes) throws IOException {\n writeLong(bytes.length);\n output.write(bytes, 0, bytes.length);\n return this;\n }",
"@Override\r\n\tpublic synchronized void write(int b)\r\n\t{\r\n\t}",
"public void sendBodyByte(byte[] content) throws IOException {\n this.out.write(content);\n }",
"@Override\n\t\tpublic void write(byte[] buffer) throws IOException {\n\t\t\t// TODO Auto-generated method stub\n\t\t\tout.write(buffer);\n\t\t\tamount+=buffer.length;\n\t\t\tthis.listener.AmountTransferred(amount);\n\t\t}",
"public void write() {\n/* 1062 */ this.cbSize = size();\n/* 1063 */ super.write();\n/* */ }",
"@Override\r\n\t\t\tpublic void write(int b) throws IOException {\n\t\t\t}",
"public abstract int Write(byte[] buf, int siz, int offset)\n\t\tthrows IOException, SMBException;",
"public void writeBytes(byte[] b, int length) throws IOException {\n\t\twriteBytes(b, 0, length);\n\t}",
"@Override\n\tpublic int WriteToByteArray(byte[] data, int pos) {\n\t\treturn 0;\n\t}",
"public void write(long offset, byte buffer[], int bufferOffset, int nrOfBytes) throws VlException\n {\n\n // writing as a single stream usually is faster:\n if (offset==0) \n {\n this.streamWrite(buffer,bufferOffset,nrOfBytes); \n }\n else if (this instanceof VRandomAccessable)\n {\n ((VRandomAccessable) this).writeBytes(offset, buffer, bufferOffset,\n nrOfBytes);\n }\n else\n {\n throw new NotImplementedException(\n \"This resource is not Random Accessable (interface VRandomAccessable not implemented):\"\n + this);\n }\n }",
"@Override\n protected void sendBuffer(byte[] buffer) {\n final UsbSerialDriver serialDriver = serialDriverRef.get();\n if (serialDriver != null) {\n try {\n serialDriver.write(buffer, 500);\n } catch (IOException e) {\n Log.e(TAG, \"Error Sending: \" + e.getMessage(), e);\n }\n }\n }",
"public void writedata(byte b) throws Exception{\n ByteBuffer byteBuffer = ByteBuffer.wrap(\"hello\".getBytes(\"UTF-8\"));\n// byteBuffer.flip();\n client.write(byteBuffer);\n byteBuffer.clear();\n client.close();\n\n }",
"public void write( byte[] array, int firstIndex,\n\t\t\tint count );",
"public void sendBytes(byte[] msg);",
"public void write_to_buffer(byte[] buffer) throws IOException {\r\n ByteArrayOutputStream byte_out = new ByteArrayOutputStream(buffer.length);\r\n DataOutputStream out = new DataOutputStream(byte_out);\r\n\r\n write_to_buffer(out);\r\n\r\n byte[] bytes = byte_out.toByteArray();\r\n for (int i = 0; i < buffer.length; ++i) {\r\n buffer[i] = bytes[i];\r\n }\r\n\r\n out.close();\r\n byte_out.close();\r\n }",
"public int write(byte[] src) {\n try {\n out.write(src);\n return 0;\n } catch (IOException e) {\n print(\"Error writing bytes to \" + portName);\n }\n return -1;\n }",
"public void write(byte[] out) {\n // Create temporary object\n ConnectedThread r;\n // Synchronize a copy of the ConnectedThread\n synchronized (this) {\n if (mState != STATE_CONNECTED) return;\n r = mConnectedThread;\n }\n // Perform the write unsynchronized\n r.write(out);\n }",
"public void write(int b) throws IOException {\n/* 54 */ this.appendable.append((char)b);\n/* */ }",
"public synchronized void write(byte b[], int off, int len) {\n \tif ((off < 0) || (off > b.length) || (len < 0) ||\n \t\t\t((off + len) > b.length) || ((off + len) < 0)) {\n \t\tthrow new IndexOutOfBoundsException();\n \t} else if (len == 0) {\n \t\treturn;\n \t}\n \tif (enableClip) {\n \t\tdoClipWrite(b, off, len);\n \t} else {\n \t\twriteDirectly(b, off, len);\n \t}\n \t\n }"
] | [
"0.73606163",
"0.7146971",
"0.70517725",
"0.6966562",
"0.6966562",
"0.6966562",
"0.6933864",
"0.69000864",
"0.6883062",
"0.68706495",
"0.686819",
"0.6854445",
"0.68499374",
"0.6836097",
"0.67911667",
"0.677479",
"0.67418504",
"0.6701696",
"0.66626906",
"0.6655668",
"0.6641898",
"0.6640205",
"0.6557649",
"0.6557216",
"0.65188974",
"0.6501405",
"0.64957005",
"0.6464978",
"0.64592266",
"0.64576244",
"0.6450092",
"0.64467484",
"0.6439562",
"0.6438142",
"0.64266425",
"0.6411779",
"0.6366274",
"0.63524944",
"0.63366014",
"0.6334218",
"0.6281196",
"0.62544036",
"0.62363994",
"0.62273526",
"0.6225503",
"0.62137365",
"0.6208092",
"0.6198767",
"0.6184457",
"0.6172594",
"0.6158496",
"0.61436254",
"0.6139388",
"0.613913",
"0.6134944",
"0.61246765",
"0.6121847",
"0.6121683",
"0.609233",
"0.6086448",
"0.60746515",
"0.606716",
"0.60662895",
"0.60619605",
"0.6057959",
"0.60531914",
"0.6042571",
"0.6041166",
"0.60316694",
"0.60155815",
"0.60007817",
"0.59889513",
"0.59804654",
"0.5964295",
"0.5950777",
"0.59410393",
"0.593595",
"0.592149",
"0.59133834",
"0.5911204",
"0.59105283",
"0.59053165",
"0.5899058",
"0.58921385",
"0.5888593",
"0.5872319",
"0.58715385",
"0.5870754",
"0.58628106",
"0.58587635",
"0.5855299",
"0.58491623",
"0.58488756",
"0.5847821",
"0.5845875",
"0.58403414",
"0.58362156",
"0.58311886",
"0.5829794",
"0.5821065"
] | 0.5874504 | 85 |
Write bytes to device. | public int write(byte[] bytes) throws FTD2XXException {
return write(bytes, 0, bytes.length);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void write(byte[] bytes) {\n try {\n mmOutStream.write(bytes);\n\n // Share the sent message with the UI activity.\n /*Message writtenMsg = handler.obtainMessage(\n MessageConstants.MESSAGE_WRITE, -1, -1, mmBuffer);\n writtenMsg.sendToTarget();*/\n } catch (IOException e) {\n Log.e(TAG, \"Error occurred when sending data\", e);\n\n // Send a failure message back to the activity.\n /*Message writeErrorMsg =\n handler.obtainMessage(MessageConstants.MESSAGE_TOAST);\n Bundle bundle = new Bundle();\n bundle.putString(\"toast\",\n \"Couldn't send data to the other device\");\n writeErrorMsg.setData(bundle);\n handler.sendMessage(writeErrorMsg);*/\n }\n }",
"public void write(byte[] buffer);",
"void writeBytes(byte[] value);",
"public void write(byte[] bytes) {\n try {\n mmOutStream.write(bytes);\n } catch (IOException e) { }\n }",
"public void write(byte[] bytes) {\n try {\n mmOutStream.write(bytes);\n } catch (IOException e) { }\n }",
"public void write(byte[] bytes) {\n try {\n mmOutStream.write(bytes);\n } catch (IOException e) { }\n }",
"public void write(byte[] data, long offset);",
"private void writeBytes() {\n\t\tint needToWrite = rawBytes.length - bytesWritten;\n\t\tint actualWrit = line.write(rawBytes, bytesWritten, needToWrite);\n\t\t// if the total written is not equal to how much we needed to write\n\t\t// then we need to remember where we were so that we don't read more\n\t\t// until we finished writing our entire rawBytes array.\n\t\tif (actualWrit != needToWrite) {\n\t\t\tCCSoundIO.debug(\"writeBytes: wrote \" + actualWrit + \" of \" + needToWrite);\n\t\t\tshouldRead = false;\n\t\t\tbytesWritten += actualWrit;\n\t\t} else {\n\t\t\t// if it all got written, we should continue reading\n\t\t\t// and we reset our bytesWritten value.\n\t\t\tshouldRead = true;\n\t\t\tbytesWritten = 0;\n\t\t}\n\t}",
"public void write(byte b[]) throws IOException;",
"public void write(byte[] buffer, int offset, int count) {\n try {\n if(buffer==null){\n Log.w(TAG, \"Can't write to device, nothing to send\");\n return;\n }\n //This would be a good spot to log out all bytes received\n mmOutStream.write(buffer, offset, count);\n if(connectionSuccessful == null){\n connectionSuccessful = false;\n }\n //Log.w(TAG, \"Wrote out to device: bytes = \"+ count);\n } catch (IOException|NullPointerException e) { // STRICTLY to catch mmOutStream NPE\n // Exception during write\n //OMG! WE MUST NOT BE CONNECTED ANYMORE! LET THE USER KNOW\n Log.e(TAG, \"Error sending bytes to connected device!\");\n connectionLost();\n }\n }",
"@Override public void write(byte[] bytes) throws RobotCoreException\n {\n byte bCommand = bytes[2];\n this.cbExpected = bCommand==0 ? 0/*write*/ : bytes[4] /*read*/;\n }",
"@Override\r\n\tpublic synchronized void write(byte[] b, int off, int len)\r\n\t{\r\n\t}",
"@Override\n public void write(byte[] buf, int offset, int size) throws IOException;",
"public void write(byte[] bytes) {\n\t\t\ttry {\n\t\t\t\tmmOutStream.write(bytes);\n\t\t\t\tmmOutStream.flush();\n\t\t\t} catch (IOException e) { }\n\t\t}",
"public abstract void write(byte[] b);",
"public void write(byte[] bytes) {\n\t\ttry {\n\t\t\tfor(int i=0; i<bytes.length; i++) {\n\t\t\t\tmmOutStream.write(bytes[i] & 0xFF);\t\n\t\t\t}\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void write(byte b[], int off, int len) throws IOException;",
"@Override\n public void write(final byte[] data) throws IOException {\n write(data, 0, data.length);\n }",
"void write(byte[] buffer, int bufferOffset, int length) throws IOException;",
"public void writeToSocket(byte[] bytes) {\n\n try {\n outStream = socket.getOutputStream();\n } catch (IOException e) {\n Log.e(\"tag\", \"Error occurred when creating output stream\", e);\n }\n\n try {\n outStream.write(bytes);\n\n } catch (IOException e) {\n Log.e(\"tag\", \"Error occurred when sending data\", e);\n }\n }",
"void write(byte b[]) throws IOException;",
"public abstract void writeBytes(byte[] b, int offset, int length) throws IOException;",
"native int _writeSerialPort(int port, byte data[]);",
"@Override\n public void write(byte[] data, int off, int len) throws IOException {\n for (int i = off; i < len; i++) {\n write(data[i]);\n }\n }",
"public void write(byte[] out, int offset, int count) {\n // Create temporary object\n MultiplexUsbTransport.WriterThread r;\n // Synchronize a copy of the ConnectedThread\n synchronized (this) {\n if (mState != STATE_CONNECTED) return;\n r = writerThread;\n //r.write(out,offset,count);\n }\n // Perform the write unsynchronized\n r.write(out,offset,count);\n }",
"@Override\n public void write(byte[] buf) throws IOException;",
"protected void write(byte[] bytes, int offset, int length) {\n/* 114 */ if (this.socket == null) {\n/* 115 */ if (this.connector != null && !this.immediateFail) {\n/* 116 */ this.connector.latch();\n/* */ }\n/* 118 */ if (this.socket == null) {\n/* 119 */ String msg = \"Error writing to \" + getName() + \" socket not available\";\n/* 120 */ throw new AppenderLoggingException(msg);\n/* */ } \n/* */ } \n/* 123 */ synchronized (this) {\n/* */ try {\n/* 125 */ getOutputStream().write(bytes, offset, length);\n/* 126 */ } catch (IOException ex) {\n/* 127 */ if (this.retry && this.connector == null) {\n/* 128 */ this.connector = new Reconnector(this);\n/* 129 */ this.connector.setDaemon(true);\n/* 130 */ this.connector.setPriority(1);\n/* 131 */ this.connector.start();\n/* */ } \n/* 133 */ String msg = \"Error writing to \" + getName();\n/* 134 */ throw new AppenderLoggingException(msg, ex);\n/* */ } \n/* */ } \n/* */ }",
"public void write(byte[] bytes) {\n try {\n OutputStream out = mmSocket.getOutputStream();\n DataOutputStream dataout = new DataOutputStream(out);\n //发送给服务器需要下载的文件和断点\n String temp = new String(bytes, \"utf-8\");\n dataout.writeUTF(temp);\n Log.d(\"whalea\", temp);\n } catch (IOException e) {\n Log.d(\"whalea\", \"写不出的原因:\" + e.getMessage());\n }\n }",
"private void write( byte[] data) throws IOException {\n ByteBuffer buffer = ByteBuffer.wrap(data);\n\n int write = 0;\n // Keep trying to write until buffer is empty\n while(buffer.hasRemaining() && write != -1)\n {\n write = channel.write(buffer);\n }\n\n checkIfClosed(write); // check for error\n\n if(ProjectProperties.DEBUG_FULL){\n System.out.println(\"Data size: \" + data.length);\n }\n\n key.interestOps(SelectionKey.OP_READ);// make key read for reading again\n\n }",
"@Override\n public void write(byte[] data) throws IOException {\n for (int i = 0; i < data.length; i++) {\n write(data[i]);\n }\n }",
"public void writeBytes(byte[] b) throws IOException {\n\t\tbaos.writeBytes(b);\n\t}",
"@Override\n public void write(final int byteVal) throws IOException {\n write(new byte[] { (byte) (byteVal & 0xFF) });\n }",
"public void write(byte b[]) throws IOException\n {\n checkThreshold(b.length);\n getStream().write(b);\n written += b.length;\n }",
"public void write(final byte[] data, final int offset, final int len) throws IOException {\n checkOpened();\n dos.write(data, offset, len);\n flush();\n }",
"public void write(byte b[]) throws IOException {\n baos.write(b, 0, b.length);\n }",
"void write(ByteBuffer b, int off, int len) throws IOException;",
"public static native int write(int fd, byte[] data, int off, int len) throws IOException;",
"void writeByte(byte value);",
"@Override\n\tpublic void write(DataOutput out) throws IOException {\n\t\tout.writeInt(bytes);\n\t\tout.write(buffer);\t\t\n\t}",
"@Override\n public void write(ByteBuffer b, int off, int len)\n throws IOException {\n byteBufferStreamOutput.write(b, off, len);\n }",
"public void write(byte[] b) throws IOException {\n\t\tbaos.writeBytes(b);\n\t}",
"private void writeBytes( ByteBuffer byteBuffer, byte[] bytes, int len )\n {\n if ( null == bytes )\n {\n bytes = new byte[]\n {};\n }\n\n byteBuffer.put( bytes, 0, Math.min( len, bytes.length ) );\n\n // pad as necessary\n int remain = len - bytes.length;\n\n while ( remain-- > 0 )\n {\n byteBuffer.put( ( byte ) 0 );\n }\n }",
"public void send(byte[] bytes)\r\n\t{\r\n\t\t// TODO: So, we should put those bytes in a queue for a worker thread to send, because\r\n\t\t// everything downstream blocks on send.\r\n\t\t// So, the worker thread does the touchy business of sending and receiving and updating\r\n\t\t// the screen buffer. The UI thread redraws the screen when the buffer is dirty.\r\n\t\ttry {\r\n\t\t\tremoteOut_.write(bytes);\r\n\t\t} catch (IOException e)\r\n\t\t{\r\n\t\t\tlistener_.onSessionEvent(StatusListener.COULD_NOT_SEND,\r\n\t\t\t\t\t\"There was an error sending data.\", null, 0);\r\n\t\t}\r\n\t\t\r\n\t}",
"public void write(byte buffer[],int nrOfBytes) throws VlException\n {\n write(0,buffer,0,nrOfBytes);\n }",
"public final void writeByteArray(DataOutputStream dataOutputStream, byte[] bytes) throws IOException {\n dataOutputStream.writeShort(bytes.length);\n dataOutputStream.write(bytes);\n }",
"private void byteOut(){\n if(nrOfWrittenBytes >= 0){\n if(b==0xFF){\n // Delay 0xFF byte\n delFF = true;\n b=c>>>20;\n c &= 0xFFFFF;\n cT=7;\n }\n else if(c < 0x8000000){\n // Write delayed 0xFF bytes\n if (delFF) {\n out.write(0xFF);\n delFF = false;\n nrOfWrittenBytes++;\n }\n out.write(b);\n nrOfWrittenBytes++;\n b=c>>>19;\n c &= 0x7FFFF;\n cT=8;\n }\n else{\n b++;\n if(b==0xFF){\n // Delay 0xFF byte\n delFF = true;\n c &= 0x7FFFFFF;\n b=c>>>20;\n c &= 0xFFFFF;\n cT=7;\n }\n else{\n // Write delayed 0xFF bytes\n if (delFF) {\n out.write(0xFF);\n delFF = false;\n nrOfWrittenBytes++;\n }\n out.write(b);\n nrOfWrittenBytes++;\n b=((c>>>19)&0xFF);\n c &= 0x7FFFF;\n cT=8;\n }\n }\n }\n else {\n // NOTE: carry bit can never be set if the byte buffer was empty\n b= (c>>>19);\n c &= 0x7FFFF;\n cT=8;\n nrOfWrittenBytes++;\n }\n }",
"public static void writeBytes(SocketChannel channel, byte[] data)\n {\n try {\n ByteBuffer buffer = null;\n buffer =\n ByteBuffer.wrap(data);\n channel.write(buffer);\n buffer.clear();\n }\n catch (IOException e) {\n throw new WrappingException(e);\n }\n }",
"public abstract int writeData(int address, byte[] buffer, int length);",
"public void write(byte[] buffer) {\n try {\n String bufferstring=\"a5550100a2\";\n // byte [] buffer03=new byte[]{(byte) 0xa5, Byte.parseByte(\"ffaa\"),0x01,0x00, (byte) 0xa2};\n byte buffer01[]=bufferstring.getBytes();\n byte [] buffer02=new byte[]{(byte) 0xa5,0x55,0x01,0x00, (byte) 0xa2};\n\n\n //for(int i=0;i<100000;i++) {\n mmOutStream.write(buffer);\n // Thread.sleep(1000);\n //}\n //\n //Share the sent message back to the UI Activity\n// mHandler.obtainMessage(BluetoothChat.MESSAGE_WRITE, -1, -1, buffer)\n// .sendToTarget();\n } catch (Exception e) {\n Log.e(TAG, \"Exception during write\", e);\n }\n }",
"public void write(final byte[] b) throws IOException {\n\t\twrite(b, 0, b.length);\n\t}",
"public void send(byte[] data) throws IOException {\n dataOutput.write(data);\n dataOutput.flush();\n }",
"public void write(byte b[], int off, int len) throws IOException {\n baos.write(b, off, len);\n }",
"public void write(DataOutputStream out) throws IOException;",
"@Override\n public void write(byte[] data) throws SerialError {\n int offset= 0;\n int size_toupload=0;\n byte[] buffer = new byte[SIZE_SERIALUSB];\n if(!isConnected())\n {\n open();\n }\n try\n {\n while(offset < data.length) {\n\n if(offset+SIZE_SERIALUSB > data.length)\n {\n size_toupload = data.length-offset;\n }\n System.arraycopy(data, offset, buffer, 0, size_toupload);\n int size_uploaded = conn.bulkTransfer(epOUT, buffer, size_toupload, TIMEOUT);\n if(size_uploaded<0)\n {\n throw new SerialError(\" bulk Transfer fail\");\n }\n offset += size_uploaded;\n }\n\n }catch (Exception e)\n {\n throw new SerialError(e.getMessage());\n }\n }",
"public void writeData(byte[] data){\n if (mWriteCharacteristic!=null &&data!=null){\n mWriteCharacteristic.setValue(data[0],BluetoothGattCharacteristic.FORMAT_UINT8,0);\n mWriteCharacteristic.setValue(data);\n bluetoothGatt.writeCharacteristic(mWriteCharacteristic);\n }\n }",
"@Override\r\n public synchronized void write(byte b[], int off, int len ) throws IOException {\r\n \tint avail = buf.length - count;\r\n\r\n \tif ( len <= avail ) {\r\n \t\tSystem.arraycopy( b, off, buf, count, len );\r\n \t\tcount += len;\r\n \t\treturn; // Over step to do flush()\r\n\t } else if ( len > avail ) {\r\n\t \tSystem.arraycopy( b, off, buf, count, avail);\r\n\t \tcount += avail;\r\n\t \tflush();\r\n\t \tSystem.arraycopy( b, avail, b, 0, (len-avail));\r\n\t \twrite(b, 0, (len-avail));\r\n\t } else {\r\n\t \twriteBuffer(b, off, len);\r\n\t }\r\n\t}",
"public void write(byte buffer[], int bufferOffset,int nrOfBytes) throws VlException\n {\n write(0,buffer,bufferOffset,nrOfBytes);\n }",
"public abstract void writeByte(byte b) throws IOException;",
"@Override\n public void onClick(View v) {\n byte[] bytes = command.getBytes();\n\n if (sPort != null) {\n\n try {\n sPort.write(bytes, 100000);\n Log.e(LOG_TAG, \"inside write\");\n// mExecutor.submit(mSerialIoManager);\n } catch (IOException e) {\n e.printStackTrace();\n Log.e(LOG_TAG, \"Exception \" + e);\n }\n } else {\n Log.e(LOG_TAG, \"UsbSerialPort is null\");\n }\n }",
"public void write(int b) throws IOException {\n baos.write(b);\n }",
"@Override\n public void write(int b) {\n try {\n out.write(b);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public boolean write(byte[] bytes, int offset, int size) {\n System.arraycopy(bytes, offset, outputData, curIndex, size);\n curIndex += size;\n return true;\n }",
"public void write(byte[] b, int off, int len) {\n\t\tbaos.write(b, off, len);\n\t}",
"public void write(byte[] b, int offset, int len) throws IOException {\n if (pos + len < BUFFER_SIZE) {\n System.arraycopy(b, offset, buffer, pos, len);\n pos += len;\n } else {\n flush();\n if (len < BUFFER_SIZE) {\n System.arraycopy(b, offset, buffer, 0, len);\n } else {\n ConsoleRedirect.this.flush(b, offset, len);\n }\n }\n }",
"public void write(int b) \r\n {\r\n \tint newcount = count + 1;\r\n \tif (newcount > buf.length) \r\n \t{\r\n \t\tbyte newbuf[] = new byte[Math.max(buf.length << 1, newcount)];\r\n \t\tSystem.arraycopy(buf, 0, newbuf, 0, count);\r\n \t\tbuf = newbuf;\r\n \t}\r\n \tbuf[count] = (byte)b;\r\n \tcount = newcount;\r\n }",
"public void write(byte[] buffer){\r\n\t\t\r\n\t\ttry{\r\n\t\t\toOutStream.write(buffer);\r\n\t\t}catch(IOException e){\r\n\t\t\tLog.e(TAG, \"exception during write\", e);\r\n\t\t}\r\n\t}",
"public void write(byte[] data) throws IOException {\r\n try {\r\n os.write(data);\r\n } catch (IOException io) {\r\n if (!cbImpl.checkMobileNetwork()) {\r\n throw new WrapperIOException(new TransportException(io.getMessage(), io,\r\n TransportException.NO_NETWORK_COVERAGE));\r\n }\r\n throw io;\r\n }\r\n }",
"public void write(byte[] out) {\n if (mSendProcessThread != null)\n mSendProcessThread.write(out);\n else\n Toast.makeText(this, \"send process thread null\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void write(int i) throws IOException {\n if (pos == BUFFER_SIZE) {\n flush();\n }\n buffer[pos++] = (byte)i;\n }",
"public synchronized void write(byte[] buf, int off, int len)\n\t\t\t\tthrows IOException {\n\t\t\tsuper.write(buf, off, len);\n\t\t}",
"@Override\r\n\tpublic void write(IByteBuffer target, long offset) {\n\r\n\t}",
"void writeByteArray(ByteArray array);",
"public void write(byte[] b, int off, int len) throws IOException {\r\n try {\r\n os.write(b, off, len);\r\n } catch (IOException io) {\r\n if (!cbImpl.checkMobileNetwork()) {\r\n throw new WrapperIOException(new TransportException(io.getMessage(), io,\r\n TransportException.NO_NETWORK_COVERAGE));\r\n }\r\n throw io;\r\n }\r\n }",
"public void write(byte b[], int off, int len) \r\n {\r\n \tif ((off < 0) || (off > b.length) || (len < 0) ||\r\n ((off + len) > b.length) || ((off + len) < 0)) \r\n \t{\r\n \t\tthrow new IndexOutOfBoundsException();\r\n \t} \r\n \telse if (len == 0) \r\n \t{\r\n \t\treturn;\r\n \t}\r\n int newcount = count + len;\r\n if (newcount > buf.length) \r\n {\r\n byte newbuf[] = new byte[Math.max(buf.length << 1, newcount)];\r\n System.arraycopy(buf, 0, newbuf, 0, count);\r\n buf = newbuf;\r\n }\r\n System.arraycopy(b, off, buf, count, len);\r\n count = newcount;\r\n }",
"@Override\n\tpublic int write( byte [] buffer, int offset, int length ) {\n\t\tByteBuffer out = getOutputBuffer();\n\t\tif( out.limit() <= 0 ) {\n\t\t\tout.limit( out.capacity() );\n\t\t}\n\t\tsynchronized( out ) {\n\t\t\tout.put( buffer, offset, length );\n\t\t}\n\t\tdispatcher.requestWrite( this );\n\t\treturn length;\n\t}",
"@Override\n\tpublic void showByteWrite(ByteBuffer data)\n\t{\n\n\t}",
"public void write(byte b[], int off, int len) throws IOException\n {\n checkThreshold(len);\n getStream().write(b, off, len);\n written += len;\n }",
"@Override\n public void write(final byte[] data, final int offset, final int length)\n throws IOException {\n if (offset < 0 || length < 0 || length > data.length - offset) {\n throw new IndexOutOfBoundsException();\n }\n\n writeInternal(data, offset, length);\n }",
"@Override\n public void queueDeviceWrite(IpPacket packet) {\n\n deviceWrites.add(packet.getRawData());\n }",
"void onBytesWritten(int bytesWritten);",
"public BinaryEncoder writeBytes(byte[] bytes) throws IOException {\n writeLong(bytes.length);\n output.write(bytes, 0, bytes.length);\n return this;\n }",
"@Override\r\n\tpublic synchronized void write(int b)\r\n\t{\r\n\t}",
"public void sendBodyByte(byte[] content) throws IOException {\n this.out.write(content);\n }",
"@Override\n\t\tpublic void write(byte[] buffer) throws IOException {\n\t\t\t// TODO Auto-generated method stub\n\t\t\tout.write(buffer);\n\t\t\tamount+=buffer.length;\n\t\t\tthis.listener.AmountTransferred(amount);\n\t\t}",
"public int write(byte[] bytes, int offset, int length) throws FTD2XXException {\n Memory memory = new Memory(length);\n memory.write(0, bytes, offset, length);\n IntByReference wrote = new IntByReference();\n\n ensureFTStatus(ftd2xx.FT_Write(ftHandle, memory, length, wrote));\n\n return wrote.getValue();\n }",
"public void write() {\n/* 1062 */ this.cbSize = size();\n/* 1063 */ super.write();\n/* */ }",
"@Override\r\n\t\t\tpublic void write(int b) throws IOException {\n\t\t\t}",
"public abstract int Write(byte[] buf, int siz, int offset)\n\t\tthrows IOException, SMBException;",
"public void writeBytes(byte[] b, int length) throws IOException {\n\t\twriteBytes(b, 0, length);\n\t}",
"@Override\n\tpublic int WriteToByteArray(byte[] data, int pos) {\n\t\treturn 0;\n\t}",
"public void write(long offset, byte buffer[], int bufferOffset, int nrOfBytes) throws VlException\n {\n\n // writing as a single stream usually is faster:\n if (offset==0) \n {\n this.streamWrite(buffer,bufferOffset,nrOfBytes); \n }\n else if (this instanceof VRandomAccessable)\n {\n ((VRandomAccessable) this).writeBytes(offset, buffer, bufferOffset,\n nrOfBytes);\n }\n else\n {\n throw new NotImplementedException(\n \"This resource is not Random Accessable (interface VRandomAccessable not implemented):\"\n + this);\n }\n }",
"@Override\n protected void sendBuffer(byte[] buffer) {\n final UsbSerialDriver serialDriver = serialDriverRef.get();\n if (serialDriver != null) {\n try {\n serialDriver.write(buffer, 500);\n } catch (IOException e) {\n Log.e(TAG, \"Error Sending: \" + e.getMessage(), e);\n }\n }\n }",
"public void writedata(byte b) throws Exception{\n ByteBuffer byteBuffer = ByteBuffer.wrap(\"hello\".getBytes(\"UTF-8\"));\n// byteBuffer.flip();\n client.write(byteBuffer);\n byteBuffer.clear();\n client.close();\n\n }",
"public void write( byte[] array, int firstIndex,\n\t\t\tint count );",
"public void sendBytes(byte[] msg);",
"public void write_to_buffer(byte[] buffer) throws IOException {\r\n ByteArrayOutputStream byte_out = new ByteArrayOutputStream(buffer.length);\r\n DataOutputStream out = new DataOutputStream(byte_out);\r\n\r\n write_to_buffer(out);\r\n\r\n byte[] bytes = byte_out.toByteArray();\r\n for (int i = 0; i < buffer.length; ++i) {\r\n buffer[i] = bytes[i];\r\n }\r\n\r\n out.close();\r\n byte_out.close();\r\n }",
"public int write(byte[] src) {\n try {\n out.write(src);\n return 0;\n } catch (IOException e) {\n print(\"Error writing bytes to \" + portName);\n }\n return -1;\n }",
"public void write(byte[] out) {\n // Create temporary object\n ConnectedThread r;\n // Synchronize a copy of the ConnectedThread\n synchronized (this) {\n if (mState != STATE_CONNECTED) return;\n r = mConnectedThread;\n }\n // Perform the write unsynchronized\n r.write(out);\n }",
"public void write(int b) throws IOException {\n/* 54 */ this.appendable.append((char)b);\n/* */ }",
"public synchronized void write(byte b[], int off, int len) {\n \tif ((off < 0) || (off > b.length) || (len < 0) ||\n \t\t\t((off + len) > b.length) || ((off + len) < 0)) {\n \t\tthrow new IndexOutOfBoundsException();\n \t} else if (len == 0) {\n \t\treturn;\n \t}\n \tif (enableClip) {\n \t\tdoClipWrite(b, off, len);\n \t} else {\n \t\twriteDirectly(b, off, len);\n \t}\n \t\n }"
] | [
"0.73606163",
"0.7146971",
"0.70517725",
"0.6966562",
"0.6966562",
"0.6966562",
"0.6933864",
"0.69000864",
"0.6883062",
"0.68706495",
"0.686819",
"0.6854445",
"0.68499374",
"0.6836097",
"0.67911667",
"0.677479",
"0.67418504",
"0.6701696",
"0.66626906",
"0.6655668",
"0.6641898",
"0.6640205",
"0.6557649",
"0.6557216",
"0.6501405",
"0.64957005",
"0.6464978",
"0.64592266",
"0.64576244",
"0.6450092",
"0.64467484",
"0.6439562",
"0.6438142",
"0.64266425",
"0.6411779",
"0.6366274",
"0.63524944",
"0.63366014",
"0.6334218",
"0.6281196",
"0.62544036",
"0.62363994",
"0.62273526",
"0.6225503",
"0.62137365",
"0.6208092",
"0.6198767",
"0.6184457",
"0.6172594",
"0.6158496",
"0.61436254",
"0.6139388",
"0.613913",
"0.6134944",
"0.61246765",
"0.6121847",
"0.6121683",
"0.609233",
"0.6086448",
"0.60746515",
"0.606716",
"0.60662895",
"0.60619605",
"0.6057959",
"0.60531914",
"0.6042571",
"0.6041166",
"0.60316694",
"0.60155815",
"0.60007817",
"0.59889513",
"0.59804654",
"0.5964295",
"0.5950777",
"0.59410393",
"0.593595",
"0.592149",
"0.59133834",
"0.5911204",
"0.59105283",
"0.59053165",
"0.5899058",
"0.58921385",
"0.5888593",
"0.5874504",
"0.5872319",
"0.58715385",
"0.5870754",
"0.58628106",
"0.58587635",
"0.5855299",
"0.58491623",
"0.58488756",
"0.5847821",
"0.5845875",
"0.58403414",
"0.58362156",
"0.58311886",
"0.5829794",
"0.5821065"
] | 0.65188974 | 24 |
Write byte to device. | public boolean write(int b) throws FTD2XXException {
byte[] c = new byte[1];
c[0] = (byte) b;
return (write(c) == 1) ? true : false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void writeByte(byte value);",
"@Override\n public void write(final int byteVal) throws IOException {\n write(new byte[] { (byte) (byteVal & 0xFF) });\n }",
"void writeByte(int v) throws IOException;",
"public abstract void writeByte(byte b) throws IOException;",
"private void writeByte(int val) {\n dest[destPos++] = (byte) val;\n }",
"@Override\n\tpublic void writeByte(int b) throws IOException {\n\t\t\n\t}",
"public int writeByte(byte src) {\n try {\n out.write(src);\n return 0;\n } catch (IOException e) {\n print(\"Error writing byte to \" + portName);\n }\n return -1;\n }",
"public void writeByte(byte b) throws SerialPortException {\n\t\tport.writeByte(b);\n\t\tif(debug) {\n\t\t\tSystem.out.println(\"<0x\"+ b + \">\");\n\t\t}\n\t\t\n\t}",
"public void writeByte(int value)\n throws java.io.IOException {\n\n outputStream.writeByte(value);\n }",
"public boolean writeByte(byte val) {\n try {\n m_DataOutputStream.writeByte(val);\n }\n catch (IOException e) {\n return false;\n }\n return true;\n }",
"public void write(int index, UnsignedByte unsignedByte) {\n memory[index] = unsignedByte;\n }",
"private void writeByteAt(int pos, int val) {\n dest[pos] = (byte) val;\n }",
"@Override\r\n\tpublic synchronized void write(int b)\r\n\t{\r\n\t}",
"public void write(int b) throws IOException {\n/* 54 */ this.appendable.append((char)b);\n/* */ }",
"@Override\n\tpublic void WriteByte(byte value)\n\t{\n\t\tthrow new UnsupportedOperationException(\"TarInputStream WriteByte not supported\");\n\t}",
"public void write( int b ) throws IOException {\n\t\tthis.oneBuf[0] = (byte) b;\n\t\tthis.write( this.oneBuf, 0, 1 );\n\t\t}",
"public void write(int b) throws IOException\n {\n this.out.write(b); // write the byte b to the Stream\n }",
"@Override\n public void write(int b) {\n try {\n out.write(b);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void write(int b) throws IOException;",
"@Override\r\n\tpublic synchronized void write(byte[] b, int off, int len)\r\n\t{\r\n\t}",
"public void write(int b) throws IOException {\n baos.write(b);\n }",
"protected void writeByte(final int adr, final byte data) {\r\n this.memory[adr] = data;\r\n }",
"public void write(int b) \r\n {\r\n \tint newcount = count + 1;\r\n \tif (newcount > buf.length) \r\n \t{\r\n \t\tbyte newbuf[] = new byte[Math.max(buf.length << 1, newcount)];\r\n \t\tSystem.arraycopy(buf, 0, newbuf, 0, count);\r\n \t\tbuf = newbuf;\r\n \t}\r\n \tbuf[count] = (byte)b;\r\n \tcount = newcount;\r\n }",
"@Override\n\tpublic void write(int value) {\n\t\tint lowByte = getFirstArg();\n\t\tint highByte = getSecondArg();\n\t\tint address = highByte;\n\t\taddress = address << 8;\n\t\taddress |= lowByte;\n\t\tCpuMem.getInstance().writeMem(address, value);\n\t}",
"@Override\r\n\t\t\tpublic void write(int b) throws IOException {\n\t\t\t}",
"public abstract void write(byte[] b);",
"private void byteOut(){\n if(nrOfWrittenBytes >= 0){\n if(b==0xFF){\n // Delay 0xFF byte\n delFF = true;\n b=c>>>20;\n c &= 0xFFFFF;\n cT=7;\n }\n else if(c < 0x8000000){\n // Write delayed 0xFF bytes\n if (delFF) {\n out.write(0xFF);\n delFF = false;\n nrOfWrittenBytes++;\n }\n out.write(b);\n nrOfWrittenBytes++;\n b=c>>>19;\n c &= 0x7FFFF;\n cT=8;\n }\n else{\n b++;\n if(b==0xFF){\n // Delay 0xFF byte\n delFF = true;\n c &= 0x7FFFFFF;\n b=c>>>20;\n c &= 0xFFFFF;\n cT=7;\n }\n else{\n // Write delayed 0xFF bytes\n if (delFF) {\n out.write(0xFF);\n delFF = false;\n nrOfWrittenBytes++;\n }\n out.write(b);\n nrOfWrittenBytes++;\n b=((c>>>19)&0xFF);\n c &= 0x7FFFF;\n cT=8;\n }\n }\n }\n else {\n // NOTE: carry bit can never be set if the byte buffer was empty\n b= (c>>>19);\n c &= 0x7FFFF;\n cT=8;\n nrOfWrittenBytes++;\n }\n }",
"public void onWriteByte(ICPU cpu, int addr) {\n\t}",
"public void write(byte[] data, long offset);",
"public static void write(OutputStream output, byte value) throws IOException {\n output.write(new byte[] { value });\n }",
"public void write(byte b[], int off, int len) throws IOException;",
"@Override\n public void write(ByteBuffer b, int off, int len)\n throws IOException {\n byteBufferStreamOutput.write(b, off, len);\n }",
"public ByteBuf writeByte(int value)\r\n/* 533: */ {\r\n/* 534:544 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 535:545 */ return super.writeByte(value);\r\n/* 536: */ }",
"void write(byte b[]) throws IOException;",
"public void write(int datum) throws IOException {\n if (!_open)\n return;\n datum &= 0xff;\n long _here = position();\n\n // Are we synced up?\n if (_here == _digestvalidto) {\n\n // Yes, digest the byte and move the valid to pointer.\n _digest.update((byte) datum);\n _digestvalidto++; // JMC: Was missing.\n\n } // Otherwise, advancing of the position will destroy the digest sync.\n\n datum = _head.crypt((byte) datum, _here);\n _backing.write(datum);\n }",
"void writeByte(byte[] header, int index, int data) {\n header[index] = (byte) data;\n }",
"public StreamWriter write(byte value)\r\n {\r\n\t\ttry {\r\n\t\t\t_stream.write(new byte[] { value });\r\n\t\t} catch (IOException ex) {\r\n\t\t}\r\n\t\treturn this;\r\n }",
"void write(ByteBuffer b, int off, int len) throws IOException;",
"public void write(byte b[]) throws IOException;",
"native int _writeSerialPort(int port, byte data[]);",
"public final void write(int c) {\r\n if (cbyte == size) {\r\n throw new ArrayIndexOutOfBoundsException(String.format(\"%d\", cbyte));\r\n }\r\n \r\n // Append the input byte to the data element.\r\n elem |= (c & 0xff) << (bytenum << 3);\r\n \r\n bytenum++;\r\n cbyte++;\r\n if (bytenum == BYTES_IN_ELEMENT) {\r\n // Write the data\r\n data[offset] = elem;\r\n // Increase offset\r\n offset++;\r\n // Reset current element\r\n elem = 0;\r\n // Reset bytenum\r\n bytenum = 0;\r\n }\r\n }",
"public void write(int c) throws IOException {\n ensureOpen();\n out.write(c);\n }",
"public static void writeWithByte(final long address, final long size, final byte value) {\n\t\tUnsafe.get().setMemory(address, size, value);\n\t}",
"public void write(byte[] buffer);",
"void writeChar(char value);",
"@Override\n\tpublic void showByteWrite(ByteBuffer data)\n\t{\n\n\t}",
"protected void _setByte(int index, int value)\r\n/* 423: */ {\r\n/* 424:437 */ HeapByteBufUtil.setByte(this.array, index, value);\r\n/* 425: */ }",
"@Override\n public void write(byte[] buf, int offset, int size) throws IOException;",
"public void setByte(int offset, byte data)\n {\n writeMode(offset + 0xA0000, data);\n }",
"public int write(int c) throws IOException, BadDescriptorException {\n checkOpen();\n \n ByteBuffer buf = ByteBuffer.allocate(1);\n buf.put((byte)c);\n buf.flip();\n \n return internalWrite(buf);\n }",
"private static void writeByte(boolean rs, int data) {\n int highData = ((data >>> NIBBLE_SIZE) & NIBBLE_MASK); //Parte Alta do data\n int lowData = (data & NIBBLE_MASK); //Parte Baixa do data\n writeNibble(rs,highData);\n writeNibble(rs,lowData);\n Time.sleep(WRITEBYTE_SLEEP_TIME);\n }",
"public synchronized void write(final int b) throws IOException {\n\t\tthis.singleIntArray[0] = (byte) (0xFF & b);\n\t\twrite(singleIntArray, 0, 1);\n\t}",
"public void mWriteByte(OutputStream oOutputStream,int out) { //Cast the byt to an array\n byte[] out1=new byte[1];\n out1[0]= (byte) out;\n mWriteByte(oOutputStream,out1);\n }",
"@Override\n public void write(int b) throws IOException {\n byte ib = (byte) b;\n long p = df.position();\n // If not at the end yet,\n if (p < df.size()) {\n // Get the current value,\n byte cur_b = df.get();\n // If the value we are inserting is different,\n if (cur_b != ib) {\n // Reposition and put the new value,\n df.position(p);\n df.put(ib);\n// ++change_count;\n }\n }\n // At the end so write the byte,\n else {\n df.put(ib);\n }\n }",
"@Override\r\n\tpublic Buffer setByte(int pos, byte b) {\n\t\treturn null;\r\n\t}",
"private void saveByte(int inputByte) throws IOException {\n if (byteBuffer != null) {\n if (bufferPointer == maxBytesInMemory) {\n // Need to switch to file\n storeFile = Files.createTempFile(\"TIKA_streamstore_\", \".tmp\").toFile();\n storeOutputStream = new BufferedOutputStream(new FileOutputStream(storeFile));\n // Save what we have so far in buffer\n storeOutputStream.write(byteBuffer, 0, bufferPointer);\n // Write the new byte\n storeOutputStream.write(inputByte);\n byteBuffer = null; // release for garbage collection\n } else {\n // Continue writing to buffer\n byteBuffer[bufferPointer++] = (byte) inputByte;\n }\n } else {\n storeOutputStream.write(inputByte);\n }\n }",
"@Override\r\n\tpublic Buffer setUnsignedByte(int pos, short b) {\n\t\treturn null;\r\n\t}",
"public void write(ByteBuffer b) throws IOException {\n raos.write(b);\n }",
"public void write(int c) throws IOException{\r\n if(closed){\r\n throw new IOException(\"The stream is not open.\");\r\n }\r\n getBuffer().append((char)c);\r\n }",
"@Override\n public void onClick(View v) {\n byte[] bytes = command.getBytes();\n\n if (sPort != null) {\n\n try {\n sPort.write(bytes, 100000);\n Log.e(LOG_TAG, \"inside write\");\n// mExecutor.submit(mSerialIoManager);\n } catch (IOException e) {\n e.printStackTrace();\n Log.e(LOG_TAG, \"Exception \" + e);\n }\n } else {\n Log.e(LOG_TAG, \"UsbSerialPort is null\");\n }\n }",
"protected void direct_write(int address, byte val) {\n segment_data[address] = val;\n }",
"@Override\n public void write(int oneByte) throws IOException {\n currentRead++;\n if (currentRead % callback.interval() == 0) {\n callback.callback(currentRead);\n }\n outstream.write(oneByte);\n }",
"void writeBytes(byte[] value);",
"public void sendByteCommand(int address, byte command, boolean waitForCompletion)\n {\n final String funcName = \"sendByteCommand\";\n byte[] data = new byte[1];\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API, \"addr=%d,cmd=0x%x,sync=%s\",\n address, command, Boolean.toString(waitForCompletion));\n }\n\n data[0] = command;\n if (waitForCompletion)\n {\n syncWrite(address, data, data.length);\n }\n else\n {\n //\n // Fire and forget.\n //\n asyncWrite(null, address, data, data.length, null, null);\n }\n\n if (debugEnabled)\n {\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API);\n }\n }",
"public void send(short b) {\n\t\t// If we're using send to send 255, we need to escape it.\n\t\tif (b == IAC) {\n\t\t\toutWriter.write(new short[] {IAC, IAC});\n\t\t} else {\n\t\t\ttry {\n\t\t\t\toutWriter.write(b);\n\t\t\t} catch (IOException ioe) {\n\t\t\t\tSystem.err.println(ioe.toString());\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void write(int i) throws IOException {\n if (pos == BUFFER_SIZE) {\n flush();\n }\n buffer[pos++] = (byte)i;\n }",
"public void write(int c) throws IOException {\r\n try {\r\n os.write(c);\r\n } catch (IOException io) {\r\n if (!cbImpl.checkMobileNetwork()) {\r\n throw new WrapperIOException(new TransportException(io.getMessage(), io,\r\n TransportException.NO_NETWORK_COVERAGE));\r\n }\r\n throw io;\r\n }\r\n }",
"@Override\n\tpublic void write(int b) throws IOException{\n\t\tconsoleStream.append(String.valueOf((char)b));\n\t\tconsoleStream.setCaretPosition(consoleStream.getDocument().getLength());\n\t\t\n\t}",
"public void set_byte(byte param) {\n this.local_byte = param;\n }",
"@Override public void write(byte[] bytes) throws RobotCoreException\n {\n byte bCommand = bytes[2];\n this.cbExpected = bCommand==0 ? 0/*write*/ : bytes[4] /*read*/;\n }",
"void write (char ch, int offset);",
"@Override\r\n\tpublic void write(IByteBuffer target, long offset) {\n\r\n\t}",
"public void set(int address, byte val) {\n try {\n direct_write(address, val);\n } catch (ArrayIndexOutOfBoundsException e) {\n throw new AddressOutOfBoundsException(address);\n }\n }",
"public void write(int b) throws IOException\n {\n checkThreshold(1);\n getStream().write(b);\n written++;\n }",
"public void writedata(byte b) throws Exception{\n ByteBuffer byteBuffer = ByteBuffer.wrap(\"hello\".getBytes(\"UTF-8\"));\n// byteBuffer.flip();\n client.write(byteBuffer);\n byteBuffer.clear();\n client.close();\n\n }",
"public void writeData(byte[] data){\n if (mWriteCharacteristic!=null &&data!=null){\n mWriteCharacteristic.setValue(data[0],BluetoothGattCharacteristic.FORMAT_UINT8,0);\n mWriteCharacteristic.setValue(data);\n bluetoothGatt.writeCharacteristic(mWriteCharacteristic);\n }\n }",
"@Override\n\tpublic void write(DataOutput out) throws IOException {\n\t\tout.writeInt(bytes);\n\t\tout.write(buffer);\t\t\n\t}",
"@Override\n public void write(final byte[] data) throws IOException {\n write(data, 0, data.length);\n }",
"public void mWriteByte(OutputStream oOutputStream,byte[] out) {\n synchronized (this) {\n if (mStateGet()!= cKonst.eSerial.kBT_Connected1) {\n return;\n }\n try { //Maybe the steam was closed by receiver\n oOutputStream.write(out);\n } catch (IOException e) {\n mStateSet(cKonst.eSerial.kBT_BrokenConnection);\n }\n }\n }",
"public void write(DataOutput output) throws IOException {\n output.writeShort(this.data);\n }",
"public static void lcd_WriteChar ( int data) {\n lcd_RawWrite( Rs | (data & 0xF0));\n lcd_RawWrite( Rs | ((data <<4 ) & 0xF0));\n }",
"public void write(byte[] b, int off, int len) {\n\t\tbaos.write(b, off, len);\n\t}",
"void write(byte[] buffer, int bufferOffset, int length) throws IOException;",
"void setByte(int index, byte value) throws SQLException;",
"public void write(byte b[]) throws IOException\n {\n checkThreshold(b.length);\n getStream().write(b);\n written += b.length;\n }",
"public void setByte(int index, byte b) throws ArrayIndexOutOfBoundsException\n\t{\n\t\tbytes[index] = b;\n\t}",
"@Override\n public void write(byte[] buf) throws IOException;",
"public void write(byte[] b, int off, int len) throws IOException {\r\n try {\r\n os.write(b, off, len);\r\n } catch (IOException io) {\r\n if (!cbImpl.checkMobileNetwork()) {\r\n throw new WrapperIOException(new TransportException(io.getMessage(), io,\r\n TransportException.NO_NETWORK_COVERAGE));\r\n }\r\n throw io;\r\n }\r\n }",
"public void write(final byte[] data, final int offset, final int len) throws IOException {\n checkOpened();\n dos.write(data, offset, len);\n flush();\n }",
"public void write(char c){\n\t\tbuffer[bufferPos++] = c;\n\n\t\tif(bufferPos == limit) flush();\n\t}",
"public void writeUnsignedByte(int i) throws IOException {\r\n\t\tthis.writeByte(i);\r\n\t\t// this.writeByte((byte) (i % 128));\r\n\t}",
"void writeBit(int bit) throws IOException;",
"protected abstract void write( int value ) throws IOException;",
"@Override\r\n\tpublic Buffer appendUnsignedByte(short b) {\n\t\tbuffer.putShort((short) (b & 0xff));\r\n\t\treturn this;\r\n\t}",
"@Override\n public void write(int b) throws IOException {\n if (b == ModbusASCIITransport.FRAME_START) {\n out.write(58);\n // System.out.println(\"Wrote FRAME_START\");\n return;\n } else if (b == ModbusASCIITransport.FRAME_END) {\n out.write(13);\n out.write(10);\n // System.out.println(\"Wrote FRAME_END\");\n return;\n } else {\n out.write(ModbusUtil.toHex(b));\n // System.out.println(\"Wrote byte \"+b+\"=\"+new String(ModbusUtil.toHex(b)));\n }\n }",
"public void writeIO(int addr, char data)\n {\n switch (addr)\n {\n case IO.UDR0:\n {\n this.io[IO.UCSR0A] &= ~32;\n }\n case IO.UDR1:\n {\n this.io[IO.UCSR1A] &= ~32;\n }\n }\n super.writeIO(addr, data);\n }",
"private void write( byte[] data) throws IOException {\n ByteBuffer buffer = ByteBuffer.wrap(data);\n\n int write = 0;\n // Keep trying to write until buffer is empty\n while(buffer.hasRemaining() && write != -1)\n {\n write = channel.write(buffer);\n }\n\n checkIfClosed(write); // check for error\n\n if(ProjectProperties.DEBUG_FULL){\n System.out.println(\"Data size: \" + data.length);\n }\n\n key.interestOps(SelectionKey.OP_READ);// make key read for reading again\n\n }",
"public void write(byte[] out, int offset, int count) {\n // Create temporary object\n MultiplexUsbTransport.WriterThread r;\n // Synchronize a copy of the ConnectedThread\n synchronized (this) {\n if (mState != STATE_CONNECTED) return;\n r = writerThread;\n //r.write(out,offset,count);\n }\n // Perform the write unsynchronized\n r.write(out,offset,count);\n }",
"public void write(byte[] bytes) {\n try {\n mmOutStream.write(bytes);\n\n // Share the sent message with the UI activity.\n /*Message writtenMsg = handler.obtainMessage(\n MessageConstants.MESSAGE_WRITE, -1, -1, mmBuffer);\n writtenMsg.sendToTarget();*/\n } catch (IOException e) {\n Log.e(TAG, \"Error occurred when sending data\", e);\n\n // Send a failure message back to the activity.\n /*Message writeErrorMsg =\n handler.obtainMessage(MessageConstants.MESSAGE_TOAST);\n Bundle bundle = new Bundle();\n bundle.putString(\"toast\",\n \"Couldn't send data to the other device\");\n writeErrorMsg.setData(bundle);\n handler.sendMessage(writeErrorMsg);*/\n }\n }",
"protected final void write(char c) throws IOException {\n\t\toutput.write(c);\n\t}",
"public void write(byte b[], int off, int len) throws IOException\n {\n checkThreshold(len);\n getStream().write(b, off, len);\n written += len;\n }"
] | [
"0.78392035",
"0.7375439",
"0.72490066",
"0.72250485",
"0.70232403",
"0.6921951",
"0.6833386",
"0.682126",
"0.6756965",
"0.6687971",
"0.6681538",
"0.66577315",
"0.66106004",
"0.65923584",
"0.6583172",
"0.65546095",
"0.6545553",
"0.6544684",
"0.65298724",
"0.652668",
"0.64914614",
"0.64849675",
"0.64542603",
"0.6403146",
"0.63879746",
"0.638012",
"0.6326299",
"0.6324068",
"0.63176477",
"0.62939495",
"0.62938046",
"0.6261429",
"0.6239366",
"0.6231227",
"0.6226635",
"0.6217784",
"0.6217102",
"0.6200351",
"0.61797637",
"0.61719525",
"0.61562306",
"0.6147562",
"0.61375403",
"0.6129144",
"0.6118606",
"0.6114651",
"0.6111455",
"0.6080824",
"0.6074995",
"0.6068982",
"0.6057177",
"0.6057055",
"0.60387844",
"0.59950304",
"0.59935004",
"0.598575",
"0.59760267",
"0.5973283",
"0.59732765",
"0.5971816",
"0.59648925",
"0.59597063",
"0.595066",
"0.59480876",
"0.59438366",
"0.5923664",
"0.5920689",
"0.591536",
"0.5903577",
"0.58982354",
"0.5894479",
"0.5868345",
"0.5865029",
"0.5838613",
"0.5833341",
"0.5809749",
"0.5793767",
"0.57917815",
"0.57902974",
"0.57750183",
"0.5758956",
"0.5740693",
"0.57253516",
"0.5721029",
"0.57198113",
"0.57188594",
"0.5712976",
"0.5711808",
"0.5711677",
"0.5707024",
"0.5704402",
"0.56987655",
"0.5691936",
"0.56908023",
"0.5688206",
"0.56881464",
"0.56697536",
"0.5666537",
"0.56628543",
"0.5652226",
"0.5647334"
] | 0.0 | -1 |
Read bytes from device. | public int read(byte[] bytes, int offset, int lenght) throws FTD2XXException {
Memory memory = new Memory(lenght);
IntByReference read = new IntByReference();
ensureFTStatus(ftd2xx.FT_Read(ftHandle, memory, lenght, read));
memory.read(0, bytes, offset, lenght);
return read.getValue();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public byte[] read();",
"public byte[] readBytes() {\n try {\n int len = available();\n if (len > 0) {\n byte bytes[] = new byte[len];\n m_DataInputStream.read(bytes);\n\n return bytes;\n }\n else {\n return new byte[0];\n }\n }\n catch (IOException e) {\n return new byte[0];\n }\n }",
"byte[] readBytes();",
"int getBytesRead() {\n \treturn _read + _o;\n }",
"public void readBytes(byte[] buffer, int offset, int length) throws IOException;",
"public void readBytes(byte[] buffer) throws IOException;",
"private int read()\n\t{\n\t\ttry{\n\t\t\twhile(dev_in.available()==0);\n\t\t\treturn dev_in.read();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t\n\t\t}\n\t\treturn -1;\n\t}",
"@Override\n public void read(byte[] bytes) {\n }",
"public int read(byte[] p_bytes, int p_offset, int p_length);",
"@Override\n\tpublic byte readByte() throws IOException {\n\t\treturn (byte) (_buff.get() & 0xFF);\n\t}",
"public byte[] readBytes() throws IOException {\n int length = in.readInt();\n byte[] bytes = new byte[length];\n in.readFully(bytes);\n return bytes;\n }",
"@Override\n public byte[] readBytes(int length) throws IOException\n {\n if (length < 0)\n {\n throw new IOException(\"length is negative\");\n }\n if (randomAccessRead.length() - randomAccessRead.getPosition() < length)\n {\n throw new IOException(\"Premature end of buffer reached\");\n }\n byte[] bytes = new byte[length];\n for (int i = 0; i < length; i++)\n bytes[i] = readByte();\n return bytes;\n }",
"public abstract byte[] readData(int address, int length);",
"public int readBytes(FileChannel out, long position, int length)\r\n/* 903: */ throws IOException\r\n/* 904: */ {\r\n/* 905:910 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 906:911 */ return super.readBytes(out, position, length);\r\n/* 907: */ }",
"int read(byte[] buffer, int bufferOffset, int length) throws IOException;",
"public byte[] readBytes() {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn null;\n\n\t\tsynchronized (buffer) {\n\t\t\tint length = bufferLast - bufferIndex;\n\t\t\tbyte outgoing[] = new byte[length];\n\t\t\tSystem.arraycopy(buffer, bufferIndex, outgoing, 0, length);\n\n\t\t\tbufferIndex = 0; // rewind\n\t\t\tbufferLast = 0;\n\t\t\treturn outgoing;\n\t\t}\n\t}",
"@Override\n public int read(byte[] bytes, int offset, int count) throws IOException {\n return updateBytesRead(super.read(bytes, offset, count));\n }",
"protected final int readBytes()\n throws IOException\n {\n _inputPtr = 0;\n _inputEnd = 0;\n if (_inputSource != null) {\n int count = _inputSource.read(_inputBuffer, 0, _inputBuffer.length);\n if (count > 0) {\n _inputEnd = count;\n }\n return count;\n }\n return -1;\n }",
"void readBytes(byte[] into, int offset, int toRead) throws IOException;",
"public byte[] readBytes() throws IOException {\n\t InputStream in = socket.getInputStream();\n\t DataInputStream dis = new DataInputStream(in);\n\n\t int len = dis.readInt();\n\t byte[] data = new byte[len];\n\t if (len > 0) {\n\t dis.readFully(data);\n\t }\n\t return data;\n\t}",
"@Override\n public int read() throws IOException {\n if (pos >= count) {\n fill();\n if (pos >= count) {\n return -1;\n }\n }\n checkIfClosed();\n return buf[pos++] & 0xFF;\n }",
"public int readBytes(GatheringByteChannel out, int length)\r\n/* 508: */ throws IOException\r\n/* 509: */ {\r\n/* 510:520 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 511:521 */ return super.readBytes(out, length);\r\n/* 512: */ }",
"@Override\n protected int readDataBlock(byte[] readData) throws IOException {\n final UsbSerialDriver serialDriver = serialDriverRef.get();\n if(serialDriver == null)\n throw new IOException(\"Device is unavailable.\");\n\n int iavailable = 0;\n try {\n iavailable = serialDriver.read(readData, 200);\n } catch (NullPointerException e) {\n final String errorMsg = \"Error Reading: \" + e.getMessage()\n + \"\\nAssuming inaccessible USB device. Closing connection.\";\n Log.e(TAG, errorMsg, e);\n throw new IOException(errorMsg, e);\n }\n\n if (iavailable == 0)\n iavailable = -1;\n return iavailable;\n }",
"public int read() throws IOException {\n if (!started) {\n start();\n }\n if (buffer == null)\n return -1;\n if (bufpos == buflen) {\n buffer = refreshBuffer();\n if (buffer == null)\n return -1;\n }\n return 0xFF & buffer[bufpos++];\n }",
"public abstract void readBytes(PacketBuffer buffer) throws IOException;",
"@Override\n\tpublic int read() throws IOException {\n\t\tif (buf.isReadable()) {\n return buf.readByte() & 0xff;\n }\n return -1;\n\t}",
"@Override\n public byte readByte() throws IOException\n {\n if (!hasRemaining())\n {\n throw new IOException(\"End off buffer reached\");\n }\n return (byte) randomAccessRead.read();\n }",
"public int readBytes(GatheringByteChannel out, int length)\r\n/* 219: */ throws IOException\r\n/* 220: */ {\r\n/* 221:240 */ checkReadableBytes(length);\r\n/* 222:241 */ int readBytes = getBytes(this.readerIndex, out, length, true);\r\n/* 223:242 */ this.readerIndex += readBytes;\r\n/* 224:243 */ return readBytes;\r\n/* 225: */ }",
"public byte[] readBytes(int inNumberMessages) throws IOException;",
"byte readByte();",
"native byte[] _readSerialPort(int port);",
"public int readByte() {\n waitForData();\n try {\n return m_DataInputStream.readByte();\n }\n catch (IOException e) {\n return 256;\n }\n }",
"@Override\n public int readUnsignedByte() throws IOException\n {\n if (!hasRemaining())\n {\n throw new IOException(\"End off buffer reached\");\n }\n return randomAccessRead.read();\n }",
"private void readSerial() {\r\n\t\twhile(myPort.available() > 0) {\r\n\t\t\tbyte[] newBuffer = new byte[512];\r\n\t\t\tint n = myPort.readBytes(newBuffer);\r\n\t\t\tnewBuffer = PApplet.subset(newBuffer,0,n);\r\n\t\t\tif(debug) System.out.println(\"readSerial() reads in \"+n+\" bytes\");\r\n\t\t\tif(newBuffer != null) {\r\n\t\t\t\tinBuffer = PApplet.concat(inBuffer, newBuffer);\r\n\t\t\t\tif(inBuffer.length > 0) checkBuffer();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public int readBytes(FileChannel out, long position, int length)\r\n/* 228: */ throws IOException\r\n/* 229: */ {\r\n/* 230:248 */ checkReadableBytes(length);\r\n/* 231:249 */ int readBytes = getBytes(this.readerIndex, out, position, length, true);\r\n/* 232:250 */ this.readerIndex += readBytes;\r\n/* 233:251 */ return readBytes;\r\n/* 234: */ }",
"public int read ()\n {\n return (_buffer.remaining() > 0) ? (_buffer.get() & 0xFF) : -1;\n }",
"public long currentReadBytes()\r\n/* 209: */ {\r\n/* 210:398 */ return this.currentReadBytes.get();\r\n/* 211: */ }",
"public int readByte() {\n try {\n return in.read();\n } catch (IOException e) {\n print(\"Error reading byte from \" + portName);\n }\n return -1;\n }",
"byte read()\n \tthrows IOException {\n \t//\n \t// Ensure that one byte can be read\n \tensureContinuousBlock(1);\n \t//\n \t// Simply return the byte\n \treturn _random[_o++];\n }",
"private void fetch(byte[] target) throws IOException {\n\t\tint actuallyRead=0;\n\t\tint required=target.length;\n\t\tlog.debug(\"Need to read \"+required+\" to fill buffer\");\n\t\twhile(actuallyRead<required) {\n\t\t\tactuallyRead+=fromDevice.read(target,actuallyRead,required-actuallyRead);\n\t\t\tlog.debug(\"Now read \"+actuallyRead);\n\t\t}\n\t}",
"private synchronized byte[] mReadBytes(InputStream oInput){\n nDataRcvd= nBytesAvailable(oInput);\n if (nDataRcvd==0)\n return null;\n byte[] buffer = new byte[nDataRcvd];\n try {\n nDataRcvd=oInput.read(buffer); //Read is a blocking operation\n } catch (IOException e) {\n e.printStackTrace();\n buffer= null;\n }\n return buffer;\n }",
"@Override\n\tpublic int read(byte[] b, int off, int len) {\n\t\treturn super.read(b, off, len);\n\t}",
"public int read() throws IOException {\n/* 173 */ long next = this.pointer + 1L;\n/* 174 */ long pos = readUntil(next);\n/* 175 */ if (pos >= next) {\n/* 176 */ byte[] buf = this.data.get((int)(this.pointer >> 9L));\n/* */ \n/* 178 */ return buf[(int)(this.pointer++ & 0x1FFL)] & 0xFF;\n/* */ } \n/* 180 */ return -1;\n/* */ }",
"@Override\n public int read(byte[] byteBuffer) throws IOException {\n return this.read(byteBuffer, 0, byteBuffer.length);\n }",
"public byte readByte() throws IOException {\n return in.readByte();\n }",
"private int readByte() {\n return src[srcPos++] & 0xFF;\n }",
"@Override\n\tpublic int read() {\n\t\treturn super.read();\n\t}",
"public int readBytes(byte outgoing[]) {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn 0;\n\n\t\tsynchronized (buffer) {\n\t\t\tint length = bufferLast - bufferIndex;\n\t\t\tif (length > outgoing.length)\n\t\t\t\tlength = outgoing.length;\n\t\t\tSystem.arraycopy(buffer, bufferIndex, outgoing, 0, length);\n\n\t\t\tbufferIndex += length;\n\t\t\tif (bufferIndex == bufferLast) {\n\t\t\t\tbufferIndex = 0; // rewind\n\t\t\t\tbufferLast = 0;\n\t\t\t}\n\t\t\treturn length;\n\t\t}\n\t}",
"private final byte[] readBuffer( int size ) throws IOException {\n byte[] buffer = new byte[ size ];\n\n int read = 0;\n while ( read < size ) {\n int next = dataSource.read( buffer, read, size - read );\n if ( next < 0 ) throw new IOException( \"End of Stream\" );\n read += next;\n\t}\n return buffer;\n }",
"protected final int readBytesAt(int offset)\n throws IOException\n {\n // shouldn't modify mBytePtr, assumed to be 'offset'\n if (_inputSource != null) {\n int count = _inputSource.read(_inputBuffer, offset, _inputBuffer.length - offset);\n if (count > 0) {\n _inputEnd += count;\n }\n return count;\n }\n return -1;\n }",
"public abstract byte[] read() throws IOException, IllegalArgumentException , IllegalStateException;",
"public byte readByte() throws SerialPortException {\n\t\tif (this.available()) {\n\t\t\tbyte [] byteRead = port.readBytes(1);\n\t\t\tif(debug) {\n\t\t\t\tString byteName = String.format(\"%02x\", byteRead[0]);\n\t\t\t\tSystem.out.print(byteName + \"\\t\");;\n\t\t\t}\n\t\t\treturn byteRead[0];\n\t\t\t\n\t\t}\n\t\treturn -1;\n\t\t\n\t}",
"public ByteBuf readBytes(OutputStream out, int length)\r\n/* 501: */ throws IOException\r\n/* 502: */ {\r\n/* 503:514 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 504:515 */ return super.readBytes(out, length);\r\n/* 505: */ }",
"@Override\n public int read() throws IOException {\n int r = -1;\n \n if (encryptedDataBuffer!=null && pos>=encryptedDataBuffer.length && !closed)\n fillBuffer();\n \n if (encryptedDataBuffer!=null && pos<encryptedDataBuffer.length)\n r = (int)encryptedDataBuffer[pos++]; // next element in the buffer\n return r;\n }",
"public byte readByte() throws IOException {\n\t\treturn (byte) read();\n\t}",
"public void read( int readIndex, byte[] array, int firstIndex,\n\t\t\tint count );",
"@Override\n\tpublic int available() throws IOException {\n\t\treturn buf.readableBytes();\n\t}",
"public int read(byte[] bytes) throws FTD2XXException {\n return read(bytes, 0, bytes.length);\n }",
"@Override\n\tpublic int read(byte[] array) throws IOException {\n\t\treturn read(array, 0, array.length);\n\t}",
"public static void main(String[] args) {\n byte[] arr = {1, 2, 3, 4, 5};\n\n try {\n ByteArrayInputStream one = new ByteArrayInputStream(arr);\n System.out.println(one.available());\n\n for(int i = 0; i< arr.length; i++){\n\n int data = one.read();\n System.out.println(data);\n }\n one.close();\n }catch (Exception e){\n System.out.println(e.getMessage());\n\n\n }\n\n }",
"@Override\n public int read(byte[] b, int off, int len) throws IOException\n {\n try\n {\n byte [] buff = fAVMRemote.readInput(fTicketHolder.getTicket(), fHandle, len);\n if (buff.length == 0)\n {\n return -1;\n }\n System.arraycopy(buff, 0, b, off, buff.length);\n return buff.length;\n }\n catch (Exception e)\n {\n throw new IOException(\"Remote I/O Error.\");\n }\n }",
"public int read(byte[] b, int off, int len) throws IOException {\n/* 232 */ if (b == null) {\n/* 233 */ throw new NullPointerException();\n/* */ }\n/* 235 */ if (off < 0 || len < 0 || off + len > b.length) {\n/* 236 */ throw new IndexOutOfBoundsException();\n/* */ }\n/* 238 */ if (len == 0) {\n/* 239 */ return 0;\n/* */ }\n/* */ \n/* 242 */ long pos = readUntil(this.pointer + len);\n/* */ \n/* 244 */ if (pos <= this.pointer) {\n/* 245 */ return -1;\n/* */ }\n/* */ \n/* 248 */ byte[] buf = this.data.get((int)(this.pointer >> 9L));\n/* 249 */ int nbytes = Math.min(len, 512 - (int)(this.pointer & 0x1FFL));\n/* 250 */ System.arraycopy(buf, (int)(this.pointer & 0x1FFL), b, off, nbytes);\n/* */ \n/* 252 */ this.pointer += nbytes;\n/* 253 */ return nbytes;\n/* */ }",
"@Override public int read(byte[] bytes, int cbReadExpected, long timeout) throws RobotCoreException, InterruptedException\n {\n Thread.sleep(3, 500000);\n\n // We need to set the 'sync' bytes correctly, and set the sizes, or our\n // read result will be rejected. We might consider zeroing the buffer here.\n bytes[0] = (byte)0x33;\n bytes[1] = (byte)0xCC;\n bytes[4] = (byte)cbExpected;\n return cbReadExpected;\n }",
"public byte[] readBytes(int inNumberMessages, long timeoutMs) throws IOException, TimeoutException;",
"public byte[] Get_Data() throws IOException {\n byte[] ret = new byte[512];\n DatagramPacket packet = new DatagramPacket(ret, ret.length);\n\n socket.receive(packet);\n\n length = ret.length;\n return ret;\n }",
"@Override\n\tpublic int read() {\n\t\tint lowByte = getFirstArg();\n\t\tint highByte = getSecondArg();\n\t\tint address = highByte;\n\t\taddress = address << 8;\n\t\taddress |= lowByte;\n\t\treturn CpuMem.getInstance().readMem(address);\n\t}",
"public byte[] syncRead(int address, int length)\n {\n final String funcName = \"syncRead\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API, \"addr=%d,len=%d\", address, length);\n }\n\n if (!isEnabled())\n {\n throw new RuntimeException(\"Device is not enabled, must call setEnabled first.\");\n }\n\n byte[] data = null;\n if (requestQueue != null)\n {\n TrcEvent completionEvent = new TrcEvent(instanceName + \".\" + funcName);\n Request request = new Request(null, true, address, null, length, completionEvent, null);\n TrcRequestQueue<Request>.RequestEntry entry = requestQueue.add(request, this::requestHandler, false);\n\n while (!completionEvent.isSignaled())\n {\n Thread.yield();\n }\n\n if (!entry.isCanceled())\n {\n data = request.buffer;\n request.buffer = null;\n }\n }\n else\n {\n data = readData(address, length);\n }\n\n if (debugEnabled)\n {\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%s\",\n data == null? \"null\": Arrays.toString(data));\n }\n\n return data;\n }",
"int read(long pos, byte[] buf)throws IOException;",
"@Override\n protected int read0() throws IOException {\n if (this.delegate.hasRemaining()) {\n return this.delegate.get() & 0xFF;\n } else {\n return RESULT_EOF;\n }\n }",
"public int getBytes(int index, GatheringByteChannel out, int length)\r\n/* 183: */ throws IOException\r\n/* 184: */ {\r\n/* 185:211 */ ensureAccessible();\r\n/* 186:212 */ return getBytes(index, out, length, false);\r\n/* 187: */ }",
"private final int readBytes( int number ) throws IOException {\n byte[] buffer = new byte[ number ];\n int read = dataSource.read( buffer, 0, number );\n\n if ( read != buffer.length ) {\n if ( read < 0 ) throw new IOException( \"End of Stream\" );\n for ( int i = read; i < buffer.length; i++ ) buffer[ i ] = (byte)readByte();\n }\n \n\t/**\n * Create integer\n */\n switch ( number ) {\n case 1: return (buffer[ 0 ] & 0xff);\n\t case 2: return (buffer[ 0 ] & 0xff) | ((buffer[ 1 ] & 0xff) << 8);\n\t case 3: return (buffer[ 0 ] & 0xff) | ((buffer[ 1 ] & 0xff) << 8) | ((buffer[ 2 ] & 0xff) << 16);\n\t case 4: return (buffer[ 0 ] & 0xff) | ((buffer[ 1 ] & 0xff) << 8) | ((buffer[ 2 ] & 0xff) << 16) | ((buffer[ 3 ] & 0xff) << 24);\n\t default: throw new IOException( \"Illegal Read quantity\" );\n\t}\n }",
"public int read() throws IOException {\n if(available() == 0) throw new EOFException(\"No data available.\");\n int ret = data.getFirst().get();\n updateBufferList();\n return ret;\n }",
"public int read(byte[] dest) {\n try {\n return in.read(dest);\n } catch (IOException e) {\n print(\"Error reading bytes from \" + portName);\n }\n return -1;\n }",
"public int getBytes(int index, GatheringByteChannel out, int length)\r\n/* 252: */ throws IOException\r\n/* 253: */ {\r\n/* 254:268 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 255:269 */ return super.getBytes(index, out, length);\r\n/* 256: */ }",
"public ByteBuf readBytes(int length)\r\n/* 459: */ {\r\n/* 460:472 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 461:473 */ return super.readBytes(length);\r\n/* 462: */ }",
"public int getBytes(int index, FileChannel out, long position, int length)\r\n/* 889: */ throws IOException\r\n/* 890: */ {\r\n/* 891:898 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 892:899 */ return super.getBytes(index, out, position, length);\r\n/* 893: */ }",
"public int read(/*OUT*/byte[][] bytes, int nBytesToRead) throws com.sun.star.io.IOException, com.sun.star.uno.RuntimeException {\n\t\tif(_firstRead) {\n\t\t\t_firstRead = false;\n\n\t\t\tnotifyListeners_open();\n\t\t}\n\n\t\tString errMessage = null;\n\n\t\tint read_bytes = 0;\n\t\tbytes[0] = new byte[nBytesToRead];\n\n\t\ttry {\n\t\t\tint count ;\n\n\t\t\tdo {\n\t\t\t\tcount = _inputStream.read(bytes[0], read_bytes, nBytesToRead - read_bytes);\n\t\t\t\tif(count == -1)\n\t\t\t\t\terrMessage = \"EOF reached - \" + getDescription();\n\n\t\t\t\tread_bytes += count;\n\t\t\t}\n\t\t\twhile(read_bytes >= 0 && read_bytes < nBytesToRead && count >= 0);\n\t\t}\n\t\tcatch(IOException ioException) {\n\t\t\tif(DEBUG) {\n\t\t\t\tSystem.err.println(\"##### \" + getClass().getName() + \".read - exception occurred:\" + ioException);\n\t\t\t\tioException.printStackTrace();\n\t\t\t}\n\n\t\t\terrMessage = ioException.toString();\n\t\t}\n\n\t\tif(errMessage != null) {\n\t\t\tcom.sun.star.io.IOException unoIOException = new com.sun.star.io.IOException(errMessage);\n\t\t\tnotifyListeners_error(unoIOException);\n\n\t\t\tthrow unoIOException;\n\t\t}\n\n\t\tif (DEBUG) System.err.println(\"##### \" + getClass().getName() + \" - read byte:\" + read_bytes + \" \" + bytes[0]);\n\n\t\treturn read_bytes;\n\t}",
"private byte[] read(SelectionKey key) throws IOException {\n\t\tSocketChannel channel = (SocketChannel)key.channel();\n\t\treadBuffer.clear();\n\t\tint length = channel.read(readBuffer);\n\t\tbyte[] data = null;\n\n\t\t// Checking whether length is negative, to overcome java.lang.NegativeArraySizeException -- Aditya\n\t\tif (length == -1) {\n\t\t\tmClientStatus.remove(channel);\n\t\t\tclients--;\n\t\t\tchannel.close();\n\t\t\tkey.cancel();\n\t\t\tthrow new IOException(\"No data found\");\n\t\t}else {\n\t\t\treadBuffer.flip();\n\t\t\tdata = new byte[length];\n\t\t\treadBuffer.get(data, 0, length);\t\t\t\t\t\t\n\t\t}\n\t\treturn data;\n\t}",
"public byte readByte() {\n return ((byte) readLong());\n }",
"public byte[] readRawByte() throws IOException {\n byte[] bytes = new byte[2];\n bytes[0] = (byte) Type.BYTE.code;\n in.readFully(bytes, 1, 1);\n return bytes;\n }",
"void read(Buffer buffer);",
"private static byte[] readBytes(InputStream input, int length) throws IOException {\n\n int count = 0;\n byte[] buffer = new byte[length];\n\n while (count < length) count += input.read(buffer, count, length - count);\n\n return buffer;\n }",
"int readNonBlocking(byte[] buffer, int offset, int length);",
"private void readMoreBytesFromStream() throws IOException {\n if (!innerStreamHasMoreData) {\n return;\n }\n\n int bufferSpaceAvailable = buffer.length - bytesInBuffer;\n if (bufferSpaceAvailable <= 0) {\n return;\n }\n\n int bytesRead =\n stream.read(buffer, bytesInBuffer, bufferSpaceAvailable);\n\n if (bytesRead == -1) {\n innerStreamHasMoreData = false;\n } else {\n bytesInBuffer += bytesRead;\n }\n }",
"int getBytesInBufferAvailable() {\n if (this.count == this.pos) return 0;\n else return this.buf.length - this.pos;\n }",
"private void read() throws IOException {\n\n ByteBuffer buffer = ByteBuffer.allocate(ProjectProperties.BYTE_BUFFER_SIZE);\n int read = 0;\n // Keep trying to write until all bytes are read\n while (buffer.hasRemaining() && read != -1) {\n read = channel.read(buffer);\n }\n checkIfClosed(read);// check for error\n\n // convert byte[] to hash string\n String rt = RandomByteAndHashCode.SHA1FromBytes(buffer.array());\n if(ProjectProperties.DEBUG_FULL){\n System.out.println(\"Read: \" + rt );\n }\n\n write(rt.getBytes()); // write hash string\n }",
"public native void get(byte[] bytes);",
"public byte[] readBytes(int inNumberMessages, int[] outNumberMessages) throws IOException;",
"@Override\r\n\tpublic void read(IByteBuffer source, long offset) {\n\r\n\t}",
"@Override\n public int read(final byte[] b) throws IOException {\n return input.read(b);\n }",
"public byte[] read()\n {\n\t\t//byte[] responseData = ISOUtil.hex2byte(\"070088888888\");\n\t\tbyte[] responseData = null;\n try\n {\n\t\t\tlong start = System.currentTimeMillis();\n\t\t\tlong end = System.currentTimeMillis();\n\n\t\t\t\twhile ((end - start) < 45000)\n\t\t\t\t{\n System.out.println(\"++++++ If parameters : read() : \"+inputdata+\" : \"+dataRec);\n\t\t\t\t\tif (inputdata != null && dataRec)\n\t\t\t\t\t{\n System.out.println(\"INSIDE IF -read()\");\n\t\t\t\t\t\tresponseData = ISOUtil.hex2byte(inputdata);\n\t\t\t\t\t\tdataRec=false;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t} else\n\t\t\t\t\t{\n System.out.println(\"INSIDE else -read()\");\n\t\t\t\t\t\tend = System.currentTimeMillis();\n\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t}\n\t\t\t\t}\n\n }\n catch(Exception e)\n {\n System.err.println(\"ConnectionHandlerLocal$WriterThread.run(): Interrupted!\");\n ezlink.info(\"SerialConnection : read() - Exception: \");\n ezlink.error(new Object(), e);\n }\n finally\n\t\t{\n\t\t\tSystem.out.println(\"&&&&&&&&&& In Finally... &&&&&&&\");\n ezlink.info(\"&&&&&&&&&& In Finally... &&&&&&& \");\n\t\t\tdataHandler.strISODump.setLength(0);\n\t\t\tif(sPort!=null)\n\t\t\t{\n\t\t\t\tsPort.close();\n\t\t\t\tSystem.out.println(\"Port Closed\");\n ezlink.info(\"&&&&&&&&&& Port Closed... &&&&&&& \");\n\t\t\t}\n\t \t}\n\n\t \tSystem.out.println(\"inside read() : ReadData=\"+new String(responseData));\n ezlink.info(\"ReadData= : \"+new String(responseData));\n\n return responseData;\n }",
"public int read() {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn -1;\n\n\t\tsynchronized (buffer) {\n\t\t\tint outgoing = buffer[bufferIndex++] & 0xff;\n\t\t\tif (bufferIndex == bufferLast) { // rewind\n\t\t\t\tbufferIndex = 0;\n\t\t\t\tbufferLast = 0;\n\t\t\t}\n\t\t\treturn outgoing;\n\t\t}\n\t}",
"public byte[] syncRead(int length)\n {\n return syncRead(-1, length);\n }",
"public void read(byte[] buffer) throws Exception {\n read(buffer, 0);\n }",
"private int castingRead(byte[] outputBuf, int off, int len)\n throws IOException {\n if (charBuffer == null) {\n charBuffer = new char[DEFAULT_BUFFER_CAPACITY];\n }\n if (len > DEFAULT_BUFFER_CAPACITY) {\n len = DEFAULT_BUFFER_CAPACITY;\n }\n int numRead = in.read(charBuffer, 0, len);\n for (int ix=0; ix<numRead; ix++) {\n outputBuf[off+ix] = (byte)charBuffer[ix];\n }\n return numRead;\n }",
"public int read() throws IOException;",
"@Override\n\tpublic long bytesRead() {\n\t\treturn 0;\n\t}",
"public int read (byte[] b, int off, int len)\n {\n // if they want no bytes, we give them no bytes; this is\n // purportedly the right thing to do regardless of whether we're\n // at EOF or not\n if (len == 0) {\n return 0;\n }\n\n // trim the amount to be read to what is available; if they wanted\n // bytes and we have none, return -1 to indicate EOF\n if ((len = Math.min(len, _buffer.remaining())) == 0) {\n return -1;\n }\n\n _buffer.get(b, off, len);\n return len;\n }",
"public byte[] readBytes(int len) throws IOException {\n if (len > 1024) {\n throw new RuntimeException(String.format(\"Attempted to read %d bytes at once, file is probably corrupted.\", len));\n }\n byte[] buf = new byte[len];\n int n = 0;\n while (n < len) {\n int count = inputStream.read(buf, n, len - n);\n if (count < 0) {\n throw new EOFException();\n }\n n += count;\n }\n return buf;\n }",
"@Override\n public int read(byte[] b, int off, int len) throws IOException {\n checkIfClosed();\n if ((off | len | (off + len) | (b.length - (off + len))) < 0) {\n throw new IndexOutOfBoundsException();\n } else if (len == 0) {\n return 0;\n }\n\n int n = 0;\n while (true) {\n int nread = readRedisIfNeed(b, off + n, len - n);\n if (nread <= 0) {\n return (n == 0) ? nread : n;\n }\n n += nread;\n if (n >= len) {\n return n;\n }\n if (available() <= 0) {\n return n;\n }\n }\n }",
"public byte read(int param1) {\n }"
] | [
"0.7169526",
"0.71375245",
"0.6979293",
"0.6801586",
"0.678593",
"0.67720264",
"0.66610336",
"0.65501696",
"0.6539517",
"0.64246726",
"0.6423467",
"0.6419992",
"0.63656574",
"0.6351531",
"0.6350876",
"0.6345735",
"0.633467",
"0.6304066",
"0.6271189",
"0.6270446",
"0.6252252",
"0.62456673",
"0.62363356",
"0.62291753",
"0.62118715",
"0.62060255",
"0.62057257",
"0.6192994",
"0.6160493",
"0.6140423",
"0.61357546",
"0.61223173",
"0.6112977",
"0.6091917",
"0.6081654",
"0.5992717",
"0.59843886",
"0.59837645",
"0.59698147",
"0.5956634",
"0.59466255",
"0.5941591",
"0.59399855",
"0.5923058",
"0.59094125",
"0.5875409",
"0.5858884",
"0.58448666",
"0.58346874",
"0.5828118",
"0.5814288",
"0.58109516",
"0.581042",
"0.5807812",
"0.5807467",
"0.58053154",
"0.57971966",
"0.5793886",
"0.5781097",
"0.57597196",
"0.5751653",
"0.5739827",
"0.57381165",
"0.571577",
"0.5709586",
"0.57090807",
"0.5704729",
"0.5704268",
"0.5694064",
"0.5689009",
"0.5685352",
"0.5675222",
"0.5673184",
"0.5664653",
"0.56588346",
"0.5625393",
"0.56204283",
"0.56128776",
"0.5607072",
"0.56026995",
"0.560126",
"0.55981004",
"0.5593217",
"0.55899507",
"0.5589083",
"0.5588722",
"0.55839664",
"0.5561622",
"0.55580115",
"0.5552151",
"0.55477035",
"0.55402833",
"0.5538129",
"0.5537832",
"0.5535046",
"0.55340225",
"0.5532901",
"0.55262613",
"0.5520645",
"0.5517929",
"0.5501247"
] | 0.0 | -1 |
Read bytes from device. | public int read(byte[] bytes) throws FTD2XXException {
return read(bytes, 0, bytes.length);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public byte[] read();",
"public byte[] readBytes() {\n try {\n int len = available();\n if (len > 0) {\n byte bytes[] = new byte[len];\n m_DataInputStream.read(bytes);\n\n return bytes;\n }\n else {\n return new byte[0];\n }\n }\n catch (IOException e) {\n return new byte[0];\n }\n }",
"byte[] readBytes();",
"int getBytesRead() {\n \treturn _read + _o;\n }",
"public void readBytes(byte[] buffer, int offset, int length) throws IOException;",
"public void readBytes(byte[] buffer) throws IOException;",
"private int read()\n\t{\n\t\ttry{\n\t\t\twhile(dev_in.available()==0);\n\t\t\treturn dev_in.read();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t\n\t\t}\n\t\treturn -1;\n\t}",
"@Override\n public void read(byte[] bytes) {\n }",
"public int read(byte[] p_bytes, int p_offset, int p_length);",
"@Override\n\tpublic byte readByte() throws IOException {\n\t\treturn (byte) (_buff.get() & 0xFF);\n\t}",
"public byte[] readBytes() throws IOException {\n int length = in.readInt();\n byte[] bytes = new byte[length];\n in.readFully(bytes);\n return bytes;\n }",
"@Override\n public byte[] readBytes(int length) throws IOException\n {\n if (length < 0)\n {\n throw new IOException(\"length is negative\");\n }\n if (randomAccessRead.length() - randomAccessRead.getPosition() < length)\n {\n throw new IOException(\"Premature end of buffer reached\");\n }\n byte[] bytes = new byte[length];\n for (int i = 0; i < length; i++)\n bytes[i] = readByte();\n return bytes;\n }",
"public abstract byte[] readData(int address, int length);",
"public int readBytes(FileChannel out, long position, int length)\r\n/* 903: */ throws IOException\r\n/* 904: */ {\r\n/* 905:910 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 906:911 */ return super.readBytes(out, position, length);\r\n/* 907: */ }",
"int read(byte[] buffer, int bufferOffset, int length) throws IOException;",
"public byte[] readBytes() {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn null;\n\n\t\tsynchronized (buffer) {\n\t\t\tint length = bufferLast - bufferIndex;\n\t\t\tbyte outgoing[] = new byte[length];\n\t\t\tSystem.arraycopy(buffer, bufferIndex, outgoing, 0, length);\n\n\t\t\tbufferIndex = 0; // rewind\n\t\t\tbufferLast = 0;\n\t\t\treturn outgoing;\n\t\t}\n\t}",
"@Override\n public int read(byte[] bytes, int offset, int count) throws IOException {\n return updateBytesRead(super.read(bytes, offset, count));\n }",
"protected final int readBytes()\n throws IOException\n {\n _inputPtr = 0;\n _inputEnd = 0;\n if (_inputSource != null) {\n int count = _inputSource.read(_inputBuffer, 0, _inputBuffer.length);\n if (count > 0) {\n _inputEnd = count;\n }\n return count;\n }\n return -1;\n }",
"void readBytes(byte[] into, int offset, int toRead) throws IOException;",
"public byte[] readBytes() throws IOException {\n\t InputStream in = socket.getInputStream();\n\t DataInputStream dis = new DataInputStream(in);\n\n\t int len = dis.readInt();\n\t byte[] data = new byte[len];\n\t if (len > 0) {\n\t dis.readFully(data);\n\t }\n\t return data;\n\t}",
"@Override\n public int read() throws IOException {\n if (pos >= count) {\n fill();\n if (pos >= count) {\n return -1;\n }\n }\n checkIfClosed();\n return buf[pos++] & 0xFF;\n }",
"public int readBytes(GatheringByteChannel out, int length)\r\n/* 508: */ throws IOException\r\n/* 509: */ {\r\n/* 510:520 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 511:521 */ return super.readBytes(out, length);\r\n/* 512: */ }",
"@Override\n protected int readDataBlock(byte[] readData) throws IOException {\n final UsbSerialDriver serialDriver = serialDriverRef.get();\n if(serialDriver == null)\n throw new IOException(\"Device is unavailable.\");\n\n int iavailable = 0;\n try {\n iavailable = serialDriver.read(readData, 200);\n } catch (NullPointerException e) {\n final String errorMsg = \"Error Reading: \" + e.getMessage()\n + \"\\nAssuming inaccessible USB device. Closing connection.\";\n Log.e(TAG, errorMsg, e);\n throw new IOException(errorMsg, e);\n }\n\n if (iavailable == 0)\n iavailable = -1;\n return iavailable;\n }",
"public int read() throws IOException {\n if (!started) {\n start();\n }\n if (buffer == null)\n return -1;\n if (bufpos == buflen) {\n buffer = refreshBuffer();\n if (buffer == null)\n return -1;\n }\n return 0xFF & buffer[bufpos++];\n }",
"public abstract void readBytes(PacketBuffer buffer) throws IOException;",
"@Override\n\tpublic int read() throws IOException {\n\t\tif (buf.isReadable()) {\n return buf.readByte() & 0xff;\n }\n return -1;\n\t}",
"@Override\n public byte readByte() throws IOException\n {\n if (!hasRemaining())\n {\n throw new IOException(\"End off buffer reached\");\n }\n return (byte) randomAccessRead.read();\n }",
"public int readBytes(GatheringByteChannel out, int length)\r\n/* 219: */ throws IOException\r\n/* 220: */ {\r\n/* 221:240 */ checkReadableBytes(length);\r\n/* 222:241 */ int readBytes = getBytes(this.readerIndex, out, length, true);\r\n/* 223:242 */ this.readerIndex += readBytes;\r\n/* 224:243 */ return readBytes;\r\n/* 225: */ }",
"public byte[] readBytes(int inNumberMessages) throws IOException;",
"byte readByte();",
"native byte[] _readSerialPort(int port);",
"public int readByte() {\n waitForData();\n try {\n return m_DataInputStream.readByte();\n }\n catch (IOException e) {\n return 256;\n }\n }",
"@Override\n public int readUnsignedByte() throws IOException\n {\n if (!hasRemaining())\n {\n throw new IOException(\"End off buffer reached\");\n }\n return randomAccessRead.read();\n }",
"private void readSerial() {\r\n\t\twhile(myPort.available() > 0) {\r\n\t\t\tbyte[] newBuffer = new byte[512];\r\n\t\t\tint n = myPort.readBytes(newBuffer);\r\n\t\t\tnewBuffer = PApplet.subset(newBuffer,0,n);\r\n\t\t\tif(debug) System.out.println(\"readSerial() reads in \"+n+\" bytes\");\r\n\t\t\tif(newBuffer != null) {\r\n\t\t\t\tinBuffer = PApplet.concat(inBuffer, newBuffer);\r\n\t\t\t\tif(inBuffer.length > 0) checkBuffer();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public int readBytes(FileChannel out, long position, int length)\r\n/* 228: */ throws IOException\r\n/* 229: */ {\r\n/* 230:248 */ checkReadableBytes(length);\r\n/* 231:249 */ int readBytes = getBytes(this.readerIndex, out, position, length, true);\r\n/* 232:250 */ this.readerIndex += readBytes;\r\n/* 233:251 */ return readBytes;\r\n/* 234: */ }",
"public int read ()\n {\n return (_buffer.remaining() > 0) ? (_buffer.get() & 0xFF) : -1;\n }",
"public long currentReadBytes()\r\n/* 209: */ {\r\n/* 210:398 */ return this.currentReadBytes.get();\r\n/* 211: */ }",
"public int readByte() {\n try {\n return in.read();\n } catch (IOException e) {\n print(\"Error reading byte from \" + portName);\n }\n return -1;\n }",
"byte read()\n \tthrows IOException {\n \t//\n \t// Ensure that one byte can be read\n \tensureContinuousBlock(1);\n \t//\n \t// Simply return the byte\n \treturn _random[_o++];\n }",
"private void fetch(byte[] target) throws IOException {\n\t\tint actuallyRead=0;\n\t\tint required=target.length;\n\t\tlog.debug(\"Need to read \"+required+\" to fill buffer\");\n\t\twhile(actuallyRead<required) {\n\t\t\tactuallyRead+=fromDevice.read(target,actuallyRead,required-actuallyRead);\n\t\t\tlog.debug(\"Now read \"+actuallyRead);\n\t\t}\n\t}",
"private synchronized byte[] mReadBytes(InputStream oInput){\n nDataRcvd= nBytesAvailable(oInput);\n if (nDataRcvd==0)\n return null;\n byte[] buffer = new byte[nDataRcvd];\n try {\n nDataRcvd=oInput.read(buffer); //Read is a blocking operation\n } catch (IOException e) {\n e.printStackTrace();\n buffer= null;\n }\n return buffer;\n }",
"@Override\n\tpublic int read(byte[] b, int off, int len) {\n\t\treturn super.read(b, off, len);\n\t}",
"public int read() throws IOException {\n/* 173 */ long next = this.pointer + 1L;\n/* 174 */ long pos = readUntil(next);\n/* 175 */ if (pos >= next) {\n/* 176 */ byte[] buf = this.data.get((int)(this.pointer >> 9L));\n/* */ \n/* 178 */ return buf[(int)(this.pointer++ & 0x1FFL)] & 0xFF;\n/* */ } \n/* 180 */ return -1;\n/* */ }",
"@Override\n public int read(byte[] byteBuffer) throws IOException {\n return this.read(byteBuffer, 0, byteBuffer.length);\n }",
"public byte readByte() throws IOException {\n return in.readByte();\n }",
"private int readByte() {\n return src[srcPos++] & 0xFF;\n }",
"@Override\n\tpublic int read() {\n\t\treturn super.read();\n\t}",
"public int readBytes(byte outgoing[]) {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn 0;\n\n\t\tsynchronized (buffer) {\n\t\t\tint length = bufferLast - bufferIndex;\n\t\t\tif (length > outgoing.length)\n\t\t\t\tlength = outgoing.length;\n\t\t\tSystem.arraycopy(buffer, bufferIndex, outgoing, 0, length);\n\n\t\t\tbufferIndex += length;\n\t\t\tif (bufferIndex == bufferLast) {\n\t\t\t\tbufferIndex = 0; // rewind\n\t\t\t\tbufferLast = 0;\n\t\t\t}\n\t\t\treturn length;\n\t\t}\n\t}",
"private final byte[] readBuffer( int size ) throws IOException {\n byte[] buffer = new byte[ size ];\n\n int read = 0;\n while ( read < size ) {\n int next = dataSource.read( buffer, read, size - read );\n if ( next < 0 ) throw new IOException( \"End of Stream\" );\n read += next;\n\t}\n return buffer;\n }",
"protected final int readBytesAt(int offset)\n throws IOException\n {\n // shouldn't modify mBytePtr, assumed to be 'offset'\n if (_inputSource != null) {\n int count = _inputSource.read(_inputBuffer, offset, _inputBuffer.length - offset);\n if (count > 0) {\n _inputEnd += count;\n }\n return count;\n }\n return -1;\n }",
"public abstract byte[] read() throws IOException, IllegalArgumentException , IllegalStateException;",
"public byte readByte() throws SerialPortException {\n\t\tif (this.available()) {\n\t\t\tbyte [] byteRead = port.readBytes(1);\n\t\t\tif(debug) {\n\t\t\t\tString byteName = String.format(\"%02x\", byteRead[0]);\n\t\t\t\tSystem.out.print(byteName + \"\\t\");;\n\t\t\t}\n\t\t\treturn byteRead[0];\n\t\t\t\n\t\t}\n\t\treturn -1;\n\t\t\n\t}",
"public ByteBuf readBytes(OutputStream out, int length)\r\n/* 501: */ throws IOException\r\n/* 502: */ {\r\n/* 503:514 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 504:515 */ return super.readBytes(out, length);\r\n/* 505: */ }",
"@Override\n public int read() throws IOException {\n int r = -1;\n \n if (encryptedDataBuffer!=null && pos>=encryptedDataBuffer.length && !closed)\n fillBuffer();\n \n if (encryptedDataBuffer!=null && pos<encryptedDataBuffer.length)\n r = (int)encryptedDataBuffer[pos++]; // next element in the buffer\n return r;\n }",
"public byte readByte() throws IOException {\n\t\treturn (byte) read();\n\t}",
"public void read( int readIndex, byte[] array, int firstIndex,\n\t\t\tint count );",
"@Override\n\tpublic int available() throws IOException {\n\t\treturn buf.readableBytes();\n\t}",
"@Override\n\tpublic int read(byte[] array) throws IOException {\n\t\treturn read(array, 0, array.length);\n\t}",
"public static void main(String[] args) {\n byte[] arr = {1, 2, 3, 4, 5};\n\n try {\n ByteArrayInputStream one = new ByteArrayInputStream(arr);\n System.out.println(one.available());\n\n for(int i = 0; i< arr.length; i++){\n\n int data = one.read();\n System.out.println(data);\n }\n one.close();\n }catch (Exception e){\n System.out.println(e.getMessage());\n\n\n }\n\n }",
"@Override\n public int read(byte[] b, int off, int len) throws IOException\n {\n try\n {\n byte [] buff = fAVMRemote.readInput(fTicketHolder.getTicket(), fHandle, len);\n if (buff.length == 0)\n {\n return -1;\n }\n System.arraycopy(buff, 0, b, off, buff.length);\n return buff.length;\n }\n catch (Exception e)\n {\n throw new IOException(\"Remote I/O Error.\");\n }\n }",
"public int read(byte[] b, int off, int len) throws IOException {\n/* 232 */ if (b == null) {\n/* 233 */ throw new NullPointerException();\n/* */ }\n/* 235 */ if (off < 0 || len < 0 || off + len > b.length) {\n/* 236 */ throw new IndexOutOfBoundsException();\n/* */ }\n/* 238 */ if (len == 0) {\n/* 239 */ return 0;\n/* */ }\n/* */ \n/* 242 */ long pos = readUntil(this.pointer + len);\n/* */ \n/* 244 */ if (pos <= this.pointer) {\n/* 245 */ return -1;\n/* */ }\n/* */ \n/* 248 */ byte[] buf = this.data.get((int)(this.pointer >> 9L));\n/* 249 */ int nbytes = Math.min(len, 512 - (int)(this.pointer & 0x1FFL));\n/* 250 */ System.arraycopy(buf, (int)(this.pointer & 0x1FFL), b, off, nbytes);\n/* */ \n/* 252 */ this.pointer += nbytes;\n/* 253 */ return nbytes;\n/* */ }",
"@Override public int read(byte[] bytes, int cbReadExpected, long timeout) throws RobotCoreException, InterruptedException\n {\n Thread.sleep(3, 500000);\n\n // We need to set the 'sync' bytes correctly, and set the sizes, or our\n // read result will be rejected. We might consider zeroing the buffer here.\n bytes[0] = (byte)0x33;\n bytes[1] = (byte)0xCC;\n bytes[4] = (byte)cbExpected;\n return cbReadExpected;\n }",
"public byte[] readBytes(int inNumberMessages, long timeoutMs) throws IOException, TimeoutException;",
"public byte[] Get_Data() throws IOException {\n byte[] ret = new byte[512];\n DatagramPacket packet = new DatagramPacket(ret, ret.length);\n\n socket.receive(packet);\n\n length = ret.length;\n return ret;\n }",
"@Override\n\tpublic int read() {\n\t\tint lowByte = getFirstArg();\n\t\tint highByte = getSecondArg();\n\t\tint address = highByte;\n\t\taddress = address << 8;\n\t\taddress |= lowByte;\n\t\treturn CpuMem.getInstance().readMem(address);\n\t}",
"public byte[] syncRead(int address, int length)\n {\n final String funcName = \"syncRead\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API, \"addr=%d,len=%d\", address, length);\n }\n\n if (!isEnabled())\n {\n throw new RuntimeException(\"Device is not enabled, must call setEnabled first.\");\n }\n\n byte[] data = null;\n if (requestQueue != null)\n {\n TrcEvent completionEvent = new TrcEvent(instanceName + \".\" + funcName);\n Request request = new Request(null, true, address, null, length, completionEvent, null);\n TrcRequestQueue<Request>.RequestEntry entry = requestQueue.add(request, this::requestHandler, false);\n\n while (!completionEvent.isSignaled())\n {\n Thread.yield();\n }\n\n if (!entry.isCanceled())\n {\n data = request.buffer;\n request.buffer = null;\n }\n }\n else\n {\n data = readData(address, length);\n }\n\n if (debugEnabled)\n {\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%s\",\n data == null? \"null\": Arrays.toString(data));\n }\n\n return data;\n }",
"int read(long pos, byte[] buf)throws IOException;",
"@Override\n protected int read0() throws IOException {\n if (this.delegate.hasRemaining()) {\n return this.delegate.get() & 0xFF;\n } else {\n return RESULT_EOF;\n }\n }",
"public int getBytes(int index, GatheringByteChannel out, int length)\r\n/* 183: */ throws IOException\r\n/* 184: */ {\r\n/* 185:211 */ ensureAccessible();\r\n/* 186:212 */ return getBytes(index, out, length, false);\r\n/* 187: */ }",
"private final int readBytes( int number ) throws IOException {\n byte[] buffer = new byte[ number ];\n int read = dataSource.read( buffer, 0, number );\n\n if ( read != buffer.length ) {\n if ( read < 0 ) throw new IOException( \"End of Stream\" );\n for ( int i = read; i < buffer.length; i++ ) buffer[ i ] = (byte)readByte();\n }\n \n\t/**\n * Create integer\n */\n switch ( number ) {\n case 1: return (buffer[ 0 ] & 0xff);\n\t case 2: return (buffer[ 0 ] & 0xff) | ((buffer[ 1 ] & 0xff) << 8);\n\t case 3: return (buffer[ 0 ] & 0xff) | ((buffer[ 1 ] & 0xff) << 8) | ((buffer[ 2 ] & 0xff) << 16);\n\t case 4: return (buffer[ 0 ] & 0xff) | ((buffer[ 1 ] & 0xff) << 8) | ((buffer[ 2 ] & 0xff) << 16) | ((buffer[ 3 ] & 0xff) << 24);\n\t default: throw new IOException( \"Illegal Read quantity\" );\n\t}\n }",
"public int read() throws IOException {\n if(available() == 0) throw new EOFException(\"No data available.\");\n int ret = data.getFirst().get();\n updateBufferList();\n return ret;\n }",
"public int read(byte[] dest) {\n try {\n return in.read(dest);\n } catch (IOException e) {\n print(\"Error reading bytes from \" + portName);\n }\n return -1;\n }",
"public int getBytes(int index, GatheringByteChannel out, int length)\r\n/* 252: */ throws IOException\r\n/* 253: */ {\r\n/* 254:268 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 255:269 */ return super.getBytes(index, out, length);\r\n/* 256: */ }",
"public ByteBuf readBytes(int length)\r\n/* 459: */ {\r\n/* 460:472 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 461:473 */ return super.readBytes(length);\r\n/* 462: */ }",
"public int getBytes(int index, FileChannel out, long position, int length)\r\n/* 889: */ throws IOException\r\n/* 890: */ {\r\n/* 891:898 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 892:899 */ return super.getBytes(index, out, position, length);\r\n/* 893: */ }",
"public int read(/*OUT*/byte[][] bytes, int nBytesToRead) throws com.sun.star.io.IOException, com.sun.star.uno.RuntimeException {\n\t\tif(_firstRead) {\n\t\t\t_firstRead = false;\n\n\t\t\tnotifyListeners_open();\n\t\t}\n\n\t\tString errMessage = null;\n\n\t\tint read_bytes = 0;\n\t\tbytes[0] = new byte[nBytesToRead];\n\n\t\ttry {\n\t\t\tint count ;\n\n\t\t\tdo {\n\t\t\t\tcount = _inputStream.read(bytes[0], read_bytes, nBytesToRead - read_bytes);\n\t\t\t\tif(count == -1)\n\t\t\t\t\terrMessage = \"EOF reached - \" + getDescription();\n\n\t\t\t\tread_bytes += count;\n\t\t\t}\n\t\t\twhile(read_bytes >= 0 && read_bytes < nBytesToRead && count >= 0);\n\t\t}\n\t\tcatch(IOException ioException) {\n\t\t\tif(DEBUG) {\n\t\t\t\tSystem.err.println(\"##### \" + getClass().getName() + \".read - exception occurred:\" + ioException);\n\t\t\t\tioException.printStackTrace();\n\t\t\t}\n\n\t\t\terrMessage = ioException.toString();\n\t\t}\n\n\t\tif(errMessage != null) {\n\t\t\tcom.sun.star.io.IOException unoIOException = new com.sun.star.io.IOException(errMessage);\n\t\t\tnotifyListeners_error(unoIOException);\n\n\t\t\tthrow unoIOException;\n\t\t}\n\n\t\tif (DEBUG) System.err.println(\"##### \" + getClass().getName() + \" - read byte:\" + read_bytes + \" \" + bytes[0]);\n\n\t\treturn read_bytes;\n\t}",
"private byte[] read(SelectionKey key) throws IOException {\n\t\tSocketChannel channel = (SocketChannel)key.channel();\n\t\treadBuffer.clear();\n\t\tint length = channel.read(readBuffer);\n\t\tbyte[] data = null;\n\n\t\t// Checking whether length is negative, to overcome java.lang.NegativeArraySizeException -- Aditya\n\t\tif (length == -1) {\n\t\t\tmClientStatus.remove(channel);\n\t\t\tclients--;\n\t\t\tchannel.close();\n\t\t\tkey.cancel();\n\t\t\tthrow new IOException(\"No data found\");\n\t\t}else {\n\t\t\treadBuffer.flip();\n\t\t\tdata = new byte[length];\n\t\t\treadBuffer.get(data, 0, length);\t\t\t\t\t\t\n\t\t}\n\t\treturn data;\n\t}",
"public byte readByte() {\n return ((byte) readLong());\n }",
"public byte[] readRawByte() throws IOException {\n byte[] bytes = new byte[2];\n bytes[0] = (byte) Type.BYTE.code;\n in.readFully(bytes, 1, 1);\n return bytes;\n }",
"void read(Buffer buffer);",
"private static byte[] readBytes(InputStream input, int length) throws IOException {\n\n int count = 0;\n byte[] buffer = new byte[length];\n\n while (count < length) count += input.read(buffer, count, length - count);\n\n return buffer;\n }",
"int readNonBlocking(byte[] buffer, int offset, int length);",
"private void readMoreBytesFromStream() throws IOException {\n if (!innerStreamHasMoreData) {\n return;\n }\n\n int bufferSpaceAvailable = buffer.length - bytesInBuffer;\n if (bufferSpaceAvailable <= 0) {\n return;\n }\n\n int bytesRead =\n stream.read(buffer, bytesInBuffer, bufferSpaceAvailable);\n\n if (bytesRead == -1) {\n innerStreamHasMoreData = false;\n } else {\n bytesInBuffer += bytesRead;\n }\n }",
"int getBytesInBufferAvailable() {\n if (this.count == this.pos) return 0;\n else return this.buf.length - this.pos;\n }",
"private void read() throws IOException {\n\n ByteBuffer buffer = ByteBuffer.allocate(ProjectProperties.BYTE_BUFFER_SIZE);\n int read = 0;\n // Keep trying to write until all bytes are read\n while (buffer.hasRemaining() && read != -1) {\n read = channel.read(buffer);\n }\n checkIfClosed(read);// check for error\n\n // convert byte[] to hash string\n String rt = RandomByteAndHashCode.SHA1FromBytes(buffer.array());\n if(ProjectProperties.DEBUG_FULL){\n System.out.println(\"Read: \" + rt );\n }\n\n write(rt.getBytes()); // write hash string\n }",
"public native void get(byte[] bytes);",
"public byte[] readBytes(int inNumberMessages, int[] outNumberMessages) throws IOException;",
"@Override\r\n\tpublic void read(IByteBuffer source, long offset) {\n\r\n\t}",
"@Override\n public int read(final byte[] b) throws IOException {\n return input.read(b);\n }",
"public byte[] read()\n {\n\t\t//byte[] responseData = ISOUtil.hex2byte(\"070088888888\");\n\t\tbyte[] responseData = null;\n try\n {\n\t\t\tlong start = System.currentTimeMillis();\n\t\t\tlong end = System.currentTimeMillis();\n\n\t\t\t\twhile ((end - start) < 45000)\n\t\t\t\t{\n System.out.println(\"++++++ If parameters : read() : \"+inputdata+\" : \"+dataRec);\n\t\t\t\t\tif (inputdata != null && dataRec)\n\t\t\t\t\t{\n System.out.println(\"INSIDE IF -read()\");\n\t\t\t\t\t\tresponseData = ISOUtil.hex2byte(inputdata);\n\t\t\t\t\t\tdataRec=false;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t} else\n\t\t\t\t\t{\n System.out.println(\"INSIDE else -read()\");\n\t\t\t\t\t\tend = System.currentTimeMillis();\n\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t}\n\t\t\t\t}\n\n }\n catch(Exception e)\n {\n System.err.println(\"ConnectionHandlerLocal$WriterThread.run(): Interrupted!\");\n ezlink.info(\"SerialConnection : read() - Exception: \");\n ezlink.error(new Object(), e);\n }\n finally\n\t\t{\n\t\t\tSystem.out.println(\"&&&&&&&&&& In Finally... &&&&&&&\");\n ezlink.info(\"&&&&&&&&&& In Finally... &&&&&&& \");\n\t\t\tdataHandler.strISODump.setLength(0);\n\t\t\tif(sPort!=null)\n\t\t\t{\n\t\t\t\tsPort.close();\n\t\t\t\tSystem.out.println(\"Port Closed\");\n ezlink.info(\"&&&&&&&&&& Port Closed... &&&&&&& \");\n\t\t\t}\n\t \t}\n\n\t \tSystem.out.println(\"inside read() : ReadData=\"+new String(responseData));\n ezlink.info(\"ReadData= : \"+new String(responseData));\n\n return responseData;\n }",
"public int read() {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn -1;\n\n\t\tsynchronized (buffer) {\n\t\t\tint outgoing = buffer[bufferIndex++] & 0xff;\n\t\t\tif (bufferIndex == bufferLast) { // rewind\n\t\t\t\tbufferIndex = 0;\n\t\t\t\tbufferLast = 0;\n\t\t\t}\n\t\t\treturn outgoing;\n\t\t}\n\t}",
"public byte[] syncRead(int length)\n {\n return syncRead(-1, length);\n }",
"public void read(byte[] buffer) throws Exception {\n read(buffer, 0);\n }",
"private int castingRead(byte[] outputBuf, int off, int len)\n throws IOException {\n if (charBuffer == null) {\n charBuffer = new char[DEFAULT_BUFFER_CAPACITY];\n }\n if (len > DEFAULT_BUFFER_CAPACITY) {\n len = DEFAULT_BUFFER_CAPACITY;\n }\n int numRead = in.read(charBuffer, 0, len);\n for (int ix=0; ix<numRead; ix++) {\n outputBuf[off+ix] = (byte)charBuffer[ix];\n }\n return numRead;\n }",
"public int read() throws IOException;",
"@Override\n\tpublic long bytesRead() {\n\t\treturn 0;\n\t}",
"public int read (byte[] b, int off, int len)\n {\n // if they want no bytes, we give them no bytes; this is\n // purportedly the right thing to do regardless of whether we're\n // at EOF or not\n if (len == 0) {\n return 0;\n }\n\n // trim the amount to be read to what is available; if they wanted\n // bytes and we have none, return -1 to indicate EOF\n if ((len = Math.min(len, _buffer.remaining())) == 0) {\n return -1;\n }\n\n _buffer.get(b, off, len);\n return len;\n }",
"public byte[] readBytes(int len) throws IOException {\n if (len > 1024) {\n throw new RuntimeException(String.format(\"Attempted to read %d bytes at once, file is probably corrupted.\", len));\n }\n byte[] buf = new byte[len];\n int n = 0;\n while (n < len) {\n int count = inputStream.read(buf, n, len - n);\n if (count < 0) {\n throw new EOFException();\n }\n n += count;\n }\n return buf;\n }",
"@Override\n public int read(byte[] b, int off, int len) throws IOException {\n checkIfClosed();\n if ((off | len | (off + len) | (b.length - (off + len))) < 0) {\n throw new IndexOutOfBoundsException();\n } else if (len == 0) {\n return 0;\n }\n\n int n = 0;\n while (true) {\n int nread = readRedisIfNeed(b, off + n, len - n);\n if (nread <= 0) {\n return (n == 0) ? nread : n;\n }\n n += nread;\n if (n >= len) {\n return n;\n }\n if (available() <= 0) {\n return n;\n }\n }\n }",
"public byte read(int param1) {\n }"
] | [
"0.7169608",
"0.71375805",
"0.69793785",
"0.6801597",
"0.67860234",
"0.6772104",
"0.6661117",
"0.6550225",
"0.6539615",
"0.64247817",
"0.6423547",
"0.64200693",
"0.63657755",
"0.6351583",
"0.6350983",
"0.6345774",
"0.6334697",
"0.630416",
"0.6271326",
"0.62705445",
"0.62523",
"0.62457174",
"0.62364274",
"0.6229244",
"0.62119424",
"0.62060827",
"0.6205841",
"0.61930543",
"0.6160513",
"0.61405647",
"0.61358917",
"0.61223507",
"0.6113064",
"0.609201",
"0.60817033",
"0.5992746",
"0.5984406",
"0.59838396",
"0.5969884",
"0.5956673",
"0.5946657",
"0.594161",
"0.5940058",
"0.59230834",
"0.59095085",
"0.5875494",
"0.58588946",
"0.5844922",
"0.58347136",
"0.5828252",
"0.5814386",
"0.5811064",
"0.58104664",
"0.58078814",
"0.5807549",
"0.5805338",
"0.57972825",
"0.5781156",
"0.57598174",
"0.575174",
"0.5739881",
"0.5738252",
"0.5715819",
"0.5709633",
"0.5709113",
"0.5704855",
"0.5704332",
"0.5694149",
"0.5689113",
"0.56853795",
"0.5675244",
"0.5673276",
"0.56647354",
"0.565885",
"0.56254625",
"0.56205094",
"0.5612955",
"0.5607099",
"0.5602878",
"0.5601308",
"0.5598187",
"0.559328",
"0.55899626",
"0.5589112",
"0.5588807",
"0.5584048",
"0.5561655",
"0.55581117",
"0.55521935",
"0.55478036",
"0.5540299",
"0.5538209",
"0.55378956",
"0.5535142",
"0.5534099",
"0.5532892",
"0.5526305",
"0.55207175",
"0.5517999",
"0.5501318"
] | 0.57940155 | 57 |
Read a byte from device. | public int read() throws FTD2XXException {
byte[] c = new byte[1];
int ret = read(c);
return (ret == 1) ? (c[0] & 0xFF) : -1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic byte readByte() throws IOException {\n\t\treturn (byte) (_buff.get() & 0xFF);\n\t}",
"public byte readByte() throws IOException {\n return in.readByte();\n }",
"byte readByte();",
"public byte readByte() throws SerialPortException {\n\t\tif (this.available()) {\n\t\t\tbyte [] byteRead = port.readBytes(1);\n\t\t\tif(debug) {\n\t\t\t\tString byteName = String.format(\"%02x\", byteRead[0]);\n\t\t\t\tSystem.out.print(byteName + \"\\t\");;\n\t\t\t}\n\t\t\treturn byteRead[0];\n\t\t\t\n\t\t}\n\t\treturn -1;\n\t\t\n\t}",
"public int readByte() {\n try {\n return in.read();\n } catch (IOException e) {\n print(\"Error reading byte from \" + portName);\n }\n return -1;\n }",
"public int readByte() {\n waitForData();\n try {\n return m_DataInputStream.readByte();\n }\n catch (IOException e) {\n return 256;\n }\n }",
"public byte readByte() {\n return ((byte) readLong());\n }",
"public byte readByte() throws IOException {\n\t\treturn (byte) read();\n\t}",
"@Override\n public byte readByte() throws IOException\n {\n if (!hasRemaining())\n {\n throw new IOException(\"End off buffer reached\");\n }\n return (byte) randomAccessRead.read();\n }",
"private int readByte() {\n return src[srcPos++] & 0xFF;\n }",
"byte read()\n \tthrows IOException {\n \t//\n \t// Ensure that one byte can be read\n \tensureContinuousBlock(1);\n \t//\n \t// Simply return the byte\n \treturn _random[_o++];\n }",
"@Override\n\tpublic int ReadByte()\n\t{\n//C# TO JAVA CONVERTER WARNING: Unsigned integer types have no direct equivalent in Java:\n//ORIGINAL LINE: byte[] oneByteBuffer = new byte[1];\n\t\tbyte[] oneByteBuffer = new byte[1];\n\t\tint num = Read(oneByteBuffer, 0, 1);\n\t\tif (num <= 0)\n\t\t{\n\t\t\t// return -1 to indicate that no byte was read.\n\t\t\treturn -1;\n\t\t}\n\t\treturn oneByteBuffer[0];\n\t}",
"public byte read(int param1) {\n }",
"@Override\n public int readUnsignedByte() throws IOException\n {\n if (!hasRemaining())\n {\n throw new IOException(\"End off buffer reached\");\n }\n return randomAccessRead.read();\n }",
"@Override\r\n\tpublic byte getByte(int pos) {\n\t\treturn buffer.get(pos);\r\n\t}",
"protected byte readByte(final int adr) {\r\n return this.memory[adr];\r\n }",
"public byte getByte(int offset)\n {\n return readMode(offset + 0xA0000);\n }",
"@Override\n\tpublic int read() {\n\t\tint lowByte = getFirstArg();\n\t\tint highByte = getSecondArg();\n\t\tint address = highByte;\n\t\taddress = address << 8;\n\t\taddress |= lowByte;\n\t\treturn CpuMem.getInstance().readMem(address);\n\t}",
"public static byte readByte(final long address) {\n\t\treturn Unsafe.get().getByte(address);\n\t}",
"public byte[] read();",
"private int read()\n\t{\n\t\ttry{\n\t\t\twhile(dev_in.available()==0);\n\t\t\treturn dev_in.read();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t\n\t\t}\n\t\treturn -1;\n\t}",
"public byte get(int address) {\n try {\n return direct_read(address);\n } catch (ArrayIndexOutOfBoundsException e) {\n throw new AddressOutOfBoundsException(address);\n }\n }",
"public static byte readByte(InputStream input) throws IOException {\n\n return readBytes(input, 1)[0];\n }",
"public final int getByte() throws IOException {\r\n b3 = 0;\r\n\r\n b3 = (tagBuffer[bPtr] & 0xff);\r\n bPtr += 1;\r\n\r\n return b3;\r\n }",
"public byte readByte()\r\n/* 387: */ {\r\n/* 388:400 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 389:401 */ return super.readByte();\r\n/* 390: */ }",
"@Override\n\tpublic int read() throws IOException {\n\t\tif (buf.isReadable()) {\n return buf.readByte() & 0xff;\n }\n return -1;\n\t}",
"public int read ()\n {\n return (_buffer.remaining() > 0) ? (_buffer.get() & 0xFF) : -1;\n }",
"public final int read() {\r\n \r\n if (cbyte == size) {\r\n return -1;\r\n }\r\n \r\n // Otherwise, the byte under the head at \"cbyte\" can be read.\r\n \r\n if (bytenum == BYTES_IN_ELEMENT) {\r\n // Read next byte\r\n offset++;\r\n elem = data[offset];\r\n bytenum = 0;\r\n }\r\n \r\n int rval = 0;\r\n rval = elem & 0xff;\r\n \r\n // increase byte position\r\n elem = elem >>> 8; // unsigned SHR\r\n bytenum++;\r\n cbyte++;\r\n \r\n return rval;\r\n }",
"public abstract byte read_octet();",
"public int readUnsignedByte() throws IOException {\n\t\treturn read() | 0x00ff;\n\t}",
"@Override\n public int ReadStatusByte()\n throws IOException {\n\n int StatusByte;\n ShortByReference pShort = new ShortByReference();\n ByteByReference pByte = new ByteByReference();\n\n\n // read the status byte\n if (USE_4882 == true) {\n m_gpib32.ReadStatusByte(BOARD_NR, (short)m_UnitDescriptor, pShort);\n StatusByte = (int)pShort.getValue();\n } else {\n m_gpib32.ibrsp(m_UnitDescriptor, pByte);\n StatusByte = (int)pShort.getValue();\n }\n\n // error check\n String str = \"Could not read the Status Byte from the Instrument.\\n\";\n checkErrorGPIB(str, false);\n\n // return\n return StatusByte;\n }",
"boolean readByte(int c, String streamProvider) throws RawDataEventException ;",
"public byte readScalarByte() throws java.io.IOException;",
"public int read() throws IOException {\n/* 173 */ long next = this.pointer + 1L;\n/* 174 */ long pos = readUntil(next);\n/* 175 */ if (pos >= next) {\n/* 176 */ byte[] buf = this.data.get((int)(this.pointer >> 9L));\n/* */ \n/* 178 */ return buf[(int)(this.pointer++ & 0x1FFL)] & 0xFF;\n/* */ } \n/* 180 */ return -1;\n/* */ }",
"public static double readByte() {\n return Byte.parseByte(readString());\n }",
"@Override\n public int peekUnsignedByte(int offset) throws IOException\n {\n if (offset < 0)\n {\n throw new IOException(\"offset is negative\");\n }\n if (offset == 0)\n {\n return randomAccessRead.peek();\n }\n long currentPosition = randomAccessRead.getPosition();\n if (currentPosition + offset >= randomAccessRead.length())\n {\n throw new IOException(\"Offset position is out of range \" + (currentPosition + offset)\n + \" >= \" + randomAccessRead.length());\n }\n randomAccessRead.seek(currentPosition + offset);\n int peekValue = randomAccessRead.read();\n randomAccessRead.seek(currentPosition);\n return peekValue;\n }",
"public int read() throws IOException {\n if (!started) {\n start();\n }\n if (buffer == null)\n return -1;\n if (bufpos == buflen) {\n buffer = refreshBuffer();\n if (buffer == null)\n return -1;\n }\n return 0xFF & buffer[bufpos++];\n }",
"byte peekByte() throws IOException;",
"public UnsignedByte read(int index) {\n if (index > -1 && index < MEMORY_LENGTH) return memory[index];\n else throw new IndexOutOfBoundsException(\"Index \" + index + \" is out of bounds (0 - \" + MEMORY_LENGTH + \")\");\n }",
"public void onReadByte(ICPU cpu, int addr) {\n\t}",
"public int read(byte[] p_bytes, int p_offset, int p_length);",
"private byte nextByte(ByteBuffer inputBuffer) throws IOException {\n getAtLeastBytes(inputBuffer, 1);\n return inputBuffer.get();\n }",
"public byte getByte(int index) throws ArrayIndexOutOfBoundsException\n\t{\n\t\treturn bytes[index];\n\t}",
"public byte readByteNonBlock() {\n return ((byte) readLongNonBlock());\n }",
"public byte[] readRawByte() throws IOException {\n byte[] bytes = new byte[2];\n bytes[0] = (byte) Type.BYTE.code;\n in.readFully(bytes, 1, 1);\n return bytes;\n }",
"public byte getByte(int k) {\n if (this.inByteRange(k)) return (byte) this.data.get(k);\n return 0;\n }",
"@Override\n\tpublic int read() {\n\t\treturn super.read();\n\t}",
"public byte get(int addr) {\n return data[addr - start];\n }",
"@Override\n public int read() throws IOException {\n if (pos >= count) {\n fill();\n if (pos >= count) {\n return -1;\n }\n }\n checkIfClosed();\n return buf[pos++] & 0xFF;\n }",
"public byte read(int offset) throws IOException {\n\t\tif (ensureBuffer(offset, 1) > 0) {\n\t\t\tthis.pos = offset + 1;\n\t\t\treturn this.buffer[offset];\n\t\t}\n\t\tthrow new EOFException();\n\t}",
"native byte[] _readSerialPort(int port);",
"public int read() throws IOException;",
"int getBytesRead() {\n \treturn _read + _o;\n }",
"public static byte GetByte()\n\t{\n\t Random rand = new Random();\n\t return (byte)rand.nextInt(127);\n\t}",
"@Override\n\tpublic int read(byte[] b, int off, int len) {\n\t\treturn super.read(b, off, len);\n\t}",
"public int read() {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn -1;\n\n\t\tsynchronized (buffer) {\n\t\t\tint outgoing = buffer[bufferIndex++] & 0xff;\n\t\t\tif (bufferIndex == bufferLast) { // rewind\n\t\t\t\tbufferIndex = 0;\n\t\t\t\tbufferLast = 0;\n\t\t\t}\n\t\t\treturn outgoing;\n\t\t}\n\t}",
"public short readUnsignedByte()\r\n/* 393: */ {\r\n/* 394:406 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 395:407 */ return super.readUnsignedByte();\r\n/* 396: */ }",
"byte get(int index);",
"public int readValue() { \n\t\treturn (port.readRawValue() - offset); \n\t}",
"public char readChar() {\n return ((char) readLong());\n }",
"public byte toByte() {\n return this.toByteArray()[0];\n }",
"protected byte _getByte(int index)\r\n/* 323: */ {\r\n/* 324:337 */ return HeapByteBufUtil.getByte(this.array, index);\r\n/* 325: */ }",
"public int get_reading() {\n return (int)getUIntBEElement(offsetBits_reading(), 16);\n }",
"public int readRaw()\r\n {\r\n \tbyte[] buf = new byte[1];\r\n \treadRaw(buf, 0, 1);\r\n \treturn buf[0] & 0xFF;\r\n }",
"public byte get() throws TLVEncodingException {\r\n\t\tif (cursor >= limit)\r\n\t\t\tthrow new TLVEncodingException(\"End of buffer\");\r\n\r\n\t\treturn buffer[cursor++];\r\n\t}",
"@Override\n public int read(final byte[] b) throws IOException {\n return input.read(b);\n }",
"protected byte direct_read(int address) {\n return segment_data[address];\n }",
"int read(byte[] buffer, int bufferOffset, int length) throws IOException;",
"public int read(byte[] b, int off, int len) throws IOException {\n/* 232 */ if (b == null) {\n/* 233 */ throw new NullPointerException();\n/* */ }\n/* 235 */ if (off < 0 || len < 0 || off + len > b.length) {\n/* 236 */ throw new IndexOutOfBoundsException();\n/* */ }\n/* 238 */ if (len == 0) {\n/* 239 */ return 0;\n/* */ }\n/* */ \n/* 242 */ long pos = readUntil(this.pointer + len);\n/* */ \n/* 244 */ if (pos <= this.pointer) {\n/* 245 */ return -1;\n/* */ }\n/* */ \n/* 248 */ byte[] buf = this.data.get((int)(this.pointer >> 9L));\n/* 249 */ int nbytes = Math.min(len, 512 - (int)(this.pointer & 0x1FFL));\n/* 250 */ System.arraycopy(buf, (int)(this.pointer & 0x1FFL), b, off, nbytes);\n/* */ \n/* 252 */ this.pointer += nbytes;\n/* 253 */ return nbytes;\n/* */ }",
"public int read() throws IOException {\n ensureOpen();\n return read(singleByteBuf, 0, 1) == -1 ? -1 : Byte.toUnsignedInt(singleByteBuf[0]);\n }",
"public abstract char read_char();",
"byte getEByte();",
"public int read() {\n return (readInt());\n }",
"public byte getByte(int index)\r\n/* 317: */ {\r\n/* 318:331 */ ensureAccessible();\r\n/* 319:332 */ return _getByte(index);\r\n/* 320: */ }",
"public int read()\n throws IOException\n {\n if ( position == this.buffer.length() )\n {\n return -1;\n }\n\n return this.buffer.charAt( this.position++ );\n }",
"@Override\n public int read(byte[] byteBuffer) throws IOException {\n return this.read(byteBuffer, 0, byteBuffer.length);\n }",
"@ZenCodeType.Caster\n @ZenCodeType.Method\n default @ZenCodeType.Unsigned byte asByte() {\n \n return notSupportedCast(BasicTypeID.BYTE);\n }",
"public byte getData() {\n return this.data;\n }",
"public byte getByte(int columnIndex) throws SQLException {\n\n try {\n debugCodeCall(\"getByte\", columnIndex);\n return get(columnIndex).getByte();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public byte getReadId() {\n return this.btReadId;\n }",
"public abstract byte[] readData(int address, int length);",
"public char readChar() throws IOException {\n\t\tbyte[] b = new byte[2];\n\n\t\tif (read(b, 0, 2) < 2) {\n\t\t\tthrow new EOFException();\n\t\t}\n\n\t\tchar c = (char) (b[0] << 8 | (b[1] & 0xFF));\n\t\treturn c;\n\t}",
"public byte get_byte() {\n return local_byte;\n }",
"public byte getByte(int row, int column) {\n return columns[column].getByte(row);\n }",
"void ReadStatusByte(int boardID, short addr, ShortByReference result);",
"public final int read() throws IOException {\r\n\t\treturn f.read();\r\n\t}",
"@Override\n public int read() throws IOException {\n return input.read();\n }",
"public int read(byte[] dest) {\n try {\n return in.read(dest);\n } catch (IOException e) {\n print(\"Error reading bytes from \" + portName);\n }\n return -1;\n }",
"public byte get(int addr) throws ProgramException {\n return getSegment(addr, true).get(addr);\n }",
"public int read(int i);",
"@Override\n\tpublic byte readScalarByte() throws IOException {\n\t\treturn 0;\n\t}",
"public byte readAsByte(int nrBits) {\n return readAsByte(bitPos, nrBits, ByteOrder.BigEndian);\n }",
"byte decodeByte();",
"public byte getByte(String key)\n {\n return getByte(key, (byte) 0);\n }",
"public byte[] readBytes() {\n try {\n int len = available();\n if (len > 0) {\n byte bytes[] = new byte[len];\n m_DataInputStream.read(bytes);\n\n return bytes;\n }\n else {\n return new byte[0];\n }\n }\n catch (IOException e) {\n return new byte[0];\n }\n }",
"public byte getByte(String key) {\n Object value = get(key);\n return ((value instanceof Long) ? (byte)((Long)value).intValue() : 0);\n }",
"byte[] readBytes();",
"public byte getByte(int index)\r\n/* 137: */ {\r\n/* 138:154 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 139:155 */ return super.getByte(index);\r\n/* 140: */ }",
"public byte getIOPortByte(int portAddress)\n {\n byte returnValue = 0; // Data returned from requested port\n\n // Ensure the correct ports are used for colour/monochrome mode\n if ((portAddress >= 0x3B0) && (portAddress <= 0x3BF) && (videocard.miscOutputRegister.ioAddressSelect != 0))\n {\n // Adapter is in colour mode, but addressing monochrome mode ports, so return default value\n return (byte) (0xFF);\n }\n if ((portAddress >= 0x3D0) && (portAddress <= 0x3DF) && (videocard.miscOutputRegister.ioAddressSelect == 0))\n {\n // Adapter is in monochrome mode, but addressing colour mode ports, so return default value\n return (byte) (0xFF);\n }\n\n switch (portAddress)\n {\n case 0x3BA: // Input Status 1 (monochrome)\n case 0x3CA: // Feature Control\n // TODO: According to specs, all bits of the FC are reserved, just return???\n case 0x3DA: // Input Status 1 (colour)\n \n long microSeconds;\n short vertResolution;\n \n // Reset flip-flop to address mode when reading these ports\n videocard.attributeController.dataAddressFlipFlop = false;\n\n \n // Reset displayDisabled, only done here\n videocard.displayDisabled = 0;\n\n // Determine the current internal 'time', in microseconds.\n // This can be inferred from total instructions executed divided by the instructions executed per second (approx.) \n// microSeconds = (long) (( ((double)cpu.getCurrentInstructionNumber()/cpu.getIPS())) * 1000000);\n\n // Determine vertical display size from verticalSyncPol and horizontalSyncPol\n // This is needed to calculate the vertical retrace period\n switch ((videocard.miscOutputRegister.verticalSyncPol << 1) | videocard.miscOutputRegister.horizontalSyncPol)\n {\n case 0:\n vertResolution = 200;\n break;\n case 1:\n vertResolution = 400;\n break;\n case 2:\n vertResolution = 350;\n break;\n default:\n vertResolution = 480;\n break;\n }\n \n // Check if a horizontal (colour) or vertical (mono) retrace is in progress; if so, also set displayDisabled\n // Similar to Bochs, use a 72 Hz vertical frequency. This means a retrace happens\n// if ((microSeconds % 13888) < 70)\n// {\n// videocard.vertRetrace = 1;\n// videocard.displayDisabled = 1;\n// }\n// else\n {\n videocard.vertRetrace = 0;\n }\n// if ((microSeconds % (13888 / vertResolution)) == 0)\n// {\n// videocard.horizRetrace = 1;\n// videocard.displayDisabled = 1;\n// }\n// else\n {\n videocard.horizRetrace = 0;\n }\n\n return (byte) (videocard.vertRetrace << 3 | videocard.displayDisabled);\n\n case 0x3C0: // Attribute Controller Attribute Address Register (only read when the flipflop is in address mode)\n // Check flipflop state\n if (!videocard.attributeController.dataAddressFlipFlop)\n {\n return (byte) ((videocard.attributeController.paletteAddressSource << 5) | videocard.attributeController.index);\n }\n else\n {\n logger.log(Level.SEVERE, \"[\" + MODULE_TYPE + \"]\" + \" Port [0x3C0] read, but flipflop not set to address mode\");\n return 0;\n }\n\n case 0x3C1: // Attribute Controller Data Read Register, uses index to determine register to read\n switch (videocard.attributeController.index)\n {\n // Palette registers\n case 0x00:\n case 0x01:\n case 0x02:\n case 0x03:\n case 0x04:\n case 0x05:\n case 0x06:\n case 0x07:\n case 0x08:\n case 0x09:\n case 0x0A:\n case 0x0B:\n case 0x0C:\n case 0x0D:\n case 0x0E:\n case 0x0F:\n returnValue = videocard.attributeController.paletteRegister[videocard.attributeController.index];\n return (returnValue);\n\n case 0x10: // Mode control register\n return ((byte) ((videocard.attributeController.modeControlReg.graphicsEnable << 0) | \n (videocard.attributeController.modeControlReg.monoColourEmu << 1) | \n (videocard.attributeController.modeControlReg.lineGraphicsEnable << 2) | \n (videocard.attributeController.modeControlReg.blinkIntensity << 3) |\n (videocard.attributeController.modeControlReg.pixelPanningMode << 5) | \n (videocard.attributeController.modeControlReg.colour8Bit << 6) | \n (videocard.attributeController.modeControlReg.paletteBitsSelect << 7)));\n\n case 0x11: // Overscan colour\n return (videocard.attributeController.overscanColour);\n\n case 0x12: // Colour plane enable\n return (videocard.attributeController.colourPlaneEnable);\n\n case 0x13: // Horizontal pixel panning\n return (videocard.attributeController.horizPixelPanning);\n\n case 0x14: // Colour select\n return (videocard.attributeController.colourSelect);\n\n default:\n logger.log(Level.SEVERE, \"[\" + MODULE_TYPE + \"]\" + \" Port [0x3C1] reads unknown register 0x\" + Integer.toHexString(videocard.attributeController.index).toUpperCase());\n return 0;\n }\n\n case 0x3C2: // Input Status 0\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" Port [0x3C1] reads Input Status #0; ignored\");\n return 0;\n\n case 0x3C3: // VGA Enable Register\n return (videocard.vgaEnabled) ? (byte) 1 : 0;\n\n case 0x3C4: // Sequencer Index\n return (videocard.sequencer.index);\n\n case 0x3C5: // Sequencer Registers 0-4, based on index\n switch (videocard.sequencer.index)\n {\n case 0: // Asynch and synch reset\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" Port [0x3C5] reads sequencer reset\");\n return (byte) (videocard.sequencer.aSynchReset | (videocard.sequencer.synchReset << 1));\n\n case 1: // Clocking mode\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" Port [0x3C5] reads sequencer clocking mode\");\n return (videocard.sequencer.clockingMode);\n\n case 2: // Map mask register\n return (videocard.sequencer.mapMask);\n\n case 3: // Character map select register\n return (videocard.sequencer.characterMapSelect);\n\n case 4: // Memory mode register */\n return ((byte) ((videocard.sequencer.extendedMemory << 1) | \n (videocard.sequencer.oddEvenDisable << 2) | \n (videocard.sequencer.chainFourEnable << 3)));\n\n default:\n logger.log(Level.SEVERE, \"[\" + MODULE_TYPE + \"]\" + \" Port [0x3C5] reads unknown register 0x\" + Integer.toHexString(videocard.sequencer.index).toUpperCase());\n return 0;\n }\n\n case 0x3C6: // Pixel mask register\n return (videocard.colourRegister.pixelMask);\n\n case 0x3C7: // DAC state register\n return (videocard.colourRegister.dacState);\n\n case 0x3C8: // DAC write index\n return (videocard.colourRegister.dacWriteAddress);\n\n case 0x3C9: // DAC Data Register; read colour values in sets of three. Automatically increment counter and address\n // Ensure DAC read state is enabled\n if (videocard.colourRegister.dacState == 0x03)\n {\n switch (videocard.colourRegister.dacReadCounter)\n {\n // Cast dacReadAddress to integer as it will be used as index\n case 0:\n returnValue = videocard.pixels[((int) videocard.colourRegister.dacReadAddress) & 0xFF].red;\n break;\n case 1:\n returnValue = videocard.pixels[((int) videocard.colourRegister.dacReadAddress) & 0xFF].green;\n break;\n case 2:\n returnValue = videocard.pixels[((int) videocard.colourRegister.dacReadAddress) & 0xFF].blue;\n break;\n default:\n // Shouldn't get to here...\n returnValue = 0;\n }\n // Automatically increment counter\n videocard.colourRegister.dacReadCounter++;\n \n // Set of 3 read; reset counter and increment address\n if (videocard.colourRegister.dacReadCounter >= 3)\n {\n videocard.colourRegister.dacReadCounter = 0;\n videocard.colourRegister.dacReadAddress++;\n }\n }\n else\n { // DAC read state not enabled, return ones\n returnValue = 0x3F;\n }\n return (returnValue);\n\n case 0x3CC: // Miscellaneous Output\n return ((byte) (((videocard.miscOutputRegister.ioAddressSelect & 0x01) << 0) | \n ((videocard.miscOutputRegister.ramEnable & 0x01) << 1) | \n ((videocard.miscOutputRegister.clockSelect & 0x03) << 2) | \n ((videocard.miscOutputRegister.lowHighPage & 0x01) << 5) | \n ((videocard.miscOutputRegister.horizontalSyncPol & 0x01) << 6) | \n ((videocard.miscOutputRegister.verticalSyncPol & 0x01) << 7)));\n\n case 0x3CD: // GDC segment select ???\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" Port [0x3CD] read; unknown register, returned 0x00\");\n return 0x00;\n\n case 0x3CE: // Graphics Controller index\n return (byte) (videocard.graphicsController.index);\n\n case 0x3CF: // Graphics Controller Registers 0-8, based on index\n switch (videocard.graphicsController.index)\n {\n case 0: // Set/Reset\n return (videocard.graphicsController.setReset);\n\n case 1: // Enable Set/Reset\n return (videocard.graphicsController.enableSetReset);\n\n case 2: // Colour Compare\n return (videocard.graphicsController.colourCompare);\n\n case 3: // Data Rotate\n return ((byte) (((videocard.graphicsController.dataOperation & 0x03) << 3) |\n ((videocard.graphicsController.dataRotate & 0x07) << 0)));\n\n case 4: // Read Map Select\n return (videocard.graphicsController.readMapSelect);\n\n case 5: // Graphics Mode\n returnValue = (byte) (((videocard.graphicsController.shift256Reg & 0x03) << 5) |\n ((videocard.graphicsController.hostOddEvenEnable & 0x01) << 4) |\n ((videocard.graphicsController.readMode & 0x01) << 3) |\n ((videocard.graphicsController.writeMode & 0x03) << 0));\n\n if (videocard.graphicsController.hostOddEvenEnable != 0 || videocard.graphicsController.shift256Reg != 0)\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" io read 0x3cf: reg 05 = \" + returnValue);\n return (returnValue);\n\n case 6: // Miscellaneous Graphics\n return ((byte) (((videocard.graphicsController.memoryMapSelect & 0x03) << 2) |\n ((videocard.graphicsController.hostOddEvenEnable & 0x01) << 1) |\n ((videocard.graphicsController.alphaNumDisable & 0x01) << 0)));\n \n case 7: // Colour Don't Care\n return (videocard.graphicsController.colourDontCare);\n\n case 8: // Bit Mask\n return (videocard.graphicsController.bitMask);\n\n default:\n logger.log(Level.SEVERE, \"[\" + MODULE_TYPE + \"]\" + \" Port [0x3CF] reads unknown register 0x\" + Integer.toHexString(videocard.graphicsController.index).toUpperCase());\n return (0);\n }\n\n case 0x3D4: // CRTC Index Register\n return (videocard.crtControllerRegister.index);\n\n case 0x3B5: // CRTC Registers (monochrome emulation modes)\n case 0x3D5: // CRTC Registers (colour emulation modes)\n if (videocard.crtControllerRegister.index > 0x18)\n {\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" Port [0x\" + Integer.toHexString(portAddress).toUpperCase() +\"] reads unknown register 0x\" + Integer.toHexString(videocard.crtControllerRegister.index).toUpperCase());\n return (0);\n }\n return videocard.crtControllerRegister.regArray[videocard.crtControllerRegister.index];\n\n case 0x3B4: // CRTC Index Register (monochrome emulation modes)\n // TODO: return crt index register here, same as 0x3D4???\n case 0x3CB: // GDC segment select register 2 ???\n default:\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" Port [0x\" + Integer.toHexString(portAddress).toUpperCase() +\"] read; unknown register, returned 0x00\");\n return 0;\n }\n\n }",
"public final int read(byte[] b) throws IOException {\r\n\t\treturn f.read( b );\r\n\t}"
] | [
"0.774722",
"0.7703511",
"0.7664928",
"0.7610027",
"0.7593587",
"0.75607425",
"0.7548158",
"0.7483211",
"0.7402012",
"0.7316877",
"0.7154806",
"0.7039784",
"0.6985628",
"0.6966188",
"0.683422",
"0.67879856",
"0.67461586",
"0.67049974",
"0.6688117",
"0.6661571",
"0.6642518",
"0.66026425",
"0.65867466",
"0.65801126",
"0.65757465",
"0.6525893",
"0.6520747",
"0.6474795",
"0.64658755",
"0.6457951",
"0.6418742",
"0.6322587",
"0.624553",
"0.62342995",
"0.62099063",
"0.6207889",
"0.61955434",
"0.61786187",
"0.6134776",
"0.6111485",
"0.6095771",
"0.6090688",
"0.60835135",
"0.6080973",
"0.605941",
"0.60400707",
"0.6033377",
"0.6027993",
"0.6011015",
"0.6000655",
"0.59977365",
"0.5992984",
"0.59840906",
"0.5979618",
"0.59712034",
"0.5964304",
"0.5961625",
"0.59452707",
"0.5925184",
"0.5920749",
"0.59062654",
"0.5892026",
"0.5869773",
"0.5822952",
"0.5813685",
"0.5813149",
"0.57969165",
"0.5781974",
"0.5777665",
"0.5733034",
"0.5723991",
"0.5722489",
"0.5713563",
"0.569412",
"0.56880516",
"0.5686759",
"0.567657",
"0.5675104",
"0.5670478",
"0.5666842",
"0.56273156",
"0.5621255",
"0.56174445",
"0.56138456",
"0.56078535",
"0.56042063",
"0.56010264",
"0.55984104",
"0.55933386",
"0.55931884",
"0.55921274",
"0.558649",
"0.55848426",
"0.5577691",
"0.55737233",
"0.55735266",
"0.55659974",
"0.5557399",
"0.5550688",
"0.5549486"
] | 0.6163515 | 38 |
Read given bytes from device. | public byte[] read(int number) throws FTD2XXException {
byte[] ret = new byte[number];
int actually = read(ret);
if (actually != number) {
byte[] shrink = new byte[actually];
System.arraycopy(ret, 0, shrink, 0, actually);
return shrink;
}
else {
return ret;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int read(byte[] p_bytes, int p_offset, int p_length);",
"public byte[] read();",
"public void readBytes(byte[] buffer, int offset, int length) throws IOException;",
"@Override\n public void read(byte[] bytes) {\n }",
"byte[] readBytes();",
"public void readBytes(byte[] buffer) throws IOException;",
"int read(byte[] buffer, int bufferOffset, int length) throws IOException;",
"void readBytes(byte[] into, int offset, int toRead) throws IOException;",
"public abstract byte[] readData(int address, int length);",
"@Override\n public int read(byte[] bytes, int offset, int count) throws IOException {\n return updateBytesRead(super.read(bytes, offset, count));\n }",
"public byte[] readBytes() {\n try {\n int len = available();\n if (len > 0) {\n byte bytes[] = new byte[len];\n m_DataInputStream.read(bytes);\n\n return bytes;\n }\n else {\n return new byte[0];\n }\n }\n catch (IOException e) {\n return new byte[0];\n }\n }",
"int getBytesRead() {\n \treturn _read + _o;\n }",
"public int read(byte[] bytes) throws FTD2XXException {\n return read(bytes, 0, bytes.length);\n }",
"private int read()\n\t{\n\t\ttry{\n\t\t\twhile(dev_in.available()==0);\n\t\t\treturn dev_in.read();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t\n\t\t}\n\t\treturn -1;\n\t}",
"public abstract void readBytes(PacketBuffer buffer) throws IOException;",
"@Override\n\tpublic int read(byte[] b, int off, int len) {\n\t\treturn super.read(b, off, len);\n\t}",
"@Override\n\tpublic byte readByte() throws IOException {\n\t\treturn (byte) (_buff.get() & 0xFF);\n\t}",
"public void read( int readIndex, byte[] array, int firstIndex,\n\t\t\tint count );",
"public int read(byte[] b, int off, int len) throws IOException {\n/* 232 */ if (b == null) {\n/* 233 */ throw new NullPointerException();\n/* */ }\n/* 235 */ if (off < 0 || len < 0 || off + len > b.length) {\n/* 236 */ throw new IndexOutOfBoundsException();\n/* */ }\n/* 238 */ if (len == 0) {\n/* 239 */ return 0;\n/* */ }\n/* */ \n/* 242 */ long pos = readUntil(this.pointer + len);\n/* */ \n/* 244 */ if (pos <= this.pointer) {\n/* 245 */ return -1;\n/* */ }\n/* */ \n/* 248 */ byte[] buf = this.data.get((int)(this.pointer >> 9L));\n/* 249 */ int nbytes = Math.min(len, 512 - (int)(this.pointer & 0x1FFL));\n/* 250 */ System.arraycopy(buf, (int)(this.pointer & 0x1FFL), b, off, nbytes);\n/* */ \n/* 252 */ this.pointer += nbytes;\n/* 253 */ return nbytes;\n/* */ }",
"byte readByte();",
"public int readBytes(FileChannel out, long position, int length)\r\n/* 903: */ throws IOException\r\n/* 904: */ {\r\n/* 905:910 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 906:911 */ return super.readBytes(out, position, length);\r\n/* 907: */ }",
"int read(long pos, byte[] buf)throws IOException;",
"public void read(int param1, byte[] param2, int param3, int param4) {\n }",
"public int readBytes(GatheringByteChannel out, int length)\r\n/* 508: */ throws IOException\r\n/* 509: */ {\r\n/* 510:520 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 511:521 */ return super.readBytes(out, length);\r\n/* 512: */ }",
"public abstract byte[] read() throws IOException, IllegalArgumentException , IllegalStateException;",
"public int readBytes(GatheringByteChannel out, int length)\r\n/* 219: */ throws IOException\r\n/* 220: */ {\r\n/* 221:240 */ checkReadableBytes(length);\r\n/* 222:241 */ int readBytes = getBytes(this.readerIndex, out, length, true);\r\n/* 223:242 */ this.readerIndex += readBytes;\r\n/* 224:243 */ return readBytes;\r\n/* 225: */ }",
"@Override\n public byte[] readBytes(int length) throws IOException\n {\n if (length < 0)\n {\n throw new IOException(\"length is negative\");\n }\n if (randomAccessRead.length() - randomAccessRead.getPosition() < length)\n {\n throw new IOException(\"Premature end of buffer reached\");\n }\n byte[] bytes = new byte[length];\n for (int i = 0; i < length; i++)\n bytes[i] = readByte();\n return bytes;\n }",
"public int read(byte[] bytes, int offset, int lenght) throws FTD2XXException {\n Memory memory = new Memory(lenght);\n IntByReference read = new IntByReference();\n\n ensureFTStatus(ftd2xx.FT_Read(ftHandle, memory, lenght, read));\n\n memory.read(0, bytes, offset, lenght);\n\n return read.getValue();\n }",
"@Override\n\tpublic int read() throws IOException {\n\t\tif (buf.isReadable()) {\n return buf.readByte() & 0xff;\n }\n return -1;\n\t}",
"native byte[] _readSerialPort(int port);",
"@Override public int read(byte[] bytes, int cbReadExpected, long timeout) throws RobotCoreException, InterruptedException\n {\n Thread.sleep(3, 500000);\n\n // We need to set the 'sync' bytes correctly, and set the sizes, or our\n // read result will be rejected. We might consider zeroing the buffer here.\n bytes[0] = (byte)0x33;\n bytes[1] = (byte)0xCC;\n bytes[4] = (byte)cbExpected;\n return cbReadExpected;\n }",
"@Override\n protected int readDataBlock(byte[] readData) throws IOException {\n final UsbSerialDriver serialDriver = serialDriverRef.get();\n if(serialDriver == null)\n throw new IOException(\"Device is unavailable.\");\n\n int iavailable = 0;\n try {\n iavailable = serialDriver.read(readData, 200);\n } catch (NullPointerException e) {\n final String errorMsg = \"Error Reading: \" + e.getMessage()\n + \"\\nAssuming inaccessible USB device. Closing connection.\";\n Log.e(TAG, errorMsg, e);\n throw new IOException(errorMsg, e);\n }\n\n if (iavailable == 0)\n iavailable = -1;\n return iavailable;\n }",
"public byte[] readBytes(int inNumberMessages) throws IOException;",
"@Override\n public int read() throws IOException {\n if (pos >= count) {\n fill();\n if (pos >= count) {\n return -1;\n }\n }\n checkIfClosed();\n return buf[pos++] & 0xFF;\n }",
"private void readSerial() {\r\n\t\twhile(myPort.available() > 0) {\r\n\t\t\tbyte[] newBuffer = new byte[512];\r\n\t\t\tint n = myPort.readBytes(newBuffer);\r\n\t\t\tnewBuffer = PApplet.subset(newBuffer,0,n);\r\n\t\t\tif(debug) System.out.println(\"readSerial() reads in \"+n+\" bytes\");\r\n\t\t\tif(newBuffer != null) {\r\n\t\t\t\tinBuffer = PApplet.concat(inBuffer, newBuffer);\r\n\t\t\t\tif(inBuffer.length > 0) checkBuffer();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public byte read(int param1) {\n }",
"@Override\n public int read(byte[] byteBuffer) throws IOException {\n return this.read(byteBuffer, 0, byteBuffer.length);\n }",
"@Override\n\tpublic int read(byte[] array) throws IOException {\n\t\treturn read(array, 0, array.length);\n\t}",
"public int read() throws IOException {\n/* 173 */ long next = this.pointer + 1L;\n/* 174 */ long pos = readUntil(next);\n/* 175 */ if (pos >= next) {\n/* 176 */ byte[] buf = this.data.get((int)(this.pointer >> 9L));\n/* */ \n/* 178 */ return buf[(int)(this.pointer++ & 0x1FFL)] & 0xFF;\n/* */ } \n/* 180 */ return -1;\n/* */ }",
"private void fetch(byte[] target) throws IOException {\n\t\tint actuallyRead=0;\n\t\tint required=target.length;\n\t\tlog.debug(\"Need to read \"+required+\" to fill buffer\");\n\t\twhile(actuallyRead<required) {\n\t\t\tactuallyRead+=fromDevice.read(target,actuallyRead,required-actuallyRead);\n\t\t\tlog.debug(\"Now read \"+actuallyRead);\n\t\t}\n\t}",
"public int read(/*OUT*/byte[][] bytes, int nBytesToRead) throws com.sun.star.io.IOException, com.sun.star.uno.RuntimeException {\n\t\tif(_firstRead) {\n\t\t\t_firstRead = false;\n\n\t\t\tnotifyListeners_open();\n\t\t}\n\n\t\tString errMessage = null;\n\n\t\tint read_bytes = 0;\n\t\tbytes[0] = new byte[nBytesToRead];\n\n\t\ttry {\n\t\t\tint count ;\n\n\t\t\tdo {\n\t\t\t\tcount = _inputStream.read(bytes[0], read_bytes, nBytesToRead - read_bytes);\n\t\t\t\tif(count == -1)\n\t\t\t\t\terrMessage = \"EOF reached - \" + getDescription();\n\n\t\t\t\tread_bytes += count;\n\t\t\t}\n\t\t\twhile(read_bytes >= 0 && read_bytes < nBytesToRead && count >= 0);\n\t\t}\n\t\tcatch(IOException ioException) {\n\t\t\tif(DEBUG) {\n\t\t\t\tSystem.err.println(\"##### \" + getClass().getName() + \".read - exception occurred:\" + ioException);\n\t\t\t\tioException.printStackTrace();\n\t\t\t}\n\n\t\t\terrMessage = ioException.toString();\n\t\t}\n\n\t\tif(errMessage != null) {\n\t\t\tcom.sun.star.io.IOException unoIOException = new com.sun.star.io.IOException(errMessage);\n\t\t\tnotifyListeners_error(unoIOException);\n\n\t\t\tthrow unoIOException;\n\t\t}\n\n\t\tif (DEBUG) System.err.println(\"##### \" + getClass().getName() + \" - read byte:\" + read_bytes + \" \" + bytes[0]);\n\n\t\treturn read_bytes;\n\t}",
"@Override\n public int read(byte[] b, int off, int len) throws IOException\n {\n try\n {\n byte [] buff = fAVMRemote.readInput(fTicketHolder.getTicket(), fHandle, len);\n if (buff.length == 0)\n {\n return -1;\n }\n System.arraycopy(buff, 0, b, off, buff.length);\n return buff.length;\n }\n catch (Exception e)\n {\n throw new IOException(\"Remote I/O Error.\");\n }\n }",
"@Override\r\n\tpublic void read(IByteBuffer source, long offset) {\n\r\n\t}",
"private int readByte() {\n return src[srcPos++] & 0xFF;\n }",
"@Override\n\tpublic int read() {\n\t\tint lowByte = getFirstArg();\n\t\tint highByte = getSecondArg();\n\t\tint address = highByte;\n\t\taddress = address << 8;\n\t\taddress |= lowByte;\n\t\treturn CpuMem.getInstance().readMem(address);\n\t}",
"public byte[] readBytes() throws IOException {\n int length = in.readInt();\n byte[] bytes = new byte[length];\n in.readFully(bytes);\n return bytes;\n }",
"public int readBytes(FileChannel out, long position, int length)\r\n/* 228: */ throws IOException\r\n/* 229: */ {\r\n/* 230:248 */ checkReadableBytes(length);\r\n/* 231:249 */ int readBytes = getBytes(this.readerIndex, out, position, length, true);\r\n/* 232:250 */ this.readerIndex += readBytes;\r\n/* 233:251 */ return readBytes;\r\n/* 234: */ }",
"@Override\n public int read(final byte[] b) throws IOException {\n return input.read(b);\n }",
"public native void get(byte[] bytes);",
"public void read(byte[] buffer, int offset) throws Exception {\n read(new CCompatibleInputStream(new ByteArrayInputStream(buffer, offset,\n buffer.length - offset)));\n }",
"@Override\n public int readUnsignedByte() throws IOException\n {\n if (!hasRemaining())\n {\n throw new IOException(\"End off buffer reached\");\n }\n return randomAccessRead.read();\n }",
"@Override\n public byte readByte() throws IOException\n {\n if (!hasRemaining())\n {\n throw new IOException(\"End off buffer reached\");\n }\n return (byte) randomAccessRead.read();\n }",
"public int read(byte[] dest) {\n try {\n return in.read(dest);\n } catch (IOException e) {\n print(\"Error reading bytes from \" + portName);\n }\n return -1;\n }",
"boolean readByte(int c, String streamProvider) throws RawDataEventException ;",
"@Override\n public int read(byte[] b, int off, int len) throws IOException {\n checkIfClosed();\n if ((off | len | (off + len) | (b.length - (off + len))) < 0) {\n throw new IndexOutOfBoundsException();\n } else if (len == 0) {\n return 0;\n }\n\n int n = 0;\n while (true) {\n int nread = readRedisIfNeed(b, off + n, len - n);\n if (nread <= 0) {\n return (n == 0) ? nread : n;\n }\n n += nread;\n if (n >= len) {\n return n;\n }\n if (available() <= 0) {\n return n;\n }\n }\n }",
"byte read()\n \tthrows IOException {\n \t//\n \t// Ensure that one byte can be read\n \tensureContinuousBlock(1);\n \t//\n \t// Simply return the byte\n \treturn _random[_o++];\n }",
"protected final int readBytes()\n throws IOException\n {\n _inputPtr = 0;\n _inputEnd = 0;\n if (_inputSource != null) {\n int count = _inputSource.read(_inputBuffer, 0, _inputBuffer.length);\n if (count > 0) {\n _inputEnd = count;\n }\n return count;\n }\n return -1;\n }",
"int readNonBlocking(byte[] buffer, int offset, int length);",
"@Override\n public int read(byte[] b, int off, int len) throws IOException {\n int readA = readFromSpare(b, off, len);\n\n // Now read from the stream \n int readB = source.read(b, off+readA, len-readA);\n \n // Figure out how much we've done\n int read;\n if(readB == -1 || readB == 0) {\n read = readA; \n } else {\n read = readA + readB;\n }\n \n // Fix up our data\n if(read > 0) {\n read = fixUp(b, off, read);\n }\n \n // All done\n return read;\n }",
"public int read() throws IOException {\n if (!started) {\n start();\n }\n if (buffer == null)\n return -1;\n if (bufpos == buflen) {\n buffer = refreshBuffer();\n if (buffer == null)\n return -1;\n }\n return 0xFF & buffer[bufpos++];\n }",
"private static int read(InputStream in, byte[] dest, int bytesToRead)\n\t\t\tthrows IOException {\n\t\tint read = 0;\n\t\tif (bytesToRead % 2 == 1)\n\t\t\tbytesToRead--;\n\t\tread = in.read(dest, 0, bytesToRead);\n\t\tif (read == -1)\n\t\t\treturn read;\n\t\twhile ((read % 2) == 1) {\n\t\t\tint k = in.read(dest, read, bytesToRead - read);\n\t\t\tif (k == -1)\n\t\t\t\treturn read;\n\t\t\tread += k;\n\t\t}\n\t\treturn read;\n\t}",
"void read(Buffer buffer);",
"protected final int readBytesAt(int offset)\n throws IOException\n {\n // shouldn't modify mBytePtr, assumed to be 'offset'\n if (_inputSource != null) {\n int count = _inputSource.read(_inputBuffer, offset, _inputBuffer.length - offset);\n if (count > 0) {\n _inputEnd += count;\n }\n return count;\n }\n return -1;\n }",
"public int readByte() {\n waitForData();\n try {\n return m_DataInputStream.readByte();\n }\n catch (IOException e) {\n return 256;\n }\n }",
"public int read (byte[] b, int off, int len)\n {\n // if they want no bytes, we give them no bytes; this is\n // purportedly the right thing to do regardless of whether we're\n // at EOF or not\n if (len == 0) {\n return 0;\n }\n\n // trim the amount to be read to what is available; if they wanted\n // bytes and we have none, return -1 to indicate EOF\n if ((len = Math.min(len, _buffer.remaining())) == 0) {\n return -1;\n }\n\n _buffer.get(b, off, len);\n return len;\n }",
"public int read(byte b[], int off, int len) throws IOException {\n if (!started) {\n start();\n }\n if (buffer == null || len == 0)\n return -1;\n \n if (bufpos == buflen) {\n buffer = refreshBuffer();\n if (buffer == null)\n return -1;\n }\n \n int available = 0;\n int remaining = len;\n while ( (available = buflen-bufpos) < remaining ) {\n System.arraycopy(buffer, bufpos, b, off, available);\n remaining -= available;\n off += available;\n buffer = refreshBuffer();\n if (buffer == null)\n return len-remaining;\n }\n System.arraycopy(buffer, bufpos, b, off, remaining);\n bufpos += remaining;\n return len; \n }",
"public static void main(String[] args) {\n byte[] arr = {1, 2, 3, 4, 5};\n\n try {\n ByteArrayInputStream one = new ByteArrayInputStream(arr);\n System.out.println(one.available());\n\n for(int i = 0; i< arr.length; i++){\n\n int data = one.read();\n System.out.println(data);\n }\n one.close();\n }catch (Exception e){\n System.out.println(e.getMessage());\n\n\n }\n\n }",
"private int castingRead(byte[] outputBuf, int off, int len)\n throws IOException {\n if (charBuffer == null) {\n charBuffer = new char[DEFAULT_BUFFER_CAPACITY];\n }\n if (len > DEFAULT_BUFFER_CAPACITY) {\n len = DEFAULT_BUFFER_CAPACITY;\n }\n int numRead = in.read(charBuffer, 0, len);\n for (int ix=0; ix<numRead; ix++) {\n outputBuf[off+ix] = (byte)charBuffer[ix];\n }\n return numRead;\n }",
"public int read ()\n {\n return (_buffer.remaining() > 0) ? (_buffer.get() & 0xFF) : -1;\n }",
"public byte readByte() throws IOException {\n return in.readByte();\n }",
"public byte[] readBytes() {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn null;\n\n\t\tsynchronized (buffer) {\n\t\t\tint length = bufferLast - bufferIndex;\n\t\t\tbyte outgoing[] = new byte[length];\n\t\t\tSystem.arraycopy(buffer, bufferIndex, outgoing, 0, length);\n\n\t\t\tbufferIndex = 0; // rewind\n\t\t\tbufferLast = 0;\n\t\t\treturn outgoing;\n\t\t}\n\t}",
"public void read(byte[] buffer) throws Exception {\n read(buffer, 0);\n }",
"public int read(byte b[]) throws IOException {\r\n return read(b, 0, b.length);\r\n }",
"public void readBytes(byte[] buf, int off, int len) throws IOException {\n\tint startIdx = off;\n\tint numRead = 0;\n\tif (pushedBack) {\n\t buf[startIdx] = backBuf;\n\t pushedBack = false;\n\t ++startIdx;\n\t ++numRead;\n\t}\n\twhile (numRead < len) {\n\t numRead += in.read(buf, startIdx + numRead, len - numRead);\n\t}\n\t// if (numRead != len) {\n\t// throw new IOException(\"Only read \" + numRead + \" out of \" +\n\t// len + \" bytes requested\");\n\t// }\n }",
"private final int readBytes( int number ) throws IOException {\n byte[] buffer = new byte[ number ];\n int read = dataSource.read( buffer, 0, number );\n\n if ( read != buffer.length ) {\n if ( read < 0 ) throw new IOException( \"End of Stream\" );\n for ( int i = read; i < buffer.length; i++ ) buffer[ i ] = (byte)readByte();\n }\n \n\t/**\n * Create integer\n */\n switch ( number ) {\n case 1: return (buffer[ 0 ] & 0xff);\n\t case 2: return (buffer[ 0 ] & 0xff) | ((buffer[ 1 ] & 0xff) << 8);\n\t case 3: return (buffer[ 0 ] & 0xff) | ((buffer[ 1 ] & 0xff) << 8) | ((buffer[ 2 ] & 0xff) << 16);\n\t case 4: return (buffer[ 0 ] & 0xff) | ((buffer[ 1 ] & 0xff) << 8) | ((buffer[ 2 ] & 0xff) << 16) | ((buffer[ 3 ] & 0xff) << 24);\n\t default: throw new IOException( \"Illegal Read quantity\" );\n\t}\n }",
"public byte[] readBytes() throws IOException {\n\t InputStream in = socket.getInputStream();\n\t DataInputStream dis = new DataInputStream(in);\n\n\t int len = dis.readInt();\n\t byte[] data = new byte[len];\n\t if (len > 0) {\n\t dis.readFully(data);\n\t }\n\t return data;\n\t}",
"@Override\n public int read() throws IOException {\n int r = -1;\n \n if (encryptedDataBuffer!=null && pos>=encryptedDataBuffer.length && !closed)\n fillBuffer();\n \n if (encryptedDataBuffer!=null && pos<encryptedDataBuffer.length)\n r = (int)encryptedDataBuffer[pos++]; // next element in the buffer\n return r;\n }",
"public ByteBuf readBytes(OutputStream out, int length)\r\n/* 501: */ throws IOException\r\n/* 502: */ {\r\n/* 503:514 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 504:515 */ return super.readBytes(out, length);\r\n/* 505: */ }",
"public int read(byte b[], int off, int len) throws IOException {\n\n\tif (len <= 0) {\n\t return 0;\n\t}\n\n\tint c = read();\n\tif (c == -1) {\n\t return -1;\n\t}\n\tb[off] = (byte)c;\n\n\tint i = 1;\n // Try to read up to len bytes or until no\n // more bytes can be read without blocking.\n \ttry {\n\t\tfor (; (i < len) && (in.available() > 0); i++) {\n\t\tc = read();\n\t\tif (c == -1) {\n\t\t break;\n\t\t}\n\t\tif (b != null) {\n\t\t b[off + i] = (byte)c;\n\t\t}\n\t }\n\t} catch (IOException ee) {\n\t}\n\treturn i;\n }",
"public ByteBuf readBytes(int length)\r\n/* 459: */ {\r\n/* 460:472 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 461:473 */ return super.readBytes(length);\r\n/* 462: */ }",
"public int readByte() {\n try {\n return in.read();\n } catch (IOException e) {\n print(\"Error reading byte from \" + portName);\n }\n return -1;\n }",
"void onMessageRead(byte[] data);",
"public static int read(int fd, byte[] buffer) {\n //invalid file descriptor\n if (fd < 3 || fd > 31) {\n return -1;\n }\n return Kernel.interrupt(Kernel.INTERRUPT_SOFTWARE, Kernel.READBUF, fd, buffer);\n }",
"@Override\n\tpublic int read() {\n\t\treturn super.read();\n\t}",
"public int read(final byte[] data, final int offset, final int len) throws IOException {\n checkOpened();\n return dis.read(data, offset, len);\n }",
"int readBytes(VRL vrl, long fileOffset, byte[] bytes, int bufferOffset, int nrBytes) throws VRLSyntaxException, IOException, VlException {\n String[] containerAndPath = getContainerAndPath(vrl);\n long end = fileOffset + nrBytes;\n Blob blob = getBlobstore().getBlob(containerAndPath[0], containerAndPath[1], range(fileOffset, end));\n int numRead = blob.getPayload().getInput().read(bytes, bufferOffset, nrBytes);\n// if (numRead != nrBytes) {\n// debug(\"-----------------Asked: \" + nrBytes + \" got: \" + numRead);\n// }\n return numRead;\n }",
"int readFrom(byte[] iStream, int pos, ORecordVersion version);",
"public byte[] syncRead(int address, int length)\n {\n final String funcName = \"syncRead\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API, \"addr=%d,len=%d\", address, length);\n }\n\n if (!isEnabled())\n {\n throw new RuntimeException(\"Device is not enabled, must call setEnabled first.\");\n }\n\n byte[] data = null;\n if (requestQueue != null)\n {\n TrcEvent completionEvent = new TrcEvent(instanceName + \".\" + funcName);\n Request request = new Request(null, true, address, null, length, completionEvent, null);\n TrcRequestQueue<Request>.RequestEntry entry = requestQueue.add(request, this::requestHandler, false);\n\n while (!completionEvent.isSignaled())\n {\n Thread.yield();\n }\n\n if (!entry.isCanceled())\n {\n data = request.buffer;\n request.buffer = null;\n }\n }\n else\n {\n data = readData(address, length);\n }\n\n if (debugEnabled)\n {\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%s\",\n data == null? \"null\": Arrays.toString(data));\n }\n\n return data;\n }",
"public abstract int Read(byte[] buf, int siz, int offset)\n\t\tthrows IOException, SMBException;",
"public byte[] readBytes(int inNumberMessages, int[] outNumberMessages) throws IOException;",
"private void readBytesWrap(int toRead, int offset) {\n\t\tint bytesRead = 0;\n\t\ttry {\n\t\t\twhile (bytesRead < toRead) {\n\n\t\t\t\tint actualRead = 0;\n\t\t\t\tsynchronized (ais) {\n\t\t\t\t\tactualRead = ais.read(rawBytes, bytesRead + offset, toRead - bytesRead);\n\t\t\t\t}\n\t\t\t\tif (-1 == actualRead) {\n\t\t\t\t\tSystem.out.println(\"!!!!!!! Looping with numLoops \" + numLoops);\n\t\t\t\t\tsetMillisecondPosition(0);\n\t\t\t\t\tif (numLoops != CCSoundIO.LOOP_CONTINUOUSLY) {\n\t\t\t\t\t\tnumLoops--;\n\t\t\t\t\t}\n\t\t\t\t} else if (actualRead == 0) {\n\t\t\t\t\t// we want to prevent an infinite loop\n\t\t\t\t\t// but this will hopefully never happen because\n\t\t\t\t\t// we set the loop end point with a frame aligned byte\n\t\t\t\t\t// number\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tbytesRead += actualRead;\n\t\t\t\t\ttotalBytesRead += actualRead;\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (IOException ioe) {\n\t\t\tthrow new CCSoundException(\"Error reading from the file - \" + ioe.getMessage(), ioe);\n\t\t}\n\t}",
"public int readBytes(byte outgoing[]) {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn 0;\n\n\t\tsynchronized (buffer) {\n\t\t\tint length = bufferLast - bufferIndex;\n\t\t\tif (length > outgoing.length)\n\t\t\t\tlength = outgoing.length;\n\t\t\tSystem.arraycopy(buffer, bufferIndex, outgoing, 0, length);\n\n\t\t\tbufferIndex += length;\n\t\t\tif (bufferIndex == bufferLast) {\n\t\t\t\tbufferIndex = 0; // rewind\n\t\t\t\tbufferLast = 0;\n\t\t\t}\n\t\t\treturn length;\n\t\t}\n\t}",
"public byte[] readBytes(int inNumberMessages, long timeoutMs) throws IOException, TimeoutException;",
"public int read(byte b[], int off, int len) throws IOException {\r\n if (buf_pos >= buf_end) {\r\n if (fillBuffer() < 0)\r\n return -1; // EOF\r\n }\r\n\r\n // Copy from buffer\r\n int leftover = buf_end - buf_pos;\r\n if (len <= leftover) {\r\n System.arraycopy(buffer, buf_pos, b, off, len);\r\n buf_pos += len;\r\n return len;\r\n }\r\n\r\n System.arraycopy(buffer, buf_pos, b, off, leftover);\r\n int n = super.read(b, off+leftover, len-leftover);\r\n fillBuffer();\r\n if (n >= 0)\r\n return leftover + n;\r\n return leftover;\r\n /*for (int i = 0; i < len; i++) {\r\n int c = this.read();\r\n if (c != -1)\r\n b[off+i] = (byte)c;\r\n else {\r\n return i;\r\n }\r\n }\r\n return len;*/\r\n }",
"public int read(byte[] b, int off, int len) {\n int ret = 0;\n int tmp;\n while((tmp = readChunkSize(len-ret)) > 0) {\n data.getFirst().get(b, off+ret, tmp);\n ret += tmp;\n updateBufferList();\n }\n return ret;\n }",
"private void read() throws IOException {\n\n ByteBuffer buffer = ByteBuffer.allocate(ProjectProperties.BYTE_BUFFER_SIZE);\n int read = 0;\n // Keep trying to write until all bytes are read\n while (buffer.hasRemaining() && read != -1) {\n read = channel.read(buffer);\n }\n checkIfClosed(read);// check for error\n\n // convert byte[] to hash string\n String rt = RandomByteAndHashCode.SHA1FromBytes(buffer.array());\n if(ProjectProperties.DEBUG_FULL){\n System.out.println(\"Read: \" + rt );\n }\n\n write(rt.getBytes()); // write hash string\n }",
"public final int read(byte[] b) throws IOException {\r\n\t\treturn f.read( b );\r\n\t}",
"public ByteBuffer read(int location)\n throws DataOrderingException;",
"public void onReadByte(ICPU cpu, int addr) {\n\t}",
"public final int read(byte[] b, int off, int len ) throws IOException {\r\n\t\treturn f.read( b, off, len );\r\n\t}",
"public byte readByte() throws SerialPortException {\n\t\tif (this.available()) {\n\t\t\tbyte [] byteRead = port.readBytes(1);\n\t\t\tif(debug) {\n\t\t\t\tString byteName = String.format(\"%02x\", byteRead[0]);\n\t\t\t\tSystem.out.print(byteName + \"\\t\");;\n\t\t\t}\n\t\t\treturn byteRead[0];\n\t\t\t\n\t\t}\n\t\treturn -1;\n\t\t\n\t}"
] | [
"0.7322327",
"0.7125725",
"0.7042645",
"0.6986399",
"0.6920751",
"0.68705267",
"0.6815358",
"0.6806707",
"0.67573345",
"0.6602922",
"0.6419424",
"0.63870096",
"0.63657236",
"0.633444",
"0.6318094",
"0.62770814",
"0.62508065",
"0.6241035",
"0.623218",
"0.62141937",
"0.6202442",
"0.61926943",
"0.6186708",
"0.6174805",
"0.6166673",
"0.6162867",
"0.61613643",
"0.6134657",
"0.61342156",
"0.6116646",
"0.61113966",
"0.6100896",
"0.60824555",
"0.6082305",
"0.60785383",
"0.60715425",
"0.60690504",
"0.60520107",
"0.6050591",
"0.60432285",
"0.60405153",
"0.6029874",
"0.60069156",
"0.60051787",
"0.59978855",
"0.59817237",
"0.59584117",
"0.59574294",
"0.5953528",
"0.5951935",
"0.59471124",
"0.5940175",
"0.59347993",
"0.59270513",
"0.5927003",
"0.5924934",
"0.5914918",
"0.5910915",
"0.5909982",
"0.5908987",
"0.58758336",
"0.58465695",
"0.58430755",
"0.5817935",
"0.5814739",
"0.5797683",
"0.57810634",
"0.57798636",
"0.5766568",
"0.57464147",
"0.5727835",
"0.5724922",
"0.5707099",
"0.5702641",
"0.57016164",
"0.57015306",
"0.5700108",
"0.56987995",
"0.56926453",
"0.569232",
"0.5685771",
"0.5685495",
"0.5679909",
"0.5673112",
"0.56724834",
"0.5659475",
"0.5658554",
"0.5653607",
"0.56376755",
"0.56343436",
"0.5633766",
"0.56297326",
"0.5627149",
"0.56227356",
"0.56220496",
"0.56198686",
"0.55964607",
"0.5590145",
"0.5583445",
"0.55772793",
"0.55731875"
] | 0.0 | -1 |
Get an InputStream to device. | public InputStream getInputStream() {
if (fTDeviceInputStream == null) {
fTDeviceInputStream = new FTDeviceInputStream(this);
}
return fTDeviceInputStream;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Stream<In> getInputStream();",
"public InputStream getInputStream();",
"public InputStream getInputStream();",
"public InputStream getStream();",
"public InputStream getInputStream() throws IOException;",
"public InputStream getInputStream() throws IOException;",
"InputStream getInputStream() throws IOException;",
"InputStream getInputStream() throws IOException;",
"InputStream getInputStream() throws IOException;",
"public abstract InputStream getInputStream();",
"public abstract InputStream getInputStream();",
"public static\n InputStream inputStream() {\n return Input.wrappedInputStream;\n }",
"public InputStream getStream() {\n\t\treturn new ByteArrayInputStream(os.toByteArray());\n\t}",
"public InputStream getInputStream() throws IOException {\n return con.getInputStream();\n }",
"public InputStream getInputStream(long position);",
"InputStream openStream() throws IOException;",
"public InputStream getStream() {\n final CircularByteBuffer cbb = new CircularByteBuffer(1024);\n new Thread(\n new Runnable(){\n public void run(){\n ZipOutputStream zos = new ZipOutputStream(cbb.getOutputStream());\n Utils.zipDir(getVolume(), requestedDirectory.getPath(), zos);\n\n try {\n if (zos != null) {\n zos.flush();\n zos.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n ).start();\n\n return cbb.getInputStream();\n }",
"public InputStream getInputStream() {\n return inputStream;\n }",
"public InputStream getInputStream() {\n return inputStream;\n }",
"@Override\r\n\tpublic InputStream getInputStream() throws IOException {\n\t\treturn this.s.getInputStream();\r\n\t}",
"@NotNull InputStream openInputStream() throws IOException;",
"public InputStream getInputStream() {\n\t\treturn fromMonet;\n\t}",
"protected InputStream getInputStream() throws IOException\n {\n if (fd == null) {\n throw new IOException(\"socket not created\");\n }\n\n synchronized (this) {\n if (fis == null) {\n fis = new SocketInputStream();\n }\n\n return fis;\n }\n }",
"private ObjectInputStream getInputStream() {\n\t\t// retornamos el stream de entrada\n\t\treturn this.inputStream;\n\t}",
"public InputStream openInputStream() throws IOException {\n // TODO: this mode is not set yet.\n // if ((parent.mode & Connector.READ) == 0)\n // throw new IOException(\"write-only connection\");\n\n ensureOpen();\n\n if (inputStreamOpened)\n throw new IOException(\"no more input streams available\");\n if (isGet) {\n // send the GET request here\n validateConnection();\n isValidateConnected = true;\n } else {\n if (privateInput == null) {\n privateInput = new PrivateInputStream(this);\n }\n }\n\n inputStreamOpened = true;\n\n return privateInput;\n }",
"public InputStream getInputStream()\r\n\t{\r\n\t\treturn this.inputStream;\r\n\t}",
"InputStream getDataStream();",
"public abstract InputStream getInputStream() throws AccessException;",
"public InputStream getInputStream() {\n return this.inputStream;\n }",
"public InputStream getInputStream() {\n\t\treturn inputStream;\n\t}",
"public InputStream getInputStream() {\n\t\treturn inputStream;\n\t}",
"public InputStream getInputStream() throws IOException {\n/* 521 */ return Minecraft.getMinecraft().getResourceManager().getResource(p_148612_0_).getInputStream();\n/* */ }",
"public InputStream getStream() {\n\t\treturn this.in;\n\t}",
"public COSInputStream createInputStream() throws IOException\n {\n return stream.createInputStream();\n }",
"public final InputStream returnStream()\n\t{\n\t\treturn stream;\n\t}",
"public InputStream getInputStream() {\n return this.inputStream;\n }",
"protected InputStream getAudioStream()\n\t{\n\t\tInputStream in = null;\n\t\t\n\t\ttry\n\t\t{\n\t\t\tURL url = getAudioURL();\n\t\t\tif (url!=null)\t\t\t\n\t\t\t\tin = url.openStream();\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t\tSystem.err.println(ex);\n\t\t}\n\t\treturn in;\n\t}",
"InputStream getInputStream() throws FileSystemException;",
"public InputStream openInputStream(String path) throws SystemException;",
"public InputStream getInputStream() throws IOException {\r\n if (!connected)\r\n connect();\r\n\r\n return zipFile.getInputStream(zipEntry);\r\n }",
"public InputStream getStream(URL url) throws IOException {\n return engine.getStream(url);\n }",
"public LoggedDataInputStream getInputStream() {\n return inputStream;\n }",
"public InputStream openInputStream() throws IOException {\n\n\tthrow new IllegalArgumentException(\"Not supported\");\n }",
"public InputStream asInputStream() {\n return new ByteArrayInputStream(data);\n }",
"public InputStream getInputStream() throws IOException {\n return this.mContext.getAssets().open(this.mAssetName);\n }",
"@Override\r\n\tpublic InputStream getInputStream() throws IOException {\r\n\t\tInputStream stream = null;\r\n\t\ttry {\r\n\t\t\tif (bytes != null) {\r\n\t\t\t\tstream = new ByteArrayInputStream(bytes);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new AppRuntimeException(ErrorCode.DATASOURCE_EMPTY_ERROR,\r\n\t\t\t\t\tErrorCode.DATASOURCE_EMPTY_ERROR.getCodeDescription());\r\n\t\t}\r\n\t\treturn stream;\r\n\t}",
"public BCPGInputStream getInputStream()\n {\n return in;\n }",
"InputStream getInputStream() throws ChannelConnectException,\r\n\t\t\tChannelReadException;",
"protected abstract InputStream getStream(String resource);",
"public final PrintStream getInputStream() {\n return inputStream;\n }",
"private InputStream downloadStream(String urlString) throws IOException {\n\t\tURL url = new URL(urlString);\n\t\tHttpURLConnection conn = (HttpURLConnection) url.openConnection();\n\t\tconn.setReadTimeout(10000 /* milliseconds */);\n\t\tconn.setConnectTimeout(15000 /* milliseconds */);\n\t\tconn.setRequestMethod(\"GET\");\n\t\tconn.setDoInput(true);\n\t\t// Starts the query\n\t\tconn.connect();\n\t\tInputStream stream = conn.getInputStream();\n\t\treturn stream;\n\t}",
"public COSInputStream createInputStream() throws IOException {\n/* 236 */ return this.stream.createInputStream();\n/* */ }",
"public InputStream getInputStream() throws IOException {\n return new FileInputStream(_file);\n }",
"public InputStream executeStreaming() throws DomainApiException {\n try {\n Socket socket = new Socket(HOST, PORT);\n try {\n StringBuffer sb = new StringBuffer();\n sb.append(\"GET \" + initPathParameter() + \"\\n\");\n sb.append(\"Content-Type: application/json\\n\");\n sb.append(\"Authorization: \"\n + authentificator.generateBasicAuthorization() + \"\\n\\n\");\n socket.getOutputStream().write(sb.toString().getBytes());\n } catch (IOException ex) {\n throw new DomainApiException(ex);\n }\n return socket.getInputStream();\n } catch (MalformedURLException ex) {\n throw new DomainApiException(ex);\n } catch (IOException ex) {\n throw new DomainApiException(ex);\n }\n }",
"public static InputStream getStream(Context context, String urlStr) throws IOException {\n InputStream stream = null;\n\n if (urlStr.startsWith(\"assets://\")) {\n stream = context.getAssets().open(urlStr.replaceFirst(\"assets://\", \"\"));\n } else {\n URL url = new URL(urlStr);\n HttpURLConnection connection = (HttpURLConnection) url.openConnection();\n connection.setConnectTimeout(15000);\n\n if (connection.getResponseCode() == HttpURLConnection.HTTP_OK) {\n stream = connection.getInputStream();\n }\n }\n\n return stream;\n }",
"protected final InputStream getStream() { return _inputSource; }",
"public InputStream getInputStream()\n throws ProcessingException, IOException {\n try {\n return this.source.getInputStream();\n } catch (SourceException e) {\n throw SourceUtil.handle(e);\n }\n }",
"public java.io.InputStream getStream(String content) {\r\n\t\ttry {\r\n\t\t\tjava.io.ByteArrayInputStream bais = new java.io.ByteArrayInputStream(content.getBytes());\r\n\t\t\treturn bais;\r\n\t\t} catch (Exception ex) {\r\n\t\t\tlogger.error(ex.getMessage());\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"public InputStream getIn() {\n\t\treturn proc.getInputStream();\n\t}",
"public abstract SeekInputStream getRawInput();",
"public InputStream asByteStream() {\n return new ByteArrayInputStream(rawBytes);\n }",
"public InputStream getInputStream() throws IOException {\r\n return mFile.getInputStream();\r\n }",
"public InputStream getAsInputStream () {\r\n\r\n\t //code description\r\n\t \r\n\t if (this.document == null) return null;\r\n\t return new ByteArrayInputStream(this.getAsBytes());\r\n\t \r\n }",
"public static InputStream connect(InputStream in, OutputStream out) {\n return new FilterInputStream(in) {\n public void close() {\n IO.close(out, in);\n }\n };\n }",
"private InputStream getStream() throws IOException {\n if (delegatee == null) {\n try {\n delegatee = value.getStream();\n } catch (RepositoryException re) {\n throw (IOException) new IOException(re.getMessage()).initCause(re);\n }\n }\n return delegatee;\n }",
"public InputStream getInputStream() throws MorseException {\n\t\treturn null;\r\n\t}",
"public static DataInputStream getData(InputStream in) {\n return new DataInputStream(get(in));\n }",
"@Override\n\tpublic InputStream getInputStream() throws IOException {\n\t\treturn null;\n\t}",
"private InputStream getInstream() {\r\n\t\tif (instream == null) try {\r\n\t\t\tinstream = new FileInputStream(file);\r\n\t\t} catch(IOException ioe) {\r\n\t\t\tthrow new RuntimeException(\"Couldn't create instream for test\", ioe);\r\n\t\t}\r\n\t\treturn instream;\r\n\t}",
"public InputStream get(Bitstream bitstream) throws IOException {\n try {\n return new FileInputStream(getFile(bitstream));\n } catch (Exception e) {\n log.error(\"get(\" + bitstream.getInternalId() + \")\", e);\n throw new IOException(e);\n }\n }",
"protected abstract OutputStream getStream() throws IOException;",
"public static InputStream asStream(String name) throws IOException {\n ClassLoader classLoader = Reflection.getCallerClass(3).getClassLoader();\n return asStream(name, classLoader);\n }",
"protected InputStream getInputStream() throws IOException\n\t {\n\t FileInputStream fin = new FileInputStream(fFilename);\n\t BufferedInputStream bin = new BufferedInputStream(fin);\n\t return bin;\n\t }",
"public InputStream stream() throws HttpRequestException {\n InputStream inputStream;\n InputStream inputStream2;\n if (this.code() < 400) {\n try {\n inputStream2 = this.getConnection().getInputStream();\n }\n catch (IOException iOException) {\n throw new HttpRequestException(iOException);\n }\n }\n inputStream2 = inputStream = this.getConnection().getErrorStream();\n if (inputStream == null) {\n try {\n inputStream2 = this.getConnection().getInputStream();\n }\n catch (IOException iOException) {\n throw new HttpRequestException(iOException);\n }\n }\n if (!this.uncompress) return inputStream2;\n if (!\"gzip\".equals(this.contentEncoding())) {\n return inputStream2;\n }\n try {\n return new GZIPInputStream(inputStream2);\n }\n catch (IOException iOException) {\n throw new HttpRequestException(iOException);\n }\n }",
"public interface InputStreamProvider {\n\n InputStream open() throws IOException;\n\n String getPath();\n}",
"public InputStream openInputStream() throws IOException {\n return super.openInputStream();\n //StringBuilder sb = getCharContent(true);\n //ByteArrayOutputStream baos = new ByteArrayOutputStream();\n //( charset ==null ? new OutputStreamWriter(baos) : new OutputStreamWriter(baos,charset) )\n // .write(sb.toString()); // ouch!\n //return new ByteArrayInputStream(baos.toByteArray()); // another ouch!\n }",
"public InputStream openHttp2Stream(URL url) throws IOException {\r\n return openHttpEntity(url).getContent();\r\n }",
"public abstract InputStream openStream(String str);",
"private static InputStream retrieveStream(String url) {\r\n\t\tDefaultHttpClient client = new DefaultHttpClient();\r\n\t\tHttpGet getRequest = new HttpGet(url);\r\n\t\t\r\n\t\ttry{\r\n\t\t\tHttpResponse getResponse = client.execute(getRequest);\r\n\t\t\tfinal int statusCode = getResponse.getStatusLine().getStatusCode();\r\n\t\t\tSystem.out.println(statusCode);\r\n\t\t\t\r\n\t\t\tif(statusCode != HttpStatus.SC_OK){\r\n\t\t\t\t//Log.w(getClass().getSimpleName(),\r\n\t\t\t\t\t\t//\"Error \" + statusCode + \" for URL \" + url);\r\n\t\t\t\tSystem.out.println(statusCode);\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tHttpEntity getResponseEntity = getResponse.getEntity();\r\n\t\t\treturn getResponseEntity.getContent();\r\n\t\t}\r\n\t\t\r\n\t\tcatch(IOException e){\r\n\t\t\tgetRequest.abort();\r\n\t\t\t//Log.w(getClass().getSimpleName(),\"Error for URL \" + url, e);\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public InputStream getInputStream() throws IOException {\n return body.getInputStream();\n }",
"public InputStream getInputStream()\n/* */ {\n/* 105 */ InputStream in = ResourceUtils.getResourceAsStream(this, this);\n/* */ \n/* 107 */ return in;\n/* */ }",
"public InputStream getInputStream() {\n return _combinedInputStream;\n }",
"private InputStream readFromSd() {\n\t\tString fileName = \"exchange_rates.xml\";\n\t\tFileInputStream stream = null;\n\t\tFile sdCard = android.os.Environment.getExternalStorageDirectory(); \n\t\tFile dir = new File (sdCard.getAbsolutePath() + \"/Android/data/com.douchedata.exchange/files/\");\n\t\tLog.v(\"sd\", dir.getAbsolutePath());\n\t\tFile file = new File(dir, fileName);\n\n\t\tif (dir.exists() == false) {\n\t\t\tdir.mkdirs();\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tif (file.exists())\n\t\t\t\tstream = new FileInputStream(file);\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn stream;\n\t}",
"@Override\n public InputStream getCertStream() {\n if (Strings.isEmpty(certPath)) {\n throw new NotFoundException(\"cert path not configured\");\n }\n if (certBytes == null) {\n Path path = Paths.get(certPath).toAbsolutePath();\n try {\n certBytes = readAllBytes(path);\n } catch (IOException e) {\n throw new UncheckedIOException(\"read cert failed\", e);\n }\n }\n return new ByteArrayInputStream(certBytes);\n }",
"public InputStream getFXMLInputStream() {\n return new ByteArrayInputStream(\n FXMLResource.getBytes(StandardCharsets.UTF_8));\n }",
"@Override\r\n\tpublic InputStream getInStream() {\n\t\treturn inStreamServer;\r\n\t}",
"protected InputStream getURLInputStream() throws Exception\n\t {\n\n\t URL url = new URL(file, fFilename);\n\t InputStream fin = url.openStream();\n\t BufferedInputStream bin = new BufferedInputStream(fin);\n\t return bin;\n\t }",
"@Override\n public InputStream openStream() throws IOException\n {\n return new FileInputStream(temp);\n }",
"InputStream getInputStream() {\r\n\r\n\t\tif (inputStream != null) {\r\n\t\t\treturn inputStream;\r\n\t\t} else {\r\n\t\t\ttry {\r\n\t\t\t\treturn new FileInputStream(path);\r\n\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\tthrow new RuntimeException(\"Configuration file could not be loaded from \" + getPath());\r\n\t\t\t} // catch\r\n\t\t} // else\r\n\t}",
"public InputStream getInputStream() throws IOException {\n \t\treturn liveHelpURL.openStream();\r\n \t}",
"public Class<InputStream> mo12943a() {\n return InputStream.class;\n }",
"private static byte[] getDataFromInputStream(final InputStream input) throws IOException {\r\n if (input == null) {\r\n return new byte[0];\r\n }\r\n int nBytes = 0;\r\n final byte[] buffer = new byte[BUFFER_SIZE];\r\n final ByteArrayOutputStream baos = new ByteArrayOutputStream();\r\n while ((nBytes = input.read(buffer)) != -1) {\r\n baos.write(buffer, 0, nBytes);\r\n }\r\n return baos.toByteArray();\r\n }",
"@Deprecated()\n public InputStream getIs() {\n return this.inputStream;\n }",
"public static InputStream outputStreamToInputStream(OutputStream outputStream) throws ShellException {\r\n\t\treturn new ByteArrayInputStream(((ByteArrayOutputStream) outputStream).toByteArray());\r\n\t}",
"public Stream stream() {\n Preconditions.checkState(prepared);\n Preconditions.checkState(!closed);\n return new Stream();\n }",
"public static InputStream getInputStream(Path path, SourceType sourceType) throws IOException {\n try {\n return getCompressInputStream(getFileSystemBySourceType(sourceType).open(path), path);\n } catch (IOException e) {\n // To manual fix a issue that FileSystem is closed exceptionally. Here we renew a FileSystem object to make\n // sure all go through such issues.\n if(e.getMessage() != null) {\n if(e.getMessage().toLowerCase().indexOf(\"filesystem closed\") >= 0) {\n if(sourceType == SourceType.HDFS) {\n return HDFSUtils.renewFS().open(path);\n }\n }\n }\n throw e;\n }\n }",
"public InputStream getInputStream() throws IOException {\r\n \t\t \t\r\n \t\t \t\r\n \t\t \tInputStream stream = null;\r\n \t\t \r\n \t\t \tClassLoader saved = Thread.currentThread().getContextClassLoader();\r\n\t\t\ttry {\r\n\t\t\t\t Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());\r\n\t\t\t\t String newXml = null;\r\n\t\t\t\t Map<String, Object> options = new HashMap<String, Object>();\r\n\t\t\t\t options.put(\"includeSchema\", \"true\");\r\n\t\t\t\t// CONNECT TO RSUITE\r\n\t\t\t\t log.println(\"GETTING DOCUMENT WITH MO ID: \" + moId + \"...\");\r\n\t\t\t\t String document = repository.getAsString(moId, options);\r\n\t\t\t\t /*\r\n\t\t\t\t InputStream realInputStream = new URL(host + \"/rsuite/rest/v2/content/binary/id/\" + moId + \"?skey=\" + repository.sessionKey).openConnection().getInputStream();\r\n\t\t\t\t StringWriter writer = new StringWriter();\r\n\t\t\t\t IOUtils.copy(realInputStream, writer);\r\n\t\t\t\t String document = writer.toString();\r\n\t\t\t\t */\r\n\t\t\t\t log.println(\"DOCUMENT FOUND.\");\r\n\t\t\t\t log.print(document);\r\n\t\t\t\t \r\n\t\t\t\t // FIND ENCODING\r\n\t\t\t\t encoding = guessXMLEncoding(document);\r\n\r\n\t\t\t\t XMLStructureDefinitionType xmlStructureDefinitionType = getXMLStructureDefinitionType(document);\r\n\t\t\t\t newXml = document;\r\n\t\t\t\t \r\n\t\t\t\t switch (xmlStructureDefinitionType) {\r\n\t\t\t\t \tcase DTD:\r\n\t\t\t\t \t\tnewXml = replaceDtdDefinition(document, log);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase XSD:\r\n\t\t\t\t\t\tnewXml = replaceXsdDefinition(document, log);\t\r\n\t\t\t\t\tbreak;\t\r\n\t\t\t\t }\r\n\t\t\t\t if (newXml == null) {\r\n\t\t\t\t\t newXml = document;\r\n\t\t\t\t }\r\n\t\t\t\t log.println(\"XML CONVERTED\");\r\n\t\t\t\t log.println(newXml);\r\n\t\t\t\t // RETURN DOCUMENT\r\n\t\t\t\t log.println(\"CREATING INPUT STREAM FROM NEW DOCUMENT...\");\r\n\t\t\t\t stream = new ByteArrayInputStream(newXml.getBytes(encoding));\r\n\t\t\t\t log.println(\"STREAM CREATED SUCCESSFULLY.\");\r\n\t\t\t}\r\n\t\t\tcatch(Throwable t){\r\n\t\t\t\tt.printStackTrace(log);\r\n\t\t\t\tfor (Throwable t1 : t.getSuppressed()) {\r\n\t\t\t\t\tt1.printStackTrace(log);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfinally{\r\n\t\t\t\tThread.currentThread().setContextClassLoader(saved);\r\n\t\t\t}\r\n\t\t\tlog.println(\"RETURNING STREAM TO OXYGEN...\");\r\n\t\t\treturn stream;\r\n\t\t}",
"@Override\n public InputStream getInputStream() throws IOException\n {\n/**/\n/**/\n/**/\n if (Files.isDirectory(path))\n throw new IOException(path + \" is a directory\");\n\n return Files.newInputStream(path,StandardOpenOption.READ);\n }",
"private String readStream(InputStream is) {\n try {\n ByteArrayOutputStream bo = new ByteArrayOutputStream();\n int i = is.read();\n while(i != -1) {\n bo.write(i);\n i = is.read();\n }\n return bo.toString();\n } catch (IOException e) {\n return \"\";\n }\n }",
"public InputStream inputStream(final String uri, final Map<String, String> creds) throws Exception {\n\t\ttry {\n\t\t\tClient c = getHttpClient();\n\t\t\tWebResource r = c.resource(url + \"/file\");\n\t\t\tcom.sun.jersey.api.client.WebResource.Builder b = r.header(HTTP_HEADER_KEY, key).header(HTTP_HEADER_URI, uri).accept(MediaType.APPLICATION_OCTET_STREAM);\n\t\t\tif (allowRedirects) b.header(HTTP_HEADER_REDIRECT, \"yes\");\n\t\t\taddMapAsHttpHeader(b, creds);\n\t\t\treturn b.get(InputStream.class);\n\t\t} catch (UniformInterfaceException e) {\n\t\t\tthrow new Exception(e.getMessage() + \" (\" + e.getResponse().getEntity(String.class) + \")\");\n\t\t} catch (Throwable e) {\n\t\t\tthrow new Exception(e);\n\t\t}\n\t}"
] | [
"0.71604186",
"0.7117004",
"0.7117004",
"0.7080453",
"0.70517683",
"0.70517683",
"0.7023147",
"0.7023147",
"0.7023147",
"0.6868548",
"0.6868548",
"0.68290305",
"0.6791084",
"0.6552878",
"0.65524274",
"0.6487275",
"0.64778274",
"0.64510846",
"0.64510846",
"0.644954",
"0.6409439",
"0.6312884",
"0.62647074",
"0.62522864",
"0.6240787",
"0.6229207",
"0.6227281",
"0.6207787",
"0.61925125",
"0.6182722",
"0.6182722",
"0.6167857",
"0.6167856",
"0.60947496",
"0.6077963",
"0.6066551",
"0.60542923",
"0.6050655",
"0.6050298",
"0.60363126",
"0.60012066",
"0.5998248",
"0.59952",
"0.5980479",
"0.5943635",
"0.5942365",
"0.59280515",
"0.59151244",
"0.5847682",
"0.58360165",
"0.58356255",
"0.5814509",
"0.5805747",
"0.58055544",
"0.58025444",
"0.58019584",
"0.57545406",
"0.5744332",
"0.57217693",
"0.57051176",
"0.56938535",
"0.5681417",
"0.5678653",
"0.5665594",
"0.5658915",
"0.56327397",
"0.5630478",
"0.56221414",
"0.560683",
"0.5591097",
"0.5583292",
"0.55729896",
"0.5564749",
"0.55623806",
"0.55622405",
"0.55554163",
"0.5544995",
"0.5542842",
"0.5535413",
"0.5531139",
"0.552822",
"0.55155027",
"0.5487587",
"0.5459308",
"0.5449446",
"0.54404116",
"0.5429581",
"0.5417968",
"0.5417085",
"0.5415012",
"0.5394708",
"0.53732514",
"0.53719646",
"0.5368046",
"0.535236",
"0.5351637",
"0.5346965",
"0.534681",
"0.5322624",
"0.5320928"
] | 0.7105769 | 3 |
Get an OutputStream to device. | public OutputStream getOutputStream() {
if (fTDeviceOutputStream == null) {
fTDeviceOutputStream = new FTDeviceOutputStream(this);
}
return fTDeviceOutputStream;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public OutputStream getOutputStream();",
"public OutputStream getOutputStream() throws IOException;",
"public final OutputStream getOutputStream() {\n return outputStream;\n }",
"OutputStream getOutputStream();",
"public OutputStream getOutputStream() {\n return new BufferedOutputStream(new OutputStream() {\n public void write(int b) throws IOException {\n _combinedOutputStream.write(b);\n }\n public void flush() throws IOException {\n _combinedOutputStream.flush();\n }\n public void close() throws IOException {\n _combinedOutputStream.close();\n }\n });\n }",
"@NotNull OutputStream openOutputStream() throws IOException;",
"OutputStream getOutputStream() throws IOException;",
"public OutputStream getOutputStream()\n {\n if (m_Port != 0) {\n return new SimpleSerialOutputStream(this);\n }\n else {\n System.out.println(\"###ERROR: You can't get input stream because serial port wasn't opened\");\n }\n return null;\n }",
"public OutputStream getOutputStream() {\n\t\treturn outputStream;\n\t}",
"public OutputStream getOutputStream() {\n return this.outputStream;\n }",
"public OutputStream createOutputStream() throws IOException\n {\n return stream.createOutputStream();\n }",
"public synchronized OutputStream getOutputStream() throws IOException, InterruptedException {\n/* 112 */ while (this.outputStream == null) {\n/* */ \n/* 114 */ checkTimeout();\n/* 115 */ wait(1000L);\n/* */ } \n/* */ \n/* 118 */ return this.outputStream;\n/* */ }",
"protected abstract OutputStream getStream() throws IOException;",
"OutputStream getOutputStream()\n {\n return outputStream;\n }",
"public OutputStream getOutputStream() {\n return outStream;\n }",
"public synchronized OutputStream getOutputStream() throws IOException {\n/* 229 */ return this.delegate.getOutputStream();\n/* */ }",
"public OutputStream getOutputStream() {\n\t\treturn toMonet;\n\t}",
"public OutputStream openOutputStream() throws IOException {\n return new FileOutputStream(this);\n }",
"private ObjectOutputStream getOutputStream() {\n\t\t// retornamos el stream de salida\n\t\treturn this.outputStream;\n\t}",
"public OutputStream getStream()\r\n {\r\n return mStream;\r\n }",
"public OutputStream openOutputStream() throws IOException {\n\n\tthrow new IllegalArgumentException(\"Not supported\");\n }",
"protected OutputStream getOutputStream() throws IOException\n { \n if (fd == null) {\n throw new IOException(\"socket not created\");\n }\n\n synchronized (this) {\n if (fos == null) {\n fos = new SocketOutputStream();\n }\n\n return fos;\n }\n }",
"public OutputStream createOutputStream() throws IOException {\n/* 213 */ return this.stream.createOutputStream();\n/* */ }",
"public OutputStream getOutputStream()\n\t{\n\t\treturn null;\n\t}",
"public OutputStream openOutputStream() throws IOException {\n return response.getOutputStream();\n }",
"public LoggedDataOutputStream getOutputStream() {\n return outputStream;\n }",
"public static ByteArrayOutputStream getOutputStream() {\n \t\treturn bos;\n \t}",
"public OutputStream getOutputStream() throws java.io.IOException, SecurityException {\n return new FileOutputStream(_file);\n }",
"public OutputStream openOutputStream(String path) throws SystemException;",
"@Override\n public OutputStream getOutputStream(URI uri) throws IOException\n {\n return this.standardResolver.getOutputStream(uri);\n }",
"public OutputStream openOutputStream() throws IOException {\n // TODO: this mode is not set yet.\n // \tif ((parent.mode & Connector.WRITE) == 0)\n // \t\tthrow new IOException(\"read-only connection\");\n ensureOpen();\n ensureNotDone();\n\n if (outputStreamOpened)\n throw new IOException(\"no more output streams available\");\n\n if (privateOutput == null) {\n // there are 3 bytes operation headers and 3 bytes body headers //\n privateOutput = new PrivateOutputStream(this, maxPacketSize - 6);\n }\n\n outputStreamOpened = true;\n\n return privateOutput;\n }",
"OutputStream getOutputStream() throws FileSystemException;",
"public OutputStream getOutputStream(IArtifactDescriptor descriptor) {\n \t\tif (contains(descriptor))\n \t\t\treturn null;\n \n \t\t// Determine writing location\n \t\tString location = computeLocation(descriptor.getArtifactKey());\n \t\tif (location == null)\n \t\t\t// TODO: Log an error, or throw an exception?\n \t\t\treturn null;\n \n \t\tString file = null;\n \t\ttry {\n \t\t\tfile = new URL(location).getFile();\n \t\t} catch (MalformedURLException e1) {\n \t\t\t// This should not happen\n \t\t}\n \n \t\tFile outputFile = new File(file);\n \t\tif (outputFile.exists())\n \t\t\tSystem.err.println(\"Artifact repository out of synch. Overwriting \" + outputFile.getAbsoluteFile());\n \n \t\tif (!outputFile.getParentFile().exists() && !outputFile.getParentFile().mkdirs())\n \t\t\t// TODO: Log an error, or throw an exception?\n \t\t\treturn null;\n \n \t\ttry {\n \t\t\treturn new ArtifactOutputStream(new BufferedOutputStream(new FileOutputStream(file)), descriptor);\n \t\t} catch (FileNotFoundException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\treturn null;\n \t}",
"public OutputStream getOutputStream() throws IOException {\n \t\t \tOutputStream stream = new RSuiteOutputStream();\r\n \t\t \r\n \t\t \tClassLoader saved = Thread.currentThread().getContextClassLoader();\r\n\t\t\ttry {\r\n\t\t\t\t Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());\r\n\t\t\t\t \r\n\t\t\t\t log.println(\"CREATED RSUITE OUTPUT STREAM.\");\t\t\t\t \r\n\t\t\t\t log.println(\"RETURNING RSUITE OUTPUT STREAM TO OXYGEN...\");\r\n\t\t\t}\r\n\t\t\tcatch(Throwable t){\r\n\t\t\t\tif (log != null) t.printStackTrace(log);\r\n\t\t\t}\r\n\t\t\tfinally{\r\n\t\t\t\tThread.currentThread().setContextClassLoader(saved);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn stream;\r\n\t\t}",
"public OutputStream getOutputStream() throws MorseException {\n\t\treturn null;\r\n\t}",
"OutputStream createStream(String location);",
"public static OutputStream getOutputStream(final AsyncChannel out, final boolean copy) {\n return new OutputStream() {\n public void write(int b) {\n out.send(new byte[] { (byte) b }, false);\n }\n \n public void write(byte b[]) throws IOException {\n out.send(b, copy);\n }\n \n public void write(byte b[], int off, int len) throws IOException {\n out.send(b, off, len, copy);\n }\n };\n }",
"public ServletOutputStream getOutputStream() {\n return sosi;\n }",
"public void toStream (OutputStream outputStream)\n throws IOException\n {\n this.logDebug(\"toStream 1/2: outputStream = \" + outputStream);\n\n try\n {\n\tswitch ( this.useMode )\n\t {\n\t case UseMode.SERVE : toStream_SERVE(outputStream); break;\n\t default : this.signalNotRepresentableAsStream();\n\t }\n }\n catch (Exception exception)\n {\n\tthrow new IOException (exception.getMessage());\n }\n\n this.logDebug(\"toStream 2/2\");\n }",
"PipedOutputStream getOutputStream() {\n return getStreamManager().getBodyStreamWriter();\n }",
"public OutputStream outputWrap(OutputStream os) \n throws IOException {\n this.ros.open(os);\n return this.ros;\n }",
"public static DataOutputStream getData(OutputStream out) {\n return new DataOutputStream(get(out));\n }",
"protected OutputStream _createDataOutputWrapper(DataOutput out)\n/* */ {\n/* 1520 */ return new DataOutputAsStream(out);\n/* */ }",
"@Override\n public Writer getOutputStreamWriter() throws IOException {\n return new OutputStreamWriter(getOutputStream());\n }",
"public void setOutputStream(OutputStream outputStream) {\n this.outputStream = outputStream;\n }",
"public ObjectOutputStream acquireStream() throws InterruptedException\n {\n StreamMutex.acquire();\n return OutputStream;\n }",
"@Override\r\n\tpublic OutputStream getOutStream() {\n\t\treturn outStreamServer;\r\n\t}",
"private void openOutputStream() {\n\t\tPrintStreamManagement.openOutputStream();\n\t}",
"public abstract PrintStream getOutputStream();",
"public OutputStream getOutputStream(UMOImmutableEndpoint endpoint, UMOMessage message)\n throws UMOException\n {\n String address = endpoint.getEndpointURI().getAddress();\n String writeToDirectory = message.getStringProperty(\n FileConnector.PROPERTY_WRITE_TO_DIRECTORY, null);\n if (writeToDirectory == null)\n {\n writeToDirectory = connector.getWriteToDirectory();\n }\n if (writeToDirectory != null)\n {\n address = connector.getFilenameParser().getFilename(message, writeToDirectory);\n }\n\n String filename;\n String outPattern = message.getStringProperty(FileConnector.PROPERTY_OUTPUT_PATTERN, null);\n if (outPattern == null)\n {\n outPattern = connector.getOutputPattern();\n }\n try\n {\n if (outPattern != null)\n {\n filename = generateFilename(message, outPattern);\n }\n else\n {\n filename = message.getStringProperty(FileConnector.PROPERTY_FILENAME, null);\n if (filename == null)\n {\n filename = generateFilename(message, null);\n }\n }\n\n if (filename == null)\n {\n throw new IOException(\"Filename is null\");\n }\n File file = FileUtils.createFile(address + \"/\" + filename);\n if (logger.isInfoEnabled())\n {\n logger.info(\"Writing file to: \" + file.getAbsolutePath());\n }\n\n return new FileOutputStream(file, MapUtils.getBooleanValue(endpoint.getProperties(),\n \"outputAppend\", connector.isOutputAppend()));\n }\n catch (IOException e)\n {\n throw new DispatchException(new Message(Messages.STREAMING_FAILED_NO_STREAM), message,\n endpoint, e);\n }\n }",
"public static OutputStream getOutputStream(final AsyncChannel channel) {\n // bytes are duplicated and copied in the reactor sendqueue, in case you modify the array \n // after you write it to the output stream.\n return getOutputStream(channel, true);\n }",
"public OutputStream createOutputStream(COSName filter) throws IOException\n {\n return stream.createOutputStream(filter);\n }",
"public abstract void writeToStream(java.io.DataOutputStream output) throws java.io.IOException;",
"public static OutputStream connect(OutputStream out, InputStream in) {\n return new FilterOutputStream(out) {\n public void close() {\n IO.close(out, in);\n }\n };\n }",
"public ServletOutputStream getOutputStream() throws IOException {\n return this.response.getOutputStream();\n }",
"public static OutputStream nullOutput() {\n if(nullOut == null) {\n nullOut = new NullOutputStream();\n }\n return nullOut;\n }",
"public OutputStreamWriter(OutputStream os) {\n out = Helper.getStreamWriter(os);\n }",
"OutputStream read(String id, OutputStream output);",
"public static BufferedOutputStream get(OutputStream out) {\n if(out == null || out instanceof BufferedOutputStream) {\n return (BufferedOutputStream)out;\n }\n return new BufferedOutputStream(out);\n }",
"@Override\r\n\tpublic OutputStream getOutputStream() throws IOException {\r\n\t\tfinal OutputStream stream = new ByteArrayOutputStream();\r\n\t\ttry {\r\n\t\t\tif (bytes != null) {\r\n\t\t\t\tstream.write(bytes);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new AppRuntimeException(ErrorCode.DATASOURCE_EMPTY_ERROR,\r\n\t\t\t\t\tErrorCode.DATASOURCE_EMPTY_ERROR.getCodeDescription());\r\n\t\t}\r\n\t\treturn stream;\r\n\t}",
"public InputStream getStream() {\n\t\treturn new ByteArrayInputStream(os.toByteArray());\n\t}",
"public interface OutputStreamFactory {\n\n /**\n * Create an output stream for file location.\n * String that represents file location should be relative path, '/' is a delimiter.\n *\n * @param location sting that contains relative file location\n *\n * @return new stream instance\n */\n OutputStream createStream(String location);\n}",
"public static OutputStream asOutputStream(DataFile df) {\n return new DFOutputStream(df);\n }",
"public static OutputStream tee(OutputStream first, OutputStream second) {\n return new TeeOutputStream(first, second);\n }",
"private PrintWriter\n\tgetStreamWriter(\n\t\tOutputStream\toutputStream)\n\t{\n\t\treturn(new PrintWriter(outputStream, true));\n\t}",
"int writeTo(OutputStream out) throws IOException;",
"private void createOutputStream() throws IOException {\n try {\n oStream = new ObjectOutputStream(socket.getOutputStream());\n }\n catch(IOException e) {\n throw e;\n }\n }",
"void serialize(@NotNull OutputStream out) throws IOException;",
"public void setOutputStream(OutputStream out) {\n this.output = out;\n }",
"public final void setOutputStream(final OutputStream newOutputStream) {\n this.outputStream = newOutputStream;\n }",
"public final SMBOutputStream asOutputStream()\n\t\tthrows SMBException {\n\n\t\t// Check if the file is a directory\n\n\t\tif ( isDirectory())\n\t\t\tthrow new SMBException(SMBStatus.DOSInvalidFunc, SMBStatus.ErrDos);\n\n\t\t// Create the output stream\n\n\t\treturn new SMBOutputStream(this);\n\t}",
"public DataOutputStream openDataOutputStream() throws IOException {\n return new DataOutputStream(openOutputStream());\n }",
"void flushToOutputStream(OutputStream outputStream) throws IOException;",
"public OutputStream createOutputStream(COSName filter) throws IOException {\n/* 225 */ return this.stream.createOutputStream((COSBase)filter);\n/* */ }",
"public SSLEepGet(I2PAppContext ctx, OutputStream outputStream, String url) {\n this(ctx, outputStream, url, null);\n }",
"public static BufferedOutputStream getOutput(Path path) throws IOException {\n return get(Files.newOutputStream(path));\n }",
"@Override\n public OutputStream openOutputStream() throws IOException {\n final ByteArrayOutputStream baos = new ByteArrayOutputStream();\n return new FilterOutputStream(baos){\n @Override\n public void close() throws IOException {\n writeManifestJarEntry(readManifest(baos));\n }\n };\n }",
"protected OutputStream getOutputStream() throws IOException {\n if (caller.FRAMES.equals(caller.format)){\n return new ByteArrayOutputStream();\n } else {\n return new FileOutputStream(new File(caller.toDir, \"junit-noframes.html\"));\n }\n }",
"public TarOutputStream( OutputStream os ) {\n\t\tthis( os, TarBuffer.DEFAULT_BLKSIZE, TarBuffer.DEFAULT_RCDSIZE );\n\t\t}",
"private void writeStream(OutputStream os, String out) {\n try {\n BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(os, \"utf-8\"));\n writer.write(out);\n writer.flush();\n writer.close();\n os.close();\n } catch (IOException e) {\n }\n }",
"public ObjectOutputStream getOOS(){\r\n return oos;\r\n }",
"public StreamResult getOutput() {\n return output;\n }",
"@Override\n public OutputStream openOutputFile(String pathname) throws IOException {\n return new FileOutputStream(pathname);\n }",
"private void openOutputStream() throws IOException {\n writer=new PrintWriter(this.sock.getOutputStream());\n }",
"public ObjectOutputStream getOos() {\n return oos;\n }",
"public synchronized void setOutputStream(OutputStream stream) {\n\tthis.outputStream = stream;\n\t//Debug.out(\"AudioCapture.setOutputStream(): output stream: \" + this.outputStream);\n\tif (this.outputStream == null && thread != null) {\n\t thread.terminate();\n\t thread = null;\n\t}\n }",
"public void writeTo(OutputStream arg0) throws IOException {\n\t\t\r\n\t}",
"public RandomAccessOutputStream(IRandomAccess handle) {\n raos = new ome.scifio.io.RandomAccessOutputStream(AdapterTools.getAdapter(IRandomAccessAdapter.class).getModern(handle));\n }",
"public StorageOutputStream(OutputStream o) throws Exception {\r\n\tout = o;\r\n}",
"OutputStream serialize(OutputStream toSerialize);",
"public OutputStreamWriter(final x10.core.io.OutputStream out) {\n this((java.lang.System[]) null);\n x10$io$OutputStreamWriter$$init$S(out);\n }",
"public static OutputStream getOutputStreamFromHttpServlet(final String fileOutputName) throws IOException {\n final FacesContext fc = FacesContext.getCurrentInstance();\n final ExternalContext ec = fc.getExternalContext();\n ec.setResponseContentType(\"application/ms-excel; charset=UTF-8\");\n ec.setResponseCharacterEncoding(\"UTF-8\");\n ec.setResponseHeader(\"Content-Disposition\",\n \"attachment; filename*=UTF-8''\" + URLEncoder.encode(fileOutputName, \"UTF-8\"));\n ec.addResponseCookie(Constants.DOWNLOAD_COOKIE, \"true\", Collections.<String, Object>emptyMap());\n return ec.getResponseOutputStream();\n }",
"public static AnsiPrintStream out() {\n initStreams();\n return (AnsiPrintStream) out;\n }",
"OutputStream read(String id);",
"void mo6321a(OutputStream outputStream, Object obj);",
"public Stream getStream(Streamable type){\n return Stream.builder().add(type).build() ;\n }",
"public ObjectOutputStream getOos(){\n return this.oos;\n }",
"protected OutputStream decorateOutputStream(HttpExchange exchange, OutputStream os)\n/* */ throws IOException\n/* */ {\n/* 181 */ return os;\n/* */ }",
"private void closeOutputStream() {\n\t\tPrintStreamManagement.closeOutputStream();\n\t}",
"public abstract void writeToStream(DataOutputStream dataOutputStream);"
] | [
"0.7655439",
"0.7360581",
"0.7178585",
"0.70365626",
"0.69924086",
"0.6981908",
"0.6954461",
"0.6934102",
"0.6881661",
"0.686609",
"0.6849162",
"0.68179476",
"0.681225",
"0.6805431",
"0.67953646",
"0.67912465",
"0.670212",
"0.66688514",
"0.66403246",
"0.6605369",
"0.6534974",
"0.6513631",
"0.64639294",
"0.6459155",
"0.6410312",
"0.6385496",
"0.6360427",
"0.6357397",
"0.6324628",
"0.630522",
"0.6221352",
"0.6200184",
"0.6111344",
"0.60025376",
"0.5979768",
"0.59430844",
"0.5921966",
"0.58814967",
"0.58519727",
"0.5835974",
"0.5809038",
"0.5749217",
"0.57352036",
"0.57213926",
"0.57108724",
"0.56926304",
"0.5679951",
"0.5655176",
"0.5643968",
"0.5634157",
"0.5633792",
"0.5631115",
"0.56146234",
"0.5598685",
"0.5560804",
"0.5550832",
"0.55366737",
"0.55061287",
"0.54821175",
"0.54718256",
"0.5437432",
"0.54362",
"0.5432838",
"0.5397011",
"0.53570455",
"0.5317821",
"0.5307419",
"0.52928257",
"0.529153",
"0.5269783",
"0.5269576",
"0.5195515",
"0.5189619",
"0.5165481",
"0.5160047",
"0.515728",
"0.5127372",
"0.5109239",
"0.5097448",
"0.5055822",
"0.5055778",
"0.50329167",
"0.5017874",
"0.50056064",
"0.5005536",
"0.4987137",
"0.49794024",
"0.49669924",
"0.4959438",
"0.494532",
"0.4919902",
"0.49098",
"0.49023253",
"0.48954052",
"0.48908502",
"0.48525298",
"0.48466444",
"0.48400047",
"0.48317698",
"0.4820672"
] | 0.72561824 | 2 |
Returns the value of the 'Device Identifier' containment reference. The device identifier (DI) is a mandatory, fixed portion of a UDI that identifies the labeler and the specific version or model of a device. | org.hl7.fhir.String getDeviceIdentifier(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BigDecimal getDeviceIdentifier() {\n return deviceIdentifier;\n }",
"public String getTextDeviceIdentifier() {\r\n\t\tString DeviceIdentifier = safeGetText(addVehiclesHeader.replace(\"Add Vehicle\", \"Please Enter Device IMEI Number\"), SHORTWAIT);\r\n\t\treturn DeviceIdentifier;\r\n\t}",
"public org.thethingsnetwork.management.proto.HandlerOuterClass.Device getDevice(org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceIdentifier request);",
"public String getDeviceId() {\n\t\tString id;\n\t\tid = options.getProperty(\"id\");\n\t\tif(id == null) {\n\t\t\tid = options.getProperty(\"Device-ID\");\n\t\t}\n\t\treturn trimedValue(id);\n\t}",
"public String getDeviceid() {\n return deviceid;\n }",
"public String getDeviceId() {\n return this.DeviceId;\n }",
"public java.lang.String getDID() {\r\n return DID;\r\n }",
"public String getDevice_id() {\r\n\t\treturn device_id;\r\n\t}",
"public java.lang.String getResultDeviceIdentifier() {\n return resultDeviceIdentifier;\n }",
"public String getDeviceUDID() {\r\n\t\tTelephonyManager telephonyManager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);\r\n\t\treturn telephonyManager.getDeviceId();\r\n\t}",
"java.lang.String getDeviceId();",
"@Override\n public String getDeviceId() {\n return this.strDevId;\n }",
"public String deviceId() {\n return this.deviceId;\n }",
"public java.lang.String getDeviceId() {\n java.lang.Object ref = deviceId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n deviceId_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getDeviceId() {\n java.lang.Object ref = deviceId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n deviceId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public com.flexnet.opsembedded.webservices.ExternalIdQueryType getDeviceUniqueId() {\n return deviceUniqueId;\n }",
"public Integer getDeviceId() {\n return deviceId;\n }",
"public Integer getDeviceId() {\n return deviceId;\n }",
"public final String getDeviceId(){\n return peripheralDeviceId;\n }",
"public Identification getIdentificationByUID(String identificationUID) throws InvalidFormatException;",
"public final int getDeviceID() {\n return device.getDeviceID();\n }",
"public java.lang.String getResultDeviceGuid() {\n return resultDeviceGuid;\n }",
"public final int getDevice()\n\t{\n\t\treturn address & 0xFF;\n\t}",
"Integer getDeviceId();",
"public static String deviceId() {\n\t\t// return device id\n\t\treturn getTelephonyManager().getDeviceId();\n\t}",
"public String getDeviceId() {\n String info = \"\";\n try {\n Uri queryurl = Uri.parse(REGINFO_URL + CHUNLEI_ID);\n ContentResolver resolver = mContext.getContentResolver();\n info = resolver.getType(queryurl);\n if (null == info && null != mContext) {\n info = getIMEI();\n }\n if (null == info) {\n info = \"\";\n }\n } catch (Exception e) {\n System.out.println(\"in or out strean exception\");\n }\n return info;\n }",
"UUID getDeviceId();",
"public com.google.protobuf.ByteString\n getDeviceIdBytes() {\n java.lang.Object ref = deviceId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n deviceId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"org.hl7.fhir.Identifier getIdentifier();",
"public String getDevice() {\r\n return device;\r\n }",
"public static FlexID testDeviceID() {\n byte[] identity = {\n 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,\n 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,\n 0x0, 0x0, 0x0, 0x0\n };\n\n return new FlexID(identity, FlexIDType.DEVICE, new AttrValuePairs(), null);\n }",
"public String getDeviceName(){\n\t\treturn deviceName;\n\t}",
"public com.google.protobuf.ByteString\n getDeviceIdBytes() {\n java.lang.Object ref = deviceId_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n deviceId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"ELEMENTIDENTIFIER getIdentifier();",
"public String getDeviceName() {\n return deviceName;\n }",
"public String getDeviceId() {\n //TelephonyManager tm = (TelephonyManager)getSystemService(TELEPHONY_SERVICE);\n String number = Build.SERIAL;\n return number;\n }",
"public String getDeviceName() {\n return deviceName;\n }",
"public static String getIdd() {\n return idd;\n }",
"public String getMyDeviceId() {\n return myDeviceId;\n }",
"public String getDeviceName() {\n\t\treturn deviceName;\n\t}",
"private String getDeviceID() {\n try {\n TelephonyManager telephonyManager;\n\n telephonyManager =\n (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);\n\n /*\n * getDeviceId() function Returns the unique device ID.\n * for example,the IMEI for GSM and the MEID or ESN for CDMA phones.\n */\n return telephonyManager.getDeviceId();\n }catch(SecurityException e){\n return null;\n }\n }",
"public java.lang.String getIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IDENTIFIER$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"String getDeviceName() {\n return deviceName;\n }",
"com.google.protobuf.ByteString\n getDeviceIdBytes();",
"public String getDeviceCode() {\n return deviceCode;\n }",
"public com.google.common.util.concurrent.ListenableFuture<org.thethingsnetwork.management.proto.HandlerOuterClass.Device> getDevice(\n org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceIdentifier request);",
"public au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier getIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier target = null;\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier)get_store().find_element_user(IDENTIFIER$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public String getDeviceName(){\n\t return deviceName;\n }",
"public org.hl7.fhir.Identifier getIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Identifier target = null;\n target = (org.hl7.fhir.Identifier)get_store().find_element_user(IDENTIFIER$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public String imei() {\n\t\t TelephonyManager telephonyManager = (TelephonyManager) activity\n\t\t .getSystemService(Context.TELEPHONY_SERVICE);\n\t\t return telephonyManager.getDeviceId();\n\t\t}",
"@AutoEscape\n\tpublic String getDni();",
"public Number getDocId() {\n return (Number)getAttributeInternal(DOCID);\n }",
"public Number getDocId() {\n return (Number)getAttributeInternal(DOCID);\n }",
"DeviceInfo getDeviceInfo(DeviceIdentifier deviceIdentifier) throws DeviceDetailsMgtException;",
"@XmlElement(name = \"identifier\", namespace = Namespaces.SRV)\n final String getIdentifier() {\n if (LEGACY_XML) {\n final ScopedName name = getScopedName();\n if (name != null) {\n return name.tip().toString();\n }\n }\n return null;\n }",
"public String getPatientidentifierId() {\n\t\treturn patientidentifierId;\n\t}",
"public UUID getDeviceUuid() {\n return uuid;\n }",
"@NotNull\n public String getIdentifier() {\n return this.identifier;\n }",
"public String getDeviceNameForMacro() {\r\n String name = getDeviceName();\r\n\r\n if(name.startsWith(\"PIC32\")) {\r\n return name.substring(3); // \"32MX795F512L\"\r\n } else if(name.startsWith(\"ATSAM\")) {\r\n return name.substring(2); // \"SAME70Q21\"\r\n } else {\r\n return name;\r\n }\r\n }",
"public String getDeviceId() {\n String deviceId = ((TelephonyManager) LoginActivity.this.getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId();\n if (deviceId != null && !deviceId.equalsIgnoreCase(\"null\")) {\n // System.out.println(\"imei number :: \" + deviceId);\n return deviceId;\n }\n\n deviceId = android.os.Build.SERIAL;\n // System.out.println(\"serial id :: \" + deviceId);\n return deviceId;\n\n }",
"@NonNull String identifier();",
"public boolean isDeviceIdentifierIMEINoLabelPresent() {\r\n\t\treturn isElementPresent(vehicleName.replace(\"Vehicle Name\", \"Device Identifier / IMEI No.\"), SHORTWAIT);\r\n\t}",
"public java.util.List<IdentifierDt> getIdentifierElement() { \n\t\tif (myIdentifier == null) {\n\t\t\tmyIdentifier = new java.util.ArrayList<IdentifierDt>();\n\t\t}\n\t\treturn myIdentifier;\n\t}",
"DeviceId deviceId();",
"DeviceId deviceId();",
"public String getDeviceName() {\n return this.deviceName;\n }",
"public java.lang.String getIdentifier() {\n java.lang.Object ref = identifier_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n identifier_ = s;\n }\n return s;\n }\n }",
"@UML(identifier=\"issueIdentification\", obligation=OPTIONAL, specification=ISO_19115)\n String getIssueIdentification();",
"public com.google.protobuf.ByteString\n getIdentifierBytes() {\n java.lang.Object ref = identifier_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n identifier_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getDeviceName() {\r\n return name_;\r\n }",
"@Override\r\n\tpublic String getDNI() {\n\t\treturn dni;\r\n\t}",
"public String getIdentifier() {\r\n\t\treturn this.identifier;\r\n\t}",
"public String getIdentifier() {\n/* 222 */ return getValue(\"identifier\");\n/* */ }",
"public String getIdentifier() {\n\t\treturn identifier;\n\t}",
"public String getIdentification ()\n {\n return this.toString();\n }",
"public java.lang.String getIdentifier() {\n java.lang.Object ref = identifier_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n identifier_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public EI getHealthDocumentReferenceIdentifier() { \r\n\t\tEI retVal = this.getTypedField(19, 0);\r\n\t\treturn retVal;\r\n }",
"Reference getDevice();",
"@SuppressLint(\"HardwareIds\")\n String getDeviceID() {\n return Settings.Secure.getString(getApplicationContext().getContentResolver(),\n Settings.Secure.ANDROID_ID);\n }",
"public final ASN1Identifier getIdentifier()\n {\n return content.getIdentifier();\n }",
"private static DeviceId getDeviceId(int i) {\n return DeviceId.deviceId(\"\" + i);\n }",
"String getSelectedDevice() {\n return selectedDevice;\n }",
"public String getIdentificationNumber() {\n return this.identificationNumber;\n }",
"public String getIdentifier() {\n return identifier;\n }",
"public String getIdentifier() {\n return identifier;\n }",
"public String getIdentifier() {\n return identifier;\n }",
"public String getIdentifier() {\n return identifier;\n }",
"public String getIdentifier() {\n return identifier;\n }",
"public String getIdentifier() {\n return identifier;\n }",
"public String getIdentifier() {\n return identifier;\n }",
"public String getIdentifier() {\n return identifier;\n }",
"public String getDeviceDescription() {\r\n return deviceDesc;\r\n }",
"public com.google.protobuf.ByteString\n getIdentifierBytes() {\n java.lang.Object ref = identifier_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n identifier_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public void setDeviceId(String DeviceId) {\n this.DeviceId = DeviceId;\n }",
"@Nullable\n public String getIdentifier()\n {\n return identifier;\n }",
"public Device getDevice() {\n\t\treturn this.device;\n\t}",
"public void getDevice(org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceIdentifier request,\n io.grpc.stub.StreamObserver<org.thethingsnetwork.management.proto.HandlerOuterClass.Device> responseObserver);",
"public java.lang.String getIdMedication() {\n java.lang.Object ref = idMedication_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n idMedication_ = s;\n return s;\n }\n }",
"public StrColumn getPdbxDatabaseIdDOI() {\n return delegate.getColumn(\"pdbx_database_id_DOI\", DelegatingStrColumn::new);\n }",
"public Identifier getFluidId() {\n\t\treturn Registry.FLUID.getId(getFluid());\n\t}"
] | [
"0.63795996",
"0.63688374",
"0.6361491",
"0.63094825",
"0.6266268",
"0.6203789",
"0.61573523",
"0.614482",
"0.6074049",
"0.60291815",
"0.602318",
"0.5962493",
"0.5931342",
"0.59074944",
"0.58932894",
"0.586702",
"0.5821593",
"0.5821593",
"0.581687",
"0.5806451",
"0.57959133",
"0.57805943",
"0.57722855",
"0.5755533",
"0.5750165",
"0.5745053",
"0.57332295",
"0.57135224",
"0.57068473",
"0.57002366",
"0.5686245",
"0.56820583",
"0.567575",
"0.566961",
"0.5650037",
"0.56495816",
"0.56441385",
"0.56194216",
"0.561312",
"0.5609063",
"0.5581829",
"0.55741364",
"0.55505806",
"0.5531319",
"0.5525764",
"0.5517177",
"0.5445454",
"0.5442937",
"0.54155076",
"0.53953093",
"0.5362936",
"0.53580016",
"0.53580016",
"0.53388727",
"0.53233856",
"0.5317711",
"0.5313121",
"0.5311893",
"0.53066844",
"0.5299535",
"0.5290767",
"0.5276564",
"0.5276502",
"0.52763534",
"0.52763534",
"0.52646726",
"0.52550775",
"0.5241422",
"0.5233613",
"0.5218505",
"0.5218188",
"0.52164173",
"0.5213682",
"0.52068514",
"0.5200045",
"0.5198726",
"0.5194401",
"0.51861036",
"0.51787883",
"0.5178336",
"0.5175963",
"0.5173931",
"0.5170648",
"0.5168189",
"0.5168189",
"0.5168189",
"0.5168189",
"0.5168189",
"0.5168189",
"0.5168189",
"0.5168189",
"0.51570207",
"0.51527053",
"0.51515913",
"0.5150689",
"0.5146672",
"0.51457334",
"0.5142349",
"0.51366174",
"0.51308817"
] | 0.7262915 | 0 |
Returns the value of the 'Issuer' containment reference. Organization that is charged with issuing UDIs for devices. For example, the US FDA issuers include : 1) GS1: 2) HIBCC: 3) ICCBBA for blood containers: 4) ICCBA for other devices: | Uri getIssuer(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public com.google.protobuf.ByteString\n getIssuerBytes() {\n java.lang.Object ref = issuer_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n issuer_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getIssuerBytes() {\n java.lang.Object ref = issuer_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n issuer_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.lang.String getIssuer() {\n java.lang.Object ref = issuer_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n issuer_ = s;\n return s;\n }\n }",
"public java.lang.String getIssuer() {\n java.lang.Object ref = issuer_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n issuer_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getIssuer() {\n return this.Issuer;\n }",
"java.lang.String getIssuer();",
"IssuerInfo getIssuer(String issuerName);",
"public String getIssuerId() {\r\n return issuerId;\r\n }",
"public IssuerInfo getIssuerInfo() {\r\n\t\treturn issuerInfo;\r\n\t}",
"com.google.protobuf.ByteString\n getIssuerBytes();",
"public ByteArrayAttribute getAcIssuer() {\n return acIssuer;\n }",
"public void setIssuer(String Issuer) {\n this.Issuer = Issuer;\n }",
"public String getIssuerName() {\n return issuerName;\n }",
"public String getIssuerDn() {\n\t\treturn issuerDn;\n\t}",
"public int getExternalIssuer();",
"public X500Principal getIssuerX500Principal() {\n try {\n // TODO if there is no X.509 certificate provider installed\n // should we try to access Harmony X509CRLImpl via classForName?\n CertificateFactory factory = CertificateFactory\n .getInstance(\"X.509\");\n\n X509CRL crl = (X509CRL) factory\n .generateCRL(new ByteArrayInputStream(getEncoded()));\n\n return crl.getIssuerX500Principal();\n\n } catch (Exception e) {\n throw new RuntimeException(\"Failed to get X500Principal issuer\", e);\n }\n }",
"public javax.security.auth.x500.X500Principal getCertificateIssuer() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: sun.security.x509.X509CRLEntryImpl.getCertificateIssuer():javax.security.auth.x500.X500Principal, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: sun.security.x509.X509CRLEntryImpl.getCertificateIssuer():javax.security.auth.x500.X500Principal\");\n }",
"public String issuer() {\n return this.innerProperties() == null ? null : this.innerProperties().issuer();\n }",
"public Builder setIssuer(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n issuer_ = value;\n onChanged();\n return this;\n }",
"@ApiModelProperty(required = true, value = \"ID of the character who issued this change\")\n public Integer getIssuerId() {\n return issuerId;\n }",
"public void setIssuerInfo(IssuerInfo issuer) {\r\n\t\tthis.issuerInfo = issuer;\r\n\t}",
"public void setExternalIssuer(int externalIssuer);",
"public void setIssuerDn(String issuerDn) {\n\t\tthis.issuerDn = issuerDn;\n\t}",
"public String getMlIssuerId() {\r\n return mlIssuerId;\r\n }",
"public Builder setIssuerBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n issuer_ = value;\n onChanged();\n return this;\n }",
"public String getIdentificationIssuingOrg() {\n return this.identificationIssuingOrg;\n }",
"public java.security.Principal getIssuerDN() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getIssuerDN():java.security.Principal, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getIssuerDN():java.security.Principal\");\n }",
"public CertificateIssuer(String name) {\r\n\tsuper();\r\n\t\tthis.name = name;\r\n\t\tthis.hascert = false;\r\n\t}",
"public javax.security.auth.x500.X500Principal getIssuerX500Principal() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getIssuerX500Principal():javax.security.auth.x500.X500Principal, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getIssuerX500Principal():javax.security.auth.x500.X500Principal\");\n }",
"public void testCardIssuerUI() throws Exception {\r\n selenium.click(\"link=Card Issuer\");\r\n selenium.waitForPageToLoad(\"30000\");\r\n assertTrue(selenium.isTextPresent(\"Card Issuer Configuration\"));\r\n assertTrue(selenium.isElementPresent(\"link=Configure\"));\r\n assertEquals(\"Configuration Parameters\", selenium.getText(\"//div[@id='workArea']/table[2]/tbody/tr[2]/td\"));\r\n assertEquals(\"Card Name\", selenium.getText(\"//div[@id='workArea']/table[2]/tbody/tr[3]/td[1]\"));\r\n assertEquals(\"WSO2 Managed Card\", selenium.getText(\"//div[@id='workArea']/table[2]/tbody/tr[3]/td[2]\"));\r\n assertEquals(\"Valid Period\", selenium.getText(\"//div[@id='workArea']/table[2]/tbody/tr[4]/td[1]\"));\r\n assertEquals(\"365\", selenium.getText(\"//div[@id='workArea']/table[2]/tbody/tr[4]/td[2]\"));\r\n assertEquals(\"Supporting Token Types\", selenium.getText(\"//div[@id='workArea']/table[2]/tbody/tr[5]/td[1]\"));\r\n assertEquals(\"SAML10,SAML11,SAML20,OpenID\", selenium.getText(\"//div[@id='workArea']/table[2]/tbody/tr[5]/td[2]\"));\r\n assertEquals(\"Symmetric binding used\", selenium.getText(\"//div[@id='workArea']/table[2]/tbody/tr[6]/td[1]\"));\r\n assertEquals(\"false\", selenium.getText(\"//div[@id='workArea']/table[2]/tbody/tr[6]/td[2]\"));\r\n }",
"@Override\n public boolean isValidIssuer(List<String> certAuthorities) {\n return sValidIssuer;\n }",
"public String getIssn() {\n return (String)getAttributeInternal(ISSN);\n }",
"public void setIssuerId(String issuerId) {\r\n this.issuerId = issuerId == null ? null : issuerId.trim();\r\n }",
"private IssuerData generateIssuerData(String signerName){\n String serial = myDatabase.getSerialByName(signerName);\n X509Certificate signerCert = (X509Certificate) keyStoreReader.readCertificate(keystoreFile, keystorePassword, serial);\n PrivateKey signerPrivateKey = keyStoreReader.readPrivateKey(keystoreFile, keystorePassword, serial, entriesPassword);\n\n String x500Principal = signerCert.getSubjectX500Principal().toString();\n String[] tokens = x500Principal.split(\", \");\n String uid = tokens[0].split(\"=\")[1];\n String email = tokens[1].split(\"=\")[1];\n String country = tokens[2].split(\"=\")[1];\n String organisation = tokens[3].split(\"=\")[1];\n String oUnit = tokens[4].split(\"=\")[1];\n String givenName = tokens[5].split(\"=\")[1];\n String sureName = tokens[6].split(\"=\")[1];\n String commonName = tokens[7].split(\"=\")[1];\n\n X500NameBuilder builder = new X500NameBuilder(BCStyle.INSTANCE);\n builder.addRDN(BCStyle.CN, commonName);\n builder.addRDN(BCStyle.SURNAME, sureName);\n builder.addRDN(BCStyle.GIVENNAME, givenName);\n builder.addRDN(BCStyle.O, organisation);\n builder.addRDN(BCStyle.OU, oUnit);\n builder.addRDN(BCStyle.C, country);\n builder.addRDN(BCStyle.E, email);\n builder.addRDN(BCStyle.UID, uid);\n X500Name x500Name = builder.build();\n\n IssuerData issuerData = new IssuerData(signerPrivateKey, x500Name);\n return issuerData;\n }",
"sun.security.x509.CertificateIssuerExtension getCertificateIssuerExtension() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: sun.security.x509.X509CRLEntryImpl.getCertificateIssuerExtension():sun.security.x509.CertificateIssuerExtension, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: sun.security.x509.X509CRLEntryImpl.getCertificateIssuerExtension():sun.security.x509.CertificateIssuerExtension\");\n }",
"public String getIssn() {\n\t\treturn issn;\n\t}",
"public long getAttacker()\n\t{\n\t\treturn this.getIssuer();\n\t}",
"public Builder clearIssuer() {\n \n issuer_ = getDefaultInstance().getIssuer();\n onChanged();\n return this;\n }",
"public String getParticipantIssuerBankReference() {\n return participantIssuerBankReference;\n }",
"@ApiModelProperty(value = \"Attributes of the issuer object.\")\n public IssuerAttributes getAttributes() {\n return attributes;\n }",
"protected abstract int[] setIssuerIdentificationNumber();",
"public void setIdentificationIssuingOrg(String identificationIssuingOrg) {\n this.identificationIssuingOrg = identificationIssuingOrg;\n }",
"public byte[] getEncIssr() {\n return encIssr;\n }",
"public java.util.Collection<java.util.List<?>> getIssuerAlternativeNames() throws java.security.cert.CertificateParsingException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getIssuerAlternativeNames():java.util.Collection<java.util.List<?>>, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getIssuerAlternativeNames():java.util.Collection<java.util.List<?>>\");\n }",
"public static boolean ValidateIDissuerKey(String issuer,String kid,HttpServletResponse resp) throws IOException, InterruptedException\n\t{\n\t\tString IDTokURL=issuer;\n\t\tString publickey=kid;\n\t\t\n\t\t//First Validate the issuer and verifed the kid(public key) in that issuer URL\n\t\tHttpRequest IDTokKeyVerified = HttpRequest.newBuilder()\n .uri(URI.create(IDTokURL))\n .POST(BodyPublishers.ofString(\"\"))\n .header(\"client_id\",\"mano.lmfsktkmyj\")\n .header(\"public_key\",publickey)\n .header(\"Content-Type\", \"application/json\")\n .build();\n\t\tHttpClient client = HttpClient.newHttpClient();\n // Send HTTP request\n\t\t\tHttpResponse<String> tokenResponse;\n\t\t\t\ttokenResponse = client.send(IDTokKeyVerified,\n\t\t\t\t HttpResponse.BodyHandlers.ofString());\n\t\t\t\t\n\t\t//Enclosed the response in map datastructure ,it is easy to parse the response\n\t\tMap<String,Object> validateissuer_resp=processJSON(tokenResponse.body().replace(\"{\", \"\").replace(\"}\",\"\"));\n\t\tif(validateissuer_resp.get(\"verified\").equals(\"true\"))\n\t\treturn true;\n\t\telse\n\t\treturn false;\n\t}",
"@MetadataValueMatcher(metadataValue=21)\n\tpublic List<String> getIssns() {\n\t\treturn issns;\n\t}",
"public FederatedIdentityCredentialInner withIssuer(String issuer) {\n if (this.innerProperties() == null) {\n this.innerProperties = new FederatedIdentityCredentialProperties();\n }\n this.innerProperties().withIssuer(issuer);\n return this;\n }",
"public boolean[] getIssuerUniqueID() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getIssuerUniqueID():boolean[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getIssuerUniqueID():boolean[]\");\n }",
"@ApiModelProperty(value = \"Identifier for the issuer object.\")\n public String getId() {\n return id;\n }",
"public void setEncIssr(byte[] value) {\n this.encIssr = value;\n }",
"public Integer getIsspecific() {\n return isspecific;\n }",
"private String issuer() {\n return \"spoqn.com\";\n }",
"public String getIssuerFromToken(String token) {\n\t\tString username;\n\t\ttry {\n\t\t\tfinal Claims claims = this.getClaimsFromToken(token);\n\t\t\tusername = claims.getIssuer();\n\t\t} catch (Exception e) {\n\t\t\tusername = null;\n\t\t}\n\t\treturn username;\n\t}",
"org.hl7.fhir.Instant getIssued();",
"public CertificateIssuer(String name, File fileaddress) throws CryptoException {\r\n\t\tsuper(fileaddress);\r\n\t\tlog.debug(PropertyFileConfiguration.StarLine+\"Issuer for \"+name+\" has been created from : \" + fileaddress.getAbsolutePath());\r\n\t\tlog.debug(\"Root cert subjectDN : \" +this.getSubjectDN()+PropertyFileConfiguration.StarLine);\r\n\t\tthis.name = name;\r\n\t\tthis.hascert = true;\r\n\t}",
"public void setIssn(String value) {\n setAttributeInternal(ISSN, value);\n }",
"@Test\n public void issuerTest() {\n // TODO: test issuer\n }",
"public void setIssuerDN(javax.security.auth.x500.X500Principal r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setIssuerDN(javax.security.auth.x500.X500Principal):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setIssuerDN(javax.security.auth.x500.X500Principal):void\");\n }",
"void setCertificateIssuer(javax.security.auth.x500.X500Principal r1, javax.security.auth.x500.X500Principal r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: sun.security.x509.X509CRLEntryImpl.setCertificateIssuer(javax.security.auth.x500.X500Principal, javax.security.auth.x500.X500Principal):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: sun.security.x509.X509CRLEntryImpl.setCertificateIssuer(javax.security.auth.x500.X500Principal, javax.security.auth.x500.X500Principal):void\");\n }",
"public void setIssuerDN(com.android.org.bouncycastle.asn1.x509.X509Name r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setIssuerDN(com.android.org.bouncycastle.asn1.x509.X509Name):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setIssuerDN(com.android.org.bouncycastle.asn1.x509.X509Name):void\");\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getClaimCenterUID();",
"public String getIdentityCard() {\n return identityCard;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getConsortium() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(CONSORTIUM_PROP.get());\n }",
"@Bean\n JwtDecoder jwtDecoder() {\n\n NimbusJwtDecoder jwtDecoder = (NimbusJwtDecoder)\n JwtDecoders.fromOidcIssuerLocation(issuer);\n\n OAuth2TokenValidator<Jwt> audienceValidator = new AudienceValidator(audience);\n OAuth2TokenValidator<Jwt> withIssuer = JwtValidators.createDefaultWithIssuer(issuer);\n OAuth2TokenValidator<Jwt> withAudience = new DelegatingOAuth2TokenValidator<>(withIssuer, audienceValidator);\n\n jwtDecoder.setJwtValidator(withAudience);\n\n return jwtDecoder;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getConsortium() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(CONSORTIUM_PROP.get());\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getAudience() != null)\n sb.append(\"Audience: \").append(getAudience()).append(\",\");\n if (getIssuer() != null)\n sb.append(\"Issuer: \").append(getIssuer());\n sb.append(\"}\");\n return sb.toString();\n }",
"@ApiModelProperty(value = \"The credentials to be used for the issuer.\")\n public IssuerCredentials getCredentials() {\n return credentials;\n }",
"@UML(identifier=\"issueIdentification\", obligation=OPTIONAL, specification=ISO_19115)\n String getIssueIdentification();",
"public String getSubjectToDsIrb() {\n return subjectToDsIrb;\n }",
"public String getIccid() {\r\n return iccid;\r\n }",
"public static String generateCardNumber(Issuer issuer) {\n // cardNumber = Visa start with 4400, AMex: 3715, MasterCard = 3507\n String number = \"\";\n switch(issuer){\n case VISA: number += \"4400\"; break;\n case MASTER_CARD: number += \"3507\"; break;\n case AMEX: number += \"3715\"; break;\n case DISCOVER: number += \"5555\"; break;\n }\n /*\n if(issuer.equalsIgnoreCase(\"Visa\")) {\n number += \"4400\";\n }\n else if(issuer.equalsIgnoreCase(\"MasterCard\")) {\n number += \"3507\";\n }\n else if(issuer.equalsIgnoreCase(\"American Express\") \n || issuer.equalsIgnoreCase(\"Amex\")) {\n number += \"3715\";\n }\n else { // for our program, a default starting number\n number += \"5555\"; \n }\n */\n // could make random 12 digit number to add on.\n // or a counter that would add on\n number += COUNTER; \n COUNTER++;\n\n return number;\n }",
"X500Principal getSubject();",
"@Test(expected = InvalidSAMLRequestException.class)\n\tpublic void testValidate2c() throws InvalidSAMLRequestException\n\t{\n\t\tIdentifierCache cache = createMock(IdentifierCache.class);\n\t\treplay(cache);\n\t\tSAMLRequestValidatorImpl validator = new SAMLRequestValidatorImpl(cache, 100);\n\t\t\n\t\tRequestAbstractType request = new AuthnRequest();\n\t\trequest.setID(\"1234\");\n\t\t\n\t\t/* GMT timezone */\n\t\tSimpleTimeZone gmt = new SimpleTimeZone(0, \"UTC\");\n\n\t\t/* GregorianCalendar with the GMT time zone */\n\t\tGregorianCalendar calendar = new GregorianCalendar(gmt);\n\t\tXMLGregorianCalendar xmlCalendar = new XMLGregorianCalendarImpl(calendar);\n\t\t\n\t\trequest.setIssueInstant(xmlCalendar);\n\t\t\n\t\tNameIDType issuer = new NameIDType();\n\t\tissuer.setValue(\"\");\n\t\trequest.setIssuer(issuer);\n\t\t\n\t\tvalidator.validate(request);\n\t\tverify(cache);\n\t}",
"public String getSaijicd() {\r\n return saijicd;\r\n }",
"public X509Certificate[] getTrustedIssuers();",
"public PickupDetails withIdentificationIssuingOrg(String identificationIssuingOrg) {\n setIdentificationIssuingOrg(identificationIssuingOrg);\n return this;\n }",
"public com.cantor.drop.aggregator.model.CFTrade.SecurityIdType getSecIdType() {\n com.cantor.drop.aggregator.model.CFTrade.SecurityIdType result = com.cantor.drop.aggregator.model.CFTrade.SecurityIdType.valueOf(secIdType_);\n return result == null ? com.cantor.drop.aggregator.model.CFTrade.SecurityIdType.CUSIP : result;\n }",
"public com.cantor.drop.aggregator.model.CFTrade.SecurityIdType getSecIdType() {\n com.cantor.drop.aggregator.model.CFTrade.SecurityIdType result = com.cantor.drop.aggregator.model.CFTrade.SecurityIdType.valueOf(secIdType_);\n return result == null ? com.cantor.drop.aggregator.model.CFTrade.SecurityIdType.CUSIP : result;\n }",
"com.cantor.drop.aggregator.model.CFTrade.SecurityIdType getSecIdType();",
"public au.gov.asic.types.DocumentIdentifierType getAsicIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.DocumentIdentifierType target = null;\n target = (au.gov.asic.types.DocumentIdentifierType)get_store().find_element_user(ASICIDENTIFIER$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"@Override\r\n\t\t\tpublic X509Certificate[] getAcceptedIssuers() {\n\t\t\t\treturn null;\r\n\t\t\t}",
"public void setMlIssuerId(String mlIssuerId) {\r\n this.mlIssuerId = mlIssuerId == null ? null : mlIssuerId.trim();\r\n }",
"@Override\r\n\t\t\t\t\tpublic X509Certificate[] getAcceptedIssuers()\r\n\t\t\t\t\t{\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}",
"@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}",
"public Identification getIdentificationByUID(String identificationUID) throws InvalidFormatException;",
"public String getIdentityCardSecret() {\n return identityCardSecret;\n }",
"public DIGReasonerIdentity getIdentity();",
"@Override\n\t\t\t\tpublic X509Certificate[] getAcceptedIssuers() {\n\t\t\t\t\treturn null;\n\t\t\t\t}",
"public String getSuit()\n {\n\t// Local constants\n\n\t// Local variables\n\n\t/************** Start getSuit Method *****************/\n\n\t// Return suit of card\n return suit;\n\n }",
"public String getIndustry() {\n\t\treturn industry;\n\t}",
"public String getIdCardExpiration() {\n\t\treturn idCardExpiration;\n\t}",
"@Override\n\tpublic java.lang.String getEsfOrganization() {\n\t\treturn _esfShooterAffiliationChrono.getEsfOrganization();\n\t}",
"public String getIndustryCode() {\r\n return industryCode;\r\n }",
"@Override\r\n\tpublic X509Certificate[] getAcceptedIssuers() {\n\t\treturn null;\r\n\t}",
"public Response getOrgByIdentifiers(String accountIdentifier, String orgIdentifier) {\n RequestSpecification requestSpecification = genericRequestBuilder.getRequestSpecificationObjectNG();\n requestSpecification.pathParam(\"accountIdentifier\", accountIdentifier);\n requestSpecification.pathParam(\"orgIdentifier\", orgIdentifier);\n log.info(\"Get the Org details for the account: \" + accountIdentifier);\n Response response = genericRequestBuilder.getCall(requestSpecification, OrgConstants.URI_ORG_IDENTIFIERS);\n\n return response;\n }",
"public static String getIccid() {\n\t\treturn null;\n\t}",
"public static Object getIccid() {\n\t\treturn null;\n\t}",
"public javax.security.auth.Subject getSubject()\n {\n return __m_Subject;\n }",
"public IdentifierSearch getSecurityKeys() {\n return _securityKeys;\n }",
"void onIssuerWithoutDefaultInstallment();"
] | [
"0.7936586",
"0.79127",
"0.7844704",
"0.7821667",
"0.77556735",
"0.7663012",
"0.7590398",
"0.7423644",
"0.7346785",
"0.73246646",
"0.72038484",
"0.7133536",
"0.7103951",
"0.70983666",
"0.70681703",
"0.6818494",
"0.6724366",
"0.6681513",
"0.6615254",
"0.6563099",
"0.6338167",
"0.6274074",
"0.6216335",
"0.6178409",
"0.6149654",
"0.60747534",
"0.60696596",
"0.59790736",
"0.59214973",
"0.58508176",
"0.5823416",
"0.5793474",
"0.57747453",
"0.57160157",
"0.56999695",
"0.5641067",
"0.55981225",
"0.55767345",
"0.55738837",
"0.5486261",
"0.53584975",
"0.5318155",
"0.53171724",
"0.5266343",
"0.52534604",
"0.5253207",
"0.52519315",
"0.52496254",
"0.5198618",
"0.51796377",
"0.5154321",
"0.515148",
"0.51429087",
"0.5131006",
"0.5112397",
"0.50683284",
"0.5038287",
"0.50238436",
"0.49278915",
"0.4890497",
"0.48651958",
"0.48468706",
"0.4841522",
"0.4838032",
"0.48379767",
"0.47687158",
"0.4733897",
"0.4702265",
"0.46799275",
"0.46649858",
"0.46625984",
"0.4653191",
"0.4648539",
"0.46124846",
"0.4593969",
"0.4564108",
"0.45634964",
"0.45418677",
"0.45004207",
"0.4496795",
"0.44464582",
"0.44395903",
"0.4438264",
"0.44338757",
"0.4432161",
"0.4423443",
"0.44137475",
"0.44116285",
"0.44094124",
"0.44032586",
"0.43983698",
"0.43950737",
"0.4383251",
"0.43725923",
"0.4369022",
"0.43690094",
"0.43591893",
"0.4358885",
"0.43563506",
"0.43550858"
] | 0.6964672 | 15 |
Returns the value of the 'Jurisdiction' containment reference. The identity of the authoritative source for UDI generation within a jurisdiction. All UDIs are globally unique within a single namespace with the appropriate repository uri as the system. For example, UDIs of devices managed in the U.S. by the FDA, the value is | Uri getJurisdiction(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getJurisdiction() {\n return jurisdiction;\n }",
"public String getJurisdiction() {\n return jurisdiction;\n }",
"public String getJurisdictionCd() {\n\t\treturn null;\n\t}",
"public Long getProgramJurisdictionOid() {\n\t\treturn null;\n\t}",
"@gw.internal.gosu.parser.ExtendedProperty\n public typekey.Jurisdiction getBookJurisdiction();",
"public String implementationIRI() {\n\t\tString implementationIRI=this.versionIRI;\n\t\tif(implementationIRI==null) {\n\t\t\timplementationIRI=this.ontology;\n\t\t}\n\t\treturn implementationIRI;\n\t}",
"public Long getInstitution() {\n return institution;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public entity.AppCritJurisdiction[] getJurisdictions();",
"public String getInstitutionCode() {\n return normalizedBic.substring(INSTITUTION_CODE_INDEX, INSTITUTION_CODE_INDEX + INSTITUTION_CODE_LENGTH);\n }",
"public void setProgramJurisdictionOid(Long programJurisdictionOid) {\n\t\t\n\t}",
"public String getRepresentativeUniversalIdentifier() {\n return representativeUniversalIdentifier;\n }",
"public com.walgreens.rxit.ch.cda.CE getReligiousAffiliationCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.CE target = null;\n target = (com.walgreens.rxit.ch.cda.CE)get_store().find_element_user(RELIGIOUSAFFILIATIONCODE$16, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public org.hl7.fhir.Identifier getIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Identifier target = null;\n target = (org.hl7.fhir.Identifier)get_store().find_element_user(IDENTIFIER$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"String getContainmentReference();",
"public String getOwningInstitutionBibId() {\n return owningInstitutionBibId;\n }",
"public void setJurisdictionCd(String jurisdictionCd) {\n\t\t\n\t}",
"public java.lang.String getOrganizationId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ORGANIZATIONID$4, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }",
"org.hl7.fhir.Identifier getIdentifier();",
"public Reference location() {\n return getObject(Reference.class, FhirPropertyNames.PROPERTY_LOCATION);\n }",
"String getIPGeolocationCountryEmbeddedResource();",
"public String getInstitution() {\n return this.institution;\n }",
"public String getInstitutionCode() {\n\t\treturn institutionCode;\n\t}",
"public String getInstitution()\n\t{\n\t\treturn this.institution;\n\t}",
"@UML(identifier=\"issueIdentification\", obligation=OPTIONAL, specification=ISO_19115)\n String getIssueIdentification();",
"public String getInstitution() {\n return userItem.getInstitution();\n }",
"String getIPGeolocationCityEmbeddedResource();",
"public UUID getIdInstitution() {\n return idInstitution;\n }",
"public java.lang.String getIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IDENTIFIER$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public String getInstitutionCountry() {\n return institutionCountry;\n }",
"public String getSaijicd() {\r\n return saijicd;\r\n }",
"public String getIdentificationPrefix();",
"public void setBookJurisdiction(typekey.Jurisdiction value);",
"public String organization() {\n return this.organization;\n }",
"public Reference origin() {\n return getObject(Reference.class, FhirPropertyNames.PROPERTY_ORIGIN);\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getConsortium() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(CONSORTIUM_PROP.get());\n }",
"public java.lang.String getJurisdictionSwitchId() {\r\n return jurisdictionSwitchId;\r\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getConsortium() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(CONSORTIUM_PROP.get());\n }",
"public String getIdentification ()\n {\n return this.toString();\n }",
"public String getInstitutionName() {\n return institutionName;\n }",
"public String getJdOrg() {\r\n\t\treturn jdOrg;\r\n\t}",
"public org.openejb.config.sys.Lookup getLookup() {\n return this._lookup;\n }",
"public Long getInstitution_id() {\n return institution_id;\n }",
"@DisplayName(\"The Target Comp ID for the Marketcetera Exchange Server\")\n public String getTargetCompID();",
"public Reference individual() {\n return getObject(Reference.class, FhirPropertyNames.PROPERTY_INDIVIDUAL);\n }",
"public au.gov.asic.types.DocumentIdentifierType getAsicIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.DocumentIdentifierType target = null;\n target = (au.gov.asic.types.DocumentIdentifierType)get_store().find_element_user(ASICIDENTIFIER$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public org.hl7.fhir.ResourceReference getObservation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.ResourceReference target = null;\n target = (org.hl7.fhir.ResourceReference)get_store().find_element_user(OBSERVATION$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"com.hps.july.persistence.OrganizationKey getOrganizationKey() throws java.rmi.RemoteException;",
"org.hl7.fhir.CodeableConcept getValueCodeableConcept();",
"public String getIdentificationIssuingOrg() {\n return this.identificationIssuingOrg;\n }",
"String getOrganization();",
"public String getAffiliation() {\r\n\t\treturn affiliation;\r\n\t}",
"public Integer getJiaoshiid() {\n return jiaoshiid;\n }",
"String organizationId();",
"public com.walgreens.rxit.ch.cda.II getId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.II target = null;\n target = (com.walgreens.rxit.ch.cda.II)get_store().find_element_user(ID$6, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public java.lang.String getIdentifierValue() {\r\n return localIdentifierValue;\r\n }",
"public String getDeaccessionOwningInstitution() {\n return deaccessionOwningInstitution;\n }",
"public String getJP_OrgTrx_Value();",
"@DISPID(75)\r\n\t// = 0x4b. The runtime will prefer the VTID if present\r\n\t@VTID(73)\r\n\tjava.lang.String owner();",
"public java.lang.String getReferenceFileIPR()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REFERENCEFILEIPR$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public Identification getIdentificationByUID(String identificationUID) throws InvalidFormatException;",
"public java.lang.String getTaxExemptIssuingJurisdiction() {\n return taxExemptIssuingJurisdiction;\n }",
"@DISPID(33)\r\n\t// = 0x21. The runtime will prefer the VTID if present\r\n\t@VTID(38)\r\n\tjava.lang.String owner();",
"@iri(\"http://persistent.name/rdf/2010/purl#definedBy\")\n\tObject getPurlDefinedBy();",
"public org.hl7.fhir.CodeableConcept getCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.CodeableConcept target = null;\n target = (org.hl7.fhir.CodeableConcept)get_store().find_element_user(CODE$6, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Pir getPir()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Pir target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Pir)get_store().find_element_user(PIR$12, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public static String getDsInstitutionRegion(DigitalObject ds, GbifClient gbifClient){\n String institutionRegion = null;\n String institutionId = DigitalSpecimenUtils.getTermFromDsDwcaJson(ds, DwcTerm.institutionID);\n String institutionCode = DigitalSpecimenUtils.getStringPropertyFromDS(ds,\"institutionCode\");\n String collectionCode = DigitalSpecimenUtils.getStringPropertyFromDS(ds,\"collectionCode\");\n String collectionId = DigitalSpecimenUtils.getTermFromDsDwcaJson(ds, DwcTerm.collectionID);\n String identifier = DigitalSpecimenUtils.getTermFromDsDwcaJson(ds, DcTerm.identifier);\n try{\n JsonObject institutionInfo = null;\n if (StringUtils.isNotBlank(institutionId) && DigitalSpecimenUtils.isStringAValidUuid(institutionId)){\n institutionInfo = gbifClient.getInstitutionInfoByInstitutionId(institutionId);\n } else if (StringUtils.isNotBlank(institutionCode)){\n JsonArray posibleInstitutions = gbifClient.getInstitutionsInfoByInstitutionCode(institutionCode);\n if (posibleInstitutions.size()==1){\n institutionInfo = posibleInstitutions.get(0).getAsJsonObject();\n } else if (posibleInstitutions.size()>1){\n //There are several institution with that institution code\n //Check if all of them are from the same region\n String possibleRegion = \"UNKNOWN\";\n if (posibleInstitutions.get(0).getAsJsonObject().has(\"country\")){\n possibleRegion = posibleInstitutions.get(0).getAsJsonObject().getAsJsonObject(\"country\").get(\"region\").getAsString();\n }\n boolean sameRegion=true;\n for (JsonElement posibleInstitution:posibleInstitutions) {\n if (!posibleInstitution.getAsJsonObject().has(\"country\") || !possibleRegion.equalsIgnoreCase(posibleInstitution.getAsJsonObject().getAsJsonObject(\"country\").get(\"region\").getAsString())){\n sameRegion=false;\n break;\n }\n }\n if (sameRegion){\n institutionInfo=posibleInstitutions.get(0).getAsJsonObject();\n } else if (StringUtils.isNotBlank(collectionCode)){\n //Try to see if we can find what institution this digital specimen belongs to by looking at the collection code\n for (Iterator<JsonElement> iter = posibleInstitutions.iterator(); iter.hasNext(); ) {\n JsonObject posibleInstitution = (JsonObject) iter.next();\n JsonObject collectionInfo = gbifClient.getCollectionInfoByInstitutionIdAndCollectionCode(posibleInstitution.get(\"key\").getAsString(),collectionCode);\n if (collectionInfo==null){\n iter.remove();\n }\n }\n if (posibleInstitutions.size()==1){\n institutionInfo=posibleInstitutions.get(0).getAsJsonObject();\n }\n }\n }\n }\n\n if (institutionInfo!=null && institutionInfo.has(\"country\")){\n institutionRegion = institutionInfo.getAsJsonObject(\"country\").get(\"region\").getAsString();\n } else{\n //As last attempt, try to get the country from the record institutionId, collectionsId or identifier if they are valid url\n UrlValidator urlValidator = new UrlValidator();\n CountryResponse countryResponse = null;\n if (StringUtils.isNotBlank(institutionId) && urlValidator.isValid(institutionId)){\n logger.debug(\"Obtaining institution code from \");\n countryResponse = NetUtils.getCountryInfoFromUrl(institutionId);\n } else if (StringUtils.isNotBlank(collectionId) && urlValidator.isValid(collectionId)){\n countryResponse = NetUtils.getCountryInfoFromUrl(collectionId);\n } else if (StringUtils.isNotBlank(identifier) && urlValidator.isValid(identifier)){\n countryResponse = NetUtils.getCountryInfoFromUrl(identifier);\n }\n if (countryResponse!=null){\n institutionRegion = countryResponse.getContinent().getName();\n }\n }\n\n if (StringUtils.isBlank(institutionRegion)){\n String physicalSpecimenId=DigitalSpecimenUtils.getStringPropertyFromDS(ds,\"physicalSpecimenId\");\n String scientificName=DigitalSpecimenUtils.getStringPropertyFromDS(ds,\"scientificName\");\n logger.warn(\"It was not possible to obtain institution's regions for ds [\" + scientificName\n + \" || \" + institutionCode + \" || \"+ physicalSpecimenId + \"]\");\n }\n } catch (Exception e){\n logger.error(\"Unexpected error trying to obtain institution's region for ds \" + e.getMessage(),ds);\n }\n return institutionRegion;\n }",
"String organizationName();",
"public String getCouncil() {\n return council;\n }",
"public String getOrganization() {\n return organization;\n }",
"public java.lang.String getULEXImplementationName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ULEXIMPLEMENTATIONNAME$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public String getCodebase() {\n return(translateCodebase());\n }",
"public String getUnidade() {\n\t\treturn unidade;\n\t}",
"private static Lookup getUserCatalogsLookup() {\n if (userCatalogLookup == null) {\n userCatalogLookup = Lookups.forPath(REGISTRATIONS);\n }\n return userCatalogLookup;\n }",
"public int getApplication() {\n\treturn com.hps.july.constants.Applications.DICTIONARY;\n}",
"public com.sun.org.omg.CORBA.Repository get_ir ()\n {\n org.omg.CORBA.portable.InputStream _in = null;\n try {\n org.omg.CORBA.portable.OutputStream _out = _request (\"get_ir\", true);\n _in = _invoke (_out);\n com.sun.org.omg.CORBA.Repository __result = com.sun.org.omg.CORBA.RepositoryHelper.read (_in);\n return __result;\n } catch (org.omg.CORBA.portable.ApplicationException _ex) {\n _in = _ex.getInputStream ();\n String _id = _ex.getId ();\n throw new org.omg.CORBA.MARSHAL (_id);\n } catch (org.omg.CORBA.portable.RemarshalException _rm) {\n return get_ir ();\n } finally {\n _releaseReply (_in);\n }\n }",
"java.lang.String getConceptId();",
"public org.jboss.com.sun.org.omg.CORBA.Repository get_ir()\n {\n org.omg.CORBA.portable.InputStream _in = null;\n try\n {\n org.omg.CORBA.portable.OutputStream _out = _request(\"get_ir\", true);\n _in = _invoke(_out);\n org.jboss.com.sun.org.omg.CORBA.Repository __result = org.jboss.com.sun.org.omg.CORBA.RepositoryHelper\n .read(_in);\n return __result;\n }\n catch (org.omg.CORBA.portable.ApplicationException _ex)\n {\n _in = _ex.getInputStream();\n String _id = _ex.getId();\n throw new org.omg.CORBA.MARSHAL(_id);\n }\n catch (org.omg.CORBA.portable.RemarshalException _rm)\n {\n return get_ir();\n }\n finally\n {\n _releaseReply(_in);\n }\n }",
"@RdfProperty(\"http://www.coadunation.net/schema/rdf/1.0/base#IdValue\")\n public abstract String getValue();",
"public final String getURI() {\n/* 314 */ return this.constructionElement.getAttributeNS(null, \"Algorithm\");\n/* */ }",
"public org.apache.xmlbeans.XmlAnyURI xgetIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlAnyURI target = null;\n target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_element_user(IDENTIFIER$0, 0);\n return target;\n }\n }",
"public String getCnpjPossuidor() {\n return cnpjPossuidor;\n }",
"public String getOrganization() {\n\t\treturn organization;\n\t}",
"public String getSrcIndustryView() {\r\n return (String) getAttributeInternal(SRCINDUSTRYVIEW);\r\n }",
"public au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier getIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier target = null;\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier.Identifier)get_store().find_element_user(IDENTIFIER$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public Integer getCusUid() {\r\n return cusUid;\r\n }",
"public final long getUIN() {\n\t return icqUIN;\n }",
"public String getInspection() {\n return (String)getAttributeInternal(INSPECTION);\n }",
"@XmlElement\n public String getOrgUnitRefId() {\n return orgUnitRefId;\n }",
"public String getJP_SalesRep_Value();",
"public java.lang.String getOrigin()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ORIGIN$16, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"String getLookupKey();",
"public java.lang.String getOID()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(OID$12);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }",
"public final ResourceLocation getIdentifier() {\n return identifier;\n }",
"Object getContainedValue();",
"public String getUniversalId() {\r\n return unid;\r\n }",
"public ResourceLocator getResourceLocator() {\r\n\t\treturn UmlDomainEditPlugin.INSTANCE;\r\n\t}",
"public String getIdentifier() {\n/* 222 */ return getValue(\"identifier\");\n/* */ }",
"@AutoEscape\n\tpublic String getOrganization();",
"public java.lang.String getId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$8);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }",
"public java.lang.String getId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$4);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }"
] | [
"0.6928031",
"0.6886201",
"0.65678847",
"0.5723647",
"0.54871154",
"0.52766186",
"0.5115079",
"0.50412774",
"0.50317866",
"0.50215733",
"0.4992802",
"0.49897274",
"0.4983032",
"0.49581566",
"0.49506012",
"0.49384156",
"0.49270284",
"0.49073568",
"0.49048984",
"0.4893399",
"0.48808208",
"0.48772073",
"0.48760563",
"0.4870506",
"0.48654425",
"0.48536536",
"0.48438042",
"0.48434338",
"0.48401392",
"0.48176956",
"0.48098773",
"0.4773628",
"0.473537",
"0.4729411",
"0.47275287",
"0.47250342",
"0.47224236",
"0.47106233",
"0.47062093",
"0.46928656",
"0.46889535",
"0.4686344",
"0.468481",
"0.46745518",
"0.4668951",
"0.4652242",
"0.46504068",
"0.4631638",
"0.4630012",
"0.4615147",
"0.46041268",
"0.45922333",
"0.4581215",
"0.4580689",
"0.45668697",
"0.45657274",
"0.45621055",
"0.45523456",
"0.45449144",
"0.45433432",
"0.45405415",
"0.45353803",
"0.4532335",
"0.45262116",
"0.45259476",
"0.4524006",
"0.4514689",
"0.4514384",
"0.4503679",
"0.45019293",
"0.45003432",
"0.449021",
"0.44843733",
"0.44762453",
"0.4474579",
"0.44726476",
"0.44669813",
"0.44647995",
"0.44633937",
"0.44568446",
"0.44555792",
"0.44488332",
"0.44447517",
"0.4434106",
"0.4433564",
"0.4429923",
"0.44258475",
"0.4425772",
"0.4423446",
"0.44228023",
"0.44213998",
"0.44177088",
"0.44163707",
"0.44139504",
"0.44105053",
"0.44081432",
"0.44019878",
"0.43979564",
"0.43972743",
"0.43950716"
] | 0.5792023 | 3 |
Returns the value of the 'Carrier AIDC' containment reference. The full UDI carrier of the Automatic Identification and Data Capture (AIDC) technology representation of the barcode string as printed on the packaging of the device e.g., a barcode or RFID. Because of limitations on character sets in XML and the need to roundtrip JSON data through XML, AIDC Formats SHALL be base64 encoded. | Base64Binary getCarrierAIDC(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getReturnedACI() {\n return returnedACI;\n }",
"public String getATA_CD() {\n return ATA_CD;\n }",
"public String getCardValue() {\n return Cvalue;\n }",
"public String getAgcData ()\n\t{\n\t\tString agcData = getContent().substring(OFF_ID27_AGC_DATA, OFF_ID27_AGC_DATA + LEN_ID27_AGC_DATA) ;\n\t\treturn (agcData);\n\t}",
"public static String getAcountAsterixData(String ccNum) \r\n\t{\r\n\t\tif(ccNum.length() < 4)\r\n\t\t\treturn ccNum;\r\n\t\tint len = ccNum.length();\r\n\t\tString temp = \"\";\r\n\t\tfor (int i = 0; i < (len - 4); i++) {\r\n\t\t\ttemp = temp + \"*\";\r\n\t\t}\r\n\t\treturn (temp + ccNum.substring((len - 4), (len)));\r\n\t}",
"public java.lang.String getBarcode() {\n return barcode;\n }",
"public String getATR() {\n\t\tif (cardacos3 == null)\n\t\t\treturn null;\n\t\tATR atr = cardacos3.getATR();\n\t\tbyte[] atr_bytes = atr.getBytes();\n\t\tString atr_hex = HelpersFunctions.bytesToHex(atr_bytes);\n\t\treturn atr_hex;\n\t}",
"public final String c() {\n return Base64.encodeToString(this.f14146a.getPublic().getEncoded(), 11);\n }",
"public org.chartacaeli.model.CatalogADC5109 getCatalogADC5109() {\n return this.catalogADC5109;\n }",
"public java.lang.String getCxcode() {\r\r\r\r\r\r\r\n return cxcode;\r\r\r\r\r\r\r\n }",
"String getEACCode();",
"String getCidr();",
"public BigDecimal getACC_CIF() {\r\n return ACC_CIF;\r\n }",
"public org.chartacaeli.model.CatalogADC1239H getCatalogADC1239H() {\n return this.catalogADC1239H;\n }",
"public java.lang.String getCA() {\n return CA;\n }",
"String getCcNr(String bookingRef);",
"String getCcV(String bookingRef);",
"@Override\r\n\tpublic String getBarcode() {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic String getBarcode() {\n\t\treturn product.getBarcode();\n\t}",
"public java.lang.String getOrigBarcode() {\n return origBarcode;\n }",
"public org.chartacaeli.model.CatalogADC7118 getCatalogADC7118() {\n return this.catalogADC7118;\n }",
"public org.chartacaeli.model.CatalogADC6049 getCatalogADC6049() {\n return this.catalogADC6049;\n }",
"public String getContCD() {\n return contCD;\n }",
"public java.lang.String getATC() {\n return ATC;\n }",
"public java.lang.String getAirCarrierCode() {\r\n return airCarrierCode;\r\n }",
"@ZAttr(id=659)\n public String[] getACE() {\n return getMultiAttr(Provisioning.A_zimbraACE);\n }",
"public String getBKC098() {\n return BKC098;\n }",
"public String getCaddress() {\n return caddress;\n }",
"public String getCocAtcn() {\n\t\treturn cocAtcn;\n\t}",
"public int CCID() {\n\t\treturn this.creditCardIDNum;\n\t}",
"Barcode getBarcode() {\n Barcode barcode = null;\n List<BarcodeGraphic> barcodeList = mGraphicOverlay.getGraphics();\n\n if (!barcodeList.isEmpty()) {\n Log.d(TAG, \"Barcode list is not empty\");\n barcode = barcodeList.get(0).getBarcode();\n }\n\n return barcode;\n }",
"public ADC getAdc() {\n return _adc;\n }",
"public String getAutorCD () {\n\t\treturn autorCD;\n\t}",
"public java.lang.String getAmcContract () {\n\t\treturn amcContract;\n\t}",
"public teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil getCaz() {\n if (cazBuilder_ == null) {\n if (payloadCase_ == 4) {\n return (teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil) payload_;\n }\n return teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil.getDefaultInstance();\n } else {\n if (payloadCase_ == 4) {\n return cazBuilder_.getMessage();\n }\n return teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil.getDefaultInstance();\n }\n }",
"public org.chartacaeli.model.CatalogADC1239T getCatalogADC1239T() {\n return this.catalogADC1239T;\n }",
"public String carrierAccountNumber() {\n return this.carrierAccountNumber;\n }",
"public String getIccid() {\r\n return iccid;\r\n }",
"public String getAKA103() {\n return AKA103;\n }",
"public void setATA_CD( String aTA_CD ) {\n ATA_CD = aTA_CD;\n }",
"public java.lang.String getHCAR() {\r\n return HCAR;\r\n }",
"public String getC() {\n return c;\n }",
"public java.lang.String getCarrierCodeString() {\r\n return carrierCodeString;\r\n }",
"public java.lang.String getCDGALF() {\n return CDGALF;\n }",
"public String getAgentidcard() {\r\n\t\treturn agentidcard;\r\n\t}",
"public String getlbr_Barcode2();",
"public List<ACR> getAcrs() {\n return acrs;\n }",
"public java.lang.String getCDGALD() {\n return CDGALD;\n }",
"public BigDecimal getCOVERING_ACC_CIF() {\r\n return COVERING_ACC_CIF;\r\n }",
"public void setReturnedACI(java.lang.String returnedACI) {\n this.returnedACI = returnedACI;\n }",
"public teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabilOrBuilder getCazOrBuilder() {\n if ((payloadCase_ == 4) && (cazBuilder_ != null)) {\n return cazBuilder_.getMessageOrBuilder();\n } else {\n if (payloadCase_ == 4) {\n return (teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil) payload_;\n }\n return teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil.getDefaultInstance();\n }\n }",
"public BigDecimal getACC_CY() {\r\n return ACC_CY;\r\n }",
"public X509Certificate getAikCa() {\n log.debug(\"target: {}\", getTarget().getUri().toString());\n X509Certificate aik = getTarget()\n .path(\"/aik/ca\")\n .request()\n .accept(CryptoMediaType.APPLICATION_PKIX_CERT)\n .get(X509Certificate.class);\n return aik;\n }",
"public static String retrieveAlphaId(ComprehensionTlv ctlv) throws ResultException {\r\n boolean noAlphaUsrCnf;\r\n if (ctlv != null) {\r\n byte[] rawValue = ctlv.getRawValue();\r\n int valueIndex = ctlv.getValueIndex();\r\n int length = ctlv.getLength();\r\n if (length != 0) {\r\n try {\r\n return IccUtils.adnStringFieldToString(rawValue, valueIndex, length);\r\n } catch (IndexOutOfBoundsException e) {\r\n throw new ResultException(ResultCode.CMD_DATA_NOT_UNDERSTOOD);\r\n }\r\n } else {\r\n CatLog.d(\"ValueParser\", \"Alpha Id length=\" + length);\r\n return null;\r\n }\r\n } else {\r\n try {\r\n noAlphaUsrCnf = Resources.getSystem().getBoolean(17956989);\r\n } catch (Resources.NotFoundException e2) {\r\n noAlphaUsrCnf = false;\r\n }\r\n if (!noAlphaUsrCnf) {\r\n return \"Default Message\";\r\n }\r\n return null;\r\n }\r\n }",
"public String getCodaComponent() {\n return codaComponent;\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases.\")\n\n public String getBic() {\n return bic;\n }",
"public org.chartacaeli.model.CatalogADC7237 getCatalogADC7237() {\n return this.catalogADC7237;\n }",
"public void onGetIccidDone(AsyncResultEx ar, Integer index) {\n if (ar == null || ar.getException() != null) {\n logd(\"get iccid exception, maybe card is absent. set iccid as \\\"\\\"\");\n mChipCommon.mIccIds[index.intValue()] = BuildConfig.FLAVOR;\n return;\n }\n byte[] data = (byte[]) ar.getResult();\n String iccid = HwIccUtils.bcdIccidToString(data, 0, data.length);\n if (TextUtils.isEmpty(iccid) || 7 > iccid.length()) {\n logd(\"iccId is invalid, set it as \\\"\\\" \");\n mChipCommon.mIccIds[index.intValue()] = BuildConfig.FLAVOR;\n } else {\n mChipCommon.mIccIds[index.intValue()] = iccid.substring(0, 7);\n }\n logd(\"get iccid is \" + SubscriptionInfoEx.givePrintableIccid(mChipCommon.mIccIds[index.intValue()]) + \" on index \" + index);\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn this.caId + this.caName;\r\n\t}",
"public String getCnicNo() {\n return (String)getAttributeInternal(CNICNO);\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public typekey.AccidentCircumstancePEL getAccidentCircumstance();",
"public String getDisplacementCC() {\r\n return displacementCC;\r\n }",
"public String getKacd() {\r\n return kacd;\r\n }",
"public java.lang.String getNewBarcode() {\n return newBarcode;\n }",
"java.lang.String getFlightCarrierCode();",
"public String getIdentityCardFront() {\n return identityCardFront;\n }",
"public String getIdcard() {\r\n return idcard;\r\n }",
"public String getIdcard() {\r\n return idcard;\r\n }",
"public String getIdcard() {\r\n return idcard;\r\n }",
"public String getCer() {\n return cer;\n }",
"public String getcCode() {\n\t\treturn this.cCode;\n\t}",
"public String getAreaCode() \n\t{\n\t\treturn getNumber().substring(1,4);\n\t}",
"public int getAdc ()\n {\n return adc_;\n }",
"public String getAAE011() {\n return AAE011;\n }",
"public String getNGAYCAP_CCHN()\n {\n return this.NGAYCAP_CCHN;\n }",
"public String getIdcard() {\n return idcard;\n }",
"public CoatOfArmsData getCoatOfArms() {\n\t\treturn data;\n\t}",
"public java.lang.String getChargeAreaStr() {\r\n return chargeAreaStr;\r\n }",
"public String getCoderegion() {\n return (String) getAttributeInternal(CODEREGION);\n }",
"public String getNatAquiferCd() {\n\t\treturn natAquiferCd;\n\t}",
"public String getCreditCard()\n\t{\n\t\treturn m_creditCard;\n\t}",
"public String getCcbh() {\n return ccbh;\n }",
"public byte getCLA() {\n return this.apdu_buffer[CLASS];\n }",
"public java.lang.String getCuentaCLABE() {\n return cuentaCLABE;\n }",
"public String getIdentityCard() {\n return identityCard;\n }",
"@AutoEscape\n\tpublic String getIdCanal();",
"public teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil getCaz() {\n if (cazBuilder_ == null) {\n return caz_ == null ? teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil.getDefaultInstance() : caz_;\n } else {\n return cazBuilder_.getMessage();\n }\n }",
"private String cadenaABinario(String cadena){\n String cb = \"\";\n int longitud;\n for(int i = 0; i < cadena.length(); i++){\n cb += String.format(\"%8s\",Integer.toBinaryString(cadena.charAt(i)));\n }\n cb = formato(cb);\n return cb;\n }",
"@JsonIgnore public String getAircraftString() {\n return (String) getValue(\"aircraft\");\n }",
"java.lang.String getCsStr();",
"public String getBKA247() {\n return BKA247;\n }",
"public String mo468c() throws RemoteException {\r\n if (this.f1768l == null) {\r\n this.f1768l = C0350r.m2938a(\"Arc\");\r\n }\r\n return this.f1768l;\r\n }",
"public Long getAc() {\n return ac;\n }",
"public java.lang.String getC4()\n {\n return this.c4;\n }",
"String getCADENA_TRAMA();",
"public java.lang.String getAUART() {\n return AUART;\n }",
"public String getAAE100() {\n return AAE100;\n }",
"public String getAAE140() {\n return AAE140;\n }",
"public String getencodedCard() {\r\n \r\n String cardDesc=\"\";\r\n String partnerId=\"\";\r\n String cardId=\"\";\r\n \r\n if(session!=null) {\r\n if (session.getAttribute(\"Partner_Object_List\") != null) {\r\n partnerInfoList =\r\n (List<PartnerInfo>)session.getAttribute(\"Partner_Object_List\");\r\n if(getPartner()!=null && !getPartner().equals(\"\") && getCardPk() != null && !getCardPk().equals(\"\")){\r\n partnerId=getPartner();\r\n cardId=getCardPk().toString().trim();\r\n \r\n if (partnerInfoList != null) {\r\n for (int k = 0; k < partnerInfoList.size(); k++) {\r\n if (partnerId.equalsIgnoreCase(partnerInfoList.get(k).getPartnerValue().toString())) {\r\n for (int ac = 0;ac < partnerInfoList.get(k).getAccountList().size();ac++) {\r\n for (int cg = 0;cg < partnerInfoList.get(k).getAccountList().get(ac).getCardGroup().size();cg++) {\r\n for (int cd = 0;cd < partnerInfoList.get(k).getAccountList().get(ac).getCardGroup().get(cg).getCard().size();cd++) {\r\n if(cardId.equalsIgnoreCase(partnerInfoList.get(k).getAccountList().get(ac).getCardGroup().get(cg).getCard().get(cd).getCardID())) {\r\n if(partnerInfoList.get(k).getAccountList().get(ac).getCardGroup().get(cg).getCard().get(cd).getDisplayCardNumber() != null)\r\n {\r\n cardDesc= partnerInfoList.get(k).getAccountList().get(ac).getCardGroup().get(cg).getCard().get(cd).getDisplayCardNumber().toString();\r\n }\r\n }\r\n }\r\n }\r\n\r\n }\r\n }\r\n\r\n }\r\n }\r\n }\r\n }\r\n }\r\n return cardDesc;\r\n \r\n \r\n }",
"public String getCentralCashAllocationCustomerReference() {\n return centralCashAllocationCustomerReference;\n }"
] | [
"0.60940903",
"0.6055975",
"0.57841855",
"0.5775355",
"0.57275796",
"0.5626172",
"0.5588502",
"0.55805683",
"0.5460208",
"0.5453491",
"0.54341125",
"0.54299986",
"0.54278827",
"0.5346587",
"0.53379613",
"0.5332345",
"0.53114635",
"0.527626",
"0.5261636",
"0.5220884",
"0.5214838",
"0.5203138",
"0.52004385",
"0.517707",
"0.51761097",
"0.51713145",
"0.5168412",
"0.5130158",
"0.5111179",
"0.51033247",
"0.5103063",
"0.5094001",
"0.5086737",
"0.5075558",
"0.5060307",
"0.504752",
"0.5042197",
"0.50346786",
"0.5028218",
"0.5025448",
"0.5020518",
"0.50162274",
"0.5005585",
"0.5004373",
"0.500144",
"0.49976358",
"0.49935097",
"0.4990882",
"0.49849066",
"0.49701092",
"0.49617666",
"0.49590877",
"0.4958127",
"0.4957024",
"0.4950655",
"0.49354306",
"0.49334005",
"0.49317643",
"0.49298114",
"0.49247217",
"0.49222654",
"0.49064112",
"0.4894863",
"0.489151",
"0.48825938",
"0.4881479",
"0.48810914",
"0.48810914",
"0.48810914",
"0.48791516",
"0.48783454",
"0.48780274",
"0.48778918",
"0.48700863",
"0.48697102",
"0.48696887",
"0.48664021",
"0.48647618",
"0.48629355",
"0.48552975",
"0.48519206",
"0.4849437",
"0.48466396",
"0.4839421",
"0.4838651",
"0.48281336",
"0.48182917",
"0.48168632",
"0.4816128",
"0.48133114",
"0.4809636",
"0.4808901",
"0.48040292",
"0.4803487",
"0.47985077",
"0.4795281",
"0.47935578",
"0.47901705",
"0.47882962",
"0.47742134"
] | 0.7690327 | 0 |
Returns the value of the 'Carrier HRF' containment reference. The full UDI carrier as the human readable form (HRF) representation of the barcode string as printed on the packaging of the device. | org.hl7.fhir.String getCarrierHRF(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getHCAR() {\r\n return HCAR;\r\n }",
"java.lang.String getFlightCarrier();",
"public java.lang.String getFlightCarrier() {\n java.lang.Object ref = flightCarrier_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n flightCarrier_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getFlightCarrier() {\n java.lang.Object ref = flightCarrier_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n flightCarrier_ = s;\n return s;\n }\n }",
"java.lang.String getFlightCarrierCode();",
"public com.google.protobuf.ByteString\n getFlightCarrierBytes() {\n java.lang.Object ref = flightCarrier_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n flightCarrier_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getFlightCarrierBytes() {\n java.lang.Object ref = flightCarrier_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n flightCarrier_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.lang.String getFlightCarrierCode() {\n java.lang.Object ref = flightCarrierCode_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n flightCarrierCode_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getFlightCarrierCode() {\n java.lang.Object ref = flightCarrierCode_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n flightCarrierCode_ = s;\n return s;\n }\n }",
"public String getFwbh() {\n return fwbh;\n }",
"com.google.protobuf.ByteString\n getFlightCarrierBytes();",
"public java.lang.String getCarrierID() {\r\n return carrierID;\r\n }",
"public String carrierName() {\n return this.carrierName;\n }",
"public java.lang.String getCarrierCodeString() {\r\n return carrierCodeString;\r\n }",
"public com.google.protobuf.ByteString\n getFlightCarrierCodeBytes() {\n java.lang.Object ref = flightCarrierCode_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n flightCarrierCode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getFlightCarrierCodeBytes() {\n java.lang.Object ref = flightCarrierCode_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n flightCarrierCode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.lang.String getAirCarrierCode() {\r\n return airCarrierCode;\r\n }",
"public String carrierAccountNumber() {\n return this.carrierAccountNumber;\n }",
"public java.lang.String getOrigCarrierInfoPoiChgStr() {\r\n return origCarrierInfoPoiChgStr;\r\n }",
"com.google.protobuf.ByteString\n getFlightCarrierCodeBytes();",
"public void setHCAR(java.lang.String HCAR) {\r\n this.HCAR = HCAR;\r\n }",
"public java.lang.String getOrigCarrierString() {\r\n return origCarrierString;\r\n }",
"public String getAircraftManufacturer() {\n return aircraft.getManufacturer();\n }",
"public Player getCarrier()\n {\n return this.aCarrier;\n }",
"public Float getBhHosucr() {\r\n return bhHosucr;\r\n }",
"public java.lang.Short getCarrierCodePresubIndicator() {\r\n return carrierCodePresubIndicator;\r\n }",
"com.google.ads.googleads.v6.resources.CarrierConstantOrBuilder getCarrierConstantOrBuilder();",
"com.google.ads.googleads.v6.resources.CarrierConstant getCarrierConstant();",
"public jkt.hms.masters.business.RcHeader getRc () {\n\t\treturn rc;\n\t}",
"public String getZcbh() {\n return zcbh;\n }",
"@JsonIgnore public String getAircraftString() {\n return (String) getValue(\"aircraft\");\n }",
"public Carrier getCarrier(com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.carrier.v1.Carrier res){\n\t\tCarrier carrier = new Carrier();\n\t\t\n\t\tcarrier.setCodeShareInfo( res.getCodeShareInfo() );\n\t\tcarrier.setCarrierCode( res.getCarrierCode() );\n\t\tcarrier.setCarrierName( res.getCarrierName() );\n\t\tif( res.isCodeshareAvaialable() != null ){\n\t\t\tcarrier.setCodeshareAvaialable( res.isCodeshareAvaialable().booleanValue() );\n\t\t}\n\t\t\n\t\treturn carrier;\n\t}",
"public VCFHeader getHeader();",
"public Float getHosucr() {\r\n return hosucr;\r\n }",
"public java.lang.Integer getCarrierSelection() {\r\n return carrierSelection;\r\n }",
"public String mo81397h() {\n return this.f58073e;\n }",
"public java.lang.CharSequence getFuelType() {\n return fuelType;\n }",
"public final String mo7103b() {\n return this.f4980h;\n }",
"public java.lang.Integer getCarrierCodeCircuitCode() {\r\n return carrierCodeCircuitCode;\r\n }",
"public java.lang.CharSequence getFuelType() {\n return fuelType;\n }",
"public String mo81396g() {\n return this.f58076h;\n }",
"public CarrierEntity getCarrier();",
"public String getRahuInfo() {\n\t\treturn null;\r\n\t}",
"public String getCardValue() {\n return Cvalue;\n }",
"public java.lang.String getBarcode() {\n return barcode;\n }",
"public Float getCsIratHoSr() {\n return csIratHoSr;\n }",
"@Override\n\tpublic String getBarcode() {\n\t\treturn product.getBarcode();\n\t}",
"public String getHospitalPhone() {\n return hospitalPhone;\n }",
"public String toString() {\n return crcValue.toString();\n }",
"@Override\n public java.lang.String getRfc() {\n return _entityCustomer.getRfc();\n }",
"public String getRfc() {\n\t\treturn this.rfc;\n\t}",
"public String getSWIFT_CHARGE() {\r\n return SWIFT_CHARGE;\r\n }",
"public IElectricMeterBCF getElectricMeterBCF()\r\n\t{\r\n\t\treturn electricMeterBCF;\r\n\t}",
"public java.lang.String getFirmwareField() {\n return firmwareField;\n }",
"public org.chartacaeli.model.CatalogADC1239H getCatalogADC1239H() {\n return this.catalogADC1239H;\n }",
"@Override\r\n\tpublic String getBarcode() {\n\t\treturn null;\r\n\t}",
"public Float getBhOhosucr() {\r\n return bhOhosucr;\r\n }",
"public java.lang.String getCardBrand() {\r\n return cardBrand;\r\n }",
"public String getRhesus()\n\t{\n\t\treturn rhesus;\n\t}",
"String getDisplayValue() {\n\t\treturn symbol;\n\t}",
"public Car getHead(){\n\t\treturn this.cars.get(0);\n\t}",
"public String value() {\n // actual gear shift\n return gear;\n }",
"public bf.com.misys.eqf.types.header.RsHeader getRsHeader()\n\t{\n\t\treturn this._rsHeader;\n\t}",
"public String getAircraftRegistry() {\n return aircraft.getRegistry();\n }",
"public String m3147h() {\n return this.f2416j;\n }",
"public String toHexString() {\n return this.crcValue;\n }",
"public com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.carrier.v1.Carrier getCarrierReq(Carrier carrier){\n\t\tcom.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.carrier.v1.Carrier carrierReq =\n\t\t\tnew com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.carrier.v1.Carrier();\n\t\t\n\t\tcarrierReq.setCarrierCode( carrier.getCarrierCode() );\n\t\tcarrierReq.setCarrierName( carrier.getCarrierName() );\n\t\tcarrierReq.setCodeshareAvaialable( new Boolean(carrier.isCodeshareAvaialable()) );\n\t\tcarrierReq.setCodeShareInfo( carrier.getCodeShareInfo() );\n\t\t\n\t\treturn carrierReq;\n\t}",
"public HELPFit getHF(){\n return HF;\n }",
"public java.lang.CharSequence getOriginh() {\n return originh;\n }",
"public int getChannelRF() {\n return channelRF;\n }",
"public java.lang.String getGHF() {\r\n return localGHF;\r\n }",
"public String getVicarFormat() {\n\t\treturn vicarFormat;\n\t}",
"public java.lang.CharSequence getOriginh() {\n return originh;\n }",
"public String getManufacturer() {\n\t\treturn \"Raspberry\";\n\t}",
"public java.lang.Short getCarrierCodeIncludeInEgress() {\r\n return carrierCodeIncludeInEgress;\r\n }",
"@Override\r\n\tpublic String toString ()\r\n\t{\r\n\t\treturn Fmt.chs(this.cylinder, this.head, this.sector);\r\n\t}",
"public String getVicarRealFmt() {\n\t\treturn vicarRealFmt;\n\t}",
"public String getFabComp() {\n return (String)getAttributeInternal(FABCOMP);\n }",
"public String getFabComp() {\n return (String)getAttributeInternal(FABCOMP);\n }",
"public static String getCarrierName(Context context) {\n String carrier_name = context.getResources().getText(R.string.carrier_name).toString();\n Log.d(\"ContactsUtils\", \"carrier_name = \"+carrier_name);\n return carrier_name;\n }",
"org.hl7.fhir.String getDeviceIdentifier();",
"public String getBairro() {//Retorna o nome do bairro.\r\n\t\treturn bairro;\r\n\t}",
"public String mo3900c() {\n return this.f771c;\n }",
"public java.lang.Short getCarrierIncludeInEgress() {\r\n return carrierIncludeInEgress;\r\n }",
"public String getBairro() {\n return bairro;\n }",
"public String getBairro() {\n return bairro;\n }",
"public com.zzsong.netty.protobuff.two.ProtoData.Car getCar() {\n if (carBuilder_ == null) {\n if (dataBodyCase_ == 4) {\n return (com.zzsong.netty.protobuff.two.ProtoData.Car) dataBody_;\n }\n return com.zzsong.netty.protobuff.two.ProtoData.Car.getDefaultInstance();\n } else {\n if (dataBodyCase_ == 4) {\n return carBuilder_.getMessage();\n }\n return com.zzsong.netty.protobuff.two.ProtoData.Car.getDefaultInstance();\n }\n }",
"public String getCarFrameNum() {\n\t\treturn carFrameNum;\n\t}",
"public String getXh() {\n return xh;\n }",
"public String getCarCode()\r\n {\r\n return carCode;\r\n }",
"public char getBusLine() {\n\t\t\treturn busLine;\n\t\t}",
"public String m3141b() {\n return this.f2414h;\n }",
"@java.lang.Override\n public long getRfIdentifier() {\n return rfIdentifier_;\n }",
"public static double getRocketFuel() {\r\n\t\tfuel = fuel.replace(\",\", \".\");\r\n\t\tfuel = fuel.replace(\"-\", \"\");\r\n\t\treturn Double.parseDouble(fuel);\r\n\t}",
"public Builder setFlightCarrierBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n flightCarrier_ = value;\n onChanged();\n return this;\n }",
"public java.lang.String getBLH() {\r\n return localBLH;\r\n }",
"public java.lang.String getH() {\n java.lang.Object ref = h_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n h_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"MagReference getHvRef();",
"public String getFuelString()\n {\n String fuelString = new String( fuel );\n\n if(fuel.toUpperCase().equals(BATT)) {\n fuelString = \"a battery\";\n }\n else if(fuel.toUpperCase().equals(DIES)) {\n fuelString = \"diesel fuel\";\n }\n else if(fuel.toUpperCase().equals(BIO)) {\n fuelString = \"bio fuel\";\n }\n else\n {\n throw new IllegalArgumentException(\"Invalid fuel type\");\n }\n\n return fuelString;\n }",
"public java.lang.String getGHFMC() {\r\n return localGHFMC;\r\n }"
] | [
"0.6991702",
"0.6509874",
"0.64160323",
"0.6406358",
"0.6321308",
"0.6320404",
"0.63025516",
"0.6161451",
"0.6142513",
"0.60945684",
"0.60327864",
"0.6018987",
"0.5968731",
"0.5876385",
"0.5851816",
"0.5839543",
"0.5784224",
"0.5726185",
"0.5700613",
"0.56328326",
"0.5569317",
"0.5531688",
"0.5524025",
"0.5444999",
"0.5414671",
"0.5378027",
"0.5360788",
"0.5358597",
"0.53480333",
"0.53422594",
"0.53310746",
"0.5320488",
"0.5295348",
"0.5288754",
"0.5284595",
"0.52740294",
"0.52462757",
"0.5234982",
"0.5230107",
"0.5221201",
"0.5218332",
"0.5217031",
"0.52167094",
"0.5215632",
"0.516531",
"0.51625687",
"0.5155769",
"0.51319134",
"0.5131868",
"0.51311195",
"0.51053697",
"0.51007193",
"0.50928926",
"0.5090647",
"0.5085649",
"0.508558",
"0.5085051",
"0.5080965",
"0.507555",
"0.50703233",
"0.50553834",
"0.50543946",
"0.5051395",
"0.50481194",
"0.5047928",
"0.5041434",
"0.5036909",
"0.50319904",
"0.5026493",
"0.50198114",
"0.5019306",
"0.50164884",
"0.50162005",
"0.5014295",
"0.50068754",
"0.50062776",
"0.500419",
"0.5000544",
"0.5000544",
"0.50001884",
"0.49974886",
"0.49883482",
"0.4980076",
"0.49763632",
"0.49760944",
"0.49760944",
"0.49715066",
"0.49714187",
"0.49618626",
"0.49617162",
"0.49611336",
"0.4959195",
"0.4959166",
"0.49580067",
"0.4956369",
"0.49546906",
"0.49510908",
"0.49509612",
"0.4949621",
"0.49461204"
] | 0.81040865 | 0 |
Returns the value of the 'Entry Type' containment reference. A coded entry to indicate how the data was entered. | UDIEntryType getEntryType(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public EntryType getType() {\n return type;\n }",
"public abstract QCEntryType getType();",
"public XActRelationshipEntry getTypeCode() {\n\t\treturn typeCode;\n\t}",
"public String getType() {\n return m_Type;\n }",
"public String getMainType() {\n\t\treturn Material.getMaterial(this.properties.MAIN_TYPE).toString().replace(\"_\", \" \").toLowerCase();\n\t}",
"public String getType()\n \t{\n \t\treturn this.type;\n \t}",
"public String getType() {\n\t return mType;\n\t}",
"public int getType()\n {\n return pref.getInt(KEY_TYPE, 0);\n }",
"public String getType()\r\n {\r\n return mType;\r\n }",
"public String getType() { return type; }",
"public String getType() {\r\n\t\treturn this.type;\r\n\t}",
"public int getType() {\r\n return typ;\r\n }",
"public String getType() {return type;}",
"public String getType() {\r\n return this.type;\r\n }",
"public String getType() {\n return (String) getObject(\"type\");\n }",
"public String getType() {\n return this.type;\n }",
"public String getType() {\n return this.type;\n }",
"public String get_type()\r\n\t{\r\n\t\treturn this.type;\r\n\t}",
"public String getType()\r\n\t{\r\n\t\treturn type;\r\n\t}",
"public final String getType() {\n return this.type;\n }",
"public int getType() {\n return theType;\n }",
"public String getType()\r\n {\r\n return type;\r\n }",
"public String getType() {\n\t\treturn this.type;\n\t}",
"public String getType() {\n\t\treturn this.type;\n\t}",
"public String getType() {\n\t\treturn this.type;\n\t}",
"public String getType() {\n\t\treturn this.type;\n\t}",
"public String getType() {\n\t\treturn this.type;\n\t}",
"public String getType() {\n\t\treturn this.type;\n\t}",
"public String getType() {\n\t\treturn this.type;\n\t}",
"public String getType() {\n\t\treturn this.type;\n\t}",
"public String getType() {\r\n return type;\r\n }",
"public void setEntryType(final Class<?> entryType) {\r\n\t\tthis.entryType = entryType;\r\n\t}",
"public String getType() {\n return this.type;\n }",
"public String getType() {\n return this.type;\n }",
"public String getType() {\n return this.type;\n }",
"public String getType() {\n return this.type;\n }",
"public String getType() {\n return this.type;\n }",
"public String getType() {\n return this.type;\n }",
"public String getType() {\n return this.type;\n }",
"public String getType() {\n return this.type;\n }",
"public String getType() {\n return this.type;\n }",
"public String getType() {\n return this.type;\n }",
"public String getType()\n {\n return type;\n }",
"public String getType() \n {\n return this.type;\n }",
"public String getType() {\n return type;\n }",
"public String getType(){\r\n\t\treturn this.type;\r\n\t}",
"public final String type() {\n return type;\n }",
"public String getType() {\r\n\t\treturn type_;\r\n\t}",
"public String getType() {\r\n\t\treturn type;\r\n\t}",
"public String getType() {\r\n\t\treturn type;\r\n\t}",
"public String getType() {\r\n\t\treturn type;\r\n\t}",
"public String getType() {\r\r\n\t\treturn type;\r\r\n\t}",
"public String getcType() {\n return cType;\n }",
"public String type() {\n return this.type;\n }",
"public String type() {\n return this.type;\n }",
"public String type() {\n return this.type;\n }",
"public String type() {\n return this.type;\n }",
"public String type() {\n return this.type;\n }",
"public String type() {\n return this.type;\n }",
"public String getType()\n\t{\n\t\treturn type;\n\t}",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\n\t\treturn _type;\n\t}",
"public char getType() {\n\t\treturn type;\n\t}",
"@Override public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n\t\t\t\t\treturn type_;\n\t\t\t\t}",
"public String getType() \n {\n return type;\n }",
"public String getType() {\n\t\treturn type;\n\t}",
"public String getType() {\n\t\treturn type;\n\t}",
"public String getType() {\n\t\treturn type;\n\t}",
"public String getType() {\n\t\treturn type;\n\t}",
"public String getType() {\n\t\treturn type;\n\t}",
"public String getType() {\n\t\treturn type;\n\t}",
"public String getType() {\n\t\treturn type;\n\t}",
"public String getType() {\n\t\treturn type;\n\t}",
"public String getType() {\n\t\treturn type;\n\t}",
"public String getType() {\n\t\treturn type;\n\t}",
"public String getType() {\n\t\treturn type;\n\t}",
"public String getType() {\n\t\treturn type;\n\t}",
"public static String getType() {\n\t\treturn type;\n\t}",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public int getType ()\n\t{\n\t\treturn m_nType;\n\t}",
"public String getType() {\n return type; \n }",
"public String getType() {\n return m_type;\n }",
"public int getType() {\n\t\treturn Type;\n\t}"
] | [
"0.79062563",
"0.67405784",
"0.66608506",
"0.6290507",
"0.62639076",
"0.62614584",
"0.62375",
"0.62323093",
"0.6232038",
"0.6219196",
"0.62114644",
"0.6209008",
"0.6204052",
"0.6203554",
"0.6197679",
"0.6184763",
"0.6184763",
"0.6183716",
"0.6178193",
"0.6177618",
"0.6161657",
"0.6158004",
"0.61566144",
"0.61566144",
"0.61566144",
"0.61566144",
"0.61566144",
"0.61566144",
"0.61566144",
"0.61566144",
"0.61539143",
"0.6150632",
"0.6147782",
"0.6147782",
"0.6147782",
"0.6147782",
"0.6147782",
"0.6147782",
"0.6147782",
"0.6147782",
"0.6147782",
"0.6147782",
"0.61413336",
"0.61345226",
"0.6133979",
"0.6133596",
"0.6133561",
"0.6131427",
"0.61264217",
"0.61264217",
"0.61264217",
"0.612321",
"0.61181456",
"0.6112546",
"0.6112546",
"0.6112546",
"0.6112546",
"0.6112546",
"0.6112546",
"0.61055267",
"0.6103326",
"0.6103326",
"0.6103326",
"0.6103326",
"0.6103326",
"0.6102344",
"0.6102314",
"0.61016285",
"0.6093423",
"0.6089507",
"0.6089091",
"0.6089091",
"0.6089091",
"0.6089091",
"0.6089091",
"0.6089091",
"0.6089091",
"0.6089091",
"0.6089091",
"0.6089091",
"0.6089091",
"0.6089091",
"0.60855",
"0.6084208",
"0.6084208",
"0.6084208",
"0.6084208",
"0.6084208",
"0.6084208",
"0.6084208",
"0.6084208",
"0.6084208",
"0.6084208",
"0.6084208",
"0.6084208",
"0.6084208",
"0.6083518",
"0.6080028",
"0.6076997",
"0.6076546"
] | 0.62861484 | 4 |
Computes the value of the Jacobi symbol (A|B). The following properties hold for the Jacobi symbol which makes it a very efficient way to evaluate the Legendre symbol (A|B) = 0 IF gcd(A,B) > 1 (1|B) = 1 IF n = 1 (mod 1) (1|B) = 1 IF n = 3 (mod 4) (A|B) (C|B) = (AC|B) (A|B) (A|C) = (A|CB) (A|B) = (C|B) IF A = C (mod B) (2|B) = 1 IF N = 1 OR 7 (mod 8) (2|B) = 1 IF N = 3 OR 5 (mod 8) | public static int jacobi(BigInteger A, BigInteger B)
{
BigInteger a, b, v;
long k = 1;
k = 1;
// test trivial cases
if (B.equals(ZERO))
{
a = A.abs();
return a.equals(ONE) ? 1 : 0;
}
if (!A.testBit(0) && !B.testBit(0))
{
return 0;
}
a = A;
b = B;
if (b.signum() == -1)
{ // b < 0
b = b.negate(); // b = -b
if (a.signum() == -1)
{
k = -1;
}
}
v = ZERO;
while (!b.testBit(0))
{
v = v.add(ONE); // v = v + 1
b = b.divide(BigInteger.valueOf(2)); // b = b/2
}
if (v.testBit(0))
{
k = k * jacobiTable[a.intValue() & 7];
}
if (a.signum() < 0)
{ // a < 0
if (b.testBit(1))
{
k = -k; // k = -k
}
a = a.negate(); // a = -a
}
// main loop
while (a.signum() != 0)
{
v = ZERO;
while (!a.testBit(0))
{ // a is even
v = v.add(ONE);
a = a.divide(BigInteger.valueOf(2));
}
if (v.testBit(0))
{
k = k * jacobiTable[b.intValue() & 7];
}
if (a.compareTo(b) < 0)
{ // a < b
// swap and correct intermediate result
BigInteger x = a;
a = b;
b = x;
if (a.testBit(1) && b.testBit(1))
{
k = -k;
}
}
a = a.subtract(b);
}
return b.equals(ONE) ? (int)k : 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static int jacobiSymbol(int p, BigInteger n) {\n if (p == 0)\n return 0;\n\n // Algorithm and comments adapted from Colin Plumb's C library.\n int j = 1;\n int u = n.mag[n.mag.length-1];\n\n // Make p positive\n if (p < 0) {\n p = -p;\n int n8 = u & 7;\n if ((n8 == 3) || (n8 == 7))\n j = -j; // 3 (011) or 7 (111) mod 8\n }\n\n // Get rid of factors of 2 in p\n while ((p & 3) == 0)\n p >>= 2;\n if ((p & 1) == 0) {\n p >>= 1;\n if (((u ^ (u>>1)) & 2) != 0)\n j = -j; // 3 (011) or 5 (101) mod 8\n }\n if (p == 1)\n return j;\n // Then, apply quadratic reciprocity\n if ((p & u & 2) != 0) // p = u = 3 (mod 4)?\n j = -j;\n // And reduce u mod p\n u = n.mod(BigInteger.valueOf(p)).intValue();\n\n // Now compute Jacobi(u,p), u < p\n while (u != 0) {\n while ((u & 3) == 0)\n u >>= 2;\n if ((u & 1) == 0) {\n u >>= 1;\n if (((p ^ (p>>1)) & 2) != 0)\n j = -j; // 3 (011) or 5 (101) mod 8\n }\n if (u == 1)\n return j;\n // Now both u and p are odd, so use quadratic reciprocity\n assert (u < p);\n int t = u; u = p; p = t;\n if ((u & p & 2) != 0) // u = p = 3 (mod 4)?\n j = -j;\n // Now u >= p, so it can be reduced\n u %= p;\n }\n return 0;\n }",
"public int optimizedCom() {\n\tint b = 0, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0;\n\tint a = 1;\n\n\tb = 65;\n\tc = b;\n\n\tif (a != 0) {\n\t b = (b * 100) + 100000;\n\t c = b + 17000;\n\t}\n\n\t// at this point:\n\t// a == 1\n\t// b == 106500\n\t// c == 123500\n\n\t// outer loop terminates when b == c\n\t// c never changes, serves as termination condition\n\t// b only gets +17 added for every execution of the outer loop\n\n\tdo {\n\t f = 1;\n\t d = 2;\n\t do { // jnz g -13\n\t\te = 2;\n\n\t\tdo { // jnz g - 8\n\t\t g = (d * e) - b;\n\n\t\t if (g == 0)\n\t\t\tf = 0;\n\n\t\t e++;\n\n\t\t g = e - b;\n\t\t} while (g != 0);\n\n\t\td++;\n\n\t\tg = d - b;\n\t } while (g != 0);\n\n\t // increments h if register b contains a non-prime number (checked by printing all values)\n\t if (f == 0) {\n\t\th++;\n\t\tSystem.out.println(\"b: \" + b + \" c: \" + c + \" d: \" + d + \" e: \" + e + \" f: \" + f + \" g: \" + g);\n\t }\n\n\t // c does not change, b only gets increased by 17\n\t // if b == c, the method returns h which is the number of non-prime numbers encountered in the loop\n\t g = b - c;\n\n\t if (g == 0)\n\t\treturn h;\n\n\t b += 17;\n\n\t} while (true);\n }",
"java.math.BigInteger getNcbieaa();",
"public static int gcd(int a, int b){\r\n return a>b ? lnko_ordered(a,b) : lnko_ordered(b,a);\r\n }",
"java.math.BigInteger getNcbistdaa();",
"private int gcd(int a, int b){\r\n int r, temp;\r\n if( a<b ){ temp = a; a = b; b = temp; }\r\n while( b!=0 ){ r = a%b; a = b; b = r; }\r\n return a;\r\n }",
"private static boolean gcd(int a, int b) {\n while (b > 0) {\n int temp = b;\n b = a % b;\n a = temp;\n }\n return a == 1;\n }",
"private static int gcd(int n1,int n2){\n int a = n1>n2?n1:n2;\r\n int b = n1>n2?n2:n1;\r\n int r = a%b;\r\n while(r!=0){\r\n a = b;\r\n b = r;\r\n r = a%b;\r\n }\r\n return b;\r\n }",
"static int comb(int big, int smal) \n\t{ \n\t\treturn (int) ((long) fact[big] * invfact[smal] % mod \n\t\t\t\t* invfact[big - smal] % mod); \n\t}",
"int gcd(int a, int b) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t int x,y,r=1;\r\n\t\t if(a<b)\r\n\t\t {\r\n\t\t\t x = b;\r\n\t\t\t y = a;\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t\t x = a;\r\n\t\t\t y = b;\r\n\t\t }\r\n\t\t while(r!=0)\r\n\t\t {\r\n\t\t r = x%y;\r\n\t\t if(r==0)\r\n\t\t\t break;\r\n\t\t x = y;\r\n\t\t y = r;\r\n\t\t }\r\n\t\t// System.out.println(\"====\"+y);\r\n\t\treturn y;\r\n\t}",
"private static long namuji(long a, long b) {\n\t\tlong temp = 0;\n\t\tif(b == 1 ) {\n\t\t\treturn a%C;\n\t\t}\n\t\tif(b%2==0) {\n\t\t\ttemp = namuji(a,b/2);\n\t\t\treturn (temp*temp)%C;\n\t\t}else {\n\t\t\ttemp = namuji(a,(b-1)/2);\n\t\t\tlong temp2 = (temp*temp)%C;\n\t\t\treturn (A*temp2)%C;\n\t\t}\n\t\t\n\t}",
"private static int gcd (int a, int b) {\n int m = Math.max (Math.abs (a), Math.abs (b));\n if (m == 0) throw new ArithmeticException (\" zero in gcd \");\n int n = Math.min (Math.abs (a), Math.abs (b));\n while (n > 0) {\n a = m % n;\n m = n;\n n = a;\n }\n return m;\n }",
"public static BigInteger rho(BigInteger N){\r\n\t\tBigInteger ys = null, x = null;\r\n\t\tBigInteger \r\n\t\t\t\ty = new BigInteger(N.bitLength(),rand), \r\n\t\t\t\tc = new BigInteger(N.bitLength(),rand), \r\n\t\t\t\tm = new BigInteger(N.bitLength(),rand);\r\n\t\tBigInteger \tg = RichardPollard.ONE,\r\n\t\t\t\t\tr = RichardPollard.ONE,\r\n\t\t\t\t\tq = RichardPollard.ONE;\r\n\t\twhile(g.compareTo(RichardPollard.ONE)==0){\r\n//\t\t\tSystem.out.println(\"wa\");\r\n\t\t\tx = y;\r\n\t\t\tfor(int i = 0; i<r.doubleValue();i++){\r\n\t\t\t\ty = y.multiply(y).remainder(N).add(c).remainder(N);\r\n\t\t\t}\r\n\t\t\tBigInteger k = RichardPollard.ZERO;\r\n\t\t\twhile(k.compareTo(r)<1 && g.equals(RichardPollard.ONE)){\r\n\t\t\t\tys = y;\r\n\t\t\t\tBigInteger mrk = r.subtract(k).min(m);\r\n\t\t\t\tfor(BigInteger i = RichardPollard.ZERO; i.compareTo(mrk)<1; i=i.add(RichardPollard.ONE)){\r\n\t\t\t\t\ty = y.multiply(y).remainder(N).add(c).remainder(N);\r\n\t\t\t\t\tq = q.multiply(x.subtract(y).abs()).remainder(N);\r\n\t\t\t\t}\r\n\t\t\t\tg = q.gcd(N);\r\n\t\t\t\tk = k.add(m);\r\n\t\t\t}\r\n\t\t\tr = r.multiply(RichardPollard.TWO);\r\n\t\t\t\r\n\t\t}\r\n\t\tif(g.equals(N)){\r\n\t\t\twhile(true) {\r\n\t\t\t\tys = ys.multiply(ys).remainder(N).add(c).remainder(N);\r\n\t\t\t\tg = x.subtract(ys).abs().gcd(N);\r\n\t\t\t\tif(g.compareTo(RichardPollard.ONE)==1){\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n//\t\tSystem.out.println(y.doubleValue()+\" \"+r.doubleValue());\r\n\t\treturn g;\r\n\t\t\r\n\t}",
"private static int gcd(int a, int b) {\n\t\tif(a==0){\n\t\t\treturn b;\n\t\t}\n\t\treturn gcd(b%a,a);\n\t}",
"public int gcd(int a, int b) {\n // write your code here\n if (b != 0) {\n return gcd(b, a % b);\n }\n else\n return a;\n }",
"public BigInteger compute() {\n\t\tBigInteger g = parameters.getG();\n\t\tBigInteger h = parameters.getH();\n\t\tBigInteger p = parameters.getP();\n\n\t\tBigInteger gPowAik = g.modPow(aik.getValue(), p);\n\t\tBigInteger hPowBik = h.modPow(bik.getValue(), p);\n\n\t\t/*\n\t\t * ((x^a mod q) * (y^b mod q)) mod q = (x^a * y^b) mod q\n\t\t * \n\t\t * otherwise modPow cannot be used!\n\t\t */\n\t\tvalue = gPowAik.multiply(hPowBik).mod(p);\n\n\t\treturn value;\n\t}",
"private int getGCD(int a, int b) {\r\n if ( b == 0 ) {\r\n return a;\r\n } else {\r\n return getGCD(b, a % b);\r\n }\r\n }",
"public static int GCD(int A, int B) {\n while (B != 0) {\n int remainder = A % B;\n A = B;\n B = remainder;\n }\n\n return A;\n }",
"public static int gcd(int a, int b){\n int tmp = a;\r\n a = Math.max(a,b);\r\n b = Math.min(tmp,b);\r\n \r\n //write GCD\r\n int remainder;\r\n do{\r\n remainder = a%b;\r\n a = b;\r\n b = remainder;\r\n } while(remainder !=0);\r\n \r\n return a;\r\n }",
"private static BigInteger comprime(BigInteger input) {\n \t\n \t//krenemo od dva\n BigInteger candidate = BigInteger.valueOf(2);\n while (true) {\n \t\n \t//kada nadjemo odgovarajuci vratimo ga\n if (input.gcd(candidate).equals(BigInteger.ONE)) {\n return candidate;\n }\n candidate = candidate.add(BigInteger.ONE);\n }\n }",
"static int gcd(int a, int b) {\r\n\t\tif (b == 0)\r\n\t\t\treturn a;\r\n\t\treturn gcd(b, a % b);\r\n\t}",
"private static int gcd(int a, int b)\r\n\t{\r\n\t\tint remainder = a % b;\r\n\t\tif(remainder == 0)\r\n\t\t{\r\n\t\t\treturn b;\r\n\t\t}\r\n\t\treturn gcd(b, remainder);\r\n\t}",
"java.math.BigInteger getNcbi8Aa();",
"public static int gcd(int a, int b) {\r\n\t\twhile(b > 0) {\r\n\t\t\tint temp = b;\r\n\t\t\tb = a % b;\r\n\t\t\ta = temp;\r\n\t\t}\r\n\t\t\r\n\t\treturn a;\r\n\t}",
"private int gcd(int a, int b) {\n // Note that the loop below, as-is, will time out on negative inputs.\n // The gcd should always be a positive number.\n // Add code here to pre-process the inputs so this doesn't happen.\n if ( a < 0 ) {\n a = - a;\n }\n if ( b < 0 ) {\n b = - b;\n }\n\n \twhile (a != b)\n \t if (a > b)\n \t\t a = a - b;\n \t else\n \t\t b = b - a;\n \treturn a;\n }",
"private double calcG(int a, int b) {\n return a % 2 == 0 && b % 2 == 0 ? 20 : a % 2 == 1 && b % 2 == 1 ? 1 : 5;\n }",
"private static int modExp(int a, int b, int n) {\n\n // get a char array of the bits in b\n char[] k = (Integer.toBinaryString(b)).toCharArray();\n\n // initialize variables\n int c = 0, f = 1;\n // loop over every bit in k\n for (int i = 0; i < k.length; i ++) {\n\n // for every bit, i.e. if 0 or 1, do this\n c *= 2;\n f = (f * f) % n;\n\n // If current bit is equal to 1, then do this\n if (k[i] == '1') {\n c += 1;\n f = (f * a) % n;\n }\n }\n\n // returns the remainder\n return f;\n }",
"private static final byte exp31 (int b, int g) {\n if (b == 0) return 0;\n\n int r = b; // r = b ** 1\n b = mult(b, b, g); // b = b ** 2\n r = mult(r, b, g); // r = b ** 3\n b = mult(b, b, g); // b = b ** 4\n r = mult(r, b, g); // r = b ** 7\n b = mult(b, b, g); // b = b ** 8\n r = mult(r, b, g); // r = b ** 15\n b = mult(b, b, g); // b = b ** 16\n return (byte)mult(r, b, g); // r = b ** 31\n }",
"@Test\n\tpublic void gcdOfFiboNumsTest() {\n\n\t\tAssert.assertTrue(ifn.gcdOfFiboNums(3, 12) == 2);\n\t}",
"void setNcbieaa(java.math.BigInteger ncbieaa);",
"private int getGCD(int a, int b) {\n \n /** This ensures the larger of the two numbers is in a */\n if(a < b){\n /** Temp variable used for swapping two variables */\n int temp = a;\n a = b;\n b = temp;\n }\n\n /** The remainder needs to be stored to recursively find the gcd */\n int remainder;\n if((remainder = a % b) == 0) {\n return b;\n } else {\n return getGCD(b, remainder);\n }\n }",
"private static int get_number(int i, int j) { n n!\n// C = _____________\n// r (n-r)! * r!\n//\n return factorial(i)/(factorial(i-j)* factorial(j));\n }",
"public int gcd(int a, int b) {\n\t\tint result;\n\t\tif (a > 0) {\n\t\t\tresult = gcd(b % a, a);\n\t\t} else {\n\t\t\tresult = b;\n\t\t}\n\n\t\treturn result;\n\t}",
"private void linbcg( int n, double b[], double x[], int itol, double tol, int itmax,\n double sa[], int ija[] ) {\n // FIXME check itol and those numbers that start from 1 in here\n double ak, akden, bk, bkden = 0, bknum, bnrm = 0, dxnrm, xnrm, zm1nrm, znrm = 0;\n\n double[] p = new double[n];\n double[] pp = new double[n];\n double[] r = new double[n];\n double[] rr = new double[n];\n double[] z = new double[n];\n double[] zz = new double[n];\n\n int iter = 0;\n double err = 0;\n atimes(n, x, r, false, sa, ija);\n for( int j = 0; j < n; j++ ) {\n r[j] = b[j] - r[j];\n rr[j] = r[j];\n }\n if (itol == 1) {\n bnrm = snrm(n, b, itol);\n asolve(n, r, z, sa);\n } else if (itol == 2) {\n asolve(n, b, z, sa);\n bnrm = snrm(n, z, itol);\n asolve(n, r, z, sa);\n } else if (itol == 3 || itol == 4) {\n asolve(n, b, z, sa);\n bnrm = snrm(n, z, itol);\n asolve(n, r, z, sa);\n znrm = snrm(n, z, itol);\n } else\n System.out.println(\"illegal itol in linbcg\"); //$NON-NLS-1$\n\n while( iter <= itmax ) {\n ++iter;\n asolve(n, rr, zz, sa);\n bknum = 0.0;\n for( int j = 0; j < n; j++ )\n bknum += z[j] * rr[j];\n if (iter == 1) {\n for( int j = 0; j < n; j++ ) {\n p[j] = z[j];\n pp[j] = zz[j];\n }\n } else {\n bk = bknum / bkden;\n for( int j = 0; j < n; j++ ) {\n p[j] = bk * p[j] + z[j];\n pp[j] = bk * pp[j] + zz[j];\n }\n }\n bkden = bknum;\n atimes(n, p, z, false, sa, ija);\n akden = 0.0;\n for( int j = 0; j < n; j++ )\n akden += z[j] * pp[j];\n ak = bknum / akden;\n atimes(n, pp, zz, true, sa, ija);\n for( int j = 0; j < n; j++ ) {\n x[j] += ak * p[j];\n r[j] -= ak * z[j];\n rr[j] -= ak * zz[j];\n }\n asolve(n, r, z, sa);\n if (itol == 1)\n err = snrm(n, r, itol) / bnrm;\n else if (itol == 2)\n err = snrm(n, z, itol) / bnrm;\n else if (itol == 3 || itol == 4) {\n zm1nrm = znrm;\n znrm = snrm(n, z, itol);\n if (Math.abs(zm1nrm - znrm) > EPS * znrm) {\n dxnrm = Math.abs(ak) * snrm(n, p, itol);\n err = znrm / Math.abs(zm1nrm - znrm) * dxnrm;\n } else {\n err = znrm / bnrm;\n continue;\n }\n xnrm = snrm(n, x, itol);\n if (err <= 0.5 * xnrm)\n err /= xnrm;\n else {\n err = znrm / bnrm;\n continue;\n }\n }\n if (err <= tol)\n break;\n }\n }",
"public static int GCD(int a, int b){\r\n if (b == 0){\r\n return a;\r\n }\r\n return GCD(b,a%b);\r\n }",
"public static int gcd(int a, int b) {\n return BigInteger.valueOf(a).gcd(BigInteger.valueOf(b)).intValue();\n }",
"public static void launchEuclidAlgorithmForGCD(int a, int b) {\n int number = Math.max(a, b);\n int divisor = Math.min(a, b);\n int quot = number / divisor;\n int rem = number - (divisor * quot);\n while (rem != 0) {\n System.out.println(number+\" = \"+divisor+\"(\"+quot+\") + \"+rem);\n number = divisor;\n divisor = rem;\n quot = number / divisor;\n rem = number - (divisor * quot);\n }\n System.out.println(number+\" = \"+divisor+\"(\"+quot+\") + \"+rem);\n System.out.println(\" \\u2234 gcd(\"+a+\", \"+b+\") = \"+divisor);\n }",
"public static int gcd(int a, int b) {\n\t\t// take absolute values\n\t\tif (a < 0) {\n\t\t\ta *= -1;\n\t\t}\n\t\tif (b < 0) {\n\t\t\tb *= -1;\n\t\t}\n\n\t\t// ensure a > b\n\t\tif (a < b) {\n\t\t\tint temp = a;\n\t\t\ta = b;\n\t\t\tb = temp;\n\t\t}\n\t\t// a = b * (a / b) + (a % b)\n\t\t// then b = (a % b) * ((a % b) / b) + (a % b) % b\n\t\t// by the division algorithm. Execute until some\n\t\t// such product has no remainder, the remainder of\n\t\t// the previous equation is GCD(a, b).\n\t\twhile (b > 0) {\n\t\t\tint temp = b;\n\t\t\tb = a % b;\n\t\t\ta = temp;\n\t\t}\n\t\treturn a;\n\t}",
"public static int gcd(int a, int b) {\n int t = 0;\n while (b != 0) {\n t = b;\n b = a % b;\n a = t;\n }\n return Math.abs(a);\n }",
"public static int MCD_iterativo(int n1, int n2) {\n if (n1 > n2) {\r\n a = n1;\r\n b = n2;\r\n } else {\r\n a = n2;\r\n b = n1;\r\n }\r\n /*Calculamos el maximo comun divisior mediante un ciclo iterativo en el cual nos guiamos con el residuo de dividir el numero mayor entre el menor\r\n y retornamos el valor \r\n */\r\n do {\r\n aux = b;\r\n b = a % b;\r\n a = aux;\r\n } while (b != 0);\r\n return aux;\r\n }",
"public static long PGCD (int a, int b) {\r\n\r\n\t\tlong pgcd = 0;\r\n\t\tint r = 0;\r\n\r\n\t\ta = Math.abs(a);\r\n\t\tb = Math.abs(b);\r\n\r\n\t\twhile(true){\r\n\t\t\tif (b == 0) {\r\n\t\t\t\tpgcd = a;\r\n\t\t\t\tbreak;\r\n\t\t\t} else {\r\n\t\t\t\tr = a % b;\r\n\t\t\t\ta = b;\r\n\t\t\t\tb = r;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn pgcd;\r\n\r\n\t}",
"private static int pair_GCF(int a, int b) {\n int t;\n while (b != 0) {\n t = a;\n a = b;\n b = t % b;\n }\n return a;\n }",
"private static BigInteger binomial(int n, int k) {\n BigInteger ret = new BigInteger(\"1\");\n if (k > n) {\n return BigInteger.ZERO;\n } else {\n \tif (binom[n][k] != null) {\n \t\treturn binom[n][k];\n \t}\n if (k > n / 2) {\n k = n - k;\n }\n // (n choose i+1) = (n choose i) * (n - i) / (i + 1)\n for (int i = 0; i < k; i++) {\n ret = ret.multiply(BigInteger.valueOf(n - i)).divide(BigInteger.valueOf(i + 1));\n }\n }\n return binom[n][k] = ret;\n }",
"private BigInteger gcd(BigInteger n, BigInteger d)\n\t\t{\n\t\t\t// Returns the absolute values of the BigInteger\n\t\t\tBigInteger n1 = n.abs();\n\t\t\tBigInteger n2 = d.abs();\n\t\t\t\n\t\t\t// If n2 equals 0 return n1\n\t\t\tif(n2.equals(BigInteger.ZERO)){\n\t\t\t\treturn n1;\n\t\t\t}\n\t\t\telse{\n\t\t\t\t// else recursively return the gcd of n2 and n1%n2\n\t\t\t\treturn gcd(n2,n1.mod(n2));\n\t\t\t}\n\t\t}",
"public int a(bzl ☃, bzg bzg1, int i, int j) {\r\n/* 13 */ if (i == -bzg1.a() && j == -bzg1.b() && bzg1.a() > -bzg1.c() && bzg1.a() <= 0 && bzg1.b() > -bzg1.d() && bzg1.b() <= 0) {\r\n/* 14 */ return 1;\r\n/* */ }\r\n/* */ \r\n/* 17 */ return (☃.a(10) == 0) ? 1 : bzy.c;\r\n/* */ }",
"public static byte GMul(int a, int b) {\n\n byte p = 0;\n byte counter;\n byte hi_bit_set;\n for (counter = 0; counter < 8; counter++) {\n if ((b & 1) != 0) {\n p ^= a;\n }\n hi_bit_set = (byte) (a & 0x80);\n a <<= 1;\n if (hi_bit_set != 0) {\n a ^= 0x1b; /* x^8 + x^4 + x^3 + x + 1 */\n }\n b >>= 1;\n }\n return p;\n}",
"public static BigDecimal cheng(BigDecimal a, BigDecimal b) {\n\t\tif (a == null || b == null) {\n\t\t\tthrow new RuntimeException(\"乘法参数错误,a:[\" + a + \"],b:[\" + b + \"]\");\n\t\t}\n\t\tBigDecimal multiply = a.multiply(b);\n\t\tBigDecimal result = multiply.setScale(SCALE, RoundingMode.HALF_EVEN);\n\t\tif (LOG.isDebugEnabled()) {\n\t\t\tString str;\n\t\t\tint scale = multiply.scale();\n\t\t\tif (scale > SCALE) {\n\t\t\t\tstr = \"[\" + a + \" * \" + b + \" = \" + multiply + \" ≈ \" + result + \"]\";\n\t\t\t} else if(scale == SCALE) {\n\t\t\t\tstr = \"[\" + a + \" * \" + b + \" = \" + multiply + \"]\";\n\t\t\t} else {\n\t\t\t\tstr = \"[\" + a + \" * \" + b + \" = \" + multiply + \" = \" + result + \"]\";\n\t\t\t}\n\t\t\tLOG.debug(str);\n\t\t}\n\t\treturn result;\n\t}",
"public BigDecimal getFibonacci(Integer number) throws Exception;",
"private static int galoisMult(int a, int b)\n\t{\n\t\tint result = 0;\n\t\tfor (int i=0; i<8; i++)\n\t\t{\n\t\t\tif((b&1) == 1) //low bit of b set\n\t\t\t\tresult = result^a;\n\t\t\tboolean aHighSet = (a & 128) == 128; //8th bit of a set\n\t\t\ta <<= 1;\n\t\t\tassert (a&1) == 0;\n\t\t\t\n\t\t\ta &= 255; //getting rid of 9th bit\n\t\t\tassert ((a&256) != 256);\n\t\t\t\n\t\t\tif (aHighSet)\n\t\t\t\ta ^= (0x1b);\n\t\t\t\n\t\t\tb >>= 1;\n\t\t\tassert (b&128) != 128; //8 bit is zero\n\t\t}\n\t\treturn result;\n\t}",
"private static int cprModFunction(int a, int b) {\n\t\tint res = a % b;\n\t\tif (res < 0)\n\t\t\tres += b;\n\t\treturn res;\n\t}",
"private static double gcf(double a, double x) {\r\n double gammcf;\r\n double gln;\r\n int i;\r\n double an, b, c, d, del, h;\r\n \r\n gln = gammln(a);\r\n b = x + 1.0 - a;\r\n c = 1.0/FPMIN;\r\n d = 1.0/b;\r\n h = d;\r\n \r\n for(i = 1; i <= ITMAX; i++) //iterate to convergence\r\n {\r\n an = -i*(i - a);\r\n b += 2.0; //Set up for evaluating continued\r\n d = an*d + b; //fraction by modified Lentz's method with b_0 = 0.\r\n if(Math.abs(d) < FPMIN) {\r\n d = FPMIN;\r\n }\r\n c = b + an/c;\r\n if(Math.abs(c) < FPMIN) {\r\n c = FPMIN;\r\n }\r\n d = 1.0/d;\r\n del = d*c;\r\n h *= del;\r\n \r\n if(Math.abs(del - 1.0) < EPS) {\r\n break;\r\n }\r\n }\r\n if (i > ITMAX){\r\n // nerror(\"a too large, ITMAX too small in continued fraction gamma function\");\r\n }\r\n return gammcf = Math.exp(-x + a*Math.log(x) - (gln))*h; //Put factors in front\r\n \r\n }",
"public double[] jacobi_iter(double[] x, double tolerance, int M) {\n double[][] sContent = {{1.0, 0, 0}, {0, 1.0, 0}, {0, 0, 1.0}};\n Matrix s = new Matrix(sContent);\n\n double[][] tContent = {{0, -0.5, -0.33333333}, {-0.5, 0, -0.25}, {-0.3333333333, -0.25, 0}};\n Matrix t = new Matrix(tContent);\n\n //keep track of the number of iterations\n\n int counter = 0;\n double tol = 10000; //initial\n double[] tempXVector;\n Matrix firstFirst;\n double[] firstPart; //s^-1(-T)(Xn)\n double[] secondPart; //s^-1(b)\n String output = \"\";\n\n double tempXVectorNorm;\n double xVectorNorm;\n\n for (double elem : x) {\n output += elem + \", \";\n }\n System.out.println(\"x(0): \" + output);\n while (tol > tolerance && counter < M) {\n //perform the jacobi iterations\n firstFirst = s.multiply(t);\n firstPart = Matrix.matrixVectorMultiply(firstFirst, x);\n secondPart = Matrix.matrixVectorMultiply(s, bVector);\n tempXVector = Matrix.plus(firstPart, secondPart);\n\n //find norm of vectors and then subtract the\n tempXVectorNorm = Matrix.norm(tempXVector);\n xVectorNorm = Matrix.norm(x);\n tol = tempXVectorNorm - xVectorNorm;\n tol = Math.abs(tol);\n counter++;\n numOfIterations++;\n x = tempXVector;\n }\n\n output = \"\";\n if (counter == M) {\n System.out.println(\"Jacobi Output for x(N): null\");\n System.out.println(\"Too many iterations without reaching a accurate answer.\");\n return null;\n }\n for (double elem : x) {\n output += elem + \", \";\n }\n System.out.println(\"Jacobi Output for x(N): \" + output);\n System.out.println(\"Number of Iterations using Jacobi Algorithm: \" + counter + \"\\n\");\n return x;\n }",
"public BigDecimal getSjCb() {\r\n return sjCb;\r\n }",
"public int fastPower(int a, int b, int n) {\n // write your code here\n long base = a, ans = 1;\n while (n > 0) {\n if (n % 2 == 1) {\n ans = ans * base % b;\n }\n n /= 2;\n base = base * base % b;\n }\n return (int) ans % b;\n }",
"private static int findGcd(int a, int b) {\n\n\t\tint low = a < b ? a : b;\n\t\tint high = a < b ? b : a;\n\n\t\tif (high % low == 0) {\n\t\t\treturn low;\n\t\t} else {\n\t\t\treturn findGcd(high, high % low);\n\t\t}\n\t}",
"public static int GCD(int a, int b){\n\t\tif(b == 0) return a;\n\t\treturn GCD(b, a%b);\n\t}",
"public static int findGCF(int a, int b) {\r\n\t\tint GCF = 1;\r\n\t\tfor (int i = 1; i <= Math.abs(a); i++) {\r\n\t\t\t// loop to find greatest common factor\r\n\t\t\tif (((a % i) == 0) && ((b % i) == 0)) {\r\n\t\t\t\tGCF = i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn GCF;\r\n\t}",
"public static int gcd(int n1, int n2) {\n BigInteger n1_big = BigInteger.valueOf(n1);\n BigInteger n2_big = BigInteger.valueOf(n2);\n return n1_big.gcd(n2_big).intValue();\n }",
"@Override\n public Z computeNext() {\n int n = size();\n if (n <= 2) {\n return Z.valueOf(mInits[n]);\n }\n final int pow2 = Integer.highestOneBit(n);\n final int j = n - pow2;\n Z result = a(j).multiply(mFaj0).add(a(j + 1).multiply(mFaj1));\n if (j == pow2 - 1) {\n result = result.add(1);\n }\n return result;\n \n }",
"public static double binomialCoefficient(long n, long k){\n\t\n\tdouble coeff = 0;\n\ttry{\n\t coeff = factorial(n) / ( factorial(k) * factorial(n - k) ); \n\t}catch (ArithmeticException e){\n\t e.printStackTrace();\n\t System.out.println(\"n = \"+n+\"; k = \"+k+\".\");\n\t}\t\n\treturn coeff;\n }",
"private int findGCD(int n1, int n2) {\n //n1 and n2 must always be positive for this GCD algorithm\n n1 = Math.abs(n1);\n n2 = Math.abs(n2);\n\n //continue through the loop if n2 is greater than 0\n while (n2 > 0) {\n int remainder = n1 % n2;\n //n1 will keep track of the GCD value\n n1 = n2;\n //n2 will keep track of the remainder\n n2 = remainder;\n }\n //setting n1 is the gcd value\n return n1;\n }",
"public int fastPower(int a, int b, int n) {\n if (n == 0){\n return 1 % b;\n }\n\n if (n == 1) {\n return a % b;\n }\n\n long ans = fastPower(a, b, n / 2);\n ans = (ans * ans) % b;\n if (n % 2 == 1){\n ans = (ans*a) % b;\n }\n return (int) ans;\n }",
"public static int getProduct(int b, int n1, int n2){\n int r1=0,pow=1,res1=0,res=0,carry=0,sum=0;\n while(n1 !=0)\n {\n r1=n1%10;\n n1/=10;\n res1=multiply(r1,n2,b,pow);\n res=SumAnybase(res1,res,b);\n pow=pow*10;\n }\n return res;\n }",
"public static byte[] getGenotipo(int f,int nB){\n byte g[] = new byte[nB];\n int aux,nf = f;\n int cont = 0;\n for(int i =nB-1; i>=0;i--){\n aux = (int) Math.pow(2, i);\n if(nf >= aux){\n nf = nf - aux;\n g[cont] = 1;\n }\n else\n g[cont] = 0;\n cont ++;\n }\n return g;\n }",
"public boolean func_70601_bi() {\n/* 371 */ int var1 = MathHelper.func_76128_c((func_174813_aQ()).field_72338_b);\n/* */ \n/* 373 */ int var2 = MathHelper.func_76128_c(this.field_70165_t);\n/* 374 */ int var3 = MathHelper.func_76128_c(this.field_70161_v);\n/* 375 */ int var4 = this.field_70170_p.func_175699_k(new BlockPos(var2, var1, var3));\n/* 376 */ byte var5 = 7;\n/* */ \n/* 378 */ return (var4 > this.field_70146_Z.nextInt(var5)) ? false : super.func_70601_bi();\n/* */ }",
"private static int greatestCommonDivisor(int alpha, int beta){\n\n\t\talpha = Math.abs(alpha); // take absolute values of operands\n\t\tbeta = Math.abs(beta);\n\t\n\t\tif (beta == 0) // base case\n\t \treturn alpha;\n\t\telse{ // induction step\n\t\t\tint remainder = alpha % beta;\n\t\t\n\t\t\treturn greatestCommonDivisor(beta, remainder);\n\t }\n }",
"int compFunction(int code) {\r\n if (code % num_buckets < 0) {\r\n return (code % num_buckets) + num_buckets;\r\n } else {\r\n return code % num_buckets;\r\n } \r\n /*int a = 13;\r\n int b = 23;\r\n int p = 1000000 * num_buckets;\r\n while (isPrime(p) == false) { \r\n p += 1; \r\n }\r\n return ((a * code + b) % p) % num_buckets; */\r\n }",
"public static boolean isProbablePrime(BigInteger n, int degreeOfCertainty) //The actual calculator\n\t{\n\t\t\t//The first two are special cases\n \t\tif (n.compareTo(ONE) == 0) //Is the number 1?\n \t\t\t return false; //Then it's not prime\n\n if (n.compareTo(THREE) < 0) //Is it less than 3?\n \t\t\t return true; //Then it is prime\n\n\t\t\t//Start the tough stuff, write n-1 = 2^s + d\n int s = 0;\n \t\tBigInteger d = n.subtract(ONE); //Start with d = n-1\n \t\twhile (d.mod(TWO).equals(ZERO)) //While still even\n\t\t\t{\n \t\t\ts++;\t//Increment exponent\n \t\t\td = d.divide(TWO); //Divide by 2\n \t\t}\n\n\t\t\t//Now choose k=degreeOfCertainty random numbers between 2 and n-2\n for (int i = 0; i < degreeOfCertainty; i++) //For each of those numbers\n\t\t\t{\n \t\t\tBigInteger a = uniformRandom(TWO, n.subtract(ONE)); //Assign it a value\n \t\t\tBigInteger x = a.modPow(d, n); //Calculate x = a^d mod n\n\n if (x.equals(ONE) || x.equals(n.subtract(ONE))) //If x=1 or x=n-1\n \t\t\t\t continue; //Stop here, move on to the next random number\n\n int r;\n \t\t\tfor (r=0; r < s; r++) //This part runs s-1 times\n\t\t\t\t\t{\n \t\t\t\tx = x.modPow(TWO, n); //Calculate (new) x = (old) x^2 mod n\n\n \t\t\t\tif (x.equals(ONE)) //If this new x=1\n \t\t\t\t\t return false;\t//The number is composite\n\n \t\t\t\tif (x.equals(n.subtract(ONE))) //If this new x=n-1\n \t\t\t\t\t break; //Stop here, move on to next random number\n \t\t\t}\n \t\t\tif (r == s) //If for some k, no r made x=n-1, n is composite\n \t\t\t\t return false;\n \t\t}\n \t\treturn true; //If we make it all the way here, n is probably prime\n\t}",
"private static int findGCD(int number1, int number2) {\r\n\t\t// base case\r\n\t\tif (number2 == 0) {\r\n\t\t\treturn number1;\r\n\t\t}\r\n\t\treturn findGCD(number2, number1 % number2);\r\n\t}",
"private int getGCD(int[] a) {\r\n\r\n int gcd = a[0];\r\n\r\n for (int i = 1; i < a.length; i++) {\r\n gcd = getGCD(gcd, a[i]);\r\n }\r\n return gcd;\r\n }",
"public java.math.BigInteger getGibbsq()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(GIBBSQ$2, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getBigIntegerValue();\r\n }\r\n }",
"public static boolean isPrime(BigInteger n) {\n\t\tglobalLog.stepIn(\"isPrime(\" + n.toString() + \")\");\n\t\tprimeLog.stepIn(\"isPrime(\" + n.toString() + \")\");\n\t\t// Use some other function if n is sufficiently small (n<=10^10)\n\t\tif (n.compareTo(BigInteger.valueOf(10000000000l)) <= 0) {\n\t\t\tprimeLog.log(\"The number \" + n.toString() + \" is small enough to be checked normally.\");\n\t\t\treturn isPrime(n.longValue());\n\t\t} else if (!n.testBit(0)) {\n\t\t\tprimeLog.log(\"The number \" + n.toString() + \" is even so it is composite.\");\n\t\t\treturn false;\n\t\t}\n\t\tprimeLog.log(\n\t\t\t\t\"The number \" + n.toString() + \"is too large and will be checked with Rabin Miller primality test.\");\n\n\t\t// Find values to the equation n=2^s*m where s is as large as possible\n\t\tint s = 0;\n\t\t// Find out how many times we can divide (n-1) by 2\n\t\tBigInteger nMinusOne = n.subtract(BigInteger.ONE);\n\t\twhile (!nMinusOne.testBit(s)) {\n\t\t\ts++;\n\t\t}\n\t\t// Find k by calculating n>>s\n\t\tBigInteger m = nMinusOne.shiftRight(s);\n\t\tprimeLog.log(n.toString() + \" - 1 = 2^\" + s + \" * \" + m.toString());\n\n\t\tint prime = 0;\n\t\tint composite = 0;\n\n\t\t// Check to see if n is prime using base a\n\t\tlong maxValue = n.bitLength() > 63 ? Long.MAX_VALUE : n.longValue();\n\t\tfor (int i = 0; i < PRIMALITY_CHECK_ITERATIONS; i++) {\n\t\t\tprimeLog.stepIn(\"Trial \" + i);\n\t\t\tBigInteger a = BigInteger.valueOf(randomLong(2, maxValue - 2));\n\t\t\tprimeLog.log(\"Checking if n is prime using a=\" + a.toString() + \".\");\n\t\t\t// First iteration is a^m % n\n\t\t\tBigInteger res = a.modPow(m, n);\n\t\t\tprimeLog.log(\"a^m % n = \" + res.toString());\n\t\t\t// On first iteration if |a^m mod n| = 1 then say it is prime\n\t\t\tif (res.equals(BigInteger.ONE) || res.equals(nMinusOne)) {\n\t\t\t\tprimeLog.log(\"We can declare that \" + n.toString() + \" is prime.\");\n\t\t\t\tprimeLog.stepOut();\n\t\t\t\tprime++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tboolean flag = false;\n\t\t\tfor (int j = 1; !flag && j < s; j++) {\n\t\t\t\tres = res.modPow(BigInteger.valueOf(2), n);\n\t\t\t\tprimeLog.log(\"a^(2^\" + j + \" * m) % n = \" + res.toString());\n\t\t\t\tif (res.equals(BigInteger.ONE)) {\n\t\t\t\t\t// If a^[(2^j)*m] % n = 1 then we say is is composite\n\t\t\t\t\tprimeLog.log(\"We can declare that \" + n.toString() + \" is composite.\");\n\t\t\t\t\tcomposite++;\n\t\t\t\t\tflag = true;\n\t\t\t\t} else if (res.equals(nMinusOne)) {\n\t\t\t\t\tprimeLog.log(\"We can declare that \" + n.toString() + \" is prime.\");\n\t\t\t\t\t// If a^[(2^j)*m] % n = -1 then we say is is prime\n\t\t\t\t\tprime++;\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!flag) {\n\t\t\t\tprimeLog.log(\"We can declare that \" + n.toString() + \" is composite.\");\n\t\t\t\tcomposite++;\n\t\t\t}\n\t\t\tprimeLog.stepOut();\n\t\t}\n\t\tprimeLog.log(\"Out of \" + (prime + composite) + \" trials, \" + prime + \" trials claimed n was prime.\");\n\t\tprimeLog.log(\"n is prime: \" + (prime > composite));\n\t\tglobalLog.appendToCurrent(\": \" + (prime > composite));\n\t\tglobalLog.stepOut();\n\t\tprimeLog.appendToCurrent(\": \" + (prime > composite));\n\t\treturn prime > composite;\n\t}",
"public interface CalculateGCD {\n int calcGCD(int number1, int number2);\n}",
"private int gcd(int m, int n) {\n\t\tint r;\n\t\twhile(n != 0) {\n\t\t\tr = m % n;\n\t\t\tm = n;\n\t\t\tn = r;\n\t\t}\n\t\treturn m;\n\t}",
"static long getGCD(long x, long y) {\n long a = Math.max(x, y);\n long b = Math.min(x, y);\n\n while (b != 0) {\n long r = a % b;\n a = b;\n b = r;\n }\n\n return a;\n }",
"int CalcKey(int g, int x, int n)\r\n {\r\n int rtn = 1;\r\n for(int i = 0; i < x; i++)\r\n rtn = (rtn * g) % n;\r\n return rtn;\r\n }",
"public static int intPow(int a, int b){\n\t\tint r = 1;\n\t\tint i = 1;\n\t\tif(b > 8){\n\t\t\tr = A;\n\t\t\ti = 2; //i++;\n\t\t\twhile(i <= B){\n\t\t\t\tr *= r;\n\t\t\t\ti *= 2;\n\t\t\t}\n\t\t\ti /= 2; // >>= 2;\n\t\t}\n\t\tif(i < b){\n\t\t\tdo{\n\t\t\t\ti++;\n\t\t\t\tr *= a;\n\t\t\t} while(i <= b);\n\t\t}\n\t\treturn r;\n\t}",
"static long gcd(long a, long b) {\n\t\ta = Math.abs(a); b = Math.abs(b);\n\t\tif(a < b) return gcd(b,a);\n\t\tif(b == 0) return a;\n\t\treturn gcd(a%b, b);\n\t}",
"public void ToiGian(){\n if(this.denominator != 0 && this.numerator != 0){\n int uocChung = Task1.gcd(this.numerator, this.denominator);\n this.numerator = this.numerator/uocChung;\n this.denominator = this.denominator/uocChung;\n }\n }",
"private static long modPow(long a, long b, long c) {\n long res = 1;\n for (int i = 0; i < b; i++)\n {\n res *= a;\n res %= c;\n }\n return res % c;\n }",
"BigInteger getValue();",
"private static int gcd(int m, int n)\n {\n int mx = Math.max(m, n);\n int mn = Math.min(m, n);\n int remainder = 1;\n while (remainder != 0)\n {\n remainder = mx % mn;\n mx = mn;\n mn = remainder;\n }\n return mx;\n }",
"public List<BigInteger> solve(BigInteger alpha, BigInteger beta, BigInteger phi) {\n BigIntEuclidean result = BigIntEuclidean.calculate(alpha, phi);\n if (beta.mod(result.gcd).compareTo(BigInteger.ZERO) != 0) {\n throw new InvalidParameterException(\"Could not perform discrete logarithm with hash function \");\n }\n\n beta = beta.divide(result.gcd);\n phi = phi.divide(result.gcd);\n\n List<BigInteger> solutions = new LinkedList<>();\n BigInteger finalResult = result.x.multiply(beta).mod(phi);\n for (BigInteger t = BigInteger.ZERO; t.compareTo(result.gcd) < 0; t = t.add(BigInteger.ONE)) {\n solutions.add(finalResult);\n finalResult = finalResult.add(phi);\n }\n\n return solutions;\n }",
"public CodeBook getOptimalCodificacion(){\n ArrayList<ArbolCod> listaA=new ArrayList<ArbolCod>();\n \n // Se inicializan los árboles con las probabilidades.\n for (int i=0;i<probabilidades.size();i++)\n listaA.add(new ArbolCod(alfabeto.getI(i),probabilidades.get(i)));\n \n return codHuffman(listaA);\n }",
"public void solve() throws IOException {\r\n int T = nextInt();\r\n for (int t = 1; t <= T; t++) {\r\n int N = nextInt();\r\n int J = nextInt();\r\n \r\n out.format(\"Case #%d:%n\", t);\r\n \r\n boolean[] bitmask = new boolean[N - 2];\r\n int count = 0;\r\n while (count < J) {\r\n BigInteger[] factors = new BigInteger[9];\r\n boolean success = true;\r\n for (int base = 2; base <= 10; base++) {\r\n BigInteger value = BigInteger.ONE;\r\n BigInteger biBase = BigInteger.valueOf(base);\r\n \r\n for (int i = 0; i < N - 2; i++) {\r\n if (bitmask[i]) {\r\n value = value.add(biBase.pow(i + 1));\r\n }\r\n }\r\n value = value.add(biBase.pow(N - 1));\r\n \r\n if (value.isProbablePrime(10)) {\r\n success = false;\r\n break;\r\n } else {\r\n // Pollard rho\r\n BigInteger x = BigInteger.valueOf(2);\r\n BigInteger y = BigInteger.valueOf(2);\r\n BigInteger d = BigInteger.ONE;\r\n while (d.compareTo(BigInteger.ONE) == 0) {\r\n x = x.pow(2).add(BigInteger.ONE).mod(value);\r\n y = y.pow(2).add(BigInteger.ONE).mod(value)\r\n .pow(2).add(BigInteger.ONE).mod(value);\r\n d = x.subtract(y).gcd(value);\r\n }\r\n if (d.compareTo(value) != 0) {\r\n factors[base - 2] = d;\r\n } else {\r\n success = false;\r\n break;\r\n }\r\n }\r\n }\r\n if (success) {\r\n count++;\r\n StringBuilder sb = new StringBuilder(\"1\");\r\n for (int i = N - 3; i >= 0; i--) {\r\n if (bitmask[i]) {\r\n sb.append(1);\r\n } else {\r\n sb.append(0);\r\n }\r\n }\r\n sb.append(1);\r\n \r\n System.out.println(sb.toString() + \" \" + count);\r\n out.print(sb.toString());\r\n for (int i = 0; i < 9; i++) {\r\n out.print(\" \");\r\n out.print(factors[i].toString());\r\n }\r\n out.println();\r\n }\r\n \r\n // Increment bitmask\r\n for (int i = 0; i < N - 2; i++) {\r\n if (!bitmask[i]) {\r\n bitmask[i] = true;\r\n break;\r\n } else {\r\n bitmask[i] = false;\r\n }\r\n }\r\n }\r\n }\r\n }",
"void setNcbistdaa(java.math.BigInteger ncbistdaa);",
"public static BigInteger fact(int n) {\n\t\t\t if (! fact_cache.containsKey(n)) {\n\t\t\t BigInteger f = BI1;\n\t\t\t for (int i=1; i < n-1; i++) {\n\t\t\t f = f.multiply(oddprod(BI3, BI2.pow(i+1).subtract(BI1)));\n\t\t\t }\n\t\t\t f = bigpow(BI2, BI2.pow(n).subtract(BI1)).multiply(f);\n\t\t\t fact_cache.put(n, f);\n\t\t\t }\n\t\t\t return fact_cache.get(n);\n\t\t\t }",
"private void GcdBigNbr(int Nbr1[], int Nbr2[], int Gcd[], int NumberLength) {\r\n\t\tint i, k;\r\n\r\n\t\tSystem.arraycopy(Nbr1, 0, CalcAuxGcdU, 0, NumberLength);\r\n\t\tSystem.arraycopy(Nbr2, 0, CalcAuxGcdV, 0, NumberLength);\r\n\t\tfor (i = 0; i < NumberLength; i++) {\r\n\t\t\tif (CalcAuxGcdU[i] != 0) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (i == NumberLength) {\r\n\t\t\tSystem.arraycopy(CalcAuxGcdV, 0, Gcd, 0, NumberLength);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tfor (i = 0; i < NumberLength; i++) {\r\n\t\t\tif (CalcAuxGcdV[i] != 0) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (i == NumberLength) {\r\n\t\t\tSystem.arraycopy(CalcAuxGcdU, 0, Gcd, 0, NumberLength);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (CalcAuxGcdU[NumberLength - 1] >= 0x40000000L) {\r\n\t\t\tChSignBigNbr(CalcAuxGcdU, NumberLength);\r\n\t\t}\r\n\t\tif (CalcAuxGcdV[NumberLength - 1] >= 0x40000000L) {\r\n\t\t\tChSignBigNbr(CalcAuxGcdV, NumberLength);\r\n\t\t}\r\n\t\tk = 0;\r\n\t\twhile ((CalcAuxGcdU[0] & 1) == 0 && (CalcAuxGcdV[0] & 1) == 0) { // Step\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 1\r\n\t\t\tk++;\r\n\t\t\tDivBigNbrByLong(CalcAuxGcdU, 2, CalcAuxGcdU, NumberLength);\r\n\t\t\tDivBigNbrByLong(CalcAuxGcdV, 2, CalcAuxGcdV, NumberLength);\r\n\t\t}\r\n\t\tif ((CalcAuxGcdU[0] & 1) == 1) { // Step 2\r\n\t\t\tSystem.arraycopy(CalcAuxGcdV, 0, CalcAuxGcdT, 0, NumberLength);\r\n\t\t\tChSignBigNbr(CalcAuxGcdT, NumberLength);\r\n\t\t} else {\r\n\t\t\tSystem.arraycopy(CalcAuxGcdU, 0, CalcAuxGcdT, 0, NumberLength);\r\n\t\t}\r\n\t\tdo {\r\n\t\t\twhile ((CalcAuxGcdT[0] & 1) == 0) { // Step 4\r\n\t\t\t\tDivBigNbrByLong(CalcAuxGcdT, 2, CalcAuxGcdT, NumberLength); // Step\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 3\r\n\t\t\t}\r\n\t\t\tif (CalcAuxGcdT[NumberLength - 1] < 0x40000000L) { // Step 5\r\n\t\t\t\tSystem.arraycopy(CalcAuxGcdT, 0, CalcAuxGcdU, 0, NumberLength);\r\n\t\t\t} else {\r\n\t\t\t\tSystem.arraycopy(CalcAuxGcdT, 0, CalcAuxGcdV, 0, NumberLength);\r\n\t\t\t\tChSignBigNbr(CalcAuxGcdV, NumberLength);\r\n\t\t\t} // Step 6\r\n\t\t\tSubtractBigNbr(CalcAuxGcdU, CalcAuxGcdV, CalcAuxGcdT, NumberLength);\r\n\t\t\tfor (i = 0; i < NumberLength; i++) {\r\n\t\t\t\tif (CalcAuxGcdT[i] != 0) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} while (i != NumberLength);\r\n\t\tSystem.arraycopy(CalcAuxGcdU, 0, Gcd, 0, NumberLength); // Step 7\r\n\t\twhile (k > 0) {\r\n\t\t\tAddBigNbr(Gcd, Gcd, Gcd, NumberLength);\r\n\t\t\tk--;\r\n\t\t}\r\n\t}",
"static void binomialCoeff(int C[][], int n, int k)\n {\n for (int i = 0; i <= n; i++) {\n for (int j = 0; j <= Math.min(i, k); j++)\n {\n\n // Base Cases\n if (j == 0 || j == i)\n C[i][j] = 1;\n\n // Calculate value using previously\n // stored values\n else\n C[i][j] = C[i - 1][j - 1] +\n C[i - 1][j];\n }\n }\n }",
"public int R_M(){\n\t\tBigInteger nminus1=n.subtract(BigInteger.ONE);\n\t\tdo{\n\t\t\tif(nminus1.mod(two.pow(a)).equals(BigInteger.ZERO)){\n\t\t\t\ttable.add(a);\n\t\t\t}\n\t\t\titerator++;\n\t\t\ta++;\n\t\t}while(!(two.pow(a).compareTo(n)>0));\n\t\t\n\t\ta=table.get(table.size()-1);\n\t\tBigInteger m=nminus1.divide(two.pow(a));\n\t\tint wlen=n.bitLength();\n\t\tBigInteger b;\n\t\tBigInteger z;\n\t\tfor(int i=0;i<iterations;i++){\n\t\t\tint straznik=0;\n\t\t\tint straznik1=0;\n\t\t\tdo{\n\t\t\t b=new BigInteger(wlen,new Random());\n\t\t\t}while(!(b.compareTo(BigInteger.ONE)>0) && !(b.compareTo(nminus1)<0));\n\t\t\tz=b.modPow(m, n);\n\t\t\tif(z.equals(BigInteger.ONE) || z.equals(nminus1)){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfor(int j=0;j<a-1;j++){\n\t\t\t\t\tz=z.pow(2).mod(n);\n\t\t\t\t\tif(z.equals(nminus1)){\n\t\t\t\t\t\tstraznik++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif(z.equals(BigInteger.ONE)){\n\t\t\t\t\t\tstraznik1++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(straznik==1){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(straznik1==1){\n\t\t\t\t\tgetComposite();\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\t\t\t\t}\n\t\t\tgetComposite();\n\t\t\treturn 0;\n\t\t}\n\t\tgetProbablyPrime();\n\t\treturn 1;\n\t\t}",
"public static int LCM(int a, int b){\r\n int lowest = a * b / GCD(a,b);\r\n //System.out.print(lowest);\r\n return lowest;\r\n }",
"public int pgcdByDE(int a, int b) throws Exception{\n if(a <1 || b <1){\n throw new Exception(\"a et b doivent etre >= 1\");\n }\n int reste = a > b ? a % b : b % a;\n if(reste == 0)\n return a > b ? b : a;\n if(a > b){\n a = reste;\n }else b = reste;\n return pgcdByDE(a,b);\n }",
"private double binomeN_I(int n, int i) {\n double ni;\n double a1 = factorial(n);\n double a2 = factorial(i);\n double a3 = factorial(n - i);\n ni = a1 / (a2 * a3);\n return ni;\n }",
"private double computeModularityGain(Node i, String C) {\n\n\t\tdouble sumIn = 0;\n\t\tdouble sumTot = 0;\n\t\tdouble ki = 0;\n\t\tdouble kiin = 0;\n\n\t\tfor (Object o : G.getEdges()) {\n\t\t\tEdge e = (Edge) o;\n\t\t\tString start = e.getStartNode().getCommunity(scale);\n\t\t\tString end = e.getEndNode().getCommunity(scale);\n\t\t\t// Sum of the weights of the links inside the community.\n\t\t\tif (start.equals(C) && start.equals(end))\n\t\t\t\tsumIn += Double.parseDouble((String) e.getValue(key));\n\t\t\t// Sum of the weights of the links incident to the community.\n\t\t\tif (start.equals(C) && !end.equals(C) || !start.equals(C) && end.equals(C))\n\t\t\t\tsumTot += Double.parseDouble((String) e.getValue(key));\n\t\t\t// Sum of the weights of the links from i to nodes in C.\n\t\t\tif (start.equals(C) && e.getEndNode() == i || e.getStartNode() == i\n\t\t\t\t\t&& end.equals(C))\n\t\t\t\tkiin += Double.parseDouble((String) e.getValue(key));\n\t\t\t// Sum of the weights of the edges attached to vertex i.\n\t\t\tif (e.getStartNode() == i || e.getEndNode() == i)\n\t\t\t\tki += Double.parseDouble((String) e.getValue(key));\n\t\t}\n\n\t\tdouble dQ = 0;\n\t\tdouble m2 = 2 * m;\n\t\t// (SumIn + kiin)/2m\n\t\tdQ = (sumIn + kiin) / m2;\n\t\t// - ((sumTot + ki)/2m)²\n\t\tdQ = dQ - Math.pow((sumTot + ki) / m2, 2);\n\t\t// - [sumIn/2m - (sumTot/2m)² - (ki/2m)²]\n\t\tdQ = dQ\n\t\t\t\t- (sumIn / m2 - Math.pow(sumTot / m2, 2) - Math.pow(ki / m2, 2));\n\n\t\treturn dQ;\n\t}",
"@Test\n public void testReduceToGCD_0_0() {\n NaturalNumber n = new NaturalNumber2(0);\n NaturalNumber m = new NaturalNumber2(0);\n CryptoUtilities.reduceToGCD(n, m);\n assertEquals(\"0\", n.toString());\n assertEquals(\"0\", m.toString());\n }",
"public interface JacobiFunction {\n\n double[][] f(double[] x, double[] params);\n}",
"public abstract BigInteger nextValue();",
"public double getCampbellFactorIcraf() {\r\n\t\treturn (2 * Math.log (treeAlpha / (1 - treeAlpha))\r\n\t\t\t\t/ Math.log (treeMaxTranspirationPotential / treeMinTranspirationPotential));\r\n\t}",
"private static int gcd(int m, int n) {\n if (n == 0)\n return m;\n else\n return gcd(n, m % n);\n }",
"static int gcd2(int m, int n) {\n if (m==0) return n;\n else return gcd2(n%m,m);\n }"
] | [
"0.7143219",
"0.6020742",
"0.5836768",
"0.5760703",
"0.5647076",
"0.5546762",
"0.5536775",
"0.5534882",
"0.5528507",
"0.55081093",
"0.5459519",
"0.5454129",
"0.5446616",
"0.5429544",
"0.54181916",
"0.54044175",
"0.537915",
"0.5356336",
"0.5315425",
"0.5303489",
"0.52828604",
"0.5278776",
"0.5246258",
"0.5239029",
"0.52353567",
"0.523082",
"0.5190529",
"0.5182898",
"0.5180178",
"0.51281124",
"0.51266354",
"0.5126362",
"0.5112994",
"0.5107074",
"0.5104187",
"0.5103676",
"0.50847244",
"0.50842404",
"0.5074198",
"0.50722235",
"0.50521904",
"0.50270003",
"0.5014264",
"0.50096285",
"0.49950725",
"0.49927002",
"0.49868676",
"0.49731922",
"0.4953532",
"0.49441588",
"0.49417472",
"0.49397004",
"0.49394342",
"0.49371678",
"0.49240026",
"0.49198452",
"0.4918337",
"0.49066752",
"0.49045798",
"0.49045113",
"0.48815995",
"0.4862421",
"0.48512858",
"0.4838979",
"0.4833259",
"0.48282862",
"0.48253405",
"0.48210418",
"0.4805084",
"0.47935835",
"0.47885492",
"0.4773311",
"0.4767381",
"0.47635442",
"0.47538337",
"0.47471341",
"0.4747079",
"0.47433087",
"0.47426692",
"0.47353277",
"0.47312906",
"0.4728201",
"0.47257227",
"0.47181198",
"0.47134542",
"0.4694894",
"0.46882892",
"0.46869385",
"0.46809706",
"0.4669756",
"0.4665083",
"0.4661484",
"0.4659103",
"0.46584144",
"0.46568987",
"0.46401057",
"0.46396565",
"0.4639221",
"0.46372503",
"0.46364582"
] | 0.70129824 | 1 |
Converts a DhcpMessage object into a byte buffer. | public void encode( ByteBuffer byteBuffer, DhcpMessage message )
{
byteBuffer.put( message.getOp() );
HardwareAddress hardwareAddress = message.getHardwareAddress();
byteBuffer.put( ( byte ) ( null != hardwareAddress ? hardwareAddress.getType() : 0 ) );
byteBuffer.put( ( byte ) ( null != hardwareAddress ? hardwareAddress.getLength() : 0 ) );
byteBuffer.put( ( byte ) message.getHopCount() );
byteBuffer.putInt( message.getTransactionId() );
byteBuffer.putShort( ( short ) message.getSeconds() );
byteBuffer.putShort( message.getFlags() );
writeAddress( byteBuffer, message.getCurrentClientAddress() );
writeAddress( byteBuffer, message.getAssignedClientAddress() );
writeAddress( byteBuffer, message.getNextServerAddress() );
writeAddress( byteBuffer, message.getRelayAgentAddress() );
writeBytes( byteBuffer, ( null != hardwareAddress ? hardwareAddress.getAddress() : new byte[]
{} ), 16 );
writeString( byteBuffer, message.getServerHostname(), 64 );
writeString( byteBuffer, message.getBootFileName(), 128 );
OptionsField options = message.getOptions();
// update message type option (if set)
if ( null != message.getMessageType() )
{
options.add( new DhcpMessageType( message.getMessageType() ) );
}
encodeOptions( options, byteBuffer );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ByteBuffer Pack(Message message) {\n ByteBuffer byteBuffer = ByteBuffer.allocate(message.GetMessageLen()+1);\n byteBuffer.put((byte) message.GetMessageLen());\n byteBuffer.put((byte) (message.getDataLen()>>8));\n byteBuffer.put((byte) message.getDataLen());\n byteBuffer.put((byte) message.getFromId());\n byteBuffer.put((byte) message.getToId());\n byteBuffer.put((byte) message.getMsgType().ordinal());\n byteBuffer.put(message.getData());\n return byteBuffer;\n }",
"public ByteBuffer getBytesForMessage(StompFrame msg) throws CharacterCodingException {\n StringBuilder sb = new StringBuilder(msg.getWholeSTOMPMessage());\n sb.append(this._messageSeparator);\n ByteBuffer bb = this._encoder.encode(CharBuffer.wrap(sb));\n return bb;\n }",
"public byte[] fromMessage(Message message) throws IOException, JMSException;",
"public Message toMessage(byte[] data) throws IOException, JMSException;",
"com.google.protobuf.ByteString\n getTheMessageBytes();",
"public byte[] getBytes(){\n\t\treturn message;\n\t}",
"byte[] encode(IMessage message) throws IOException;",
"public byte [] readMessageAsByte() {\r\n byte [] data = new byte[256];\r\n int length;\r\n\r\n try {\r\n length = in.readInt();\r\n if (length > 0) {\r\n data = new byte[length];\r\n in.readFully(data, 0, data.length);\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n return data;\r\n }",
"private static byte[] messageDataAndMetadata(Message message) {\n ByteArrayOutputStream byteStream = new ByteArrayOutputStream();\n\n try {\n IOHelper.writeByteArray(message.data, byteStream);\n IOHelper.writeInt(message.senderID, byteStream);\n IOHelper.writeInt(message.blockIndex, byteStream);\n IOHelper.writeInt(message.sequenceNumber, byteStream);\n IOHelper.writeLong(message.date, byteStream);\n } catch (IOException ex) {\n ex.printStackTrace();\n return null;\n }\n return byteStream.toByteArray();\n }",
"public byte[] toBytes()\n {\n String rep = sessionid + \"_\" + version + \"_\" + message;\n return rep.getBytes();\n }",
"byte[] toByteArray() throws IOException {\n return ProtobufUtil.prependPBMagic(convert().toByteArray());\n }",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMsgBytes();",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"com.google.protobuf.ByteString\n getLogMessageBytes();",
"public byte[] getFileBytes(MessageObject messageObject) {\n\t\tMessageObject msgObject = winnowMessage(messageObject);\n\t\tif (messageObject.isUseTransform()) {\n\t\t\tdetransformMessageObject(messageObject);\n\t\t}\n\t\tbyte[] res = new byte[0];\n\t\tfor (MessagePart msgPart : msgObject.getMessageParts()) {\n\t\t\tres = concatByteArrays(res, msgPart.getMsg());\n\t\t}\n\t\treturn res;\n\t}",
"public byte[] toBytes() {\n return toProtobuf().toByteArray();\n }",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"com.google.protobuf.ByteString\n getMessageBytes();",
"void encode(ByteBuffer buffer, Message message);",
"public byte[] toBinary(JSONObject message) {\n\t\tString messageToConvert = message.toString();\n\t\tbyte[] converted = null;\n\t\ttry {\n\t\t\tconverted = messageToConvert.getBytes(\"UTF-8\");\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn converted;\n\t}",
"public ByteBuffer getData() {\r\n\t\tByteBuffer buffer = null;\r\n\t\tbuffer = new ByteBuffer(messageData);\r\n\t\treturn buffer;\r\n\t}",
"@Override\n public BytesMessage provideMessage(long msgCounter) throws JMSException {\n return (BytesMessage) createMessage();\n }",
"com.google.protobuf.ByteString\n getToBytes();",
"byte[] getStructuredData(String messageData);",
"public void sendMessageAsByte(byte [] message) {\r\n try {\r\n out.writeInt(message.length);\r\n out.write(message);\r\n out.flush();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }",
"com.google.protobuf.ByteString\n getUserMessageBytes();",
"com.google.protobuf.ByteString getMsg();",
"protected abstract ByteBuffer toMedia(Object object) throws BeanConversionException;",
"private byte[] getExceptionMessageByte(String message) {\n return message.getBytes(StandardCharsets.UTF_8);\n }",
"public abstract byte[] toBytes() throws Exception;",
"public abstract byte[] toByteArray();",
"public abstract byte[] toByteArray();",
"public byte[] getMQMessage() {\n\n String fullMsg = headerVersion + messageType + service + serverUser +\n serverPassword + serverAppl +\n cicsTrx +\n format( timeout, \"0000\" ) +\n format( retcode, \"00000\" ) +\n format( datalen, \"00000\" ) +\n \" \" +\n data;\n\n\n return( fullMsg.getBytes() );\n }",
"public byte[] getRawContent() {\n try {\n if (this.messageContent == null &&\n this.messageContentBytes == null &&\n this.messageContentObject == null) {\n return null;\n } else if (this.messageContentObject != null ) {\n String messageContent = this.messageContentObject.toString();\n byte[] messageContentBytes;\n ContentType contentTypeHeader =\n (ContentType)this.nameTable.get\n (ContentTypeHeader.NAME.toLowerCase());\n if (contentTypeHeader != null) {\n String charset = contentTypeHeader.getCharset();\n if (charset != null) {\n messageContentBytes = messageContent.getBytes(charset);\n } else {\n messageContentBytes =\n messageContent.getBytes(DEFAULT_ENCODING);\n }\n } else messageContentBytes =\n messageContent.getBytes(DEFAULT_ENCODING);\n return messageContentBytes;\n } else if ( this.messageContent != null ) {\n byte[] messageContentBytes;\n ContentType contentTypeHeader =\n (ContentType)this.nameTable.get\n (ContentTypeHeader.NAME.toLowerCase());\n if (contentTypeHeader != null) {\n String charset = contentTypeHeader.getCharset();\n if (charset != null) {\n messageContentBytes =\n this.messageContent.getBytes(charset);\n } else {\n messageContentBytes =\n this.messageContent.getBytes(DEFAULT_ENCODING);\n }\n } else messageContentBytes =\n this.messageContent.getBytes(DEFAULT_ENCODING);\n return messageContentBytes;\n } else {\n return messageContentBytes;\n }\n } catch (UnsupportedEncodingException ex) {\n InternalErrorHandler.handleException(ex);\n return null;\n }\n }",
"public static String convertToJavaMessage(String message) {\n Component component = BEDROCK_SERIALIZER.deserialize(message);\n return GSON_SERIALIZER.serialize(component);\n }",
"private byte[] buildBytes() {\n byte[] message = new byte[4 + 2 + 2 + 1 + data.getLength()];\n System.arraycopy(id.getBytes(), 0, message, 0, 4);\n System.arraycopy(sq.getBytes(), 0, message, 4, 2);\n System.arraycopy(ack.getBytes(), 0, message, 6, 2);\n message[8] = flag.getBytes();\n System.arraycopy(data.getBytes(), 0, message, 9, data.getBytes().length);\n return message;\n }",
"public interface MessageConverter {\n\n /**\n * Converts the given JMS message to a block of bytes.\n * \n * @param message\n * the message to convert\n * @return the message as bytes\n * @throws IOException\n * @throws JMSException\n */\n public byte[] fromMessage(Message message) throws IOException, JMSException;\n\n /**\n * Converts the given block of bytes into a JMS message.\n * \n * @param data\n * the data to convert\n * @return the bytes as a message\n * @throws IOException\n * @throws JMSException\n */\n public Message toMessage(byte[] data) throws IOException, JMSException;\n\n}",
"protected ByteBuffer writeHeader()\n {\n ByteBuffer buffer = ByteBuffer.allocate(getMessageSize());\n buffer.order(ByteOrder.LITTLE_ENDIAN);\n\n buffer.put(HEADER.getBytes(), 0, 4);\n\n return buffer;\n }",
"private DAPMessage constructFrom(DatabaseTableRecord record) {\n return DAPMessage.fromXML(record.getStringValue(CommunicationNetworkServiceDatabaseConstants.DAP_MESSAGE_DATA_COLUMN_NAME));\n }",
"public static <O> byte[] toBytes(O object) {\n try (ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n ObjectOutputStream objOutputStream = new ObjectOutputStream(byteArrayOutputStream);) {\n objOutputStream.writeObject(object);\n return byteArrayOutputStream.toByteArray();\n\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }",
"@Override\n\tpublic byte[] retrieve(String msgid)\n\t{\n\t\treturn null;\n\t}",
"public ByteBuffer toBuffer() {\n return ByteBuffer.wrap(buf, 0, count);\n }",
"public void dispatchMessage(KeyedMessage<byte[], byte[]> msg);",
"public CloudQueueMessage(byte[] content) {\n\t\tthis(null, content, null, null, 0);\n\t}",
"public byte[] toBytes() {\n return PaddingUtil.pad(\n PADDING,\n ByteArrayListUtil.merge(\n contactPublicKeyBytes,\n haNonce,\n haCiphertext,\n additionalData\n )\n );\n }",
"void serialize(GeneratedMessage msg, OutputStream out) throws IOException;",
"public static ByteBuffer getByteBuffer(AbstractMessage abstractMessage) {\n int bufferSize = 1024;\n if (abstractMessage instanceof MergedWarpMessage) {\n bufferSize = ((MergedWarpMessage)abstractMessage).msgs.size() * 1024 + 4;\n } else if (abstractMessage instanceof MergeResultMessage) {\n bufferSize = ((MergeResultMessage)abstractMessage).msgs.length * 1024 + 4;\n } else if (abstractMessage instanceof AbstractIdentifyRequest) {\n bufferSize = 10 * 1024;\n } else if (abstractMessage instanceof AbstractResultMessage) {\n bufferSize = 512;\n } else if (abstractMessage instanceof AbstractBranchEndRequest) {\n AbstractBranchEndRequest abstractBranchEndRequest = (AbstractBranchEndRequest)abstractMessage;\n byte[] applicationDataBytes = null;\n if (abstractBranchEndRequest.getApplicationData() != null) {\n applicationDataBytes = abstractBranchEndRequest.getApplicationData().getBytes(UTF8);\n if (applicationDataBytes.length > 512) {\n bufferSize = applicationDataBytes.length + 1024;\n } else {\n bufferSize = 1024;\n }\n } else {\n bufferSize = 1024;\n }\n } else if (abstractMessage instanceof GlobalBeginRequest) {\n bufferSize = 256;\n } else if (abstractMessage instanceof AbstractGlobalEndRequest) {\n bufferSize = 256;\n } else if (abstractMessage instanceof BranchRegisterRequest) {\n BranchRegisterRequest branchRegisterRequest = (BranchRegisterRequest)abstractMessage;\n int byteLenth = 0;\n byte[] lockKeyBytes = null;\n if (branchRegisterRequest.getLockKey() != null) {\n lockKeyBytes = branchRegisterRequest.getLockKey().getBytes(UTF8);\n if (lockKeyBytes.length > 512) {\n byteLenth += lockKeyBytes.length;\n }\n }\n byte[] applicationDataBytes = null;\n if (branchRegisterRequest.getApplicationData() != null) {\n applicationDataBytes = branchRegisterRequest.getApplicationData().getBytes(UTF8);\n if (applicationDataBytes.length > 512) {\n byteLenth += applicationDataBytes.length;\n }\n }\n bufferSize = byteLenth + 1024;\n } else if (abstractMessage instanceof BranchReportRequest) {\n BranchReportRequest branchReportRequest = (BranchReportRequest)abstractMessage;\n int byteLenth = 0;\n byte[] applicationDataBytes = null;\n if (branchReportRequest.getApplicationData() != null) {\n applicationDataBytes = branchReportRequest.getApplicationData().getBytes(UTF8);\n if (applicationDataBytes.length > 512) {\n byteLenth += (applicationDataBytes.length);\n }\n }\n bufferSize = byteLenth + 1024;\n } else {\n bufferSize = 512;\n }\n return ByteBuffer.allocate(bufferSize);\n }",
"protected O bytesToObject(ByteBuffer data) throws OBException,\r\n InstantiationException, IllegalAccessException, IllegalIdException {\r\n return bytesToObject(data.array());\r\n }",
"public static byte[] toBytes(Object object) {\n\t\tif(object instanceof Boolean) {\n\t\t\treturn new byte[] {\n\t\t\t\t\t(boolean) object ? (byte) 1 : (byte) 0\n\t\t\t};\n\t\t} else if (object instanceof Byte) {\n\t\t\treturn new byte[] {\n\t\t\t\t\t(byte) object\n\t\t\t};\n\t\t} else if (object instanceof Short) {\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(2);\n\t\t\tbuffer.putShort((short) object);\n\t\t\treturn buffer.array();\n\t\t} else if (object instanceof Integer) {\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(4);\n\t\t\tbuffer.putInt((int) object);\n\t\t\treturn buffer.array();\n\t\t} else if (object instanceof Long) {\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(8);\n\t\t\tbuffer.putLong((long) object);\n\t\t\treturn buffer.array();\n\t\t} else if (object instanceof Character) {\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(4);\n\t\t\tbuffer.putInt((char) object);\n\t\t\treturn buffer.array();\n\t\t} else if (object instanceof Float) {\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(4);\n\t\t\tbuffer.putFloat((float) object);\n\t\t\treturn buffer.array();\n\t\t} else if (object instanceof Double) {\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(8);\n\t\t\tbuffer.putDouble((double) object);\n\t\t\treturn buffer.array();\n\t\t} else if (object instanceof String) {\n\t\t\tbyte[] charset = ((String) object).getBytes();\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(4+charset.length);\n\t\t\tbuffer.putInt(charset.length);\n\t\t\tbuffer.put(charset);\n\t\t\treturn buffer.array();\n\t\t} else {\n\t\t\tbyte[] charset = object.toString().getBytes();\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(4+charset.length);\n\t\t\tbuffer.putInt(charset.length);\n\t\t\tbuffer.put(charset);\n\t\t\treturn buffer.array();\n\t\t}\n\t}",
"public com.google.protobuf.ByteString getMsgData() {\n return msgData_;\n }",
"com.google.protobuf.ByteString\n getFromBytes();",
"com.google.protobuf.ByteString\n getFromBytes();",
"public ByteBuffer getByteBuffer();",
"protected abstract byte[] getCANMessage();",
"public byte[] toBytes() {\n ByteArrayOutputStream os = new ByteArrayOutputStream();\n try {\n writeTo(os);\n } catch (IOException e) {e.printStackTrace();}\n return os.toByteArray();\n }",
"public com.google.protobuf.ByteString getMsgData() {\n return msgData_;\n }",
"public com.google.protobuf.ByteString\n getToBytes() {\n Object ref = to_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n to_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"Message decode(ByteBuffer buffer, Supplier<Message> messageSupplier);",
"public com.google.protobuf.ByteString\n getToBytes() {\n Object ref = to_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n to_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public static ByteBuf getExpectedBuffer() {\n String msgHex = \"00 01 00 0b 00 00 00 0a 00 21 63 6f 6e 73 75 6d 65 72 2d 63 6f 6e 73 6f 6c 65 2d 63 \" +\n \"6f 6e 73 75 6d 65 72 2d 35 39 37 35 30 2d 31 ff ff ff ff 00 00 01 f4 00 00 00 01 03 \" +\n \"20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 0a 63 6f 64 65 63 2d 74 65 73 74 \" +\n \"00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff ff ff ff ff ff ff ff \" +\n \"00 10 00 00 00 00 00 00 00 00\";\n return TestUtils.hexToBinary(msgHex);\n }",
"ByteBuf getMessageBody();",
"@Override\r\n\tpublic byte[] getBytes() {\n\t\treturn buffer.array();\r\n\t}",
"com.google.protobuf.ByteString\n getEncodedBytes();",
"com.google.protobuf.ByteString\n getContentBytes();",
"com.google.protobuf.ByteString\n getContentBytes();",
"public byte[] encodeAsBytes() {\n StringBuffer encoding = new StringBuffer();\n ListIterator it = this.headers.listIterator();\n \n while (it.hasNext()) {\n SIPHeader siphdr = (SIPHeader) it.next();\n if (! (siphdr instanceof ContentLength) )\n encoding.append(siphdr.encode());\n \n }\n \tencoding.append(contentLengthHeader.encode()).append(NEWLINE);\n \n byte[] retval = null;\n byte[] content = this.getRawContent();\n if (content != null) {\n // encoding.append(SIPHeaderNames.CONTENT_LENGTH +\n // COLON +\n // SP + content.length + NEWLINE);\n // encoding.append(NEWLINE);\n // Append the content\n \n byte[] msgarray = null;\n try {\n msgarray = encoding.toString().getBytes(\"UTF-8\");\n } catch (UnsupportedEncodingException ex) {\n InternalErrorHandler.handleException(ex);\n }\n \n retval = new byte[msgarray.length + content.length];\n System.arraycopy(msgarray,0,retval,0,msgarray.length);\n System.arraycopy(content,0,retval,msgarray.\n length,content.length);\n } else {\n // Message content does not exist.\n // encoding.append(SIPHeaderNames.CONTENT_LENGTH +\n // COLON + SP + '0' + NEWLINE);\n //encoding.append(NEWLINE);\n \n try {\n retval = encoding.toString().getBytes(\"UTF-8\");\n } catch (UnsupportedEncodingException ex) {\n InternalErrorHandler.handleException(ex);\n }\n }\n return retval;\n }"
] | [
"0.66233677",
"0.6550239",
"0.63486224",
"0.61982435",
"0.6059769",
"0.5865542",
"0.5771283",
"0.5733688",
"0.5712377",
"0.5697199",
"0.5667743",
"0.56487143",
"0.56487143",
"0.56487143",
"0.56487143",
"0.56487143",
"0.56487143",
"0.56487143",
"0.56487143",
"0.56487143",
"0.56409645",
"0.5638807",
"0.5638807",
"0.5638807",
"0.5638807",
"0.5638807",
"0.5638807",
"0.5638807",
"0.5638807",
"0.5638807",
"0.5638807",
"0.5638807",
"0.5638807",
"0.5638807",
"0.5638807",
"0.5638807",
"0.5638807",
"0.5638807",
"0.5638807",
"0.5632021",
"0.5603617",
"0.5585144",
"0.55811214",
"0.55811214",
"0.55811214",
"0.55811214",
"0.55811214",
"0.55811214",
"0.55811214",
"0.55811214",
"0.55811214",
"0.55811214",
"0.55674475",
"0.5553677",
"0.55481136",
"0.55447114",
"0.5518047",
"0.55030346",
"0.54777646",
"0.5404028",
"0.5357961",
"0.53109705",
"0.53093886",
"0.5291898",
"0.52889204",
"0.52889204",
"0.5253098",
"0.5240113",
"0.5226107",
"0.5224997",
"0.5211692",
"0.52100885",
"0.5201274",
"0.51780254",
"0.5127654",
"0.5122388",
"0.5112767",
"0.5088948",
"0.5084656",
"0.50664115",
"0.5054409",
"0.50485027",
"0.5048377",
"0.50332916",
"0.5022498",
"0.5022498",
"0.4992996",
"0.49790353",
"0.49601665",
"0.49478313",
"0.494751",
"0.49421608",
"0.4927314",
"0.49267325",
"0.49075943",
"0.48841217",
"0.4879657",
"0.48680642",
"0.48680642",
"0.48666888"
] | 0.615068 | 4 |
Write a zeroterminated string to a field of len bytes. | private void writeString( ByteBuffer byteBuffer, String string, int len )
{
if ( null == string )
{
string = "";
}
try
{
byte[] sbytes = string.getBytes( "ASCII" );
// writeBytes will automatically zero-pad and thus terminate the
// string.
writeBytes( byteBuffer, sbytes, len );
}
catch ( UnsupportedEncodingException e )
{
// should not happen
throw new RuntimeException( I18n.err( I18n.ERR_635 ), e );
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void writeLength( ObjectOutput out, int len ) throws IOException\n {\n\t\tif (len <= 31)\n\t\t{\n\t\t\tout.write((byte) (0x80 | (len & 0xff)));\n\t\t}\n\t\telse if (len <= 0xFFFF)\n\t\t{\n\t\t\tout.write((byte) 0xA0);\n\t\t\tout.writeShort((short) len);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tout.write((byte) 0xC0);\n\t\t\tout.writeInt(len);\n\n\t\t}\n }",
"private static void zza(byte[] arrby, StringBuffer stringBuffer) {\n if (arrby == null) {\n stringBuffer.append(\"\\\"\\\"\");\n return;\n }\n stringBuffer.append('\\\"');\n int n = 0;\n do {\n if (n >= arrby.length) {\n stringBuffer.append('\\\"');\n return;\n }\n int n2 = arrby[n] & 0xFF;\n if (n2 == 92 || n2 == 34) {\n stringBuffer.append('\\\\').append((char)n2);\n } else if (n2 >= 32 && n2 < 127) {\n stringBuffer.append((char)n2);\n } else {\n stringBuffer.append(String.format(\"\\\\%03o\", n2));\n }\n ++n;\n } while (true);\n }",
"void writeBytes(String s) throws IOException;",
"public void write(String str) throws IOException {\n\t\toffset = dataBase.getFilePointer();\n\t\tdataBase.writeBytes(str + \"\\n\");\n\t}",
"void write (String s, int offset);",
"private void _writeStringASCII(int len, int maxNonEscaped)\n/* */ throws IOException, JsonGenerationException\n/* */ {\n/* 1117 */ int end = this._outputTail + len;\n/* 1118 */ int[] escCodes = this._outputEscapes;\n/* 1119 */ int escLimit = Math.min(escCodes.length, maxNonEscaped + 1);\n/* 1120 */ int escCode = 0;\n/* */ \n/* */ \n/* 1123 */ while (this._outputTail < end)\n/* */ {\n/* */ char c;\n/* */ do\n/* */ {\n/* 1128 */ c = this._outputBuffer[this._outputTail];\n/* 1129 */ if (c < escLimit) {\n/* 1130 */ escCode = escCodes[c];\n/* 1131 */ if (escCode != 0) {\n/* */ break;\n/* */ }\n/* 1134 */ } else if (c > maxNonEscaped) {\n/* 1135 */ escCode = -1;\n/* 1136 */ break;\n/* */ }\n/* 1138 */ } while (++this._outputTail < end);\n/* 1139 */ break;\n/* */ \n/* */ \n/* 1142 */ int flushLen = this._outputTail - this._outputHead;\n/* 1143 */ if (flushLen > 0) {\n/* 1144 */ this._writer.write(this._outputBuffer, this._outputHead, flushLen);\n/* */ }\n/* 1146 */ this._outputTail += 1;\n/* 1147 */ _prependOrWriteCharacterEscape(c, escCode);\n/* */ }\n/* */ }",
"@Override\n public void write (final String s, final int off, final int len)\n {\n if (text != null)\n {\n text.append (s.substring (off, off + len));\n if ((col += len) > wrap)\n println ();\n }\n else\n {\n super.write (s, off, len);\n flush ();\n }\n }",
"private void _writeStringCustom(int len)\n/* */ throws IOException, JsonGenerationException\n/* */ {\n/* 1261 */ int end = this._outputTail + len;\n/* 1262 */ int[] escCodes = this._outputEscapes;\n/* 1263 */ int maxNonEscaped = this._maximumNonEscapedChar < 1 ? 65535 : this._maximumNonEscapedChar;\n/* 1264 */ int escLimit = Math.min(escCodes.length, maxNonEscaped + 1);\n/* 1265 */ int escCode = 0;\n/* 1266 */ CharacterEscapes customEscapes = this._characterEscapes;\n/* */ \n/* */ \n/* 1269 */ while (this._outputTail < end)\n/* */ {\n/* */ char c;\n/* */ do\n/* */ {\n/* 1274 */ c = this._outputBuffer[this._outputTail];\n/* 1275 */ if (c < escLimit) {\n/* 1276 */ escCode = escCodes[c];\n/* 1277 */ if (escCode != 0)\n/* */ break;\n/* */ } else {\n/* 1280 */ if (c > maxNonEscaped) {\n/* 1281 */ escCode = -1;\n/* 1282 */ break;\n/* */ }\n/* 1284 */ if ((this._currentEscape = customEscapes.getEscapeSequence(c)) != null) {\n/* 1285 */ escCode = -2;\n/* 1286 */ break;\n/* */ }\n/* */ }\n/* 1289 */ } while (++this._outputTail < end);\n/* 1290 */ break;\n/* */ \n/* */ \n/* 1293 */ int flushLen = this._outputTail - this._outputHead;\n/* 1294 */ if (flushLen > 0) {\n/* 1295 */ this._writer.write(this._outputBuffer, this._outputHead, flushLen);\n/* */ }\n/* 1297 */ this._outputTail += 1;\n/* 1298 */ _prependOrWriteCharacterEscape(c, escCode);\n/* */ }\n/* */ }",
"public void write(char[] b, int off, int len) throws IOException {\n\t\t\tif (!initialized) {\n\t\t\t\tarea.setText(\"\");\n\t\t\t\tinitialized = true;\n\t\t\t}\n\t\t\tString str = new String(b, off, len);\n\t\t\tStringBuffer sb = new StringBuffer(len);\n\t\t\twhile (str != null && str.length() > 0) {\n\t\t\t\tif (lastCR && str.charAt(0) == '\\n')\n\t\t\t\t\tstr = str.substring(1);\n\t\t\t\tint crIndex = str.indexOf('\\r');\n\t\t\t\tif (crIndex >= 0) {\n\t\t\t\t\tsb.append(str.substring(0, crIndex));\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\tstr = str.substring(crIndex + 1);\n\t\t\t\t\tlastCR = true;\n\t\t\t\t} else {\n\t\t\t\t\tsb.append(str);\n\t\t\t\t\tstr = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\tarea.append(sb.toString());\n\t\t}",
"public void writeBinary(Base64Variant b64variant, byte[] data, int offset, int len)\n/* */ throws IOException, JsonGenerationException\n/* */ {\n/* 545 */ _verifyValueWrite(\"write a binary value\");\n/* */ \n/* 547 */ if (this._outputTail >= this._outputEnd) {\n/* 548 */ _flushBuffer();\n/* */ }\n/* 550 */ this._outputBuffer[(this._outputTail++)] = this._quoteChar;\n/* 551 */ _writeBinary(b64variant, data, offset, offset + len);\n/* */ \n/* 553 */ if (this._outputTail >= this._outputEnd) {\n/* 554 */ _flushBuffer();\n/* */ }\n/* 556 */ this._outputBuffer[(this._outputTail++)] = this._quoteChar;\n/* */ }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getZBytes() {\n java.lang.Object ref = z_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n z_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"private void writeLength(int length) {\n if (length < 128) {\n os.write((byte) length);\n } else if (length < 256) {\n os.write(-127); // 10000001 - 1 byte to follow\n os.write((byte) length);\n } else if (length < 65536) {\n os.write(-126); // 10000010 - 2 bytes to follow\n os.write((byte) (length >> 8));\n os.write((byte) length);\n } else if (length < 16777216) {\n os.write(-125); // 10000011 - 3 bytes to follow\n os.write((byte) (length >> 16));\n os.write((byte) (length >> 8));\n os.write((byte) length);\n } else {\n os.write(-124); // 10000100 - 4 bytes to follow\n os.write((byte) (length >> 24));\n os.write((byte) (length >> 16));\n os.write((byte) (length >> 8));\n os.write((byte) length);\n }\n }",
"public java.lang.String getZLF() {\r\n return localZLF;\r\n }",
"private void write(byte[] data, int pos, int len)\n\t\tthrows IOException\n\t{\n\t\tchar[] chars = BASE64;\n\n\t\tint loc = (len > 0 ? (data[pos] << 24) >>> 8 : 0) |\n\t\t\t(len > 1 ? (data[pos+1] << 24) >>> 16 : 0) |\n\t\t\t(len > 2 ? (data[pos+2] << 24) >>> 24 : 0);\n\n\t\tswitch(len)\n\t\t{\n\t\t\tcase 3:\n\t\t\t\twriter.write(chars[loc >>> 18]);\n\t\t\t\twriter.write(chars[(loc >>> 12) & 0x3f]);\n\t\t\t\twriter.write(chars[(loc >>> 6) & 0x3f]);\n\t\t\t\twriter.write(chars[loc & 0x3f]);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\twriter.write(chars[loc >>> 18]);\n\t\t\t\twriter.write(chars[(loc >>> 12) & 0x3f]);\n\t\t\t\twriter.write(chars[(loc >>> 6) & 0x3f]);\n\t\t\t\twriter.write('=');\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\twriter.write(chars[loc >>> 18]);\n\t\t\t\twriter.write(chars[(loc >>> 12) & 0x3f]);\n\t\t\t\twriter.write('=');\n\t\t\t\twriter.write('=');\n\t\t}\n\t}",
"@java.lang.Override\n public java.lang.String getZ() {\n java.lang.Object ref = z_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n z_ = s;\n return s;\n }\n }",
"public com.google.protobuf.ByteString\n getZBytes() {\n java.lang.Object ref = z_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n z_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public void write(String str, int off, int len) throws IOException {\n ensureOpen();\n if ((off < 0) || (off > str.length()) || (len < 0) ||\n ((off + len) > str.length()) || ((off + len) < 0)) {\n throw new IndexOutOfBoundsException();\n } else if (len == 0) {\n return;\n }\n out.write(str, off, len);\n }",
"@Test\n public void usingCRDelimiterWithSmallestBufferSize() throws Exception {\n conf.set(IO_FILE_BUFFER_SIZE_KEY, \"1\");\n\n try (BZip2TextFileWriter writer = new BZip2TextFileWriter(tempFile, conf)) {\n writer.writeManyRecords(BLOCK_SIZE - 50, 999, CR);\n writer.writeRecord(100, CR);\n writer.writeRecord(10, CR);\n writer.writeRecord(10, CR);\n writer.writeRecord(10, CR);\n }\n assertRecordCountsPerSplit(tempFile, new long[] {1000, 3});\n }",
"public Builder setZBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n z_ = value;\n onChanged();\n return this;\n }",
"@Override\n public void writeSpace(char[] text, int offset, int length)\n throws XMLStreamException\n {\n writeRaw(text, offset, length);\n }",
"private static byte[] addLengthOctet(String s)\n {\n byte buf[], buf2[];\n\n buf = s.getBytes();\n buf2 = new byte[buf.length + 1];\n System.arraycopy(buf, 0, buf2, 1, buf.length);\n buf2[0] = (byte)buf.length;\n\n return buf2;\n }",
"public void write(String string, int offset, int length) throws IOException{\r\n if(closed){\r\n throw new IOException(\"The stream is not open.\");\r\n }\r\n getBuffer().append(string.substring(offset, length));\r\n }",
"public java.lang.String getZ() {\n java.lang.Object ref = z_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n z_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@Override\n public int write(byte[] bytes, int offset, int length) throws SWPException {\n int codePointLength = getLength();\n SWPException.requireTrue(length >= codePointLength, \"Buffer overflow.\");\n bytes[offset] = (byte) ((codePointLength << 8) & 0xff);\n bytes[offset + 1] = (byte) (codePointLength & 0xff);\n bytes[offset + 2] = (byte) (codePoint >>> 8);\n bytes[offset + 3] = (byte) (codePoint & 0xff);\n if (isNull()) {\n\n bytes[offset + 4] = SwpConstants.NULL_INDICATOR;\n }\n else {\n\n bytes[offset + 4] = SwpConstants.NOT_NULL_INDICATOR;\n primitive.write(bytes, offset + 5, length - 5);\n }\n return codePointLength;\n }",
"@Override\n public void write (final char buf[], final int off, final int len)\n {\n if (text != null)\n {\n text.append (new String (buf, off, len));\n if ((col += len) > wrap)\n println ();\n }\n else\n super.write (buf, off, len);\n }",
"void writeUTF(String s) throws IOException;",
"public void write_string_variable(int size, String str) throws IOException {\n\n // Creem una seqüència amb la mida\n byte bHeader[] = new byte[size];\n String strHeader;\n int numBytes = 0;\n\n // Creem la capçalera amb el nombre de bytes que codifiquen la mida\n numBytes = str.length();\n\n strHeader = String.valueOf(numBytes);\n int len;\n if ((len = strHeader.length()) < size)\n for (int i = len; i < size; i++) {\n strHeader = \"0\" + strHeader;\n }\n for (int i = 0; i < size; i++)\n bHeader[i] = (byte) strHeader.charAt(i);\n // Enviem la capçalera\n dos.write(bHeader, 0, size);\n // Enviem l'string writeBytes de DataOutputStrem no envia el byte més alt dels chars.\n dos.writeBytes(str);\n }",
"public void writeLength(){\n\t\tfor(int i = 0; i < DIFF_CHARACTERS; i++){\n\t\t\tm_arraylists[i].length();\n\t\t}\n\t}",
"private void _writeString(char[] text, int offset, int len)\n/* */ throws IOException\n/* */ {\n/* 1049 */ if (this._characterEscapes != null) {\n/* 1050 */ _writeStringCustom(text, offset, len);\n/* 1051 */ return;\n/* */ }\n/* 1053 */ if (this._maximumNonEscapedChar != 0) {\n/* 1054 */ _writeStringASCII(text, offset, len, this._maximumNonEscapedChar);\n/* 1055 */ return;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1062 */ len += offset;\n/* 1063 */ int[] escCodes = this._outputEscapes;\n/* 1064 */ int escLen = escCodes.length;\n/* 1065 */ while (offset < len) {\n/* 1066 */ int start = offset;\n/* */ for (;;)\n/* */ {\n/* 1069 */ char c = text[offset];\n/* 1070 */ if ((c < escLen) && (escCodes[c] != 0)) {\n/* */ break;\n/* */ }\n/* 1073 */ offset++; if (offset >= len) {\n/* */ break;\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* 1079 */ int newAmount = offset - start;\n/* 1080 */ if (newAmount < 32)\n/* */ {\n/* 1082 */ if (this._outputTail + newAmount > this._outputEnd) {\n/* 1083 */ _flushBuffer();\n/* */ }\n/* 1085 */ if (newAmount > 0) {\n/* 1086 */ System.arraycopy(text, start, this._outputBuffer, this._outputTail, newAmount);\n/* 1087 */ this._outputTail += newAmount;\n/* */ }\n/* */ } else {\n/* 1090 */ _flushBuffer();\n/* 1091 */ this._writer.write(text, start, newAmount);\n/* */ }\n/* */ \n/* 1094 */ if (offset >= len) {\n/* */ break;\n/* */ }\n/* */ \n/* 1098 */ char c = text[(offset++)];\n/* 1099 */ _appendCharacterEscape(c, escCodes[c]);\n/* */ }\n/* */ }",
"public int rawLength() {\n\t\treturn length.rawLength() + s.length();\n\t}",
"int writeTo(byte[] iStream, int pos, ORecordVersion version);",
"public void write(byte[] data, long offset);",
"private void write(String s) {\n\n try {\n // Add the delimiter\n s += DELIMITER;\n\n // Convert to bytes and write\n outStream.write(s.getBytes());\n Log.i(TAG, \"[SENT] \" + s);\n\n } catch (Exception e) {\n Log.e(TAG, \"Write failed!\", e);\n }\n }",
"public Builder setZ(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n z_ = value;\n onChanged();\n return this;\n }",
"public final void zaa(FastJsonResponse.Field<?, ?> field, String str, BigInteger bigInteger) {\n zab(field);\n SafeParcelWriter.writeBigInteger(this.zarb, field.getSafeParcelableFieldId(), bigInteger, true);\n }",
"public void write(byte b[], int off, int len) throws IOException;",
"void write(byte[] buffer, int bufferOffset, int length) throws IOException;",
"static String makeFixedLength(Object obj, int length) {\n String string = obj.toString();\n while (string.length() < length) {\n string = string + \" \";\n }\n return string;\n }",
"@Override\n public void write(char[] cbuf, int off, int len) throws IOException\n {\n builder.append(cbuf, off, len);\n }",
"public BinaryEncoder writeLong(long l) throws IOException {\n // Compute the zig-zag value. First double the value and flip the bit if the input is negative.\n long val = (l << 1) ^ (l >> 63);\n\n if ((val & ~0x7f) != 0) {\n output.write((int) (0x80 | val & 0x7f));\n val >>>= 7;\n while (val > 0x7f) {\n output.write((int) (0x80 | val & 0x7f));\n val >>>= 7;\n }\n }\n output.write((int) val);\n\n return this;\n }",
"public void write(final byte[] data, final int offset, final int len) throws IOException {\n checkOpened();\n dos.write(data, offset, len);\n flush();\n }",
"public void write(byte[] pBuf, int pOffset, int pLength)\n throws IOException {\n String strValue = null;\n if(characterEncoding != null && !\"\".equals(characterEncoding)) {\n try {\n strValue = new String(pBuf, pOffset, pLength, characterEncoding);\n }\n catch(UnsupportedEncodingException uee) {\n // ignore and allow the null to handle.\n }\n }\n\n if(strValue == null) {\n strValue = new String(pBuf, pOffset, pLength);\n }\n\n mPrintWriter.write(strValue);\n }",
"private void writeBuffer( byte b[], int offset, int length) throws IOException\r\n\t{\r\n\t\t// Write the chunk length as a hex number.\r\n\t\tfinal String size = Integer.toHexString(length);\r\n\t\tthis.out.write(size.getBytes());\r\n\t\t// Write a CRLF.\r\n\t\tthis.out.write( CR );\r\n\t\tthis.out.write( LF );\r\n\t\t// Write the data.\r\n\t\tif (length != 0 )\r\n\t\t\tthis.out.write(b, offset, length);\r\n\t\t// Write a CRLF.\r\n\t\tthis.out.write( CR );\r\n\t\tthis.out.write( LF );\r\n\t\t// And flush the real stream.\r\n\t\tthis.out.flush();\r\n\t}",
"public void write(String[] buf, int offset, int size) throws IOException;",
"public void setRecord_length(int len) {\n\t\trecord_length = len;\n\t}",
"private void _writeString(String text)\n/* */ throws IOException\n/* */ {\n/* 908 */ int len = text.length();\n/* 909 */ if (len > this._outputEnd) {\n/* 910 */ _writeLongString(text);\n/* 911 */ return;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 916 */ if (this._outputTail + len > this._outputEnd) {\n/* 917 */ _flushBuffer();\n/* */ }\n/* 919 */ text.getChars(0, len, this._outputBuffer, this._outputTail);\n/* */ \n/* 921 */ if (this._characterEscapes != null) {\n/* 922 */ _writeStringCustom(len);\n/* 923 */ } else if (this._maximumNonEscapedChar != 0) {\n/* 924 */ _writeStringASCII(len, this._maximumNonEscapedChar);\n/* */ } else {\n/* 926 */ _writeString2(len);\n/* */ }\n/* */ }",
"public int writeBinary(Base64Variant b64variant, InputStream data, int dataLength)\n/* */ throws IOException, JsonGenerationException\n/* */ {\n/* 564 */ _verifyValueWrite(\"write a binary value\");\n/* */ \n/* 566 */ if (this._outputTail >= this._outputEnd) {\n/* 567 */ _flushBuffer();\n/* */ }\n/* 569 */ this._outputBuffer[(this._outputTail++)] = this._quoteChar;\n/* 570 */ byte[] encodingBuffer = this._ioContext.allocBase64Buffer();\n/* */ int bytes;\n/* */ try { int bytes;\n/* 573 */ if (dataLength < 0) {\n/* 574 */ bytes = _writeBinary(b64variant, data, encodingBuffer);\n/* */ } else {\n/* 576 */ int missing = _writeBinary(b64variant, data, encodingBuffer, dataLength);\n/* 577 */ if (missing > 0) {\n/* 578 */ _reportError(\"Too few bytes available: missing \" + missing + \" bytes (out of \" + dataLength + \")\");\n/* */ }\n/* 580 */ bytes = dataLength;\n/* */ }\n/* */ } finally {\n/* 583 */ this._ioContext.releaseBase64Buffer(encodingBuffer);\n/* */ }\n/* */ \n/* 586 */ if (this._outputTail >= this._outputEnd) {\n/* 587 */ _flushBuffer();\n/* */ }\n/* 589 */ this._outputBuffer[(this._outputTail++)] = this._quoteChar;\n/* 590 */ return bytes;\n/* */ }",
"public void write(String s) throws IOException {\n\t\tif (s != null && s.length() > 0) {\n\t\t\tfos.write(s.getBytes());\n\t\t}\n\t}",
"private void write(String s) {\n _writer.print(s);\n _writer.flush(); // This is need to actually write the data.\n\n _index += s.length();\n }",
"public static String writeBytes(byte[] bytes, int packetLength) {\n\n StringBuffer stringBuffer = new StringBuffer();\n\n for (int i = 0; i < packetLength; i++) {\n\n // New line every 4 bytes\n if (i % 4 == 0) {\n\n stringBuffer.append(\"\\n\");\n }\n\n stringBuffer.append(writeBits(bytes[i]) + \" \");\n\n }\n\n return stringBuffer.toString();\n\n }",
"public BEROctetString(byte[] string, int segmentSize)\n {\n this(string, null, segmentSize);\n }",
"private static void zza(String object, Object object2, StringBuffer stringBuffer, StringBuffer stringBuffer2) throws IllegalAccessException, InvocationTargetException {\n if (object2 == null) return;\n if (object2 instanceof zzfjs) {\n n2 = stringBuffer.length();\n if (object != null) {\n stringBuffer2.append(stringBuffer).append(zzfjt.zzty((String)object)).append(\" <\\n\");\n stringBuffer.append(\" \");\n }\n class_ = object2.getClass();\n object5 = class_.getFields();\n n4 = ((Field[])object5).length;\n } else {\n object = zzfjt.zzty((String)object);\n stringBuffer2.append(stringBuffer).append((String)object).append(\": \");\n if (object2 instanceof String) {\n object = object2 = (String)object2;\n if (!object2.startsWith(\"http\")) {\n object = object2;\n if (object2.length() > 200) {\n object = String.valueOf(object2.substring(0, 200)).concat(\"[...]\");\n }\n }\n object = zzfjt.zzgr((String)object);\n stringBuffer2.append(\"\\\"\").append((String)object).append(\"\\\"\");\n } else if (object2 instanceof byte[]) {\n zzfjt.zza((byte[])object2, stringBuffer2);\n } else {\n stringBuffer2.append(object2);\n }\n stringBuffer2.append(\"\\n\");\n return;\n }\n for (n = 0; n < n4; ++n) {\n object6 = object5[n];\n n3 = object6.getModifiers();\n object4 = object6.getName();\n if (\"cachedSize\".equals(object4) || (n3 & 1) != 1 || (n3 & 8) == 8 || object4.startsWith(\"_\") || object4.endsWith(\"_\")) continue;\n object3 = object6.getType();\n object6 = object6.get(object2);\n if (object3.isArray() && object3.getComponentType() != Byte.TYPE) {\n n3 = object6 == null ? 0 : Array.getLength(object6);\n for (i = 0; i < n3; ++i) {\n zzfjt.zza((String)object4, Array.get(object6, i), stringBuffer, stringBuffer2);\n }\n continue;\n }\n zzfjt.zza((String)object4, object6, stringBuffer, stringBuffer2);\n }\n object4 = class_.getMethods();\n n3 = ((Method[])object4).length;\n n = 0;\n do {\n block20: {\n if (n >= n3) {\n if (object == null) return;\n stringBuffer.setLength(n2);\n stringBuffer2.append(stringBuffer).append(\">\\n\");\n return;\n }\n object5 = object4[n].getName();\n if (!object5.startsWith(\"set\")) break block20;\n object3 = object5.substring(3);\n object5 = String.valueOf(object3);\n object5 = object5.length() != 0 ? \"has\".concat((String)object5) : new String(\"has\");\n if (!((Boolean)(object5 = class_.getMethod((String)object5, new Class[0])).invoke(object2, new Object[0])).booleanValue()) ** GOTO lbl81\n {\n catch (NoSuchMethodException noSuchMethodException) {}\n }\n try {\n block22: {\n block21: {\n object5 = String.valueOf(object3);\n if (object5.length() == 0) break block21;\n object5 = \"get\".concat((String)object5);\n break block22;\n break block20;\n }\n object5 = new String(\"get\");\n }\n object5 = class_.getMethod((String)object5, new Class[0]);\n }\n catch (NoSuchMethodException noSuchMethodException) {}\n zzfjt.zza((String)object3, object5.invoke(object2, new Object[0]), stringBuffer, stringBuffer2);\n }\n ++n;\n } while (true);\n }",
"private static String readNullPaddedString(ByteBuffer data, int length) {\n byte[] bytes = new byte[length];\n data.get(bytes);\n int stringLength = bytes.length - 1;\n while (stringLength > 0 && bytes[stringLength] == 0) {\n stringLength--;\n }\n return new String(bytes, 0, stringLength+1, Charset.forName(\"utf-8\"));\n }",
"@Override\r\n\tpublic synchronized void write(byte[] b, int off, int len)\r\n\t{\r\n\t}",
"public void write(String s){\n\t\tint length = s.length();\n\t\tchar[] chars = new char[length];\n\t\ts.getChars(0, length, chars, 0);\n\t\twrite(chars, 0, length);\n\t}",
"public static String rpad(String s, int len, char ch)\r\n {\r\n if (s == null || s.length() >= len)\r\n return s;\r\n \r\n StringBuffer buf = new StringBuffer(len);\r\n buf.append(s);\r\n for (len -= s.length(); len > 0; len--)\r\n buf.append(ch);\r\n \r\n return buf.toString();\r\n }",
"public void write(byte b[], int off, int len) throws IOException\n\t{\n\t\tout.write(b, off, len);\n\t\tmd5.update(b, off, len);\n\t}",
"public void write(char cbuf[], int off, int len) {\r\n if ((cbuf != null) && (len > 0)) {\r\n\r\n // Force flush if we have accumulated more than 1K of text\r\n boolean flushMe = false;\r\n synchronized (LogWriter.this) {\r\n buffer.append(cbuf, off, len);\r\n if (buffer.length() >= 1024) {\r\n flushMe = true;\r\n } else {\r\n // Look for embedded EOL\r\n for (int i=off+len-1; i>= off; i--) {\r\n if (cbuf[i] == '\\n') {\r\n flushMe = true;\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (flushMe) flush();\r\n }\r\n }",
"void writeChars(String s) throws IOException;",
"public final void zaa(FastJsonResponse.Field<?, ?> field, String str, double d) {\n zab(field);\n SafeParcelWriter.writeDouble(this.zarb, field.getSafeParcelableFieldId(), d);\n }",
"public final void zac(FastJsonResponse.Field<?, ?> field, String str, ArrayList<Long> arrayList) {\n zab(field);\n int size = arrayList.size();\n long[] jArr = new long[size];\n for (int i = 0; i < size; i++) {\n jArr[i] = arrayList.get(i).longValue();\n }\n SafeParcelWriter.writeLongArray(this.zarb, field.getSafeParcelableFieldId(), jArr, true);\n }",
"public final Field zzf() {\n int i = (this.zzaa << 1) + 1;\n Object obj = this.zzb[i];\n if (obj instanceof Field) {\n return (Field) obj;\n }\n Field zza2 = zza(this.zzc, (String) obj);\n this.zzb[i] = zza2;\n return zza2;\n }",
"private long stringSize(Instance instance) {\n return instance.getObjectSize() + stringValueField.getValue(instance).getObjectSize();\n }",
"public void writeText(char[] text, int off, int len) throws IOException {\r\n deNude();\r\n writerEscape.writeText(text, off, len);\r\n }",
"@Override\n\tpublic void WriteData(String obj) {\n\t\t\n\t}",
"public final void zaa(FastJsonResponse.Field<?, ?> field, String str, float f) {\n zab(field);\n SafeParcelWriter.writeFloat(this.zarb, field.getSafeParcelableFieldId(), f);\n }",
"public static void writeBoundary(OutputStream out, byte[] boundary, boolean crlf, boolean last) throws IOException {\r\n\t\tif (crlf) {\r\n\t\t\tout.write(Specialchars.CR);\r\n\t\t\tout.write(Specialchars.LF);\r\n\t\t}\r\n\t\tout.write(MIMEConstants.BOUNDARY_HYPHEN);\r\n\t\tout.write(MIMEConstants.BOUNDARY_HYPHEN);\r\n\t\tout.write(boundary);\r\n\t\tif (last) {\r\n\t\t\tout.write(MIMEConstants.BOUNDARY_HYPHEN);\r\n\t\t\tout.write(MIMEConstants.BOUNDARY_HYPHEN);\r\n\t\t}\r\n\t\tout.write(Specialchars.CR);\r\n\t\tout.write(Specialchars.LF);\r\n\t}",
"String write(byte[] content, boolean noPin);",
"public abstract String zza(Charset charset);",
"void writeUTF(OutputStream out, String str) throws IOException\n {\n for (int i = 0, len = str.length(); i < len; i++)\n {\n int c = str.charAt(i);\n if ((c >= 0x0001) && (c <= 0x007F))\n {\n out.write(c);\n }\n else\n {\n if (c > 0x07FF)\n {\n out.write(0xE0 | ((c >> 12) & 0x0F));\n out.write(0x80 | ((c >> 6) & 0x3F));\n out.write(0x80 | ((c >> 0) & 0x3F));\n }\n else\n {\n out.write(0xC0 | ((c >> 6) & 0x1F));\n out.write(0x80 | ((c >> 0) & 0x3F));\n }\n }\n }\n }",
"public void write(int b) throws IOException {\n/* 54 */ this.appendable.append((char)b);\n/* */ }",
"protected abstract void writeToExternal(byte[] b, int off, int len) throws IOException;",
"public void write(StringBuffer buffer) { name.write(buffer); }",
"public void write(char[] charArray, int offset, int length) throws IOException{\r\n if(closed){\r\n throw new IOException(\"The stream is not open.\");\r\n }\r\n getBuffer().append(charArray, offset, length);\r\n }",
"public DynamicCuboid setSizeZ(float z) {\n this.sizeZ = z;\n return this;\n }",
"protected static void writeString(final String s, final DataOutputStream d) throws IOException {\n\t\tif (s == null) {\n\t\t\td.writeShort(-1);\n\t\t} else {\n\t\t\td.writeShort(s.length());\n\t\t\td.write(s.getBytes());\n\t\t\td.writeByte(0);\n\t\t}\n\t}",
"void writeChars(char[] c, int off, int len) throws IOException;",
"public final void zab(FastJsonResponse.Field<?, ?> field, String str, ArrayList<BigInteger> arrayList) {\n zab(field);\n int size = arrayList.size();\n BigInteger[] bigIntegerArr = new BigInteger[size];\n for (int i = 0; i < size; i++) {\n bigIntegerArr[i] = arrayList.get(i);\n }\n SafeParcelWriter.writeBigIntegerArray(this.zarb, field.getSafeParcelableFieldId(), bigIntegerArr, true);\n }",
"String longWrite();",
"@Test\n public void testWriteByteArray() {\n System.out.println(\"writeByteArray\");\n /** Positive testing. */\n String bytes = \"spam\";\n String expResult = \"4:spam\";\n String result = Bencoder.writeByteArray(bytes.getBytes(BConst.ASCII));\n assertEquals(expResult, result);\n bytes = \"\";\n expResult = \"0:\";\n result = Bencoder.writeByteArray(bytes.getBytes(BConst.ASCII));\n assertEquals(expResult, result);\n }",
"public void write(byte b[], int off, int len) throws IOException\n {\n checkThreshold(len);\n getStream().write(b, off, len);\n written += len;\n }",
"public static int compress(byte[] b, int boffset, int len, byte[] o, int ooffset) throws IOException {\n\t\ttry{\n\t\t\treturn lz4Compressor.compress(b, boffset, len, o, ooffset);\n\t\t} catch (LZ4Exception e) {\n\t\t\treturn -lz4Compressor.maxCompressedLength(b.length);\n\t\t}\n\t}",
"private String zxt (long inp, int length) {\n String result = Long.toString(inp);\n int dist = (length - result.length());\n for (int i = 0; i < dist; i++) {\n result = \"0\" + result;\n }\n return result;\n }",
"public final void zzb(CharSequence charSequence, ByteBuffer byteBuffer) {\n CharSequence charSequence2 = charSequence;\n ByteBuffer byteBuffer2 = byteBuffer;\n long zzb = zzxj.zzb(byteBuffer);\n long position = zzb + ((long) byteBuffer.position());\n long limit = zzb + ((long) byteBuffer.limit());\n int length = charSequence.length();\n int limit2;\n if (((long) length) > limit - position) {\n char charAt = charSequence2.charAt(length - 1);\n limit2 = byteBuffer.limit();\n StringBuilder stringBuilder = new StringBuilder(37);\n stringBuilder.append(\"Failed writing \");\n stringBuilder.append(charAt);\n stringBuilder.append(\" at index \");\n stringBuilder.append(limit2);\n throw new ArrayIndexOutOfBoundsException(stringBuilder.toString());\n }\n char charAt2;\n long j;\n int i = 0;\n while (i < length) {\n charAt2 = charSequence2.charAt(i);\n if (charAt2 >= 128) {\n break;\n }\n j = position + 1;\n zzxj.zza(position, (byte) charAt2);\n i++;\n position = j;\n }\n if (i == length) {\n byteBuffer2.position((int) (position - zzb));\n return;\n }\n while (i < length) {\n long j2;\n charAt2 = charSequence2.charAt(i);\n long j3;\n if (charAt2 < 128 && position < limit) {\n j = position + 1;\n zzxj.zza(position, (byte) charAt2);\n j2 = zzb;\n position = j;\n } else if (charAt2 >= 2048 || position > limit - 2) {\n j2 = zzb;\n if ((charAt2 < 55296 || 57343 < charAt2) && position <= limit - 3) {\n j3 = position + 1;\n zzxj.zza(position, (byte) (480 | (charAt2 >>> 12)));\n position = j3 + 1;\n zzxj.zza(j3, (byte) (((charAt2 >>> 6) & 63) | 128));\n j3 = position + 1;\n zzxj.zza(position, (byte) ((63 & charAt2) | 128));\n position = j3;\n } else if (position <= limit - 4) {\n limit2 = i + 1;\n if (limit2 != length) {\n char charAt3 = charSequence2.charAt(limit2);\n if (Character.isSurrogatePair(charAt2, charAt3)) {\n int toCodePoint = Character.toCodePoint(charAt2, charAt3);\n long j4 = position + 1;\n zzxj.zza(position, (byte) (PsExtractor.VIDEO_STREAM_MASK | (toCodePoint >>> 18)));\n long j5 = j4 + 1;\n zzxj.zza(j4, (byte) (((toCodePoint >>> 12) & 63) | 128));\n j4 = j5 + 1;\n zzxj.zza(j5, (byte) (((toCodePoint >>> 6) & 63) | 128));\n j5 = j4 + 1;\n zzxj.zza(j4, (byte) ((toCodePoint & 63) | 128));\n position = j5;\n i = limit2;\n }\n } else {\n limit2 = i;\n }\n throw new zzxp(limit2 - 1, length);\n } else {\n if (55296 <= charAt2 && charAt2 <= 57343) {\n limit2 = i + 1;\n if (limit2 == length || !Character.isSurrogatePair(charAt2, charSequence2.charAt(limit2))) {\n throw new zzxp(i, length);\n }\n }\n StringBuilder stringBuilder2 = new StringBuilder(46);\n stringBuilder2.append(\"Failed writing \");\n stringBuilder2.append(charAt2);\n stringBuilder2.append(\" at index \");\n stringBuilder2.append(position);\n throw new ArrayIndexOutOfBoundsException(stringBuilder2.toString());\n }\n } else {\n j2 = zzb;\n j3 = position + 1;\n zzxj.zza(position, (byte) (960 | (charAt2 >>> 6)));\n position = j3 + 1;\n zzxj.zza(j3, (byte) ((63 & charAt2) | 128));\n }\n i++;\n zzb = j2;\n byteBuffer2 = byteBuffer;\n }\n byteBuffer.position((int) (position - zzb));\n }",
"public synchronized void write(byte[] buf, int off, int len)\n\t\t\t\tthrows IOException {\n\t\t\tsuper.write(buf, off, len);\n\t\t}",
"public String padding(String binary, int length, boolean back) {\n\t\twhile (length > 0) {\n\t\t\tif (!back)\n\t\t\t\tbinary = \"0\" + binary;\n\t\t\telse\n\t\t\t\tbinary = binary + \"0\";\n\t\t\tlength--;\n\t\t}\n\t\treturn binary;\n\n\t}",
"public void write(byte[] b, int off, int len) {\n\t\tbaos.write(b, off, len);\n\t}",
"public void write(String value){\r\n for(int i=0; i<value.length(); i++){\r\n mBufferData.add(value.charAt(i));\r\n }\r\n }",
"public StrTab(byte[] data, int length) {\n final int cnt = length;\n int addr = 0;\n while (addr < cnt) {\n int size = 0;\n while ((addr + size < cnt) && (data[addr + size] != 0)) {\n size++;\n }\n final String s = new String(data, addr, size);\n final Integer index = addr;\n str2addr.put(s, index);\n addr2str.put(index, s);\n addr += (size + 1);\n }\n maxIndex = cnt;\n }",
"public abstract void writeBytes(byte[] b, int offset, int length) throws IOException;",
"private int countBytes(\n String value\n ){\n return this.charset.encode(value).remaining();\n }",
"protected void encodeLinePrefix(OutputStream outStream, int length) throws IOException {\n outStream.write('*');\n crc.value = 0;\n tmp[0] = (byte) length;\n tmp[1] = (byte) sequence;\n sequence = (sequence + 1) & 0xff;\n encodeAtom(outStream, tmp, 0, 2);\n }",
"static int size_of_rz(String passed){\n\t\treturn 1;\n\t}",
"static int size_of_rnz(String passed){\n\t\treturn 1;\n\t}",
"private byte[] setStringSize(StringBuffer s, int n) {\n\n byte b[];\n int i, slen;\n\n slen = s.length();\n\n if (slen >= n) {\n return (s.toString().substring(0, n).getBytes());\n }\n\n b = new byte[n];\n for (i = 0; i < slen; i++) {\n b[i] = (byte) s.charAt(i);\n }\n for (i = slen; i < n; i++) {\n b[i] = 0;\n }\n\n return (b);\n }",
"public void writeChunk(String id, byte[] data) throws IOException {\n byte[] identifier = id.getBytes(\"US-ASCII\");\n if (identifier.length != 4) {\n throw new IllegalArgumentException(\"ID length must match 4!\");\n }\n writeInt(data.length);\n write(identifier);\n write(data);\n CRC32 crc = new CRC32();\n crc.update(identifier);\n crc.update(data);\n writeInt((int) (crc.getValue() & 0xFFFFFFFFL));\n crc.reset();\n }",
"static String padToLength(String s, int len) {\n\t\tStringBuffer sb = new StringBuffer(len);\n\t\tsb.append(s);\n\t\tfor (int i = s.length(); i < len; i++) sb.append(' ');\n\t\treturn sb.toString();\n\t}",
"public static String padMessage(String dataSegment) throws UnsupportedEncodingException {\n\n\t\t padCount = getPadCount(dataSegment);\n\t\tif (padCount > 0) {\n\t\t\tdataSegment = dataSegment.concat(\"1\");//initially padding 1 \n\t\t\tfor (int i = 1; i < padCount; i++) {\n\t\t\t\tdataSegment = dataSegment.concat(\"0\"); //padding 0s.\n\t\t\t}\n\t\t}\n\t\treturn dataSegment;\n\t}",
"public static String lpadding(String content, int len, char pad){\n StringBuilder sb = new StringBuilder();\n for(int i = 0; i < len - content.length(); i++){\n sb.append(pad);\n }\n sb.append(content);\n return sb.toString();\n }",
"@Override\n public void writeCompressed(DataOutput out) throws IOException {\n out.writeInt(length);\n out.write(array);\n }"
] | [
"0.537133",
"0.5177488",
"0.50926054",
"0.50559783",
"0.5005903",
"0.4944003",
"0.49249136",
"0.48429793",
"0.48406678",
"0.47973317",
"0.479167",
"0.47778115",
"0.47044307",
"0.46990663",
"0.4695884",
"0.46848845",
"0.46337292",
"0.4615111",
"0.45952982",
"0.4593216",
"0.45829588",
"0.45790642",
"0.4575765",
"0.4573666",
"0.4570436",
"0.4557858",
"0.45449573",
"0.45426714",
"0.45393384",
"0.45389327",
"0.4521779",
"0.44806433",
"0.44460785",
"0.4444779",
"0.44364977",
"0.4424076",
"0.4423851",
"0.44137353",
"0.43538925",
"0.43257308",
"0.4320738",
"0.43160605",
"0.4297904",
"0.4295073",
"0.4292456",
"0.42817175",
"0.4280898",
"0.42737594",
"0.42713454",
"0.427069",
"0.42546082",
"0.42525035",
"0.4252166",
"0.42480457",
"0.4242979",
"0.42409968",
"0.42387047",
"0.42327628",
"0.4227792",
"0.4223866",
"0.42144018",
"0.42051035",
"0.42030084",
"0.41982752",
"0.41940162",
"0.41898885",
"0.41824734",
"0.4182309",
"0.41809317",
"0.41789702",
"0.41546324",
"0.41518334",
"0.41455194",
"0.41427627",
"0.41368294",
"0.41295275",
"0.41280243",
"0.41264883",
"0.41256037",
"0.41252872",
"0.41212326",
"0.41125712",
"0.411129",
"0.4106172",
"0.41019052",
"0.4101302",
"0.40993196",
"0.40991065",
"0.40984848",
"0.40887046",
"0.40850234",
"0.40791702",
"0.4075217",
"0.40714145",
"0.40672836",
"0.40573853",
"0.40525675",
"0.4046192",
"0.4045658",
"0.4045475"
] | 0.48141164 | 9 |
Write an InetAddress to the byte buffer. | private void writeAddress( ByteBuffer byteBuffer, InetAddress currentClientAddress )
{
if ( null == currentClientAddress )
{
byte[] emptyAddress =
{ 0, 0, 0, 0 };
byteBuffer.put( emptyAddress );
}
else
{
byte[] addressBytes = currentClientAddress.getAddress();
byteBuffer.put( addressBytes );
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void sendPacket(InetAddress address, byte[] data) {\n try {\n send.setAddress(address);\n send.setData(Encryption.encrypt(data));\n socket.send(send);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"void write(ByteBuffer b, int off, int len) throws IOException;",
"public void write(byte[] buffer);",
"@Override\npublic int sendToAddress(InetSocketAddress isa, byte[] msg) throws IOException {\n\treturn 0;\n}",
"public void setAddress(InetAddress address) {\r\n\t\tthis.address = address;\r\n\t}",
"@Override\n public void write(ByteBuffer b, int off, int len)\n throws IOException {\n byteBufferStreamOutput.write(b, off, len);\n }",
"public void send(byte[] data, InetAddress address, int port) {\n\t\t\n\t\tDatagramPacket sendingPacket = new DatagramPacket(data, data.length, address, port);\n\t\t\n\t\ttry {\n\t\t\tmainSocket.send(sendingPacket);\n\t\t}\n\t\tcatch(PortUnreachableException ex) {\n\t\t\t\n\t\t\tSystem.out.println(\"PortUnreachableException caught in server side.\\n Unable to send packet\\n\");\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tcatch (IOException ex) {\n\t\t\t\n\t\t\tSystem.out.println(\"2. IOException Caught in server side.\\n Unable to send packet\\n\");\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t\n\t}",
"public void write(byte b[], int off, int len) throws IOException;",
"public void setIpAddress(InetAddress addr) \n\t{\n\t\tthis.ipAddress = addr;\n\t}",
"@Override\r\n\tpublic synchronized void write(byte[] b, int off, int len)\r\n\t{\r\n\t}",
"public void writePacket(byte[] pkt, int off, int len)\n throws IOException {\n\n throw new IOException(\"writePacket() not implemented\");\n }",
"@Override\n public void write(byte[] buf, int offset, int size) throws IOException;",
"public void write(ByteBuffer b) throws IOException {\n raos.write(b);\n }",
"@Override\n \tpublic void setOutboundInterface(InetAddress arg0) {\n \t}",
"void write(byte[] buffer, int bufferOffset, int length) throws IOException;",
"public abstract int writeData(int address, byte[] buffer, int length);",
"void bind(SocketAddress address) throws IOException {\n\t\t}",
"public void write(byte[] data, long offset);",
"void write(byte b[]) throws IOException;",
"public void write(byte b[]) throws IOException;",
"public void write(byte[] b, int off, int len) throws IOException {\r\n try {\r\n os.write(b, off, len);\r\n } catch (IOException io) {\r\n if (!cbImpl.checkMobileNetwork()) {\r\n throw new WrapperIOException(new TransportException(io.getMessage(), io,\r\n TransportException.NO_NETWORK_COVERAGE));\r\n }\r\n throw io;\r\n }\r\n }",
"void send(ByteBuffer data, Address addr) throws CCommException, IllegalStateException;",
"public abstract void write(NetOutput out) throws IOException;",
"public int bind (SocketAddress addr)\n throws IOException, IllegalArgumentException\n {\n InetSocketAddress inetSockAddr = (InetSocketAddress) addr;\n int remotePort = inetSockAddr.getPort();\n InetAddress inetAddr = inetSockAddr.getAddress();\n String remoteHost = inetAddr.getHostAddress();\n return bindNative (remoteHost, remotePort);\n }",
"@Override\n public void write(byte[] buf) throws IOException;",
"private void send(final byte[] data, final InetAddress address, final int port) {\n send = new Thread(\"Send\") {\n public void run() {\n DatagramPacket packet = new DatagramPacket(data, data.length, address, port);\n try {\n socket.send(packet);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n };\n send.start();\n }",
"public abstract void write(byte[] b);",
"void writeBytes(byte[] value);",
"@Test\n public void testAddress() throws UnknownHostException {\n InetAddress address = InetAddress.getByAddress(\"www.baidu.com\", new byte[]{(byte) 192, (byte) 168, 0, 1});\n System.out.println(address.getHostName());\n InetSocketAddress socketAddress = new InetSocketAddress(address, 8009);\n System.out.println(socketAddress.getHostString());\n }",
"InetAddress getAddress();",
"InetAddress getAddress();",
"boolean write(final ByteBuffer src);",
"public static void setBroadcastInetAddress(InetAddress addr)\n {\n broadcastInetAddress = addr;\n broadcastInetAddressAndPort = InetAddressAndPort.getByAddress(broadcastInetAddress);\n }",
"public void sendBytesToServer(byte[] bytesToSend, int byteOffset) {\n\t\ttry { // to construct and send a packet\n\t\t\tPacket packet = new Packet(\n\t\t\t\t\t\t0, // TODO id\n\t\t\t\t\t\tthis.ownAddress,\n\t\t\t\t\t\tthis.ownPort, \n\t\t\t\t\t\tthis.serverAddress, \n\t\t\t\t\t\tthis.serverPort,\n\t\t\t\t\t\tbytesToSend, byteOffset\n\t\t\t\t);\n\t\t\t\n\t\t\tTransportLayer.sendPacket(\n\t\t\t\t\tthis.socket,\n\t\t\t\t\tpacket,\n\t\t\t\t\tthis.serverPort\n\t\t\t); \n\t\t\t\n\t\t\t// this.showNamedMessage(\"Bytes send to server!\"); // for debugging\n\t\t\t\n\t\t} catch (PacketException | IOException | UtilByteException | UtilDatagramException e) {\n\t\t\tthis.showNamedError(\"Something went wrong while sending bytes: \"\n\t\t\t\t\t+ e.getLocalizedMessage());\n\t\t}\n\t}",
"com.google.protobuf.ByteString getAddressBytes();",
"void send(TransportPacket pkt, Address addr) throws CCommException, IllegalStateException;",
"public abstract void writeBytes(byte[] b, int offset, int length) throws IOException;",
"SocketAddress socketAddress();",
"public static void writeWithByte(final long address, final long size, final byte value) {\n\t\tUnsafe.get().setMemory(address, size, value);\n\t}",
"public void write(byte[] b, int off, int len) {\n\t\tbaos.write(b, off, len);\n\t}",
"public int writeByte(byte src) {\n try {\n out.write(src);\n return 0;\n } catch (IOException e) {\n print(\"Error writing byte to \" + portName);\n }\n return -1;\n }",
"@Override\n\tpublic void set(SocketAddress v) {\n\t\tsuper.set(Objects.requireNonNull(v));\n\t}",
"static void test4 () throws Exception {\n server = new ServerSocket (0);\n int port = server.getLocalPort();\n\n /* create an IPv4 mapped address corresponding to local host */\n\n byte[] b = {0,0,0,0,0,0,0,0,0,0,(byte)0xff,(byte)0xff,0,0,0,0};\n byte[] ia4 = ia4addr.getAddress();\n b[12] = ia4[0];\n b[13] = ia4[1];\n b[14] = ia4[2];\n b[15] = ia4[3];\n\n InetAddress dest = InetAddress.getByAddress (b);\n c1 = new Socket (dest, port);\n s1 = server.accept ();\n simpleDataExchange (c1,s1);\n c1.close ();\n s1.close ();\n server.close ();\n System.out.println (\"Test4: OK\");\n }",
"void putTo(ByteBuffer dst, TcpTxContext tx) {}",
"public void writePacketData(PacketBuffer buf) throws IOException {\n buf.writeResourceLocation(this.field_244320_a);\n }",
"public void writeToSocket(byte[] bytes) {\n\n try {\n outStream = socket.getOutputStream();\n } catch (IOException e) {\n Log.e(\"tag\", \"Error occurred when creating output stream\", e);\n }\n\n try {\n outStream.write(bytes);\n\n } catch (IOException e) {\n Log.e(\"tag\", \"Error occurred when sending data\", e);\n }\n }",
"public static void sendUdpPacket(String text, InetAddress address, int port, DatagramSocket socket) throws IOException {\n var buf = text.getBytes();\n\n // Step 2 : Create the datagramPacket for sending the data\n var DpSend = new DatagramPacket(buf, buf.length, address, port);\n\n // Step 3 : invoke the send call to actually send the data\n socket.send(DpSend);\n }",
"public void write(int location, ByteBuffer data)\n throws DataOrderingException;",
"protected void writeByte(final int adr, final byte data) {\r\n this.memory[adr] = data;\r\n }",
"public void setAddr(String addr) {\n this.addr = addr;\n }",
"public void setNatAddress(String addr);",
"@Override\r\n\tpublic void write(IByteBuffer target, long offset) {\n\r\n\t}",
"@Override\n protected void doBind(SocketAddress localAddress) throws Exception {}",
"public void write(ByteBuffer buffer){\r\n\t\tbuffer.putInt(type.ordinal());\r\n\t\tbuffer.putInt(dataSize);\r\n\t\tbuffer.put(data);\r\n\t}",
"public void convict(InetAddress ep);",
"com.google.protobuf.ByteString\n getAddressBytes();",
"public void write(ByteBuffer buffer) throws IOException {\n _channel.write(buffer);\n }",
"protected void doBind(SocketAddress localAddress) throws Exception {}",
"public void write(byte b[], int off, int len) throws IOException {\n baos.write(b, off, len);\n }",
"protected abstract void writeToExternal(byte[] b, int off, int len) throws IOException;",
"public void writeTo(ChannelBuffer buf) {\n // Wire format:\n // <PID><port><host length><name length><host><name><is-stateless?>\n buf.writeInt(this.pid);\n buf.writeInt(this.port);\n buf.writeInt(this.hostBytes.length);\n buf.writeInt(this.nameBytes.length);\n buf.writeBytes(this.hostBytes);\n buf.writeBytes(this.nameBytes);\n buf.writeInt(this.isStateless ? 1 : 0);\n }",
"InetAddress getAddress() { return this.address; }",
"@Override\n public void write(DataOutput out) throws IOException {\n out.writeInt(namenodes.size());\n for(long nn : namenodes.keySet()) {\n out.writeLong(nn);\n String hostname = namenodes.get(nn).getAddress().getHostAddress()+\":\"+namenodes.get(nn).getPort();\n Text.writeString(out,hostname);\n }\n }",
"com.google.protobuf.ByteString\n getAddressBytes();",
"com.google.protobuf.ByteString\n getAddressBytes();",
"com.google.protobuf.ByteString\n getAddressBytes();",
"public void set(int addr, byte b) {\n data[addr - start] = b;\n }",
"com.google.protobuf.ByteString\n\t\t\tgetAddressBytes();",
"public com.google.protobuf.ByteString\n getAddressBytes() {\n java.lang.Object ref = address_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n address_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public void setAddr(String addr) {\n\t\tthis.addr = addr;\n\t}",
"public com.google.protobuf.ByteString\n getAddressBytes() {\n java.lang.Object ref = address_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n address_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getAddressBytes() {\n java.lang.Object ref = address_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n address_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getAddressBytes() {\n java.lang.Object ref = address_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n address_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public void write(byte[] buffer){\r\n\t\t\r\n\t\ttry{\r\n\t\t\toOutStream.write(buffer);\r\n\t\t}catch(IOException e){\r\n\t\t\tLog.e(TAG, \"exception during write\", e);\r\n\t\t}\r\n\t}",
"public com.google.protobuf.ByteString\n getAddressBytes() {\n java.lang.Object ref = address_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n address_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getAddressBytes() {\n java.lang.Object ref = address_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n address_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public void write(byte b[], int off, int len) throws IOException\n\t{\n\t\tout.write(b, off, len);\n\t\tmd5.update(b, off, len);\n\t}",
"public void writePacket(DataOutputStream dataOutputStream) throws IOException;",
"public int write(byte[] src) {\n try {\n out.write(src);\n return 0;\n } catch (IOException e) {\n print(\"Error writing bytes to \" + portName);\n }\n return -1;\n }",
"void writeByte(byte value);",
"public com.google.protobuf.ByteString\n getAddressBytes() {\n java.lang.Object ref = address_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n address_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getAddressBytes() {\n java.lang.Object ref = address_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n address_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getAddressBytes() {\n java.lang.Object ref = address_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n address_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getAddressBytes() {\n java.lang.Object ref = address_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n address_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getAddressBytes() {\n java.lang.Object ref = address_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n address_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getAddressBytes() {\n java.lang.Object ref = address_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n address_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public abstract void writeRange(int startElement, int count,\r\n ByteBuffer src, int offsetBytes, boolean bForward);",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getAddressBytes() {\n java.lang.Object ref = address_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n address_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public InetAddress getInetAddress()\n {\n return addr;\n }",
"public TcpIpOutputStream(String host) throws IOException {\n this(host,9100);\n }",
"public synchronized void write(byte[] buf, int off, int len)\n\t\t\t\tthrows IOException {\n\t\t\tsuper.write(buf, off, len);\n\t\t}",
"public abstract void writeByte(byte b) throws IOException;",
"@Override\r\n public void setIPAddress(String address) {\r\n this.address = address;\r\n }",
"public void saveNewAddress(Address addr) throws BackendException;",
"void sendUnicast(InetAddress hostname, String message);",
"public void write(byte[] out) {\n // Create temporary object\n ConnectedThread r;\n // Synchronize a copy of the ConnectedThread\n synchronized (this) {\n if (mState != STATE_CONNECTED) return;\n r = mConnectedThread;\n }\n // Perform the write unsynchronized\n r.write(out);\n }",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-02-25 10:38:11.976 -0500\", hash_original_method = \"24A3E423DE78176900F1058E127BC8B2\", hash_generated_method = \"5B5F51BF25DAE30DEF4DFB5C781A6B4A\")\n \npublic void send(InetAddress host, int port) throws IOException\n {\n __sendPacket.setAddress(host);\n __sendPacket.setPort(port);\n _socket_.send(__sendPacket);\n }",
"private void writeByteAt(int pos, int val) {\n dest[pos] = (byte) val;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getAddressBytes() {\n java.lang.Object ref = address_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n address_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public void writeBytes(byte[] b) throws IOException {\n\t\tbaos.writeBytes(b);\n\t}"
] | [
"0.5999407",
"0.5898823",
"0.5647703",
"0.5596544",
"0.55485874",
"0.5537581",
"0.54651356",
"0.53645116",
"0.5335428",
"0.5261419",
"0.5245758",
"0.5236583",
"0.5213254",
"0.52099776",
"0.5162608",
"0.5150487",
"0.5145661",
"0.5110857",
"0.51078165",
"0.5095057",
"0.50893456",
"0.5085021",
"0.5073473",
"0.50654095",
"0.50613886",
"0.50348157",
"0.5024619",
"0.49465704",
"0.49431095",
"0.49374667",
"0.49374667",
"0.49337542",
"0.49316105",
"0.4925817",
"0.4918545",
"0.49181765",
"0.49091735",
"0.49020714",
"0.48937953",
"0.4884621",
"0.4882859",
"0.4870526",
"0.48647898",
"0.48374283",
"0.4829837",
"0.48256487",
"0.48255563",
"0.48137152",
"0.481285",
"0.48085833",
"0.47947982",
"0.47918752",
"0.47843224",
"0.47459885",
"0.47383642",
"0.4730711",
"0.4727443",
"0.47191224",
"0.4718216",
"0.4715769",
"0.4710267",
"0.47069734",
"0.4706693",
"0.47053275",
"0.47053275",
"0.47053275",
"0.47032696",
"0.4699128",
"0.46989396",
"0.46981487",
"0.46968058",
"0.46968058",
"0.46968058",
"0.4693152",
"0.46921355",
"0.46921355",
"0.4687973",
"0.4684716",
"0.46832207",
"0.46676323",
"0.46645582",
"0.46645582",
"0.46623245",
"0.46623245",
"0.46623245",
"0.4657903",
"0.46420765",
"0.46412522",
"0.46401322",
"0.46341345",
"0.46250454",
"0.46221069",
"0.46199676",
"0.46071362",
"0.4600605",
"0.45973575",
"0.45927498",
"0.4590772",
"0.45883057",
"0.45828375"
] | 0.67003024 | 0 |
Write an array of bytes to the buffer. Write exactly len bytes, truncating if more than len, padding if less than len bytes are available. | private void writeBytes( ByteBuffer byteBuffer, byte[] bytes, int len )
{
if ( null == bytes )
{
bytes = new byte[]
{};
}
byteBuffer.put( bytes, 0, Math.min( len, bytes.length ) );
// pad as necessary
int remain = len - bytes.length;
while ( remain-- > 0 )
{
byteBuffer.put( ( byte ) 0 );
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public synchronized void write(byte b[], int off, int len ) throws IOException {\r\n \tint avail = buf.length - count;\r\n\r\n \tif ( len <= avail ) {\r\n \t\tSystem.arraycopy( b, off, buf, count, len );\r\n \t\tcount += len;\r\n \t\treturn; // Over step to do flush()\r\n\t } else if ( len > avail ) {\r\n\t \tSystem.arraycopy( b, off, buf, count, avail);\r\n\t \tcount += avail;\r\n\t \tflush();\r\n\t \tSystem.arraycopy( b, avail, b, 0, (len-avail));\r\n\t \twrite(b, 0, (len-avail));\r\n\t } else {\r\n\t \twriteBuffer(b, off, len);\r\n\t }\r\n\t}",
"public void write(byte b[], int off, int len) \r\n {\r\n \tif ((off < 0) || (off > b.length) || (len < 0) ||\r\n ((off + len) > b.length) || ((off + len) < 0)) \r\n \t{\r\n \t\tthrow new IndexOutOfBoundsException();\r\n \t} \r\n \telse if (len == 0) \r\n \t{\r\n \t\treturn;\r\n \t}\r\n int newcount = count + len;\r\n if (newcount > buf.length) \r\n {\r\n byte newbuf[] = new byte[Math.max(buf.length << 1, newcount)];\r\n System.arraycopy(buf, 0, newbuf, 0, count);\r\n buf = newbuf;\r\n }\r\n System.arraycopy(b, off, buf, count, len);\r\n count = newcount;\r\n }",
"public void write(byte b[], int off, int len) throws IOException;",
"public synchronized void write(byte b[], int off, int len) {\n \tif ((off < 0) || (off > b.length) || (len < 0) ||\n \t\t\t((off + len) > b.length) || ((off + len) < 0)) {\n \t\tthrow new IndexOutOfBoundsException();\n \t} else if (len == 0) {\n \t\treturn;\n \t}\n \tif (enableClip) {\n \t\tdoClipWrite(b, off, len);\n \t} else {\n \t\twriteDirectly(b, off, len);\n \t}\n \t\n }",
"public void write(byte b[], int off, int len) throws IOException\n {\n checkThreshold(len);\n getStream().write(b, off, len);\n written += len;\n }",
"public void write(byte[] b, int off, int len) {\n\t\tbaos.write(b, off, len);\n\t}",
"public void write(byte b[], int off, int len) throws IOException {\n baos.write(b, off, len);\n }",
"void write(byte[] buffer, int bufferOffset, int length) throws IOException;",
"private void append(byte[] array, int off, int len) throws IOException {\n if(buffer == null) {\n buffer = allocator.allocate(limit);\n }\n buffer.append(array, off, len);\n }",
"@Override\r\n\tpublic synchronized void write(byte[] b, int off, int len)\r\n\t{\r\n\t}",
"@Override\n public void write(final byte[] data, final int offset, final int length)\n throws IOException {\n if (offset < 0 || length < 0 || length > data.length - offset) {\n throw new IndexOutOfBoundsException();\n }\n\n writeInternal(data, offset, length);\n }",
"@Override\n public void write(byte[] data, int off, int len) throws IOException {\n for (int i = off; i < len; i++) {\n write(data[i]);\n }\n }",
"public void write(final byte[] data, final int offset, final int len) throws IOException {\n checkOpened();\n dos.write(data, offset, len);\n flush();\n }",
"public void writeBytes(byte[] b, int length) throws IOException {\n\t\twriteBytes(b, 0, length);\n\t}",
"private void writeBuffer( byte b[], int offset, int length) throws IOException\r\n\t{\r\n\t\t// Write the chunk length as a hex number.\r\n\t\tfinal String size = Integer.toHexString(length);\r\n\t\tthis.out.write(size.getBytes());\r\n\t\t// Write a CRLF.\r\n\t\tthis.out.write( CR );\r\n\t\tthis.out.write( LF );\r\n\t\t// Write the data.\r\n\t\tif (length != 0 )\r\n\t\t\tthis.out.write(b, offset, length);\r\n\t\t// Write a CRLF.\r\n\t\tthis.out.write( CR );\r\n\t\tthis.out.write( LF );\r\n\t\t// And flush the real stream.\r\n\t\tthis.out.flush();\r\n\t}",
"public void write(byte[] b, int offset, int len) throws IOException {\n if (pos + len < BUFFER_SIZE) {\n System.arraycopy(b, offset, buffer, pos, len);\n pos += len;\n } else {\n flush();\n if (len < BUFFER_SIZE) {\n System.arraycopy(b, offset, buffer, 0, len);\n } else {\n ConsoleRedirect.this.flush(b, offset, len);\n }\n }\n }",
"void flush(byte[] b, int off, int len) {\n if (len > 0) {\n synchronized (flushed) {\n flushed.append(new String(b, off, len));\n }\n }\n }",
"public synchronized void write(byte[] buf, int off, int len)\n\t\t\t\tthrows IOException {\n\t\t\tsuper.write(buf, off, len);\n\t\t}",
"public abstract void writeBytes(byte[] b, int offset, int length) throws IOException;",
"public void write(byte b[], int off, int len) throws IOException\n\t{\n\t\tout.write(b, off, len);\n\t\tmd5.update(b, off, len);\n\t}",
"public void write(byte[] data, long offset);",
"public void write(byte[] buffer);",
"@Override\n\tpublic int write( byte [] buffer, int offset, int length ) {\n\t\tByteBuffer out = getOutputBuffer();\n\t\tif( out.limit() <= 0 ) {\n\t\t\tout.limit( out.capacity() );\n\t\t}\n\t\tsynchronized( out ) {\n\t\t\tout.put( buffer, offset, length );\n\t\t}\n\t\tdispatcher.requestWrite( this );\n\t\treturn length;\n\t}",
"public void write(byte buffer[], int bufferOffset,int nrOfBytes) throws VlException\n {\n write(0,buffer,bufferOffset,nrOfBytes);\n }",
"public synchronized void write(final byte[] cbuf, final int off, final int len) throws IOException {\n\t\tif (len < 0) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tif (off < 0) {\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\t}\n\t\tif (cbuf == null) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t\tif ((len + off) > cbuf.length) {\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\t}\n\n\t\tensureSize(cursor + len);\n\n\t\tSystem.arraycopy(cbuf, off, this.buffer, cursor, len);\n\t\tcursor += len;\n\t}",
"public static void write(byte[] buffer, long offset, long length , long value) {\n while(length-- > 0){\n buffer[(int) offset++] = (byte) (value & 0xFF);\n value >>=8;\n }\n }",
"public void write(byte b[]) throws IOException;",
"private synchronized void writeInternal(final byte[] data, int offset,\n int length) throws IOException {\n while (length > 0) {\n checkStreamState();\n final int availableBufferBytes = MAX_DATA_BYTES_PER_REQUEST\n - this.outBuffer.size();\n final int nextWrite = Math.min(availableBufferBytes, length);\n\n outBuffer.write(data, offset, nextWrite);\n offset += nextWrite;\n length -= nextWrite;\n\n if (outBuffer.size() > MAX_DATA_BYTES_PER_REQUEST) {\n throw new RuntimeException(\"Internal error: maximum write size \" +\n Integer.toString(MAX_DATA_BYTES_PER_REQUEST) + \"exceeded.\");\n }\n\n if (outBuffer.size() == MAX_DATA_BYTES_PER_REQUEST) {\n flushIOBuffers();\n }\n }\n }",
"private void doClipWrite(byte b[], int off, int len) {\n\t\tif (count + len <= maxOutputSize) { // won't overflow\n\t\t\tthis.writeDirectly(b, off, len);\n\t\t} else {\n\t\t\tint discardBytes = len + count - maxOutputSize;\n\t\t\tif (len >= maxOutputSize) {\n\t\t\t\treset();\n\t\t\t\tthis.writeDirectly(b, off + len - maxOutputSize, maxOutputSize);\n\t\t\t} else {\n\t\t\t\tint shiftStart = count - maxOutputSize + len;\n\t\t\t\tint remaining = maxOutputSize - len;\n\t\t\t\tSystem.arraycopy(buf, shiftStart, buf, 0, remaining);\n\t\t\t\tcount = remaining;\n\t\t\t\tthis.writeDirectly(b, off, len);\n\t\t\t}\n\t\t\tclipNum ++;\n\t\t\tSystem.out.println(String.format(\"Overflow count: %d, discarded bytes number: %d\", clipNum,\n\t\t\t\t\tdiscardBytes));\n\t\t\t\n\t\t}\n\n\t}",
"public void write(byte buffer[],int nrOfBytes) throws VlException\n {\n write(0,buffer,0,nrOfBytes);\n }",
"public void write(byte b[]) throws IOException\n {\n checkThreshold(b.length);\n getStream().write(b);\n written += b.length;\n }",
"@Override\n public void write(byte[] buf, int offset, int size) throws IOException;",
"@Override\n\tpublic void setBytes(final long startpos, final byte[] bytes,\n\t\tfinal int offset, final int length)\n\t{\n\t\tcheckWritePos(startpos, startpos + length);\n\t\tfinal int neededCapacity = size + length;\n\t\tensureCapacity(neededCapacity);\n\n\t\t// copy the data\n\t\tbuffer.position((int) startpos);\n\t\tbuffer.put(bytes, offset, length);\n\n\t\t// update the maxpos\n\t\tupdateSize(startpos + length);\n\t}",
"public int addBytes( final byte[] _bytes, final int _offset, final int _length ) {\n\n // sanity checks...\n if( _bytes == null )\n throw new IllegalArgumentException( \"Missing bytes to append\" );\n if( _length - _offset <= 0 )\n throw new IllegalArgumentException( \"Specified buffer has no bytes to append\" );\n\n // figure out how many bytes we can append...\n int appendCount = Math.min( buffer.capacity() - buffer.limit(), _length - _offset );\n\n // remember our old position, so we can put it back later...\n int pos = buffer.position();\n\n // setup to copy our bytes to the right place...\n buffer.position( buffer.limit() );\n buffer.limit( buffer.capacity() );\n\n // copy our bytes...\n buffer.put( _bytes, _offset, appendCount );\n\n // get our source and limit to the right place...\n buffer.limit( buffer.position() );\n buffer.position( pos );\n\n return appendCount;\n }",
"public static byte[] wrap(byte[] array, int offset, int length){\r\n\t\tbyte[] arrayWrapped = new byte[length];\r\n\r\n\t\tfor(int i=0;i<length;i++) arrayWrapped[i] = array[i+offset]; \r\n\r\n\t\treturn arrayWrapped;\r\n\t}",
"void write(byte b[]) throws IOException;",
"void write(ByteBuffer b, int off, int len) throws IOException;",
"public void write(char[] b, int off, int len) throws IOException {\n\t\t\tif (!initialized) {\n\t\t\t\tarea.setText(\"\");\n\t\t\t\tinitialized = true;\n\t\t\t}\n\t\t\tString str = new String(b, off, len);\n\t\t\tStringBuffer sb = new StringBuffer(len);\n\t\t\twhile (str != null && str.length() > 0) {\n\t\t\t\tif (lastCR && str.charAt(0) == '\\n')\n\t\t\t\t\tstr = str.substring(1);\n\t\t\t\tint crIndex = str.indexOf('\\r');\n\t\t\t\tif (crIndex >= 0) {\n\t\t\t\t\tsb.append(str.substring(0, crIndex));\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\tstr = str.substring(crIndex + 1);\n\t\t\t\t\tlastCR = true;\n\t\t\t\t} else {\n\t\t\t\t\tsb.append(str);\n\t\t\t\t\tstr = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\tarea.append(sb.toString());\n\t\t}",
"protected void write(byte[] bytes, int offset, int length) {\n/* 114 */ if (this.socket == null) {\n/* 115 */ if (this.connector != null && !this.immediateFail) {\n/* 116 */ this.connector.latch();\n/* */ }\n/* 118 */ if (this.socket == null) {\n/* 119 */ String msg = \"Error writing to \" + getName() + \" socket not available\";\n/* 120 */ throw new AppenderLoggingException(msg);\n/* */ } \n/* */ } \n/* 123 */ synchronized (this) {\n/* */ try {\n/* 125 */ getOutputStream().write(bytes, offset, length);\n/* 126 */ } catch (IOException ex) {\n/* 127 */ if (this.retry && this.connector == null) {\n/* 128 */ this.connector = new Reconnector(this);\n/* 129 */ this.connector.setDaemon(true);\n/* 130 */ this.connector.setPriority(1);\n/* 131 */ this.connector.start();\n/* */ } \n/* 133 */ String msg = \"Error writing to \" + getName();\n/* 134 */ throw new AppenderLoggingException(msg, ex);\n/* */ } \n/* */ } \n/* */ }",
"public static void writeArray(byte[] buffer, long offset, long length , byte [] name) {\n int i =0 ;\n while(length-- > 0){\n buffer[(int) offset++] = (byte) (name[i++] & 0xff);\n }\n }",
"public void write(char[] charArray, int offset, int length) throws IOException{\r\n if(closed){\r\n throw new IOException(\"The stream is not open.\");\r\n }\r\n getBuffer().append(charArray, offset, length);\r\n }",
"public int write(byte[] b, int off, int len)\n {\n synchronized (this) {\n if (!open) {\n return 0;\n }\n\n writing = true;\n started = true;\n reset = false;\n timeTracker.start();\n }\n line.start();\n int written = line.write(b, off, len);\n synchronized (this) {\n // drain() might be waiting, so we should wake it up.\n notifyAll();\n writing = false;\n\t\t\tif (!reset) {\n\t\t\t\ttotalWritten += written;\n\t\t\t} else if (reset && open) {\n\t\t\t\t// Flush what we just wrote to keep it reset.\n\t\t\t\tline.flush();\n\t\t\t}\n return written;\n }\n }",
"public void write( byte[] array, int firstIndex,\n\t\t\tint count );",
"public void write(String[] buf, int offset, int size) throws IOException;",
"public int write(ByteList buf, int offset, int len) throws IOException, BadDescriptorException {\n checkOpen();\n \n return internalWrite(ByteBuffer.wrap(buf.getUnsafeBytes(), buf.begin()+offset, len));\n }",
"@Override\n public void write(ByteBuffer b, int off, int len)\n throws IOException {\n byteBufferStreamOutput.write(b, off, len);\n }",
"public void write(short[] buffer, int offset, int bufLen) throws IOException {\n for(int i = offset; i< offset + bufLen; i++) {\n byte b1 = (byte) (buffer[i] & 0xFF);\n byte b2 = (byte) (buffer[i] >> 8);\n // Log.d(\"PHILIP\", \"writing \" + b1);\n mOutputStream.write(b1);\n // Log.d(\"PHILIP\", \"writing \" + b2);\n mOutputStream.write(b2);\n }\n }",
"public void writePacket(byte[] pkt, int off, int len)\n throws IOException {\n\n throw new IOException(\"writePacket() not implemented\");\n }",
"public static void padWithBytes(ArrayList<Byte> array, int padCount) {\n for (int i = 0; i < padCount; i++) {\n array.add((byte)0);\n }\n }",
"public static String writeBytes(byte[] bytes, int packetLength) {\n\n StringBuffer stringBuffer = new StringBuffer();\n\n for (int i = 0; i < packetLength; i++) {\n\n // New line every 4 bytes\n if (i % 4 == 0) {\n\n stringBuffer.append(\"\\n\");\n }\n\n stringBuffer.append(writeBits(bytes[i]) + \" \");\n\n }\n\n return stringBuffer.toString();\n\n }",
"public void write(byte[] b, int off, int len) throws IOException {\r\n try {\r\n os.write(b, off, len);\r\n } catch (IOException io) {\r\n if (!cbImpl.checkMobileNetwork()) {\r\n throw new WrapperIOException(new TransportException(io.getMessage(), io,\r\n TransportException.NO_NETWORK_COVERAGE));\r\n }\r\n throw io;\r\n }\r\n }",
"void writeBytes(byte[] value);",
"boolean write(byte[] data, int offset, int length, long time);",
"public void write(char cbuf[], int off, int len) {\r\n if ((cbuf != null) && (len > 0)) {\r\n\r\n // Force flush if we have accumulated more than 1K of text\r\n boolean flushMe = false;\r\n synchronized (LogWriter.this) {\r\n buffer.append(cbuf, off, len);\r\n if (buffer.length() >= 1024) {\r\n flushMe = true;\r\n } else {\r\n // Look for embedded EOL\r\n for (int i=off+len-1; i>= off; i--) {\r\n if (cbuf[i] == '\\n') {\r\n flushMe = true;\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (flushMe) flush();\r\n }\r\n }",
"void writeByteArray(ByteArray array);",
"public abstract void write(byte[] b);",
"@Override\n public void write(char[] cbuf, int off, int len) throws IOException\n {\n builder.append(cbuf, off, len);\n }",
"public static void writeBytes(SocketChannel channel, byte[] data)\n {\n try {\n ByteBuffer buffer = null;\n buffer =\n ByteBuffer.wrap(data);\n channel.write(buffer);\n buffer.clear();\n }\n catch (IOException e) {\n throw new WrappingException(e);\n }\n }",
"public synchronized boolean write(byte[] src, int offset, int bytesToWrite) {\n if (bytesToWrite > capacity) {\n return false;\n }\n if (bytesToWrite == 0) {\n return true;\n }\n if (writeHead + bytesToWrite <= capacity) {\n System.arraycopy(src, offset, buffer, writeHead, bytesToWrite);\n } else { // Data wraps around buffer edge.\n int entriesBeforeWrap = capacity - writeHead;\n System.arraycopy(src, offset, buffer, writeHead, entriesBeforeWrap);\n System.arraycopy(\n src, offset + entriesBeforeWrap, buffer, 0, bytesToWrite - entriesBeforeWrap);\n }\n writeHead = (writeHead + bytesToWrite) % capacity;\n cumulativeWritten += bytesToWrite;\n return true;\n }",
"public static native int write(int fd, byte[] data, int off, int len) throws IOException;",
"@Override\n public void write(final byte[] data) throws IOException {\n write(data, 0, data.length);\n }",
"@Override\n\t public synchronized int write(ByteBuffer src) throws IOException {\n assert src.hasArray();\n\n int len = src.remaining();\n if (len > 0) {\n int pos = src.position();\n out.write(src.array(), src.arrayOffset() + pos, len);\n ((Buffer)src).position(pos + len);\n }\n return len;\n }",
"public boolean write(byte[] bytes, int offset, int size) {\n System.arraycopy(bytes, offset, outputData, curIndex, size);\n curIndex += size;\n return true;\n }",
"public void update(byte[] b, int off, int len) {\n if (b == null) {\n throw new NullPointerException();\n }\n if (off < 0 || len < 0 || off > b.length - len) {\n throw new ArrayIndexOutOfBoundsException();\n }\n updateBytes(b, off, len);\n }",
"public void write_to_buffer(byte[] buffer) throws IOException {\r\n ByteArrayOutputStream byte_out = new ByteArrayOutputStream(buffer.length);\r\n DataOutputStream out = new DataOutputStream(byte_out);\r\n\r\n write_to_buffer(out);\r\n\r\n byte[] bytes = byte_out.toByteArray();\r\n for (int i = 0; i < buffer.length; ++i) {\r\n buffer[i] = bytes[i];\r\n }\r\n\r\n out.close();\r\n byte_out.close();\r\n }",
"private void write(byte[] data, int pos, int len)\n\t\tthrows IOException\n\t{\n\t\tchar[] chars = BASE64;\n\n\t\tint loc = (len > 0 ? (data[pos] << 24) >>> 8 : 0) |\n\t\t\t(len > 1 ? (data[pos+1] << 24) >>> 16 : 0) |\n\t\t\t(len > 2 ? (data[pos+2] << 24) >>> 24 : 0);\n\n\t\tswitch(len)\n\t\t{\n\t\t\tcase 3:\n\t\t\t\twriter.write(chars[loc >>> 18]);\n\t\t\t\twriter.write(chars[(loc >>> 12) & 0x3f]);\n\t\t\t\twriter.write(chars[(loc >>> 6) & 0x3f]);\n\t\t\t\twriter.write(chars[loc & 0x3f]);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\twriter.write(chars[loc >>> 18]);\n\t\t\t\twriter.write(chars[(loc >>> 12) & 0x3f]);\n\t\t\t\twriter.write(chars[(loc >>> 6) & 0x3f]);\n\t\t\t\twriter.write('=');\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\twriter.write(chars[loc >>> 18]);\n\t\t\t\twriter.write(chars[(loc >>> 12) & 0x3f]);\n\t\t\t\twriter.write('=');\n\t\t\t\twriter.write('=');\n\t\t}\n\t}",
"private byte[] truncate(ByteBuffer buffer, int length) {\n assert length < buffer.remaining();\n byte[] array = new byte[length];\n buffer.get(array);\n return array;\n }",
"private static byte[] leftTruncateOrPadByteArray(byte[] b, int n) {\n if (b.length > n) {\n return Arrays.copyOfRange(b, Math.max(b.length - n, 0), b.length);\n } else if (b.length < n) {\n byte[] bPadded = new byte[n];\n System.arraycopy(b, 0, bPadded, Math.max(0, n - b.length), b.length);\n return bPadded;\n }\n return b;\n }",
"public void write(final byte[] b) throws IOException {\n\t\twrite(b, 0, b.length);\n\t}",
"public void readFully(byte[] b, int off, int len) throws IOException {\n\n\t\tif (off < 0 || len < 0 || off + len > b.length) {\n\t\t\tthrow new IOException(\"Attempt to read outside byte array\");\n\t\t}\n\n\t\tif (read(b, off, len) < len) {\n\t\t\tthrow new EOFException();\n\t\t}\n\t}",
"public void write(char cbuf[], int off, int len) throws IOException {\n ensureOpen();\n if ((off < 0) || (off > cbuf.length) || (len < 0) ||\n ((off + len) > cbuf.length) || ((off + len) < 0)) {\n throw new IndexOutOfBoundsException();\n } else if (len == 0) {\n return;\n }\n out.write(cbuf, off, len);\n }",
"public void writeBytes(byte[] b) throws IOException {\n\t\tbaos.writeBytes(b);\n\t}",
"public void write(String[] buf) throws IOException;",
"public void write(byte[] b) throws IOException {\n\t\tbaos.writeBytes(b);\n\t}",
"public void write(byte b[]) throws IOException {\n baos.write(b, 0, b.length);\n }",
"@Override\r\n\tpublic Buffer appendBytes(byte[] bytes) {\n\t\tthis.buffer.put( bytes );\r\n\t\treturn this;\r\n\t}",
"@Override\r\n\tpublic void addToBuffer(byte[] buff, int len) {\r\n\t\tbios.write(buff, 0, len);\r\n\t}",
"@Override\n public void write(byte[] data) throws IOException {\n for (int i = 0; i < data.length; i++) {\n write(data[i]);\n }\n }",
"public final void set(byte[] buff, int offset, int length) {\r\n if (offset < 0) {\r\n throw new IndexOutOfBoundsException(\"ByteSequence index out of range: \" + offset);\r\n }\r\n if (length < 0) {\r\n throw new IndexOutOfBoundsException(\"ByteSequence index out of range: \" + length);\r\n }\r\n if (offset > buff.length - length) {\r\n throw new StringIndexOutOfBoundsException(\"ByteSequence index out of range: \"\r\n + (offset + length));\r\n }\r\n this.buff = Arrays.copyOf(buff, buff.length);\r\n this.offset = offset;\r\n this.length = length;\r\n }",
"public void write(byte[] buffer, int offset, int count) {\n try {\n if(buffer==null){\n Log.w(TAG, \"Can't write to device, nothing to send\");\n return;\n }\n //This would be a good spot to log out all bytes received\n mmOutStream.write(buffer, offset, count);\n if(connectionSuccessful == null){\n connectionSuccessful = false;\n }\n //Log.w(TAG, \"Wrote out to device: bytes = \"+ count);\n } catch (IOException|NullPointerException e) { // STRICTLY to catch mmOutStream NPE\n // Exception during write\n //OMG! WE MUST NOT BE CONNECTED ANYMORE! LET THE USER KNOW\n Log.e(TAG, \"Error sending bytes to connected device!\");\n connectionLost();\n }\n }",
"public StreamWriter write(byte[] buffer, int offset, int size)\r\n {\r\n _stream.write(buffer,offset,size);\r\n return this;\r\n }",
"public void write(byte[] buffer){\r\n\t\t\r\n\t\ttry{\r\n\t\t\toOutStream.write(buffer);\r\n\t\t}catch(IOException e){\r\n\t\t\tLog.e(TAG, \"exception during write\", e);\r\n\t\t}\r\n\t}",
"private static void writeLength(ByteBuffer buffer, int length) {\n RuntimeAssertionError.assertTrue(length <= (int)Short.MAX_VALUE);\n buffer.putShort((short)length);\n }",
"@Override\r\n\tpublic Buffer setBytes(int pos, byte[] b, int offset, int len) {\n\t\treturn null;\r\n\t}",
"public int syncWrite(byte[] data, int length)\n {\n return syncWrite(-1, data, length);\n }",
"public static int putBytes(byte[] tgtBytes, int tgtOffset, byte[] srcBytes,\n int srcOffset, int srcLength) {\n System.arraycopy(srcBytes, srcOffset, tgtBytes, tgtOffset, srcLength);\n return tgtOffset + srcLength;\n }",
"public void write(BufferedDataOutputStream o) throws FitsException {\n\n this.writeTrueData(o);\n byte[] padding = new byte[getPadding()];\n try {\n o.writePrimitiveArray(padding);\n } catch (IOException e) {\n throw new FitsException (\"Error writing padding: \"+e);\n }\n\n }",
"default void sendBinary(byte[] data, int offset, int length) {\n ByteBuffer buffer = ByteBuffer.wrap(data, offset, length);\n sendBinary(buffer);\n }",
"public static int writeByteArray(final byte [] tgt, final int tgtOffset,\n final byte [] src, final int srcOffset, final int srcLength) {\n byte [] vint = vintToBytes(srcLength);\n System.arraycopy(vint, 0, tgt, tgtOffset, vint.length);\n int offset = tgtOffset + vint.length;\n System.arraycopy(src, srcOffset, tgt, offset, srcLength);\n return offset + srcLength;\n }",
"public void appendBytesTo (int offset, int length, IQueryBuffer dst) {\r\n\r\n\t\tif (isDirect || dst.isDirect())\r\n\t\t\tthrow new UnsupportedOperationException(\"error: cannot append bytes from/to a direct buffer\");\r\n\r\n\t\tdst.put(this.buffer.array(), offset, length);\r\n\t}",
"public void setData(byte[] src, int len) {\n dataBuf.put(src, 0, len);\n setDataLen(len);\n }",
"public ByteBuf writeBytes(byte[] src, int srcIndex, int length)\r\n/* 605: */ {\r\n/* 606:616 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 607:617 */ return super.writeBytes(src, srcIndex, length);\r\n/* 608: */ }",
"private void ensureCapacity(int len) {\n\t\tif( m_numBites + len > m_bites.length ) {\n\t\t\tbyte[] newBites = new byte[(m_bites.length + len)*2];\n\t\t\tSystem.arraycopy(m_bites, 0, newBites, 0, m_numBites);\n\t\t\tm_bites = newBites;\n\t\t}\n\t}",
"private void write( byte[] data) throws IOException {\n ByteBuffer buffer = ByteBuffer.wrap(data);\n\n int write = 0;\n // Keep trying to write until buffer is empty\n while(buffer.hasRemaining() && write != -1)\n {\n write = channel.write(buffer);\n }\n\n checkIfClosed(write); // check for error\n\n if(ProjectProperties.DEBUG_FULL){\n System.out.println(\"Data size: \" + data.length);\n }\n\n key.interestOps(SelectionKey.OP_READ);// make key read for reading again\n\n }",
"@Override\n public void write (final char buf[], final int off, final int len)\n {\n if (text != null)\n {\n text.append (new String (buf, off, len));\n if ((col += len) > wrap)\n println ();\n }\n else\n super.write (buf, off, len);\n }",
"public static byte[] compress(byte[] value, int offset, int length) {\n return compress(value, offset, length, Deflater.BEST_COMPRESSION);\n }",
"private int writeBytesMultiple(ChannelOutboundBuffer in, IovArray array) throws IOException {\n/* 311 */ long expectedWrittenBytes = array.size();\n/* 312 */ assert expectedWrittenBytes != 0L;\n/* 313 */ int cnt = array.count();\n/* 314 */ assert cnt != 0;\n/* */ \n/* 316 */ long localWrittenBytes = this.socket.writevAddresses(array.memoryAddress(0), cnt);\n/* 317 */ if (localWrittenBytes > 0L) {\n/* 318 */ adjustMaxBytesPerGatheringWrite(expectedWrittenBytes, localWrittenBytes, array.maxBytes());\n/* 319 */ in.removeBytes(localWrittenBytes);\n/* 320 */ return 1;\n/* */ } \n/* 322 */ return Integer.MAX_VALUE;\n/* */ }",
"public void append(byte[] bytes)\n\t{\n\t\t// create a new byte array object\n\t\tByteArray combined = combineWith(bytes);\n\t\t\n\t\t// reset the array of bytes\n\t\tthis.bytes = combined.getBytes();\n\t}",
"void writeLongs(long[] l, int off, int len) throws IOException;",
"void fill( byte b[] , int len )\n \tthrows IOException {\n\t int remaining = _l - _o;\n\t //\n\t // Did we alread read enough bytes?\n\t if(remaining >= len) {\n\t \tSystem.arraycopy(_random, _o, b, 0, len);\t \t\n\t \t_o += len;\n\t \t\n\t \treturn;\n\t }\n\t //\n\t // Take the complete remaining bytes from buffer\n\t if(remaining > 0) {\n\t \tSystem.arraycopy(_random, _o, b, 0, remaining);\n\t \t//\n\t \t// Reduced needed bytes\n\t \tlen -= remaining;\n\t \t//\n\t \t// leave it up to the next ensure a continuous block\n\t \t_o = _l;\n\t }\n\t //\n\t // Read the rest direct from the InputStream\n\t while ( len > 0 ) {\n\t final int bytesRead = _in.read( b , remaining , len );\n\t \t//\n\t \t// Reduced needed bytes\t \n\t len -= bytesRead;\n\t //\n\t // Increase the number of read bytes because we reading directly from _in\n\t _read += bytesRead;\n\n\t remaining += bytesRead;\n\t }\n\t }"
] | [
"0.6952137",
"0.69038314",
"0.6709573",
"0.6667403",
"0.6624111",
"0.6554517",
"0.6479188",
"0.6473357",
"0.6365996",
"0.6245579",
"0.6240747",
"0.6239652",
"0.6179705",
"0.61636394",
"0.6157568",
"0.6132421",
"0.60786635",
"0.6068881",
"0.598958",
"0.59876645",
"0.59838",
"0.5957697",
"0.59565204",
"0.5805971",
"0.5764691",
"0.5706242",
"0.56504625",
"0.5648217",
"0.56413525",
"0.56053555",
"0.55954874",
"0.558368",
"0.54717726",
"0.5453416",
"0.54382956",
"0.54328763",
"0.54292",
"0.54092824",
"0.5405183",
"0.5404862",
"0.53607255",
"0.5352686",
"0.5343268",
"0.53421307",
"0.5333079",
"0.532129",
"0.531616",
"0.53065854",
"0.52881986",
"0.5269102",
"0.5264053",
"0.5262517",
"0.525615",
"0.5249977",
"0.52389973",
"0.52246964",
"0.51910275",
"0.5177694",
"0.5174126",
"0.5170624",
"0.51705426",
"0.51593095",
"0.51527137",
"0.51522887",
"0.5140597",
"0.51325095",
"0.50922185",
"0.50781053",
"0.50709045",
"0.5052177",
"0.5024416",
"0.50062597",
"0.49851057",
"0.49749464",
"0.4973233",
"0.49603775",
"0.4955248",
"0.49511912",
"0.49460557",
"0.49456263",
"0.4945411",
"0.4940669",
"0.494021",
"0.4918235",
"0.4906595",
"0.49059203",
"0.48838347",
"0.4883",
"0.48790967",
"0.48663872",
"0.4858868",
"0.48515618",
"0.48444203",
"0.4832647",
"0.4811559",
"0.48110694",
"0.4799181",
"0.47886547",
"0.478822",
"0.4777068"
] | 0.707366 | 0 |
Empty constructor needed for Colony > ServerColony. | protected Settlement() {
// empty constructor
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ServerDef() {}",
"public TargetServerChromattic() {}",
"public Server() {}",
"private Server()\n\t{\n\t}",
"protected Server() {\n super(\"Ublu Server\");\n }",
"public RentRPCServer() {\n\t\tsuper(null, null);\n\t\t// mocking purpose\n\t}",
"private CassandraServer() {\n }",
"protected AuctionServer()\n\t{\n\t}",
"public OServerConfiguration() {}",
"private MemberIdServer() {\n }",
"public Server() {\n\t\tinit(new Config());\n\t}",
"public ServerA(){}",
"public Server() {\n\t\tthis.currentMode = Mode.TEST; // TODO: implement\n\t}",
"public ServerConnecter() {\r\n\r\n\t}",
"public Server()\n\t{\n\t\tusers = new ArrayList<User>();\n\t\tdepartments = new ArrayList<Department>();\n\t\ttokenGenerator = new Random(System.currentTimeMillis());\n\t}",
"public Ctacliente() {\n\t}",
"public ServerTest() {\n\t\tsuper();\n\t}",
"Community() {}",
"public Server() throws Exception {\r\n\t}",
"public Server() {\r\n this(0);\r\n hashtable = new Hashtable<String,String>();\r\n }",
"public CasterSite() {\n\t}",
"@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }",
"public UserFriendServer() {\n\t\tsuper();\n\t}",
"public TestServerApi()\r\n\t{\r\n\t\t\r\n\t}",
"private ServerConnectionParser() {\n }",
"Classroom() {}",
"public ServerInfo() {\n this.logger = null;\n }",
"public AbaloneClient() {\n server = new AbaloneServer();\n clientTUI = new AbaloneClientTUI();\n }",
"public Site() {\n\n\t}",
"public Connection() {\n\t\t\n\t}",
"protected ClassServer(int aPort) throws IOException{\n this(aPort, null);\n }",
"public Server() {\n initComponents();\n }",
"public Server() {\n initComponents();\n }",
"private Connection () {}",
"public ServerConnection()\n {\n //Initializing of the variables used in the constructor\n this.hostAddress = \"http://localhost\";\n this.port = 8882;\n }",
"public Host()\n\t{\n\t}",
"public Cohete() {\n\n\t}",
"public EO_ClientsImpl() {\n }",
"public Classroom() {\n\t}",
"public PuppetIdracServerDevice() { }",
"public Client() {}",
"public WebServer ()\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t{\r\n\t\tthis.shost = DEF_HOST; \t\t\t\t\t\t\t\t\r\n\t\tthis.sPort = DEF_PORT; \t\t\t\t\t\t\t\t\r\n\t}",
"public CyanSus() {\n\n }",
"protected StandardizerServer()\r\n\t{\r\n\t}",
"protected ServerConnectionDebugger() {\n\n }",
"private Connection() {\n \n }",
"public Telefone() {\n\t}",
"public Server(List<WhiteboardServerInfo> whiteBoards) {\n\t\tthis.whiteBoards = whiteBoards;\n\t}",
"public LibMembership() {\n\t\t\n\t}",
"public Ms2Cluster() { super(); }",
"public Company() {\n\t\tsuper();\n\t}",
"public Membership() {\n // This constructor is intentionally empty.\n }",
"public AllOne() {\n \n }",
"protected Depot() {\n\t\tthis(null);\n\t}",
"public CAMPServer(String name) {\n\tsuper(name, true);\n\tlogger = LogManager.getLogger(\"CAMP\");\t\n }",
"public Server() {\n print_addr();\n follow_updates();\n }",
"public MyModel() {\n mazeGeneratingServer = new Server(5400, 1000, new ServerStrategyGenerateMaze());\n solveSearchProblemServer = new Server(5401, 1000, new ServerStrategySolveSearchProblem());\n //Raise the servers\n }",
"Member() {}",
"public Communicator() {\n\t}",
"public CMN() {\n\t}",
"public Client() {\n }",
"public ServerService(){\n\t\tlogger.info(\"Initilizing the ServerService\");\n\t\tservers.put(1001, new Server(1001, \"Test Server1\", 5, 30, 30, ServerStatus.RUNNING));\n\t\tservers.put(1002, new Server(1002, \"Test Server2\", 5, 30, 30, ServerStatus.RUNNING));\n\t\tservers.put(1003, new Server(1003, \"Test Server3\", 5, 30, 30, ServerStatus.RUNNING));\n\t\tservers.put(1004, new Server(1004, \"Test Server4\", 5, 30, 30, ServerStatus.RUNNING));\n\t\tlogger.info(\"Initilizing the ServerService Done\");\n\t}",
"private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}",
"public EnvEntityClient(EnvEntityServer s) {\n\t\tthis(s.posX, s.posY, s.posZ, s.birthTime);\n\t}",
"public Company() {\r\n\t\tsuper();\r\n\t}",
"public MonHoc() {\n }",
"public Member() {\r\n\t}",
"public Telefone() {\n\t\t\n\t}",
"protected ClientStatus() {\n }",
"public ClientDetailsEntity() {\n\t\t\n\t}",
"public Member() {}",
"protected GaConnector() {\n }",
"private ServerEntityMetadataPacket() {}",
"public Server() {\n\t\t\n\t\ttry {\n\t\t\tss= new ServerSocket(PORT);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace(); // Default\n\t\t}\n\t}",
"public Produto() {}",
"protected RemoteServer(RemoteRef ref) {\n super(ref);\n }",
"private MatterAgentClient() {}",
"public Srv() {\n super(Epc.NAMESPACE, \"srv\");\n }",
"public AIMain(FreeColServer freeColServer) {\n this.freeColServer = freeColServer;\n findNewObjects();\n }",
"public TurnoVOClient() {\r\n }",
"public CDOServerDefsFactoryImpl() {\r\n\t\tsuper();\r\n\t}",
"public ServerFailure() {\n this(null, null, null);\n }",
"public Server(){\n\t\ttry {\n\t\t\t// initialize the server socket with the specified port\n\t\t\tsetServerSocket(new ServerSocket(PORT));\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IO Exception while creating a server\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public Client() {\n _host_name = DEFAULT_SERVER;\n _port = PushCacheFilter.DEFAULT_PORT_NUM;\n }",
"public Handler(AdmServer server)\r\n\t{\r\n\t\tm_authServer = server;\r\n\t\t\r\n\t\t/*\r\n\t\tTextCat.setServer(serv); //refer to static/singleton!!!\r\n\r\n\t\tCatIns.m_columnId = -1;\r\n\t\tCatIns.m_columnDesc = 0;\r\n\t\tCatIns.m_columnTags = 1;\r\n\t\tCatIns.m_columnTaxo = -1;\r\n\t\tCatIns.m_columnVendor = -1;\r\n\t*/\r\n\t}",
"public FServer() {\n initComponents();\n }",
"public Member() {\n //Empty constructor!\n }",
"public Server(){\r\n \r\n this.m_Clients = new TeilnehmerListe();\r\n this.m_Port = 7575;\r\n }",
"public Coche() {\n super();\n }",
"public Candy() {\n\t\tthis(\"\");\n\t}",
"public CuerpoCeleste() {\n\t\t// Start of user code constructor for CuerpoCeleste)\n\t\tsuper();\n\t\t// End of user code\n\t}",
"public CanyonException()\r\n {\r\n super();\r\n }",
"private StoneContract() {\n }",
"public Cliente() {\n\t\tsuper();\n\t}",
"protected DBMaintainer() {\n }",
"public PSRelation()\n {\n }",
"public Carrinho() {\n\t\tsuper();\n\t}",
"private SingleTon() {\n\t}",
"public TennisCoach () {\n\t\tSystem.out.println(\">> inside default constructor.\");\n\t}",
"public Community()\r\n {\r\n //\r\n }",
"private Column() {\n }"
] | [
"0.7016534",
"0.688605",
"0.678313",
"0.67368937",
"0.66833764",
"0.6682446",
"0.66650116",
"0.66116947",
"0.65943456",
"0.6572057",
"0.6479265",
"0.64454067",
"0.6398779",
"0.6324927",
"0.63009036",
"0.6294317",
"0.6264157",
"0.6223294",
"0.6217912",
"0.618832",
"0.6166932",
"0.6095519",
"0.6039492",
"0.603837",
"0.6011115",
"0.60000384",
"0.5987635",
"0.5971747",
"0.5925286",
"0.59242487",
"0.5919519",
"0.5914092",
"0.5914092",
"0.58691984",
"0.5863503",
"0.5858467",
"0.58509153",
"0.58430284",
"0.58304584",
"0.582338",
"0.58203155",
"0.5805117",
"0.58031356",
"0.5801468",
"0.5729259",
"0.5722281",
"0.57220334",
"0.570896",
"0.5700034",
"0.56890744",
"0.56855965",
"0.5681929",
"0.5677433",
"0.56763977",
"0.5671255",
"0.5666119",
"0.56648135",
"0.5659935",
"0.5658608",
"0.56564915",
"0.5655035",
"0.56511563",
"0.56494486",
"0.56442106",
"0.5640889",
"0.5637301",
"0.5635043",
"0.56342185",
"0.5623533",
"0.56207854",
"0.5619812",
"0.56084734",
"0.5607805",
"0.55820733",
"0.5573858",
"0.55734235",
"0.55696595",
"0.5565012",
"0.5561707",
"0.5561683",
"0.55606395",
"0.55567104",
"0.5556666",
"0.5553982",
"0.5552497",
"0.55486065",
"0.55453014",
"0.5545256",
"0.55423164",
"0.5533729",
"0.55313843",
"0.5530635",
"0.5529037",
"0.5523404",
"0.5519051",
"0.5516565",
"0.5504528",
"0.5500966",
"0.5497374",
"0.5496047",
"0.54947066"
] | 0.0 | -1 |
Creates a new Settlement. | public Settlement(Game game, Player owner, String name, Tile tile) {
super(game);
this.owner = owner;
this.name = name;
this.tile = tile;
setType(owner.getNationType().getSettlementType(false));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSettlement(Settlement set);",
"protected Settlement() {\n // empty constructor\n }",
"private Tx createTransaction(BitCoinResponseDTO btcDTO, SellerBitcoinInfo sbi) {\n\t\t\n\t\tTx tx = new Tx();\n\t\t\n\t\t\n\t\ttx.setDate(new Date());\n\t\ttx.setAmountOfMoney(btcDTO.getPrice_amount());\n\t\ttx.setStatus(TxStatus.PENDING);\n\t\ttx.setRecieverAddress(btcDTO.getPayment_url());\n\t\ttx.setorder_id(btcDTO.getId()); //ovaj id je na coin gate-u i moram ga cuvati u transakciji\n\t\ttx.setTxDescription(\"Porudzbina je kreirana od strane korisnika\");\n\t\ttx.setSbi(sbi);\n\t\t\n\t\t//trebace ovde jos da se setuje id korisnika koji je kreirao porudzbinu kako bi kasnije mogao da getuje sve\n\t\t//njegove transakcije\n\t\t\n\t\t\n\t\treturn tx;\n\t\t\n\t}",
"private void createTx() throws Exception {\n PublicKey recipient = Seed.getRandomAddress();\n Transaction tx = new Transaction(wallet.pb, recipient, wallet.pr);\n//\t\tSystem.out.println(\"Created a tx\");\n txPool.add(tx);\n//\t\tcache.put(tx.txId, null);\n sendTx(tx);\n }",
"@Override\r\n\tpublic void buildSettlement() {\n\t\t\r\n\t}",
"Shipment createShipment();",
"private void setupSettlementCost(){\n\t\tsettlementCost.put(ResourceKind.WOOL, 1);\n\t\tsettlementCost.put(ResourceKind.WOOD, 1);\n\t\tsettlementCost.put(ResourceKind.BRICK, 1);\n\t\tsettlementCost.put(ResourceKind.GRAIN, 1);\n\t}",
"private void buildSettlement() {\r\n\t\t// client.setCurrentPhase(Constants.PHASE_3);\r\n\t\tlastSettlementNode = clickedNode;\r\n\t\tMessage message = new Message(clickedNode, true, null);\r\n\t\tsendMessage(message);\r\n\t}",
"public void createTransaction(Transaction trans);",
"protected final Transaction createTransaction(TransactionTypeKeys type) {\n\t\tTransaction trans = null;\n\t\tString payee = getForm().getPayFrom();\n\t\tdouble amount = parseAmount();\n\n\t\t// Put amount in proper form.\n\t\tif ((type == INCOME && amount < 0.0)\n\t\t\t\t|| (type == EXPENSE && amount >= 0.0)) {\n\t\t\tamount = -amount;\n\t\t}\n\n\t\t// Put payee in proper form.\n\t\tpayee = purgeIdentifier(payee);\n\n\t\ttrans = new Transaction(getForm().getField(CHECK_NUMBER).getText(),\n\t\t\t\tparseDate(), payee, Money.of(amount,\n\t\t\t\t\t\tUI_CURRENCY_SYMBOL.getCurrency()), getCategory(),\n\t\t\t\tgetForm().getField(NOTES).getText());\n\n\t\t// Set attributes not applicable in the constructor.\n\t\ttrans.setIsReconciled(getForm().getButton(PENDING).isSelected() == false);\n\n\t\tif (isInEditMode() == true) {\n\t\t\ttrans.setLabel(getEditModeTransaction().getLabel());\n\t\t}\n\n\t\treturn trans;\n\t}",
"public void setSettlementType(java.lang.String settlementType) {\n this.settlementType = settlementType;\n }",
"ShipmentItemBilling createShipmentItemBilling();",
"@Override\n\tpublic MonthlyTrading createMonthlyTrading(long monthlyTradingId) {\n\t\treturn monthlyTradingPersistence.create(monthlyTradingId);\n\t}",
"BrainTreeSubmitForSettlementTransactionResult submitForSettlementTransaction(\n\t\t\tBrainTreeSubmitForSettlementTransactionRequest request);",
"@Override\n public TransactionModel createTransaction(String custId, LocalDateTime transactionTime, String accountNumber, TransactionType type, BigDecimal amount,String description)\n {\n return transactionDao.createTransaction(custId,accountNumber,transactionTime,type,amount,description);\n }",
"@Test(groups = \"Transactions Tests\", description = \"Create new transaction\")\n\tpublic void createNewTransaction() {\n\t\tMainScreen.clickAccountItem(\"Income\");\n\t\tSubAccountScreen.clickSubAccountItem(\"Salary\");\n\t\tTransactionsScreen.clickAddTransactionBtn();\n\t\tTransactionsScreen.typeTransactionDescription(\"Extra income\");\n\t\tTransactionsScreen.typeTransactionAmount(\"300\");\n\t\tTransactionsScreen.clickTransactionType();\n\t\tTransactionsScreen.typeTransactionNote(\"Extra income from this month\");\n\t\tTransactionsScreen.clickSaveBtn();\n\t\tTransactionsScreen.transactionItem(\"Extra income\").shouldBe(visible);\n\t\tTransactionsScreen.transactionAmout().shouldHave(text(\"$300\"));\n\t\ttest.log(Status.PASS, \"Sub-account created successfully and the value is correct\");\n\n\t\t//Testing if the transaction was created in the 'Double Entry' account, if the value is correct and logging the result to the report\n\t\treturnToHomeScreen();\n\t\tMainScreen.clickAccountItem(\"Assets\");\n\t\tSubAccountScreen.clickSubAccountItem(\"Current Assets\");\n\t\tSubAccountScreen.clickSubAccountItem(\"Cash in Wallet\");\n\t\tTransactionsScreen.transactionItem(\"Extra income\").shouldBe(visible);\n\t\tTransactionsScreen.transactionAmout().shouldHave(text(\"$300\"));\n\t\ttest.log(Status.PASS, \"'Double Entry' account also have the transaction and the value is correct\");\n\n\t}",
"public TurkeyMarket()\n {\n System.out.println(\"### Turkey Market is created. ###\\n\");\n }",
"@Override\n\tpublic Trunk create(final Map<String, String> params) throws TwilioRestException {\n\t\tfinal TwilioRestResponse response = getClient().safeRequest(getResourceLocation(), \"POST\", params);\n\t\treturn makeNew(getClient(), response.toMap());\n\t}",
"@Override\n\tpublic Trunk create(final List<NameValuePair> params) throws TwilioRestException {\n\t\tfinal TwilioRestResponse response = getClient().safeRequest(getResourceLocation(), \"POST\", params);\n\t\treturn makeNew(getClient(), response.toMap());\n\t}",
"public static void newTrans(Transaction t) {\r\n\t\ttransList = new ArrayList<Transaction>();\r\n\t\tload();\r\n\t\ttransList.add(t);\r\n\t\tsave();\r\n\t}",
"Transaction createTransaction(Settings settings);",
"public Transaction createTransaction(Credentials user, TransactionType tt) throws RelationException;",
"public CleaningTransaction create(CleaningTransaction cleaningTransaction);",
"public Transaction() {\n this(0, 0, null);\n }",
"@MessageMapping(\"/setupsettlement\")\n @SendTo(\"/topic/settlement\")\n public ViewPiece setupSettlement(ViewPiece pNew, Principal caller){\n System.out.println(\"Check settlement\");\n Player checkee = gameManager.getPlayerFromString(caller.getName());\n Intersection checker = gameManager.getGame().getBoard().getIntersections().get(pNew.getId());\n boolean isValid = gameManager.checkIntersectionSetupEligibility(checker);\n if(isValid) {\n gameManager.placeSettlement(checkee, checker);\n }\n pNew.setIsValid(isValid);\n return pNew;\n }",
"public TransferMarket() {\n }",
"protected abstract Transaction createAndAdd();",
"public Builder setSettlementCurrency(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00020000;\n settlementCurrency_ = value;\n onChanged();\n return this;\n }",
"@Override\r\n\tpublic int createMarket(MarketDto dto) {\n\t\treturn session.insert(\"kdc.market.createMarket\", dto);\r\n\t}",
"public Transaction() {\n }",
"public Settlement(Game game, XMLStreamReader in) throws XMLStreamException {\n super(game, in);\n }",
"public com.vodafone.global.er.decoupling.binding.request.TransactionType createTransactionType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.TransactionTypeImpl();\n }",
"RentalAgency createRentalAgency();",
"public void addTransaction(Transactions t){\n listOfTransactions.put(LocalDate.now(), t);\n }",
"private TransactionRequest initTransactionRequest() {\n TransactionRequest transactionRequestNew = new\n TransactionRequest(System.currentTimeMillis() + \"\", 20000);\n\n //set customer details\n transactionRequestNew.setCustomerDetails(initCustomerDetails());\n\n\n // set item details\n ItemDetails itemDetails = new ItemDetails(\"1\", 20000, 1, \"Trekking Shoes\");\n\n // Add item details into item detail list.\n ArrayList<ItemDetails> itemDetailsArrayList = new ArrayList<>();\n itemDetailsArrayList.add(itemDetails);\n transactionRequestNew.setItemDetails(itemDetailsArrayList);\n\n\n // Create creditcard options for payment\n CreditCard creditCard = new CreditCard();\n\n creditCard.setSaveCard(false); // when using one/two click set to true and if normal set to false\n\n// this methode deprecated use setAuthentication instead\n// creditCard.setSecure(true); // when using one click must be true, for normal and two click (optional)\n\n creditCard.setAuthentication(CreditCard.AUTHENTICATION_TYPE_3DS);\n\n // noted !! : channel migs is needed if bank type is BCA, BRI or MyBank\n// creditCard.setChannel(CreditCard.MIGS); //set channel migs\n creditCard.setBank(BankType.BCA); //set spesific acquiring bank\n\n transactionRequestNew.setCreditCard(creditCard);\n\n return transactionRequestNew;\n }",
"public void setSettlementno(Integer settlementno) {\n this.settlementno = settlementno;\n }",
"Rental createRental();",
"public PaymentTransaction() {\n\t\tsuper(\"PAYMENT_TRANSACTION\", edu.uga.csci4050.group3.jooq.team3.Team3.TEAM3);\n\t}",
"ShipmentItem createShipmentItem();",
"Transaction createTransaction();",
"void create(Team team);",
"public final void setType(final SettlementType newType) {\n if (type != null) removeFeatures(type);\n this.type = newType;\n if (newType != null) addFeatures(newType);\n }",
"public Txn() {\n }",
"public Transaction createTransaction(double amount, long timestamp) {\n Transaction transaction = new Transaction();\n transaction.setAmount(amount);\n transaction.setTimestamp(timestamp);\n return transaction;\n }",
"Delivery createDelivery();",
"public static Transaction generateCreationTransaction(String strPrivateKey) {\n List<Creation> creations = new ArrayList<>();\n List<Input> inputs = new ArrayList<>();\n List<Output> outputs = new ArrayList<>();\n\n // Get address from private key\n BigInteger privateKey = Bitcoin.decodePrivateKey(strPrivateKey);\n byte[] publicKey = Bitcoin.generatePublicKey(privateKey);\n String address = Bitcoin.publicKeyToAddress(publicKey);\n\n // Create 1 coupon\n Creation creation = new Creation(address, 1);\n creations.add(creation);\n\n // Send the coupon to the creator\n Output output = new Output(address, 1, address);\n outputs.add(output);\n\n // Create transaction, sign it and return it\n Transaction transaction = new Transaction(creations, inputs, outputs);\n transaction.signTransaction(privateKey);\n return transaction;\n\n }",
"@Override\n public void placeSettlement(VertexLocation vertex) throws ModelException {\n assert vertex != null;\n if (!GameModelFacade.instance().canPlaceSettlement(vertex)) {\n throw new ModelException(\"Preconditions for action not met.\");\n }\n\n try {\n String clientModel = m_theProxy.buildSettlement(GameModelFacade.instance().getLocalPlayer().getIndex(), vertex, GameModelFacade.instance().isFreeRound());\n new ModelInitializer().initializeClientModel(clientModel, m_theProxy.getPlayerId());\n } catch (NetworkException e) {\n throw new ModelException(e);\n }\n }",
"@Test\n\tpublic void testAddTransaction(){\n setDoubleEntryEnabled(true);\n\t\tsetDefaultTransactionType(TransactionType.DEBIT);\n validateTransactionListDisplayed();\n\n\t\tonView(withId(R.id.fab_create_transaction)).perform(click());\n\n\t\tonView(withId(R.id.input_transaction_name)).perform(typeText(\"Lunch\"));\n\t\tonView(withId(R.id.input_transaction_amount)).perform(typeText(\"899\"));\n\t\tonView(withId(R.id.input_transaction_type))\n\t\t\t\t.check(matches(allOf(isDisplayed(), withText(R.string.label_receive))))\n\t\t\t\t.perform(click())\n\t\t\t\t.check(matches(withText(R.string.label_spend)));\n\n\t\tString expectedValue = NumberFormat.getInstance().format(-899);\n\t\tonView(withId(R.id.input_transaction_amount)).check(matches(withText(expectedValue)));\n\n int transactionsCount = getTransactionCount();\n\t\tonView(withId(R.id.menu_save)).perform(click());\n\n validateTransactionListDisplayed();\n\n List<Transaction> transactions = mTransactionsDbAdapter.getAllTransactionsForAccount(DUMMY_ACCOUNT_UID);\n assertThat(transactions).hasSize(2);\n Transaction transaction = transactions.get(0);\n\t\tassertThat(transaction.getSplits()).hasSize(2);\n\n assertThat(getTransactionCount()).isEqualTo(transactionsCount + 1);\n }",
"private Transaction creatTransaction(Bill bill, boolean b) {\n Transaction transaction = new Transaction();\n transaction.setDateOfTransaction(new Date());\n transaction.setCostOfTransaction(String.valueOf(bill.getCostOfBill()));\n transaction.setSerialOfTransaction(new TransactionSerialProducer().serialProducer());\n transaction.setFinished(b);\n transaction.setTypeOfTransaction(\"پرداخت قبض\");\n transaction.setBillingId(bill.getBillingId());\n transaction.setPaymentCode(bill.getPaymentCode());\n dbHelper = new DBHelper();\n dbHelper.insertTransaction(transaction);\n return transaction;\n }",
"public void setSettlementStatus(java.lang.String settlementStatus) {\n this.settlementStatus = settlementStatus;\n }",
"void buildSettlement(VertexLocation vert, boolean free);",
"Purchase create(Purchase purchase) throws SQLException, DAOException;",
"void create(Order order);",
"private Transaction setUpTransaction(double amount, Transaction.Operation operation, String username){\n Transaction transaction = new Transaction();\n transaction.setDate(Date.valueOf(LocalDate.now()));\n transaction.setAmount(amount);\n transaction.setOperation(operation);\n transaction.setUserId(userRepository.getByUsername(username).getId());\n return transaction;\n }",
"public TokenTransactions() {}",
"public Transaction(String transactionLine){\r\n\t\t\t//String delims = \"[\\\\s+]\";\r\n\t\t\tString[] tokens = transactionLine.split(\" +\");\r\n\t\t\tif (tokens[0].equals(\"\")){\r\n\t\t\t\tid = 00;\r\n\t\t\t}else{\r\n\t\t\t\tid = Integer.parseInt(tokens[0]);\r\n\t\t\t}\r\n\t\t\tif (id == 0){\r\n\t\t\t\tdate = 0;\r\n\t\t\t\tticket = 0;\r\n\t\t\t\tname = \"\";\r\n\t\t\t}else{\r\n\t\t\t\tdate = Integer.parseInt(tokens[2]);\r\n\t\t\t\tticket = Integer.parseInt(tokens[3]);\r\n\t\t\t\tname = tokens[1];\r\n\t\t\t\t\t\t\r\n\t\t\t}\r\n\r\n\t }",
"protected abstract Txn createTxn(Txn parent, IsolationLevel level) throws Exception;",
"@POST\n @Consumes({\"application/json\"})\n @Produces({\"application/json\"})\n public RestRsp<Tp> createSite(final Tp tp) throws ServiceException {\n ScopeChecker.checkScope(tp);\n return new RestRsp<Tp>(ResultConstants.SUCCESS, service.createTp(tp));\n }",
"public TIndiaState createTIndiaState(final TIndiaState tIndiaState) {\n\t\tLOGGER.info(\"=========== Create TIndiaState ===========\");\n//\t\treturn gisDAO.store(tIndiaState);\n\t\treturn null;\n\t}",
"Account create();",
"ShipmentAttribute createShipmentAttribute();",
"public void create(){}",
"public static Payout create(Map<String, Object> params) throws PayabbhiException {\n//\t\tSystem.out.println(toJSONString(params));\n\t\treturn request(Method.POST, urlFor(Payout.class), params, Payout.class);\n\t}",
"public long createTransaction(Credentials c, TransactionType tt) throws RelationException;",
"private void createTransactionsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE transactions \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY, \"\n\t\t\t\t\t+ \"owner INT, amount DOUBLE, source BIGINT, sourceType VARCHAR(20), target BIGINT, targetType VARCHAR(20), comment VARCHAR(255), time BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table transactions\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of transactions table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}",
"ShipmentCostEstimate createShipmentCostEstimate();",
"public void createESEAccount(String farmerId, String farmerAcctNo, Date txnTime, int type);",
"ShipmentTimeEstimate createShipmentTimeEstimate();",
"public com.vodafone.global.er.decoupling.binding.request.SelfcareTransactionsRequest createSelfcareTransactionsRequest()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.SelfcareTransactionsRequestImpl();\n }",
"public void buySettlement(Vertex vertex) throws CannotBuyException, InsufficientPlayerResourcesException, AllPiecesPlayedException{\n\t\t if(canDoBuySettlement() == false) {\n\t\t\t throw new CannotBuyException(\"Cannot Buy Settlement, possibly no vertex to place a settlement\");\n\t\t }\n\t\t resourceCardHand.payForSettlement();\n\t\t playerPieces.placeSettlement(vertex);\n\t\t // increment victory points\n\t\t totalVictoryPoints++;\n\t }",
"public void crear(Tarea t) {\n t.saveIt();\n }",
"TransactionType createTransactionType();",
"public com.inikah.slayer.model.MMCity create(long cityId);",
"@Override\n\tpublic TestUnit create(long testUnitId) {\n\t\tTestUnit testUnit = new TestUnitImpl();\n\n\t\ttestUnit.setNew(true);\n\t\ttestUnit.setPrimaryKey(testUnitId);\n\n\t\treturn testUnit;\n\t}",
"public Trip createTrip() {\n\n\t\t//Trip trip = new Trip();\n\n\t\tEditText name = (EditText) findViewById(R.id.trip_name);\n\t\tString trip_name = name.getText().toString();\n\t\ttrip.setName(trip_name);\n\n\t\tEditText location = (EditText) findViewById(R.id.location);\n\t\tString trip_location = location.getText().toString();\n\t\ttrip.setLocation(trip_location);\n\n\t\tEditText date = (EditText) findViewById(R.id.date);\n\t\tString trip_date = date.getText().toString();\n\t\ttrip.setTravelDate(trip_date);\n\n\t\tEditText time = (EditText) findViewById(R.id.time);\n\t\tString trip_time = time.getText().toString();\n\t\ttrip.setTravelTime(trip_time);\n\n\t\tEditText meeting_spot = (EditText) findViewById(R.id.meeting_spot);\n\t\tString meet_spot = meeting_spot.getText().toString();\n\t\ttrip.setMeetSpot(meet_spot);\n\n\t\t/*EditText participants = (EditText) findViewById(R.id.participants);\n\t\tString trip_participants = participants.getText().toString();\n\t\tString[] friendsArray;\n\t\tint numOfParticipants = 0;\n\t\tArrayList<Person> friends = new ArrayList<Person>();\n\t\tif(trip_participants.equals(\"\")) {\n\t\t\tfriends = null;\n\t\t} else {\n\t\t\tfriendsArray = trip_participants.split(\",\");\n\t\t\tint arrayLength = friendsArray.length;\n\t\t\tfor(int i=0; i<arrayLength; i++) {\n\t\t\t\tPerson person = new Person(friendsArray[i].trim());\n\t\t\t\tfriends.add(person);\n\t\t\t\tnumOfParticipants++;\n\t\t\t}\n\t\t}*/\n\n\t\t/*Trip trip = new Trip(trip_name, 1001, numOfParticipants, trip_location, trip_time, trip_date,\n\t\t\t\tfriends, meet_spot);*/\n\n\t\ttrip.setPersons(persons);\n\t\treturn trip;\n\t}",
"public org.oep.cmon.dao.dvc.model.ThuTuc2GiayTo create(long id);",
"public PlanoSaude create(long plano_id);",
"public void create(AttributeList attributeList)\n {\n\n super.create(attributeList); \n \n OADBTransaction transaction = getOADBTransaction();\n \n // DEFAULT: supplier id is obtained from the table's sequence\n Number supplierId = transaction.getSequenceValue(\"FWK_TBX_SUPPLIERS_S\");\n setSupplierId(supplierId);\n\n // DEFAULT: start date should be set to sysdate\n setStartDate(transaction.getCurrentDBDate());\n\n \n }",
"public void setSettlementtype(Integer settlementtype) {\n this.settlementtype = settlementtype;\n }",
"public String buildSettlement(BuildSettlement buildSettlement) throws Exception {\n\t\tString url = server_url + \"/moves/buildSettlement\";\n\t\tURL obj = new URL(url);\n\t\tHttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\n\t\t//add request header\n\t\tcon.setRequestMethod(\"POST\");\n\t\tcon.setRequestProperty(\"User-Agent\", \"Mozilla/5.0\");\n\t\tcon.setRequestProperty(\"Accept-Language\", \"en-US,en;q=0.5\");\n\t\tcon.setRequestProperty(\"Cookie\", usercookie + \"; \" + gamecookie);\n\t\t\n\t\tJsonObject info = new JsonObject();\n\t\tinfo.addProperty(\"type\",\"buildSettlement\");\n\t\tinfo.addProperty(\"playerIndex\", buildSettlement.playerIndex);\n\t\tinfo.addProperty(\"free\", buildSettlement.free);\n\t\t\n\t\tJsonObject loc = new JsonObject();\n\t\tloc.addProperty(\"x\", buildSettlement.vertexLocation.getHexLoc().getX());\n\t\tloc.addProperty(\"y\", buildSettlement.vertexLocation.getHexLoc().getY());\n\t\tloc.addProperty(\"direction\", directions.get(buildSettlement.vertexLocation.getDir().name()));\n\t\tinfo.add(\"vertexLocation\", loc);\n\t\t\n\t\t// Send post request\n\t\tcon.setDoOutput(true);\n\t\tDataOutputStream wr = new DataOutputStream(con.getOutputStream());\n\t\twr.writeBytes(info.toString());\n\t\twr.flush();\n\t\twr.close();\n\n\t\tint responseCode = con.getResponseCode();\n\t\t//System.out.println(\"\\nSending 'POST' request to URL : \" + url);\n\t\t//System.out.println(\"Post parameters : \" + info.toString());\n\t\t//System.out.println(\"Response Code : \" + responseCode);\n\n\t\tif (responseCode == 400) {\n\t\t\tthrow new Exception();\n\t\t}\n\t\tBufferedReader in = new BufferedReader(\n\t\t new InputStreamReader(con.getInputStream()));\n\t\tString inputLine;\n\t\tStringBuffer response = new StringBuffer();\n\n\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\tresponse.append(inputLine);\n\t\t}\n\t\tin.close();\n\t\t\n\t\t//print result\n\t\t////System.out.println(response.toString());\n\t\treturn response.toString();\n\t}",
"public com.vodafone.global.er.decoupling.binding.request.TransactionLiteType createTransactionLiteType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.TransactionLiteTypeImpl();\n }",
"public void testCreate() {\n TCreate_Return[] Baskets_create_out = basketService.create(new TCreate_Input[] { Basket_in });\n assertNoError(Baskets_create_out[0].getError());\n\n assertNull(\"No FormErrors\", Baskets_create_out[0].getFormErrors());\n assertEquals(\"created?\", true, Baskets_create_out[0].getCreated());\n assertNotNull(\"Path not null\", Baskets_create_out[0].getPath());\n BasketPath = Baskets_create_out[0].getPath();\n }",
"public PaymentFixed getSettlement() {\n return _settlement;\n }",
"void create(T t);",
"@Transactional\n public void createTransaction(long transactionId, Transaction t) {\n log.trace(\"createTransaction {} {}\", transactionId, t);\n Preconditions.checkNotNull(t, \"TransactionEntity must not be null\");\n\n TransactionEntity entity = new TransactionEntity();\n entity.setId(transactionId);\n entity.setAmount(t.getAmount());\n entity.setType(t.getType());\n if (t.getParentId() != null) {\n // if a parent was added, verify it exists and add it to the entity\n TransactionEntity parent = transactionRepository.findOne(t.getParentId());\n if (parent == null) {\n throw new BadRequestException(\"parent not found\");\n }\n entity.setParent(parent);\n }\n\n log.debug(\"Saving a transaction {}\", entity);\n transactionRepository.save(entity);\n\n Set<Long> visited = new HashSet<>();\n TransactionEntity parent = entity.getParent();\n while (parent != null) {\n // cycles are not possible via the API, but if someone will mess with the underlying DB\n // it might happen. In such case, this would never end - causing thread leakage.\n // Therefore, cycle detection is a good practice.\n if (visited.contains(parent.getId())) {\n log.error(\"Cyclic transaction detected when adding transaction id {}: {}\", transactionId, visited);\n throw new ServerErrorException(\"cyclic transaction\");\n }\n visited.add(parent.getId());\n\n TransactionDescendant descendant = new TransactionDescendant();\n descendant.setParent(parent);\n descendant.setDescendant(entity);\n log.debug(\"Saving a descendant {}\", descendant);\n transactionDescendantRepository.save(descendant);\n parent = parent.getParent();\n }\n }",
"ShipmentPackage createShipmentPackage();",
"public BankATM() {\n getLocation();\n }",
"public Trip create(final Manager manager) {\n\t\tthis.managerService.checkPrincipal();\n\n\t\tCollection<ApplicationFor> applicationsFor;\n\t\tCollection<AuditRecord> auditRecords;\n\t\tCollection<Note> notes;\n\t\tCollection<Stage> stages;\n\t\tCollection<Tag> tags;\n\t\tTrip trip;\n\n\t\ttrip = new Trip();\n\t\tapplicationsFor = new ArrayList<ApplicationFor>();\n\t\tauditRecords = new ArrayList<AuditRecord>();\n\t\tnotes = new ArrayList<Note>();\n\t\tstages = new ArrayList<Stage>();\n\t\ttags = new ArrayList<Tag>();\n\n\t\ttrip.setManager(manager);\n\t\ttrip.setApplicationsFor(applicationsFor);\n\t\ttrip.setAuditRecords(auditRecords);\n\t\ttrip.setNotes(notes);\n\t\ttrip.setStages(stages);\n\t\ttrip.setTags(tags);\n\t\ttrip.setTicker(this.generatedTicker());\n\n\t\treturn trip;\n\t}",
"public SIPServerTransaction createServerTransaction(\n MessageChannel\tencapsulatedMessageChannel\n ) {\n \n return new SIPServerTransaction\n ( this, encapsulatedMessageChannel );\n \n }",
"public MiradorTransaction(FujabaTransaction fujaba_tx) {\n tx_name_ = fujaba_tx.getName();\n tx_id_ = fujaba_tx.getId();\n merge_side_ = fujaba_tx.getMergeSide();\n initialize(fujaba_tx);\n }",
"private static void createDummyTransactions() {\n targetAndTransactions.add(new TargetAndTransaction(rootWebTarget, 10L, new Transaction(10000d, \"cars\", 0L)));\n targetAndTransactions.add(new TargetAndTransaction(rootWebTarget, 11L, new Transaction(15000d, \"shopping\", 10L)));\n targetAndTransactions.add(new TargetAndTransaction(rootWebTarget, 12L, new Transaction(20000d, \"keys\", 11L)));\n targetAndTransactions.add(new TargetAndTransaction(rootWebTarget, 13L, new Transaction(25000d, \"furniture\", 12L)));\n targetAndTransactions.add(new TargetAndTransaction(rootWebTarget, 14L, new Transaction(30000d, \"keys\", 13L)));\n targetAndTransactions.add(new TargetAndTransaction(rootWebTarget, 15L, new Transaction(40000d, \"cars\", 14L)));\n targetAndTransactions.add(new TargetAndTransaction(rootWebTarget, 16L, new Transaction(50000d, \"cars\", 15L)));\n }",
"public Trade() {\n\t}",
"@Test\n\tpublic void createAccountDebtsTest() {\n\t\tsetChequingRadioDefaultOff();\n\t\trdbtnDebt.setSelected(true);\n\t\tdata.setRdbtnDebt(rdbtnDebt);\n\t\tAccount account = data.createNewAccount();\n\t\taccountTest = new Account(TEST_ACCOUNT_NAME, bankTest,\n\t\t\t\tAccount.Types.DEBITS.getAccountType());\n\t\tassertEquals(accountTest, account);\n\t}",
"public long getSettlementDate() {\n return settlementDate_;\n }",
"@Override\n\tpublic void createTransaction(Transaction t) { \n\t\t/* begin transaction */ \n\t\tSession session = getCurrentSession(); \n\t\tsession.beginTransaction(); \n\n\t\t/* save */ \n\t\tsession.save(t);\n\n\t\t/* commit */ \n\t\tsession.getTransaction().commit();\n\t}",
"public void placeSettlement(Player p, Corner c){\r\n if(c.getSettlement()==Settlement.NONE){\r\n c.placeSettlement(Settlement.SMALL,p);\r\n }\r\n else{\r\n c.placeSettlement(Settlement.LARGE, p);\r\n }\r\n }",
"Reservation createReservation();",
"public void createESECard(String farmerId, String farmerCardId, Date txnTime, int type);",
"public com.vodafone.global.er.decoupling.binding.request.SelfcareLiteTransactionsRequest createSelfcareLiteTransactionsRequest()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.SelfcareLiteTransactionsRequestImpl();\n }",
"public static AnnualLease create(String number,\n\t\t\t\t\t\t\t\t\t\t\tDate startdate,\n\t\t\t\t\t\t\t\t\t\t\tdouble amountdue,\n\t\t\t\t\t\t\t\t\t\t\tboolean paymonthly)\n\t\t\t\t\t\t\t\tthrows CreateException\t\t\t\t{\n\t\tif (_debug) System.out.println(\"AL:create:\" + number);\n\n\t\tAnnualLeaseModel model = new AnnualLeaseModel(number, amountdue, startdate, null, null, null, 0, paymonthly);\n\t\tAnnualLeaseDAO dao = null;\n\t\ttry\t{\n\t\t\tdao = getDAO();\n\t\t\tdao.dbInsert(model);\n\t\t\t/* Initially this AnnualLease has no boats or leases\t\t\t*/\n\n\t\t} catch (Exception sqlex)\t{\n\t\t\tthrow new CreateException(sqlex.getMessage());\n\t\t}\n\n\t\treturn\tnew AnnualLease(model);\n\t}"
] | [
"0.6811938",
"0.6558436",
"0.5962071",
"0.5913578",
"0.5891369",
"0.57747775",
"0.56856513",
"0.5670114",
"0.5663655",
"0.5640582",
"0.5623753",
"0.5596491",
"0.55913323",
"0.5585403",
"0.5581995",
"0.5543421",
"0.5540953",
"0.5504001",
"0.54570377",
"0.54451233",
"0.54392433",
"0.5420941",
"0.541095",
"0.5408484",
"0.5389037",
"0.5382496",
"0.53611755",
"0.5337931",
"0.5317044",
"0.5304047",
"0.5297981",
"0.5296035",
"0.52675146",
"0.5255932",
"0.5253081",
"0.5217923",
"0.5204988",
"0.52041733",
"0.5204029",
"0.5195913",
"0.5193678",
"0.5186508",
"0.5185338",
"0.5181888",
"0.51783806",
"0.5178165",
"0.5145955",
"0.51170546",
"0.51102734",
"0.5108762",
"0.51046556",
"0.5102407",
"0.5099078",
"0.50988996",
"0.50970364",
"0.50968164",
"0.5091398",
"0.5077111",
"0.50692815",
"0.5062037",
"0.50593174",
"0.5034488",
"0.5031885",
"0.5027898",
"0.50249964",
"0.50225025",
"0.5020995",
"0.5018695",
"0.5014863",
"0.5006676",
"0.5001732",
"0.49753323",
"0.49709892",
"0.49704215",
"0.49700537",
"0.49662888",
"0.4959972",
"0.4958811",
"0.49452606",
"0.49381727",
"0.49270245",
"0.49256402",
"0.49151275",
"0.49075872",
"0.48973843",
"0.48960266",
"0.4892793",
"0.48916537",
"0.48885432",
"0.48757616",
"0.48748028",
"0.48742127",
"0.4854464",
"0.48528022",
"0.48479038",
"0.484576",
"0.4836949",
"0.48358598",
"0.483573",
"0.4830582"
] | 0.61980677 | 2 |
Initiates a new Settlement from an Element. | public Settlement(Game game, XMLStreamReader in) throws XMLStreamException {
super(game, in);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSettlement(Settlement set);",
"protected Settlement() {\n // empty constructor\n }",
"private void buildSettlement() {\r\n\t\t// client.setCurrentPhase(Constants.PHASE_3);\r\n\t\tlastSettlementNode = clickedNode;\r\n\t\tMessage message = new Message(clickedNode, true, null);\r\n\t\tsendMessage(message);\r\n\t}",
"@Override\r\n\tpublic void buildSettlement() {\n\t\t\r\n\t}",
"public Settlement(Game game, Player owner, String name, Tile tile) {\n super(game);\n this.owner = owner;\n this.name = name;\n this.tile = tile;\n \n setType(owner.getNationType().getSettlementType(false));\n }",
"Object create(Element element) throws IOException, SAXException, ParserConfigurationException;",
"@Override\n public void placeSettlement(VertexLocation vertex) throws ModelException {\n assert vertex != null;\n if (!GameModelFacade.instance().canPlaceSettlement(vertex)) {\n throw new ModelException(\"Preconditions for action not met.\");\n }\n\n try {\n String clientModel = m_theProxy.buildSettlement(GameModelFacade.instance().getLocalPlayer().getIndex(), vertex, GameModelFacade.instance().isFreeRound());\n new ModelInitializer().initializeClientModel(clientModel, m_theProxy.getPlayerId());\n } catch (NetworkException e) {\n throw new ModelException(e);\n }\n }",
"public TurkeyMarket()\n {\n System.out.println(\"### Turkey Market is created. ###\\n\");\n }",
"public TransferMarket() {\n }",
"public void setElement(Element Element) {\n\t\telement = Element;\n\t}",
"public LastSale(Element element) {\n readFromXMLElement(element);\n }",
"public Element(Element element) {\n\t\tElement src = element.clone();\n\n\t\tthis.attributes = src.attributes;\n\t\tthis.name = src.name;\n\t\tthis.defxmlns = src.defxmlns;\n\t\tthis.xmlns = src.xmlns;\n\t\tthis.children = src.children;\n\t}",
"private void setupSettlementCost(){\n\t\tsettlementCost.put(ResourceKind.WOOL, 1);\n\t\tsettlementCost.put(ResourceKind.WOOD, 1);\n\t\tsettlementCost.put(ResourceKind.BRICK, 1);\n\t\tsettlementCost.put(ResourceKind.GRAIN, 1);\n\t}",
"public TagChainElement() {\n\t\tthis.db = TagDatabaseManager.getInstance();\n\t}",
"private static Delivery createDelivery(Element elt, TimeWindow tm) throws XMLException, NumberFormatException {\n\t\tint id = Integer.parseInt(elt.getAttribute(\"id\"));\n\t\tint client = Integer.parseInt(elt.getAttribute(\"client\"));\n\t\tint address = Integer.parseInt(elt.getAttribute(\"adresse\"));\n\t\treturn new Delivery(id, client, address, tm);\n\t}",
"public ElementObject(WebElement element) {\n // check null value\n super(0); //0 : Element is THERE\n this.element = element;\n this._originalStyle = element.getAttribute(\"style\");\n }",
"@Override\n\tpublic void setElement(Element element) {\n\t\t\n\t}",
"public Builder setSettlementCurrency(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00020000;\n settlementCurrency_ = value;\n onChanged();\n return this;\n }",
"public void setElement(Element element) {\n this.element = element;\n }",
"public void setElement(T element) {\n\t\tthis.element = element;\n\t}",
"public XmlElement() {\n }",
"Element() {\n\t}",
"public UnconstrainedBid(UnconstrainedBidElement element, MarketBasis marketBasis) {\n this(Collections.<UnconstrainedBidElement> singleton(element), marketBasis);\n }",
"public WebElement() {}",
"public void setElement (T element) {\r\n\t\t\r\n\t\tthis.element = element;\r\n\t\r\n\t}",
"@MessageMapping(\"/setupsettlement\")\n @SendTo(\"/topic/settlement\")\n public ViewPiece setupSettlement(ViewPiece pNew, Principal caller){\n System.out.println(\"Check settlement\");\n Player checkee = gameManager.getPlayerFromString(caller.getName());\n Intersection checker = gameManager.getGame().getBoard().getIntersections().get(pNew.getId());\n boolean isValid = gameManager.checkIntersectionSetupEligibility(checker);\n if(isValid) {\n gameManager.placeSettlement(checkee, checker);\n }\n pNew.setIsValid(isValid);\n return pNew;\n }",
"public Element(String name) {\n\t\tsetName(name);\n\t}",
"public CAccountElement() {\n }",
"public void setElement(WebElement element) {\n\t\t\r\n\t}",
"public void setSettlementDate(String settlementDate) {\r\n\r\n\t\ttry {\r\n\r\n\t\t\tthis.settlementDate = this.sdf.parse(settlementDate);\r\n\r\n\t\t\tthis.c.setTime(this.settlementDate);\r\n\r\n\t\t\tint iDayOfWeek = this.c.get(Calendar.DAY_OF_WEEK);\r\n\r\n\t\t\t/*\r\n\t\t\t * We add 1 day to settlement date until the settlement date not\r\n\t\t\t * fall in weekend\r\n\t\t\t */\r\n\t\t\twhile (!((iDayOfWeek >= this.cur.getWeekStart()) && (iDayOfWeek <= this.cur.getWeekEnds()))) {\r\n\r\n\t\t\t\tthis.c.add(Calendar.DATE, 1);\r\n\r\n\t\t\t\tiDayOfWeek = this.c.get(Calendar.DAY_OF_WEEK);\r\n\t\t\t}\r\n\r\n\t\t\tthis.settlementDate = this.c.getTime();\r\n\r\n\t\t} catch (ParseException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void setSettlementType(java.lang.String settlementType) {\n this.settlementType = settlementType;\n }",
"private TransactionRequest initTransactionRequest() {\n TransactionRequest transactionRequestNew = new\n TransactionRequest(System.currentTimeMillis() + \"\", 20000);\n\n //set customer details\n transactionRequestNew.setCustomerDetails(initCustomerDetails());\n\n\n // set item details\n ItemDetails itemDetails = new ItemDetails(\"1\", 20000, 1, \"Trekking Shoes\");\n\n // Add item details into item detail list.\n ArrayList<ItemDetails> itemDetailsArrayList = new ArrayList<>();\n itemDetailsArrayList.add(itemDetails);\n transactionRequestNew.setItemDetails(itemDetailsArrayList);\n\n\n // Create creditcard options for payment\n CreditCard creditCard = new CreditCard();\n\n creditCard.setSaveCard(false); // when using one/two click set to true and if normal set to false\n\n// this methode deprecated use setAuthentication instead\n// creditCard.setSecure(true); // when using one click must be true, for normal and two click (optional)\n\n creditCard.setAuthentication(CreditCard.AUTHENTICATION_TYPE_3DS);\n\n // noted !! : channel migs is needed if bank type is BCA, BRI or MyBank\n// creditCard.setChannel(CreditCard.MIGS); //set channel migs\n creditCard.setBank(BankType.BCA); //set spesific acquiring bank\n\n transactionRequestNew.setCreditCard(creditCard);\n\n return transactionRequestNew;\n }",
"public void newElement() {\r\n }",
"protected abstract M createNewElement();",
"public TradeData(String[] tradeElements) {\r\n\r\n\t\tsetElements(tradeElements);\r\n\t}",
"public GenericElement() {\n\t}",
"public void setElements(String[] tradeElements) {\r\n\r\n\t\t/* iterate through every trade element */\r\n\t\tfor (String tradeElement : tradeElements) {\r\n\r\n\t\t\t/* to get the value after the = */\r\n\t\t\tString[] tradeNameValue = tradeElement.split(\"=\");\r\n\r\n\t\t\t/*\r\n\t\t\t * Error handling: i check that the tradeNameValue string array has\r\n\t\t\t * size 2 before i set values to trade data to avoid array index out\r\n\t\t\t * of bound exceptions\r\n\t\t\t */\r\n\t\t\tCurrency cur = new Currency(\"\", 1.0);\r\n\r\n\t\t\tif (tradeNameValue[0].equals(\"cur\") && tradeNameValue.length == 2) {\r\n\r\n\t\t\t\tcur = new Currency(tradeNameValue[1], 1.0);\r\n\t\t\t\tthis.setCur(cur);\r\n\r\n\t\t\t}\r\n\r\n\t\t\tif (tradeNameValue[0].equals(\"agreededFx\") && tradeNameValue.length == 2) {\r\n\r\n\t\t\t\tcur.setAgreededFx(Double.valueOf(tradeNameValue[1]));\r\n\t\t\t\tthis.setCur(cur);\r\n\t\t\t}\r\n\r\n\t\t\tif (tradeNameValue[0].equals(\"ent\") && tradeNameValue.length == 2) {\r\n\r\n\t\t\t\tEntity ent = new Entity(tradeNameValue[1].replace(\"entity\", \"\"));\r\n\t\t\t\tthis.setEnt(ent);\r\n\t\t\t}\r\n\r\n\t\t\tif (tradeNameValue[0].equals(\"tt\") && tradeNameValue.length == 2) {\r\n\r\n\t\t\t\tTypeOfTrade typeOfTrade = TypeOfTrade.S;\r\n\r\n\t\t\t\tif (tradeNameValue[1].equals(\"buyTradeType\")) {\r\n\r\n\t\t\t\t\ttypeOfTrade = TypeOfTrade.B;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setTradeType(new TradeType(typeOfTrade));\r\n\r\n\t\t\t}\r\n\r\n\t\t\tif (tradeNameValue[0].equals(\"instructionDate\") && tradeNameValue.length == 2) {\r\n\r\n\t\t\t\tthis.setInstructionDate(tradeNameValue[1].trim());\r\n\t\t\t}\r\n\r\n\t\t\tif (tradeNameValue[0].equals(\"settlementDate\") && tradeNameValue.length == 2) {\r\n\r\n\t\t\t\tthis.setSettlementDate(tradeNameValue[1].trim());\r\n\t\t\t}\r\n\r\n\t\t\tif (tradeNameValue[0].equals(\"units\") && tradeNameValue.length == 2) {\r\n\r\n\t\t\t\tint units = Integer.parseInt(tradeNameValue[1].trim());\r\n\t\t\t\tthis.setUnits(units);\r\n\t\t\t}\r\n\r\n\t\t\tif (tradeNameValue[0].equals(\"pricePerUnit\") && tradeNameValue.length == 2) {\r\n\r\n\t\t\t\tDouble pricePerUnit = Double.valueOf(tradeNameValue[1].trim());\r\n\t\t\t\tthis.setPricePerUnit(pricePerUnit);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}",
"public BLeafNode(E element, double xCoordinate, double yCoordinate)\n\t{\n\t\tsetX(xCoordinate);\n\t\tsetY(yCoordinate);\n\t\tcargo = element;\n\t}",
"public QueueNode(T element) {\n\t\t//TODO - fill in implementation\n\t\t//TODO - write unit tests\n\t}",
"protected Article(OntologyElement element) {\n\t\tthis.element = element;\n\t\tthis.ontology = element.getOntology();\n\t}",
"public void placeSettlement(int playerID, VertexLocation loc) {\n\t\tVertex vert = verticies.get(loc.getNormalizedLocation());\n\t\tvert.setPiece(new Piece(PieceType.SETTLEMENT, null, null, playerID));\n\t}",
"public AIMain(FreeColServer freeColServer, Element element) {\n this(freeColServer);\n readFromXMLElement(element);\n }",
"ProductUnit() {\n _elements = new Element[0];\n }",
"public Transaction() {\n this(0, 0, null);\n }",
"public ExtendedWorkObject(IElement element) {\r\n\t\tthis.element = element;\r\n\t\tthis.element.setWorkObject(this);\r\n\t}",
"public Trade() {\n\t}",
"private void createTx() throws Exception {\n PublicKey recipient = Seed.getRandomAddress();\n Transaction tx = new Transaction(wallet.pb, recipient, wallet.pr);\n//\t\tSystem.out.println(\"Created a tx\");\n txPool.add(tx);\n//\t\tcache.put(tx.txId, null);\n sendTx(tx);\n }",
"public static TournamentMode create(Element element) {\n\n\t\tString className = Xml.getProperty(element, \"class\", \"Single\");\n\t\tclassName = \"gpoker.modes.\" + className;\n\t\tString[] constructorClassNames = {\"org.jdom2.Element\"};\n\t\tObject[] constructorParameters = {element};\n\n\t\treturn (TournamentMode)Utilities.instantiate(className, constructorClassNames, constructorParameters);\n\t}",
"public void settInn(T element){\n Node temp = new Node(element);\n temp.neste = hode.neste;\n temp.neste.forrige = temp;\n temp.forrige = hode;\n hode.neste = temp;\n elementer++;\n\n\n }",
"public void settInn(T element);",
"tAmount inittAmount(tAmount iTAmount)\n {\n iTAmount.updateElementValue(\"tAmount\");\n return iTAmount;\n }",
"public Node(T element) {\n\t\tthis.element = element;\n\t\tthis.next = null;\n\t}",
"public TimeStamp(Element timestampElement) throws Exception {\r\n this(timestampElement, true);\r\n }",
"Element createXmlDeepSkyTargetElement(Element element, String xsiType) {\n\n if (element == null) {\n return null;\n }\n\n Document ownerDoc = element.getOwnerDocument();\n\n // Get or create the container element\n Element e_Targets = null;\n boolean created = false;\n NodeList nodeList = ownerDoc.getElementsByTagName(RootElement.XML_TARGET_CONTAINER);\n if (nodeList.getLength() == 0) { // we're the first element. Create container element\n e_Targets = ownerDoc.createElement(RootElement.XML_TARGET_CONTAINER);\n created = true;\n } else {\n e_Targets = (Element) nodeList.item(0); // there should be only one container element\n }\n\n // Check if this element doesn't exist so far\n nodeList = e_Targets.getElementsByTagName(ITarget.XML_ELEMENT_TARGET);\n if (nodeList.getLength() > 0) {\n Node currentNode = null;\n NamedNodeMap attributes = null;\n for (int i = 0; i < nodeList.getLength(); i++) { // iterate over all found nodes\n currentNode = nodeList.item(i);\n attributes = currentNode.getAttributes();\n Node idAttribute = attributes.getNamedItem(ISchemaElement.XML_ELEMENT_ATTRIBUTE_ID);\n if ((idAttribute != null) // if ID attribute is set and equals this objects ID, return existing element\n && (idAttribute.getNodeValue().trim().equals(this.getID().trim()))) {\n // Not sure if this is good!? Maybe we should return currentNode and make\n // doublicity check in caller\n // class!?\n return null;\n }\n }\n }\n\n // Create the new target element\n Element e_Target = this.createXmlTargetElement(e_Targets);\n e_Targets.appendChild(e_Target);\n\n // Set XSI:Type\n e_Target.setAttribute(ITarget.XML_XSI_TYPE, xsiType);\n\n if (smallDiameter != null) {\n Element e_SmallDiameter = ownerDoc.createElement(XML_ELEMENT_SMALLDIAMETER);\n e_SmallDiameter = smallDiameter.setToXmlElement(e_SmallDiameter);\n\n e_Target.appendChild(e_SmallDiameter);\n }\n\n if (largeDiameter != null) {\n Element e_LargeDiameter = ownerDoc.createElement(XML_ELEMENT_LARGEDIAMETER);\n e_LargeDiameter = largeDiameter.setToXmlElement(e_LargeDiameter);\n\n e_Target.appendChild(e_LargeDiameter);\n }\n\n if (!Float.isNaN(visibleMagnitude)) {\n Element e_VisMag = ownerDoc.createElement(XML_ELEMENT_VISIBLEMAGNITUDE);\n Node n_VisMagText = ownerDoc.createTextNode(Float.toString(this.getVisibleMagnitude()));\n e_VisMag.appendChild(n_VisMagText);\n\n e_Target.appendChild(e_VisMag);\n }\n\n if (surfaceBrightness != null) {\n Element e_SurfBr = ownerDoc.createElement(XML_ELEMENT_SURFACEBRIGHTNESS);\n e_SurfBr = surfaceBrightness.setToXmlElement(e_SurfBr);\n\n e_Target.appendChild(e_SurfBr);\n }\n\n // If container element was created, add container here so that XML sequence\n // fits forward references\n // Calling the appendChild in the if avbe would cause the session container to\n // be located before\n // observers and sites container\n if (created) {\n ownerDoc.getDocumentElement().appendChild(e_Targets);\n }\n\n return e_Target;\n\n }",
"BrainTreeSubmitForSettlementTransactionResult submitForSettlementTransaction(\n\t\t\tBrainTreeSubmitForSettlementTransactionRequest request);",
"public LinkedBinaryTree(T element){\n\t\t root = new BinaryTreeNode<T>(element);\n\t }",
"public void setPrincipleElement(ElementStub principleElement)\n {\n this.principleElement = principleElement;\n }",
"public void init(Element element) throws ConfigurationException {\r\n\r\n \tthis.infobusUrl = DOMUtils.getAttribute(element, \"infobusUrl\", true);\r\n\r\n\t}",
"public SettlementBean() {\r\n entitymanagerbean = new EntityManagerBean();\r\n }",
"public Transaction(String transactionLine){\r\n\t\t\t//String delims = \"[\\\\s+]\";\r\n\t\t\tString[] tokens = transactionLine.split(\" +\");\r\n\t\t\tif (tokens[0].equals(\"\")){\r\n\t\t\t\tid = 00;\r\n\t\t\t}else{\r\n\t\t\t\tid = Integer.parseInt(tokens[0]);\r\n\t\t\t}\r\n\t\t\tif (id == 0){\r\n\t\t\t\tdate = 0;\r\n\t\t\t\tticket = 0;\r\n\t\t\t\tname = \"\";\r\n\t\t\t}else{\r\n\t\t\t\tdate = Integer.parseInt(tokens[2]);\r\n\t\t\t\tticket = Integer.parseInt(tokens[3]);\r\n\t\t\t\tname = tokens[1];\r\n\t\t\t\t\t\t\r\n\t\t\t}\r\n\r\n\t }",
"public final void setType(final SettlementType newType) {\n if (type != null) removeFeatures(type);\n this.type = newType;\n if (newType != null) addFeatures(newType);\n }",
"public void buySettlement(Vertex vertex) throws CannotBuyException, InsufficientPlayerResourcesException, AllPiecesPlayedException{\n\t\t if(canDoBuySettlement() == false) {\n\t\t\t throw new CannotBuyException(\"Cannot Buy Settlement, possibly no vertex to place a settlement\");\n\t\t }\n\t\t resourceCardHand.payForSettlement();\n\t\t playerPieces.placeSettlement(vertex);\n\t\t // increment victory points\n\t\t totalVictoryPoints++;\n\t }",
"public Instruction startNode(@Nullable final PsiElement element) {\n final Instruction instruction = new InstructionImpl(this, element);\n addNode(instruction);\n checkPending(instruction);\n return instruction;\n }",
"public XMLElement() {\n this(new Properties(), false, true, true);\n }",
"public TradeData(ICurrency cur, IEntity ent, ITradeType tradeType, String instructionDate, String settlementDate, int units,\r\n\t\t\tdouble pricePerUnit) {\r\n\t\tsuper();\r\n\t\tthis.cur = cur;\r\n\t\tthis.ent = ent;\r\n\t\tthis.tradeType = tradeType;\r\n\r\n\t\ttry {\r\n\r\n\t\t\tthis.instructionDate = this.sdf.parse(instructionDate);\r\n\r\n\t\t\t/*\r\n\t\t\t * I used the setSettlementDate to initialise the param to force\r\n\t\t\t * settlement date not to fall on weekend\r\n\t\t\t */\r\n\r\n\t\t\tthis.setSettlementDate(settlementDate);\r\n\r\n\t\t} catch (ParseException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tthis.units = units;\r\n\r\n\t\tthis.pricePerUnit = pricePerUnit;\r\n\r\n\t}",
"public void newElement() {\n Location = null;\n Name = null;\n MyFont = FontList.FONT_LABEL;\n }",
"public CampLease( ) {}",
"private Transaction setUpTransaction(double amount, Transaction.Operation operation, String username){\n Transaction transaction = new Transaction();\n transaction.setDate(Date.valueOf(LocalDate.now()));\n transaction.setAmount(amount);\n transaction.setOperation(operation);\n transaction.setUserId(userRepository.getByUsername(username).getId());\n return transaction;\n }",
"public Market() {\n }",
"private CommunityChestCard createCommunityChestElement(Element eElement) {\r\n\t\treturn new CommunityChestCard(\r\n\t\t\tInteger.parseInt(eElement.getAttribute(\"id\"))\r\n\t\t\t,eElement.getElementsByTagName(\"name\").item(0).getTextContent()\r\n\t\t\t,eElement.getElementsByTagName(\"description\").item(0).getTextContent()\r\n\t\t\t,Card.Type.valueOf(eElement.getElementsByTagName(\"type\").item(0).getTextContent())\r\n\t\t\t,eElement.getElementsByTagName(\"amount\").item(0).getTextContent()\r\n\t\t);\r\n\t}",
"public void setElement(T elem)\n {\n\n element = elem;\n }",
"public ElementoInicial() {\r\n\t\tsuper();\r\n\t}",
"BElement createBElement();",
"public ThreadAvnet(Element element) {\n this.element = element;\n // run();\n }",
"@Override\r\n\tpublic void placeSettlement(VertexLocation vertLoc) {\n\t\t\r\n\t}",
"public Instruction(\n\t\t\tString entity, \n\t\t\tString instructionType,\n\t\t\tDouble agreedFx,\n\t\t\tString currency, \n\t\t\tString instructionDate,\n\t\t\tString instructedSettlementDate,\n\t\t\tInteger units,\n\t\t\tDouble pricePerUnit\n\t\t\t) throws Exception \n\t{\n\t\tsuper();\n\t\t\n\t\t//creates an object of InstructionFinances class\n\t\tthis.instructionFinances = new InstructionFinances(\n\t\tBigDecimal.valueOf(agreedFx), Currency.getInstance(currency), BigDecimal.valueOf(pricePerUnit),units);\n\t\tthis.entity = entity;\n\t\t//get instruction type enum from instructionType string\n\t\tthis.instructionType = InstructionTypeEnum.fromString(instructionType);\n\t\t//string to date conversion\n\t\tthis.instructionDate = Utils.getParsedDate(instructionDate);\n\t\t//string to date conversion\n\t\tthis.instructedSettlementDate = Utils.getParsedDate(instructedSettlementDate);\n\t\t//check and derive next working Settlement Date based on instructedSettlementDate\n\t\tthis.settlementDate = Utils.getDerivedSettlementDate(this);\n\t\t\n\t}",
"public Builder setSettlementCurrencyBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00020000;\n settlementCurrency_ = value;\n onChanged();\n return this;\n }",
"public BoletoPaymentRequest() {\n\n }",
"public void setElement(String element) {\n this.element = element;\n }",
"protected SVGOMFETurbulenceElement() {\n\t}",
"public edu.nps.moves.jaxb.dis.DetonationPdu initializeJaxbObject(edu.nps.moves.jaxb.dis.DetonationPdu x)\n {\n super.initializeJaxbObject(x); // Call superclass initializer\n\n ObjectFactory factory = new ObjectFactory();\n\n x.setMunitionID( this.getMunitionID().initializeJaxbObject(factory.createEntityID()) );\n x.setEventID( this.getEventID().initializeJaxbObject(factory.createEventID()) );\n x.setVelocity( this.getVelocity().initializeJaxbObject(factory.createVector3Float()) );\n x.setLocationInWorldCoordinates( this.getLocationInWorldCoordinates().initializeJaxbObject(factory.createVector3Double()) );\n x.setBurstDescriptor( this.getBurstDescriptor().initializeJaxbObject(factory.createBurstDescriptor()) );\n x.setDetonationResult( this.getDetonationResult() );\n x.setNumberOfArticulationParameters( this.getNumberOfArticulationParameters() );\n x.setPad( this.getPad() );\n\n List articulationParameters_1 = x.getArticulationParameters();\n for(int idx = 0; idx < articulationParameters.size(); idx++)\n {\n ArticulationParameter a = (edu.nps.moves.dis.ArticulationParameter)articulationParameters.get(idx);\n articulationParameters_1.add(a.initializeJaxbObject(factory.createArticulationParameter()));\n }\n return x;\n }",
"public SEDataThread(String storElement)\n {\n nodeChoice = storElement;\n }",
"public ElementSerializer() {\n _lock = new Object();\n }",
"void buildSettlement(VertexLocation vert, boolean free);",
"SSElements createSSElements();",
"ShipmentItemBilling createShipmentItemBilling();",
"public ChemicalElement()\r\n\t{\r\n\t\tnameOfElement = \" \";\r\n\t\tchemicalSymbol = \" \";\r\n\t\tatomicNumber = 0;\r\n numOfElements++;\r\n\t}",
"@RequiresApi(api = Build.VERSION_CODES.O)\n public OneWayTrade(TransactionRequest re, LocalDateTime meetingTime) {\n super(re.getOwner(), re.getTheOtherUser(), re, meetingTime);\n this.item = re.getItemsToTrade().get(0);\n }",
"public Transaction(final double newBalance) { // but This shouldn't happen\n this(newBalance, 0, null);\n }",
"public void setSettlementno(Integer settlementno) {\n this.settlementno = settlementno;\n }",
"public Transaction(int somme, int payeur, int receveur) {\r\n\t\tthis.somme = somme;\r\n\t\tthis.payeur = payeur;\r\n\t\tthis.receveur = receveur;\r\n\t}",
"private PersistentStack(T element, PersistentStack<T> parent) {\n\t\tObjects.requireNonNull(element);\n\t\tObjects.requireNonNull(parent);\n\t\tthis.parent = parent;\n\t\tthis.element = element;\n\t\tthis.size = parent.size + 1;\n\t\tthis.hashCode = Objects.hash(parent, element);\n\t}",
"public Merchant() {}",
"public UnconstrainedBid(Collection<UnconstrainedBidElement> elements, MarketBasis marketBasis) {\n if (elements == null || elements.isEmpty()) {\n throw new IllegalStateException(\"Cannot construct an empty UnconstrainedBid\");\n }\n this.elements = new TreeSet<UnconstrainedBidElement>();\n this.elements.addAll(elements);\n this.marketBasis = marketBasis;\n constructBid();\n }",
"public void startNewSale() {\n sale = new Sale(cashRegister);\n }",
"private Department createDepartmentFromElement(Element element){\n Integer id = Integer.parseInt(element.getAttribute(\"id\"));\n String name = element.getElementsByTagName(\"name\").item(0).getTextContent();\n Integer nrPlaces = Integer.parseInt(\n element.getElementsByTagName(\"numberOfPlaces\").item(0).getTextContent());\n return new Department(id, name, nrPlaces);\n }",
"public void setElement(E element) {\n\t\t\tthis.element = element;\n\t\t}",
"@Test\n\tpublic static void testConstructorAndGetters() {\n\n\t\tCompoundMadeOfElement comp = new CompoundMadeOfElement(1, 2, 5);\n\t\tassertEquals(comp.getCompoundID(), 1);\n\t\tassertEquals(comp.getElementID(), 2);\n\t\tassertEquals(comp.getElementQuantity(), 5);\n\t}",
"public AttributeSet(Object elem) {\n\n elements = new Hashtable(1, 1);\n elements.put(elem, elem);\n }",
"public void createTransaction(Transaction trans);"
] | [
"0.6340883",
"0.6156559",
"0.5934371",
"0.5770392",
"0.55455893",
"0.5381667",
"0.53056246",
"0.5229684",
"0.51957214",
"0.51929146",
"0.5187814",
"0.5174564",
"0.5158662",
"0.51444894",
"0.51357865",
"0.51062757",
"0.5103934",
"0.5090377",
"0.5089412",
"0.5083522",
"0.50822157",
"0.5075056",
"0.5073747",
"0.5063701",
"0.5045937",
"0.50428677",
"0.5023008",
"0.49875018",
"0.4978985",
"0.49788836",
"0.4976839",
"0.49731934",
"0.49671605",
"0.49406797",
"0.49354014",
"0.49256876",
"0.49117434",
"0.49017823",
"0.4896177",
"0.48865265",
"0.48775172",
"0.48703322",
"0.48670697",
"0.4842642",
"0.48230976",
"0.48209998",
"0.4815986",
"0.48153478",
"0.48112118",
"0.48103774",
"0.48043936",
"0.48011947",
"0.4788233",
"0.47843334",
"0.47787863",
"0.4776009",
"0.47749296",
"0.47374684",
"0.4736632",
"0.47311008",
"0.4730027",
"0.4728183",
"0.47271195",
"0.4726637",
"0.4726185",
"0.47090882",
"0.47037625",
"0.46938488",
"0.4693139",
"0.46923962",
"0.468376",
"0.4682171",
"0.46798047",
"0.4673096",
"0.46697003",
"0.4665484",
"0.4653261",
"0.46488982",
"0.46457317",
"0.46433744",
"0.46429577",
"0.46395996",
"0.463394",
"0.46296358",
"0.4629578",
"0.46272242",
"0.46195102",
"0.46102715",
"0.460742",
"0.45963103",
"0.45796448",
"0.4578908",
"0.4576595",
"0.45713377",
"0.45683008",
"0.45621604",
"0.45565993",
"0.45538276",
"0.45538184",
"0.45475835"
] | 0.5861774 | 3 |
Get the Type value. | public final SettlementType getType() {
return type;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Class getType() {\n Object value = getValue();\n if (value == null)\n return null;\n\n Class type = value.getClass();\n if (type == Integer.class)\n return int.class;\n if (type == Float.class)\n return float.class;\n if (type == Double.class)\n return double.class;\n if (type == Long.class)\n return long.class;\n return String.class;\n }",
"public int getTypeValue() {\n\t\t\treturn type_;\n\t\t}",
"public int getTypeValue() {\n\t\t\t\t\treturn type_;\n\t\t\t\t}",
"public int getTypeValue() {\n\t\t\t\treturn type_;\n\t\t\t}",
"public int getTypeValue() {\n\t\t\t\treturn type_;\n\t\t\t}",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public Class<?> getType() {\n return this.value.getClass();\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public Type getValue() {\n Type ret = null;\n try {\n Constructor constructor = valueClass.getConstructor(new Class[] { String.class });\n ret = (Type) constructor.newInstance(data);\n } catch (Exception e) {\n throw new ClassCastException();\n }\n return ret;\n }",
"@java.lang.Override public int getTypeValue() {\n return type_;\n }",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"public Type getType() {\n return this.mType;\n }",
"public Type getType();",
"public type getType() {\r\n\t\treturn this.Type;\r\n\t}",
"@java.lang.Override\n public int getTypeValue() {\n return type_;\n }",
"@java.lang.Override\n public int getTypeValue() {\n return type_;\n }",
"public Type getType() {\n\t\treturn this.type;\n\t}",
"public Type getType() {\n\t\treturn mType;\n\t}",
"@java.lang.Override public int getTypeValue() {\n return type_;\n }",
"public String getType() {\n return (String) getObject(\"type\");\n }",
"public Type getType() {\r\n return this.type;\r\n }",
"@Override\n\tpublic T getType() {\n\t\treturn this.type;\n\t}",
"public Type getType() {\n return this.type;\n }",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"public Type getType() {\n @SuppressWarnings(\"deprecation\")\n Type result = Type.valueOf(type_);\n return result == null ? Type.UNRECOGNIZED : result;\n }",
"public Type getType(){\n\t\treturn this.type;\n\t}",
"public Type getType() {\n\t\treturn type;\n\t}",
"public Type getType() {\n\t\treturn type;\n\t}",
"@Override public int getTypeValue() {\n return type_;\n }",
"public Type getType() {\n @SuppressWarnings(\"deprecation\")\n Type result = Type.valueOf(type_);\n return result == null ? Type.UNRECOGNIZED : result;\n }",
"@java.lang.Override\n public int getTypeValue() {\n return type_;\n }",
"@java.lang.Override\n public int getTypeValue() {\n return type_;\n }",
"public final Type getType(){\r\n return type;\r\n }",
"public Type getType () {\n\t\treturn type;\n\t}",
"public Type getType() {\n return type;\n }",
"public Type getType() {\n return type;\n }",
"public Type getType() {\n return type;\n }",
"public Type getType() {\n return type;\n }",
"public Type getType() {\n return type;\n }",
"public Type getType() {\n return type;\n }",
"public Type getType() {\n return type;\n }",
"public Type getType() {\n return type;\n }",
"public Type getType() {\n return type;\n }",
"public Type getType() {\n return type;\n }",
"public Type getType() {\n return type;\n }",
"public String obtenirType() {\n\t\treturn this.type;\n\t}",
"public Type getType() {\n return _type;\n }",
"public Type getType() {\n return type;\n }",
"public JavaType getType() { return _type; }",
"public Type getType()\n {\n return type;\n }",
"@NotNull\n abstract public Type getType();",
"@Override public int getTypeValue() {\n return type_;\n }",
"public Object getType()\r\n {\r\n\treturn type;\r\n }",
"public String getType() {\n return m_Type;\n }",
"public String getType() {\n\t return mType;\n\t}",
"public String getType()\r\n {\r\n return mType;\r\n }",
"public java.lang.Integer getType() {\n return type;\n }",
"public java.lang.Integer getType() {\n return type;\n }",
"public String getType() {\n return m_type;\n }",
"public int getType()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPE$2);\n if (target == null)\n {\n return 0;\n }\n return target.getIntValue();\n }\n }",
"public int getType() {\n return theType;\n }",
"public int getType() {\n\t\treturn this.mType;\n\t}",
"public Integer getType() {\n\t\treturn type;\n\t}",
"public Integer getType() {\n return type;\n }",
"public Integer getType() {\n return type;\n }"
] | [
"0.81663626",
"0.81093305",
"0.8108208",
"0.8066424",
"0.8066424",
"0.8049838",
"0.8049838",
"0.8049838",
"0.8049838",
"0.8049838",
"0.8044613",
"0.80346006",
"0.80346006",
"0.80346006",
"0.8031619",
"0.8031619",
"0.8031619",
"0.8031619",
"0.8031619",
"0.8006257",
"0.79639304",
"0.79639304",
"0.7753651",
"0.77490985",
"0.77183604",
"0.77183604",
"0.77183604",
"0.77183604",
"0.77183604",
"0.77183604",
"0.77183604",
"0.77183604",
"0.77183604",
"0.77183604",
"0.77183604",
"0.7705836",
"0.76946956",
"0.7684603",
"0.76779526",
"0.76779526",
"0.7666856",
"0.7644276",
"0.7640185",
"0.7619652",
"0.75702447",
"0.75683403",
"0.7557658",
"0.7553937",
"0.7553937",
"0.7553937",
"0.7553937",
"0.7553937",
"0.7553937",
"0.7553937",
"0.7553937",
"0.7553937",
"0.7553937",
"0.7553937",
"0.7553937",
"0.7553937",
"0.7548683",
"0.754546",
"0.75341463",
"0.75341463",
"0.75289184",
"0.7524297",
"0.7511955",
"0.7511955",
"0.74732333",
"0.7471577",
"0.745444",
"0.74526536",
"0.74526536",
"0.74526536",
"0.74526536",
"0.74526536",
"0.74526536",
"0.74526536",
"0.74526536",
"0.74526536",
"0.74526536",
"0.74517274",
"0.7432374",
"0.7428876",
"0.7421416",
"0.73906606",
"0.7367753",
"0.7361293",
"0.7356273",
"0.73305255",
"0.7305785",
"0.7302642",
"0.72995144",
"0.72995144",
"0.72962046",
"0.7292089",
"0.72827667",
"0.7274371",
"0.7269743",
"0.7265569",
"0.7265569"
] | 0.0 | -1 |
Set the Type value. | public final void setType(final SettlementType newType) {
if (type != null) removeFeatures(type);
this.type = newType;
if (newType != null) addFeatures(newType);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setType(Type t) {\n type = t;\n }",
"public void setType(Type t) {\n\t\ttype = t;\n\t}",
"public void setType(String value) {\n this.type = value;\n }",
"public void setType(type type) {\r\n\t\tthis.Type = type;\r\n\t}",
"public Builder setType(Type value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n type_ = value.getNumber();\n onChanged();\n return this;\n }",
"public void setType(int value) {\n this.type = value;\n }",
"public void setType( Type type ) {\n assert type != null;\n this.type = type;\n }",
"void setType(Type type)\n {\n this.type = type;\n }",
"public void setType(Type type){\n\t\tthis.type = type;\n\t}",
"public void setType(Type type) {\n this.type = type;\n }",
"public void setType(Type type) {\n this.type = type;\n }",
"public void setType(Type type) {\n this.type = type;\n }",
"public void setType(Object type)\r\n {\r\n\tthis.type = type;\r\n }",
"@JSProperty(\"type\")\n void setType(Type value);",
"public void setType(String type) {\n m_Type = type;\n }",
"public void setType(String val) {\n type = val;\n }",
"final public void setType(String type)\n {\n setProperty(TYPE_KEY, (type));\n }",
"private void setType(String type) {\n mType = type;\n }",
"public void set_type(String t)\n {\n type =t;\n }",
"public void setType(final Type type) {\n this.type = type;\n }",
"public void setType(String type);",
"public void setType(String type);",
"public void setType(String type);",
"public void setType(int t) {\r\n\t\ttype = t;\r\n\t}",
"public void setType(String t) {\n\ttype = t;\n }",
"@Override\n\tpublic void setType(Type t) {\n\t\theldObj.setType(t);\n\t}",
"public void setType (String typ) {\n type = typ;\n }",
"public void setType(String type)\r\n {\r\n this.mType = type;\r\n }",
"public void setType(int t){\n this.type = t;\n }",
"public void setType(String t) {\n\t\tthis.type = t;\n\t}",
"void setType(java.lang.String type);",
"public void setType(String aType) {\n iType = aType;\n }",
"public void setType(int pType) {\n mType = pType;\n }",
"public final void setType(String type){\n\t\tthis.type = type;\t\n\t}",
"@JsProperty(name = \"type\")\n public native void setType(String value);",
"public void setType(String type) {\n\t this.mType = type;\n\t}",
"public void setType( int type ) {\r\n typ = type;\r\n }",
"public void setType(String inType)\n {\n\ttype = inType;\n }",
"public static void setType(String type) {\n Globals.type = type;\n setProperty(\"type\", type);\n }",
"public void setType(int type)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPE$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TYPE$2);\n }\n target.setIntValue(type);\n }\n }",
"public Builder setType(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n type_ = value;\n onChanged();\n return this;\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"void setType(String type) {\n this.type = type;\n }",
"public final void setType(String type) {\n this.type = type;\n }",
"public void setType(String type){\n \tthis.type = type;\n }",
"public void setType(gov.nih.nci.calims2.domain.common.Type type) {\n this.type = type;\n }",
"public void setType(final int t) {\n\t\ttype = t;\n\t}",
"public Builder setType(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n type_ = value;\n onChanged();\n return this;\n }",
"public Builder setType(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n type_ = value;\n onChanged();\n return this;\n }",
"public Builder setType(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n type_ = value;\n onChanged();\n return this;\n }",
"public void setType (String type) {\n this.type = type;\n }",
"public void setType (String type) {\n this.type = type;\n }",
"public void setType (String type) {\n this.type = type;\n }",
"public void setType(String type) \n {\n this.type = type;\n }",
"public Builder setType(int value) {\n bitField0_ |= 0x00000020;\n type_ = value;\n onChanged();\n return this;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public Builder setType(int value) {\n bitField0_ |= 0x00000002;\n type_ = value;\n onChanged();\n return this;\n }",
"public Builder setType(int value) {\n bitField0_ |= 0x00000002;\n type_ = value;\n onChanged();\n return this;\n }",
"public void setType(int type) {\n type_ = type;\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type){\r\n if(type == null){\r\n throw new IllegalArgumentException(\"Type can not be null\");\r\n }\r\n this.type = type;\r\n }",
"public void setType( String type )\n {\n this.type = type;\n }",
"@Override\n public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public Builder setType(int value) {\n bitField0_ |= 0x00000001;\n type_ = value;\n onChanged();\n return this;\n }",
"public void setType( String type ) {\n this.type = type;\n }",
"public void setType(String type) {\r\r\n\t\tthis.type = type;\r\r\n\t}",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type){\n this.type = type;\n }",
"public void setType(Class type) {\n\t this.type = type;\n\t }",
"public void setType(int type) {\r\n this.type = type;\r\n }",
"public void setType(int type) {\r\n this.type = type;\r\n }",
"public void setType (int type) {\n this.type = type;\n }",
"public void setType (int type) {\n this.type = type;\n }",
"public final native void setType(String type) /*-{\n this.setType(type);\n }-*/;",
"public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}",
"public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}",
"public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}",
"public Builder setType(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n type_ = value;\n onChanged();\n return this;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }"
] | [
"0.82659453",
"0.81620073",
"0.8029099",
"0.7803738",
"0.77851284",
"0.7721031",
"0.7660745",
"0.76567817",
"0.7647423",
"0.7634834",
"0.7634834",
"0.7634834",
"0.7628931",
"0.7625795",
"0.7598892",
"0.759806",
"0.75339913",
"0.75075346",
"0.7478593",
"0.7476812",
"0.7466154",
"0.7466154",
"0.7466154",
"0.7440212",
"0.7432614",
"0.7420924",
"0.74201703",
"0.74188876",
"0.7408187",
"0.7384827",
"0.7384147",
"0.73682946",
"0.7354658",
"0.7353279",
"0.7353245",
"0.7334392",
"0.7311869",
"0.7259301",
"0.72584176",
"0.7254046",
"0.7223905",
"0.72235376",
"0.72155875",
"0.72084165",
"0.7205248",
"0.71956414",
"0.7193816",
"0.7192607",
"0.7187936",
"0.7187936",
"0.7187368",
"0.7187368",
"0.7187368",
"0.7186933",
"0.71838135",
"0.71717626",
"0.71662086",
"0.71662086",
"0.7164997",
"0.7161201",
"0.7161201",
"0.7161201",
"0.7161201",
"0.7156246",
"0.7153686",
"0.7144611",
"0.7133173",
"0.71280116",
"0.71251273",
"0.7118288",
"0.7115682",
"0.7115682",
"0.7115081",
"0.7112959",
"0.7106449",
"0.7106449",
"0.71030146",
"0.71030146",
"0.7097928",
"0.7082727",
"0.7082727",
"0.7082727",
"0.7082453",
"0.706007",
"0.7054393",
"0.7054393",
"0.7054393",
"0.7054393",
"0.7054393",
"0.7054393",
"0.7054393",
"0.7054393",
"0.7054393",
"0.7054393",
"0.7054393",
"0.7054393",
"0.7054393",
"0.7054393",
"0.7054393",
"0.7054393",
"0.7054393"
] | 0.0 | -1 |
TODO: remove this again | public String getNameKey() {
return getName();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"protected boolean func_70814_o() { return true; }",
"private void poetries() {\n\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"public final void mo51373a() {\n }",
"@Override\n public int describeContents() { return 0; }",
"private void kk12() {\n\n\t}",
"public void method_4270() {}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"private void m50366E() {\n }",
"private static void cajas() {\n\t\t\n\t}",
"private void strin() {\n\n\t}",
"protected MetadataUGWD() {/* intentionally empty block */}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"public void mo38117a() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override public int describeContents() { return 0; }",
"@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}",
"private void getStatus() {\n\t\t\n\t}",
"@Override\n protected void init() {\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"private static void iterator() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n public int retroceder() {\n return 0;\n }",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\n\tprotected void parseResult() {\n\t\t\n\t}",
"@Override\n\tpublic void apply() {\n\t\t\n\t}",
"protected void mo6255a() {\n }",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public abstract void mo70713b();",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"@Override\n public void init() {\n\n }",
"private void init() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"public void mo4359a() {\n }",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\n public int describeContents() {\n// ignore for now\n return 0;\n }",
"@Override\n public void preprocess() {\n }",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"protected abstract Set method_1559();",
"public void smell() {\n\t\t\n\t}",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"@Override\n\tpublic void jugar() {}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\r\n\tpublic void init() {}",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void init() {\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"private MetallicityUtils() {\n\t\t\n\t}",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"public void mo21877s() {\n }",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"@Override\n void init() {\n }",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t}"
] | [
"0.57608825",
"0.56927633",
"0.56409836",
"0.56380314",
"0.5601615",
"0.5593928",
"0.5578397",
"0.554326",
"0.55002713",
"0.54223406",
"0.5418913",
"0.540406",
"0.5401042",
"0.53939986",
"0.53873765",
"0.5386811",
"0.5380606",
"0.53665835",
"0.53362465",
"0.53311366",
"0.53311366",
"0.5313939",
"0.5308359",
"0.5296277",
"0.52841806",
"0.5283909",
"0.5270248",
"0.5260903",
"0.526033",
"0.52452195",
"0.52132577",
"0.52129006",
"0.51717573",
"0.51669705",
"0.51669705",
"0.516627",
"0.5161008",
"0.5161008",
"0.5161008",
"0.5161008",
"0.5161008",
"0.5161008",
"0.51503307",
"0.51496387",
"0.5147441",
"0.51471937",
"0.5137757",
"0.5132214",
"0.51307297",
"0.51307297",
"0.51295745",
"0.51184267",
"0.5113084",
"0.51092535",
"0.5103593",
"0.510056",
"0.5090876",
"0.5086502",
"0.5085602",
"0.5084324",
"0.5078811",
"0.5072196",
"0.5043774",
"0.5043774",
"0.5043774",
"0.5043774",
"0.5043774",
"0.5040427",
"0.50388044",
"0.50384426",
"0.50383955",
"0.5038338",
"0.5029659",
"0.50280565",
"0.50271404",
"0.5015369",
"0.5015236",
"0.50058246",
"0.5004843",
"0.50047",
"0.5000671",
"0.49955752",
"0.49921176",
"0.49921176",
"0.49913207",
"0.4991294",
"0.49851674",
"0.49703214",
"0.49682936",
"0.49676928",
"0.49667433",
"0.49652988",
"0.49635577",
"0.49603647",
"0.49582762",
"0.49582762",
"0.49582762",
"0.49533826",
"0.49528584",
"0.49497515",
"0.49497515"
] | 0.0 | -1 |
Gets the name of this Settlement. | public String getName() {
return name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getName() {\n return name.get();\n }",
"@Override\n\t\tfinal public String getName() {\n\t\t\treturn this.Name;\n\t\t}",
"public String getName() {\n\t\treturn this.toString();\n\t}",
"public String getName() {\r\n\t\treturn name.get();\r\n\t}",
"public String getName() {\r\n return this.name();\r\n }",
"public String getName() {\n\t\t\treturn this.name;\n\t\t}",
"public final String getName() {\n return this.name;\n }",
"public String getName() {\n\t\t\treturn name;\n\t\t}",
"public String getName() {\n\t\t\treturn name;\n\t\t}",
"public String getName() {\n\t\t\treturn name;\n\t\t}",
"public String getName() {\n\t\t\treturn name;\n\t\t}",
"public String getName() {\n\t\t\treturn name;\n\t\t}",
"public String getName() {\n\t\t\treturn name;\n\t\t\t//\n\t\t}",
"public java.lang.String getName() {\n return name;\n }",
"public String getName() {\r\n assert name != null;\r\n return name;\r\n }",
"public String getName() {\n return name_;\n }",
"public String getName() {\n return name_;\n }",
"public String getName() {\n return name_;\n }",
"public java.lang.String getName() {\r\n return this._name;\r\n }",
"public String getName() {\n return name;\n }",
"public String getName() {\n return name;\n }",
"public String getName() {\n return name;\n }",
"public String getName() {\n return name;\n }",
"public String getName() {\n return name;\n }",
"public String getName() {\n return name;\n }",
"public String getName() {\n\n return this.name;\n }",
"public String getName() {\n\n\t\treturn name;\n\t}",
"public String getName() {\n\n\t\treturn name;\n\t}",
"public String getName () {\n return name;\n }",
"public String getName () {\n return name;\n }",
"public String getName () {\n return name;\n }",
"public String getName() {\r\n\t\t\treturn name;\r\n\t\t}",
"@Override\n\t\t\tpublic String getName() {\n\t\t\t\treturn name;\n\t\t\t}",
"public final String getName() {\r\n return name;\r\n }",
"public String getName() {\n\t\treturn(name);\n\t}",
"public String getName ()\n {\n return name_;\n }",
"public String getName() {\r\n\t\treturn \"[\" + teamNo + \"] \" + name;\r\n\t}",
"public String getName() {\n return name;\n }",
"public String getName() {\n return name;\n }",
"public String getName() {\n return name;\n }",
"public String getName() {\r\n return name;\r\n }",
"public String getName() {\r\n return name;\r\n }",
"public final String getName() {\n return name;\n }",
"public final String getName() {\n return name;\n }",
"public final String getName() {\n return name;\n }",
"public final String getName() {\n return name;\n }",
"public final String getName() {\n return name;\n }",
"public\tString\tgetName() {\n\t\t\treturn\tthis.name;\n\t\t}",
"public String getName()\n\t\t{\n\t\t\treturn this.name;\n\t\t}",
"public final String getName() {\n\t\treturn this.name;\n\t}",
"public String GetName() {\n\t\treturn this.name;\n\t}",
"public String getName()\r\n\t{\r\n\t\treturn this._name;\r\n\t}",
"public java.lang.String getName() {\n return this.name;\n }",
"@Override\n\tpublic String getName() {\n\n\t\treturn name;\n\t}",
"public String getName() {\n return this.name;\n }",
"public String getName() {\n return this.name;\n }",
"public String getName() {\n return this.name;\n }",
"public String getName() {\n return this.name;\n }",
"public String getName() {\n return this.name;\n }",
"public String getName() {\n return this.name;\n }",
"public String getName() {\n return this.name;\n }",
"public String getName() {\n return this.name;\n }",
"public com.commercetools.api.models.common.LocalizedString getName() {\n return this.name;\n }",
"public String getName() {\n\n return name ;\n }",
"public String getName() {\n\n return name ;\n }",
"public String getName() {\n\n return name ;\n }",
"public String getName() {\n\t return name;\n\t }",
"public String getName() {\r\n\t\treturn this.name;\r\n\t}",
"public String getName() {\r\n\t\treturn this.name;\r\n\t}",
"public String getName() {\r\n\t\treturn this.name;\r\n\t}",
"public String getName() {\r\n\t\treturn this.name;\r\n\t}",
"public String getName() {\r\n\t\treturn this.name;\r\n\t}",
"public String getName() {\r\n\t\treturn this.name;\r\n\t}",
"public String getName() {\r\n\t\treturn this.name;\r\n\t}",
"public String getName() {\r\n\t\treturn this.name;\r\n\t}",
"public String getName() {\r\n\t\treturn this.name;\r\n\t}",
"public String getName() {\r\n\t\treturn this.name;\r\n\t}",
"public String getName() {\n return (this.name);\n }",
"public String getName() {\r\n\t\treturn name;\r\n\t}",
"public String getName() {\r\n\t\treturn name;\r\n\t}",
"public String getName() {\r\n\t\treturn name;\r\n\t}",
"public String getName() {\r\n\t\treturn name;\r\n\t}",
"public String getName() {\r\n\t\treturn name;\r\n\t}",
"public String getName() {\r\n\t\treturn name;\r\n\t}",
"public String getName() {\r\n\t\treturn name;\r\n\t}",
"public String getName() {\r\n\t\treturn name;\r\n\t}",
"public String getName() {\r\n\t\treturn name;\r\n\t}",
"public String getName() {\r\n\t\treturn name;\r\n\t}",
"public String getName() {\r\n\t\treturn name;\r\n\t}",
"public String getName() {\r\n\t\treturn name;\r\n\t}",
"public String getName() {\r\n\t\treturn name;\r\n\t}",
"public String getName() {\r\n\t\treturn name;\r\n\t}",
"public String getName() {\r\n\t\treturn name;\r\n\t}",
"public String getName() {\r\n\t\treturn name;\r\n\t}",
"public String getName() {\r\n\t\treturn name;\r\n\t}",
"public String getName() {\r\n\t\treturn name;\r\n\t}",
"public String getName() {\r\n\t\treturn name;\r\n\t}",
"public String getName() {\r\n\t\treturn name;\r\n\t}",
"public String getName() {\r\n\t\treturn name;\r\n\t}",
"public String getName() {\r\n\t\treturn name;\r\n\t}",
"public String getName() {\r\n\t\treturn name;\r\n\t}"
] | [
"0.69783515",
"0.6917586",
"0.6917375",
"0.6915065",
"0.688097",
"0.6879",
"0.68715066",
"0.6862538",
"0.6862538",
"0.6862538",
"0.6862538",
"0.6862538",
"0.6857924",
"0.6848373",
"0.6844706",
"0.6840481",
"0.6840481",
"0.6840481",
"0.6839778",
"0.6832391",
"0.6832391",
"0.6832391",
"0.6832391",
"0.6832391",
"0.6832391",
"0.68305784",
"0.6826278",
"0.6826278",
"0.6818688",
"0.6818688",
"0.6818688",
"0.6816808",
"0.6815215",
"0.6814765",
"0.68134165",
"0.68132263",
"0.68064195",
"0.68062776",
"0.68062776",
"0.68062776",
"0.6806126",
"0.6806126",
"0.68045354",
"0.68045354",
"0.68045354",
"0.68045354",
"0.68045354",
"0.68001753",
"0.68000036",
"0.6797272",
"0.6793787",
"0.67892015",
"0.67880696",
"0.6786929",
"0.67864645",
"0.67864645",
"0.67864645",
"0.67864645",
"0.67864645",
"0.67864645",
"0.67864645",
"0.67864645",
"0.67838734",
"0.6777265",
"0.6777265",
"0.6777265",
"0.67752296",
"0.677342",
"0.677342",
"0.677342",
"0.677342",
"0.677342",
"0.677342",
"0.677342",
"0.677342",
"0.677342",
"0.677342",
"0.6772701",
"0.67722183",
"0.67722183",
"0.67722183",
"0.67722183",
"0.67722183",
"0.67722183",
"0.67722183",
"0.67722183",
"0.67722183",
"0.67722183",
"0.67722183",
"0.67722183",
"0.67722183",
"0.67722183",
"0.67722183",
"0.67722183",
"0.67722183",
"0.67722183",
"0.67722183",
"0.67722183",
"0.67722183",
"0.67722183",
"0.67722183"
] | 0.0 | -1 |
Gets the name of this Settlement for a particular player. | abstract public String getNameFor(Player player); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getName(Player p) {\n\t\treturn name;\n\t}",
"public String getName()\r\n\t{\r\n\t\treturn this.playerName;\r\n\t}",
"public String getPlayerName() {\n\t\tString name = super.getPlayerName();\n\t\treturn name;\n\t}",
"public String getName(){\r\n\t\treturn playerName;\r\n\t}",
"public String getPlayerName() {\n\t\treturn name;\n\t}",
"public String getPlayerName(){\n\t\treturn playerName;\n\t}",
"@Override\n\tpublic String getPlayerName() {\n\t\treturn playerName;\n\t}",
"public String getName(){\n\t\treturn players.get(0).getName();\n\t}",
"public String getPlayerName() {\n\n return m_playerName;\n }",
"public String getPlayerName() {\n return this.playerName;\n }",
"public String getPlayerName() {\n return props.getProperty(\"name\");\n }",
"String getName() {\n return getStringStat(playerName);\n }",
"public String getPlayerName() {\n\t\treturn playerName;\n\t}",
"public String getPlayerName() {\n return playerName;\n }",
"public String getPlayerName() {\n return playerName;\n }",
"String getName(){\n\t\treturn playerName;\n\t}",
"String getPlayerName();",
"public String getPlayerName() {\n return nameLabel.getText().substring(0, nameLabel.getText().indexOf('\\''));\n }",
"public String getPlayerName() {\n \treturn playername;\n }",
"public java.lang.String getPlayerName() {\n java.lang.Object ref = playerName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n playerName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getPlayerName() {\n java.lang.Object ref = playerName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n playerName_ = s;\n return s;\n }\n }",
"public String getPlayerName() {\n return name; \n }",
"public String getFullPlayerName(Player otherPlayer) {\n return this.fullPlayerName;\n }",
"public String getName(){\n\t\treturn this.tournamentName;\n\t}",
"@Override\n public String getPlayerName()\n {\n if (currentPlayer == 0)\n {\n return playerOneName;\n }\n else\n {\n return playerTwoName;\n }\n }",
"public com.google.protobuf.ByteString\n getPlayerNameBytes() {\n java.lang.Object ref = playerName_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n playerName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getPlayerNameBytes() {\n java.lang.Object ref = playerName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n playerName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getName() {\r\n\t\treturn \"[\" + teamNo + \"] \" + name;\r\n\t}",
"public String getPlayername(Player player) {\n System.out.println(\"――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――\");\n System.out.println(\"Merci de d'indiquer le nom du joueur \"+player.getColor().toString(false)+\" : \");\n String name = readInput.nextLine();\n return name;\n }",
"private String getPlayerName() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n String storedName = preferences.getString(\"playerName\",\"none\");\n return storedName;\n }",
"public SettlementPlayer getOwner();",
"public String getPlayerTitle(Player player)\n \t{\n \t\tif (player == null)\n \t\t\treturn \"\";\n \n \t\tFPlayer me = FPlayers.i.get(player);\n \t\tif (me == null)\n \t\t\treturn \"\";\n \n \t\treturn me.getTitle().trim();\n \t}",
"public String toString() {\n\t\treturn \"Player \" + playerNumber + \": \" + playerName;\n\t}",
"public String getPlayerName(){\n return this.playerName;\n\n }",
"public String getPlayerListName ( ) {\n\t\treturn handleOptional ( ).map ( Player :: getPlayerListName ).orElse ( name );\n\t}",
"private String getPlayerName() {\n Bundle inBundle = getIntent().getExtras();\n String name = inBundle.get(USER_NAME).toString();\n return name;\n }",
"public String myGetPlayerName(String name) { \n Player caddPlayer = getServer().getPlayerExact(name);\n String pName;\n if(caddPlayer == null) {\n caddPlayer = getServer().getPlayer(name);\n if(caddPlayer == null) {\n pName = name;\n } else {\n pName = caddPlayer.getName();\n }\n } else {\n pName = caddPlayer.getName();\n }\n return pName;\n }",
"public String getPlayer() {\r\n return player;\r\n }",
"public static String getNameOne() {\n\tString name;\n\tname = playerOneName.getText();\n\treturn name;\n\n }",
"@Override\r\n\tpublic void SavePlayerName() {\r\n\t\tPlayer player = (Player)Player.getPlayerInstance();\r\n\t\t\r\n\t\tString file = \"PlayerName.txt\";\r\n\t\tString playerName = player.getName();\r\n\t\ttry{\r\n\t\t\tPrintWriter print = new PrintWriter(file);\r\n\t\t\tprint.println(playerName);\r\n\t\t}\r\n\t\tcatch(FileNotFoundException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"public String getDisplayName ( ) {\n\t\treturn handleOptional ( ).map ( Player :: getDisplayName ).orElse ( name );\n\t}",
"String player1GetName(){\n return player1;\n }",
"public String getPlayerName(int playerColor) {\n if (nrOfPlayers() - 1 >= playerColor) {\n if (players.get(playerColor).getState()) {\n return players.get(playerColor).getName();\n } else {\n return \"Inactive: \" + players.get(playerColor).getName();\n }\n }\n return null;\n }",
"private String getPlayerName() {\n EditText name = (EditText) findViewById(R.id.name_edittext_view);\n return name.getText().toString();\n }",
"private String getPlayerName(int i) {\n\t\tSystem.out.println(\"\\nEnter Player \"+i+\"'s Name:\");\n\t\treturn GetInput.getInstance().aString();\n\t}",
"public String playerToString(Player player){\r\n StringBuilder toReturn = new StringBuilder(\"\");\r\n String playerName = player.getName();\r\n playerName = playerName.replace(\" \", \"_\");\r\n toReturn.append(playerName + \" \" + player.getIndex());\r\n \r\n return toReturn.toString();\r\n }",
"public String getNewPlayerName() {\n return newPlayerName;\n }",
"public String getTeamName() {\r\n return teamName;\r\n }",
"@Override\n\tpublic String getPlayer() {\n\t\treturn null;\n\t}",
"public java.lang.String getPetName() {\n return localPetName;\n }",
"public String getLoggedPlayerName() {\r\n return ctrlDomain.getLoggedPlayerName();\r\n }",
"public void setPlayerName(String playerName) {\n this.playerName = playerName;\n }",
"public String getName() {\n\t\treturn this.username;\n\t}",
"public String getPrefix(Player player) {\n \t\treturn getValue(player, \"prefix\");\n \t}",
"String getNewPlayerName();",
"String getPlayerName() {\r\n EditText editText = (EditText) findViewById(R.id.name_edit_text_view);\r\n return editText.getText().toString();\r\n }",
"java.lang.String getGameName();",
"java.lang.String getGameName();",
"String player2GetName(){\n return player2;\n }",
"public String getPlayer() {\n return p;\n }",
"public String getName() {\r\n\t\treturn holderName;\r\n\t}",
"public String getName() {\n return name.get();\n }",
"public String getName() {\r\n\t\treturn username;\r\n\t}",
"public java.lang.String getName();",
"public String getName() {\n return (String) getObject(\"username\");\n }",
"public String toString() {\n\t\treturn \"player \" + player.id + \"\\n\";\n\t}",
"public String getPlayerName(UUID id) {\n return playerRegistry.get(id);\n }",
"@Override\n\tpublic String toString() {\n\t\treturn teamName;\n\t}",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();"
] | [
"0.72830796",
"0.71833366",
"0.7182348",
"0.71486115",
"0.7093042",
"0.7062151",
"0.7040527",
"0.70252234",
"0.69806737",
"0.69805604",
"0.6973779",
"0.69707096",
"0.6947584",
"0.69330764",
"0.69330764",
"0.6893118",
"0.6862368",
"0.6855769",
"0.6771632",
"0.67489463",
"0.67458373",
"0.6737377",
"0.66653866",
"0.65723854",
"0.65711224",
"0.6455592",
"0.6437396",
"0.6402091",
"0.6384112",
"0.62668365",
"0.6252164",
"0.62280196",
"0.62007624",
"0.6181706",
"0.6179544",
"0.6108499",
"0.6042346",
"0.60408145",
"0.60312194",
"0.60285264",
"0.6021673",
"0.5995658",
"0.5987787",
"0.59762836",
"0.59623694",
"0.59463584",
"0.58752567",
"0.58389",
"0.5832174",
"0.58316743",
"0.5798197",
"0.57857037",
"0.57708466",
"0.57671535",
"0.5761249",
"0.5760124",
"0.57535744",
"0.57535744",
"0.5748352",
"0.5737757",
"0.57325476",
"0.5730922",
"0.57302403",
"0.57262063",
"0.5725941",
"0.57170737",
"0.5709727",
"0.57093364",
"0.5708827",
"0.5708827",
"0.5708827",
"0.5708827",
"0.5708827",
"0.5708827",
"0.5708827",
"0.5708827",
"0.5708827",
"0.5708827",
"0.5708827",
"0.5708827",
"0.5708827",
"0.5708827",
"0.5708827",
"0.5708827",
"0.5708827",
"0.5708827",
"0.5708827",
"0.5708827",
"0.5708827",
"0.5708827",
"0.5708827",
"0.5708827",
"0.5708827",
"0.5708827",
"0.5708827",
"0.5708827",
"0.5708827",
"0.5708827",
"0.5708827",
"0.5708827"
] | 0.68100864 | 18 |
Sets the name of this Settlement. | public void setName(String newName) {
this.name = newName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String name) {\n if (!name.isEmpty()) {\n this.name = name;\n }\n }",
"public void setName(String name) {\r\n this._name = name;\r\n }",
"public final void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\r\n\t\t_name = name;\r\n\t}",
"public void setName(final String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(final String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\n\t this.name = name;\n\t }",
"public void setName(final String name) {\n mName = name;\n }",
"public void setName(final String name) {\n this.name = name;\n }",
"public void setName(final String name) {\n this.name = name;\n }",
"public void setName(final String name) {\n this.name = name;\n }",
"public void setName(final String name) {\n this.name = name;\n }",
"public void setName(String name) {\n\t\t\tthis.name = name;\n\t\t}",
"public void setName(String name) {\n\t\t\tthis.name = name;\n\t\t}",
"public void setName(final String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(final String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(final String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(final String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tmName = name;\n\t}",
"public void setName(String name) {\n\t\tName = name;\n\t}",
"public void setName(String name) {\n _name = name;\n }",
"public void setName(final String name) {\n this.name = name;\n }",
"public void setName(final String name) {\n this.name = name;\n }",
"public void setName(String name) {\n\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName (String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name)\n {\n this.name = name;\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName (String name) {\n this.name = name;\n }",
"public void setName (String name) {\n this.name = name;\n }",
"public void setName (String name) {\n this.name = name;\n }",
"@Override\r\n\tpublic void setName(String name) {\n\t\tthis.name = name;\r\n\t}",
"@Override\n public void setName(String name)\n {\n checkState();\n this.name = name;\n }",
"public void setName(String name) {\r\r\n\t\tthis.name = name;\r\r\n\t}",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\n m_Name = name;\n }",
"@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}"
] | [
"0.7862114",
"0.7850941",
"0.78484625",
"0.7840823",
"0.782347",
"0.782347",
"0.782187",
"0.7816212",
"0.7815605",
"0.7815605",
"0.7815605",
"0.7815605",
"0.78041947",
"0.78041947",
"0.7796373",
"0.7796373",
"0.7796373",
"0.7796373",
"0.7796279",
"0.7778811",
"0.77775234",
"0.77766377",
"0.77766377",
"0.77724993",
"0.77690476",
"0.77690476",
"0.77690476",
"0.77690476",
"0.77662164",
"0.7764582",
"0.7764582",
"0.7764582",
"0.7764582",
"0.7764582",
"0.7764582",
"0.7764582",
"0.7764582",
"0.7764582",
"0.7764582",
"0.7764582",
"0.7764582",
"0.7764582",
"0.7764582",
"0.7764582",
"0.7764582",
"0.7764582",
"0.7764582",
"0.7764582",
"0.7764582",
"0.7764582",
"0.7764582",
"0.7764582",
"0.7764582",
"0.7764582",
"0.7764582",
"0.7764582",
"0.7764582",
"0.7764582",
"0.7764582",
"0.7764582",
"0.77520186",
"0.7748099",
"0.77451485",
"0.77451485",
"0.77451485",
"0.77440774",
"0.7734808",
"0.7729364",
"0.77285004",
"0.77285004",
"0.77285004",
"0.7727944",
"0.7727944",
"0.7727944",
"0.7726875",
"0.7721751",
"0.77214825",
"0.77214825",
"0.77214825",
"0.77214825",
"0.77214825",
"0.77214825",
"0.77214825",
"0.77214825",
"0.77214825",
"0.77214825",
"0.77214825",
"0.77214825",
"0.77214825",
"0.77214825",
"0.77214825",
"0.77214825",
"0.77214825",
"0.77214825",
"0.77214825",
"0.77214825",
"0.77214825",
"0.77214825",
"0.77214825",
"0.77214825",
"0.77214825"
] | 0.0 | -1 |
Gets an image key for this settlement. | abstract public String getImageKey(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getImgKey() {\n return imgKey;\n }",
"public final String getInternalKey() {\n return CloudImageLoader.generateKey(getInternalUri(), getInternalDownloadType());\n }",
"public Key getKey() {\n return Key.of(getTone(), getQuality());\n }",
"public static String getKey() {\t\t\n\t\treturn key;\n\t}",
"String getEncryptionKeyId();",
"public String getKey() {\r\n\t\t\treturn getCacheFile();\r\n\t\t}",
"public Key getKey() {\n\t\treturn getKey(settings, url);\n\t}",
"public static byte[] getKey() {\n return key;\n }",
"public byte[] getKey() {\n return this.key;\n }",
"public ResourceKey getKey() {\n return key;\n }",
"public Key getKey() {\n\t\treturn key;\n\t}",
"public final String getKey() {\n return key;\n }",
"public byte[] generateKey()\n\t{\n\t\tImageKeyGenerate ikg = ImageKeyGenerate.getMD5SHA256();\n\t\tthis.rowKey = MyBytes.toBytes(CommonUtils.byteArrayToHexString(ikg.generate(imageData)));\n\t\treturn this.rowKey;\n\t}",
"byte[] getKey();",
"public Key getKey()\r\n { \r\n return key; \r\n }",
"public String getKey() {\r\n return key;\r\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\r\n return key;\r\n }",
"public String getKey() {\r\n return key;\r\n }",
"public String getKey() {\r\n return key;\r\n }",
"public static String getKey(){\n\t\treturn key;\n\t}",
"java.lang.String getClientKey();",
"public String getKey() {\n\t\treturn key;\n\t}",
"public String getKey() {\n\t\treturn key;\n\t}",
"public String getKey() {\n\t\treturn key;\n\t}",
"public String getKey() {\r\n\t\treturn key;\r\n\t}",
"public String getKey() {\r\n\t\treturn key;\r\n\t}",
"public String getKey() {\r\n\t\treturn key;\r\n\t}",
"public String getKey()\n\t\t{\n\t\t\treturn key;\n\t\t}",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"private String getKey() {\r\n if (key == null) {\r\n key = getURI();\r\n }\r\n return key;\r\n }",
"public String getKey(){\n\t\treturn key;\n\t}",
"public Map<String, String> getImageKeyMap() {\r\n\t\treturn imageKeyMap;\r\n\t}",
"public String getKey()\n\t{\n\t\treturn key;\n\t}",
"public String getImageId() {\n return imageId;\n }",
"public double getKey() {\n\t\treturn key;\n\t}",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"public String getKey();",
"public String getKey();",
"public String getKey();",
"public String getKey();",
"public String getKey() {\n\n return this.key;\n }",
"public String getImageId() {\n return this.imageId;\n }",
"public String getImageId() {\n return this.ImageId;\n }",
"public String getImageIdentifier() {\n return this.imageIdentifier;\n }",
"public String getKey() {\n return this.key;\n }",
"public String getKey() {\n return this.key;\n }",
"public String getKey() {\n return this.key;\n }",
"public String getKey() {\n return this.key;\n }",
"public String getKey() {\n return this.key;\n }",
"public String getKey() {\n return this.key;\n }",
"public String getImageId() {\n return mImageId;\n }",
"public ShuffleKey getKey() {\n return key;\n }",
"public Object getKey() {\n return key;\n }",
"public String getKey() {\n return this.key;\n }",
"public String getKey() {\n\treturn key;\n }",
"public String getKey() {\n\t\treturn this.key;\n\t}",
"public String getKey() {\n\t\treturn this.key;\n\t}",
"public String getKey() {\n\t\treturn this.key;\n\t}",
"@Nullable public String getKey() {\n return key;\n }",
"public BigInteger getKeyBI() {\n return new BigInteger(this.getEncoded());\n }",
"public String getKey()\n\t{\n\t\treturn this.key;\n\t}",
"public Object getKey() {\r\n return key;\r\n }",
"public Key getKey() {\n\t\treturn mKey;\n\t}",
"public Object getKey()\n {\n return key;\n }",
"public String getItskey() {\n return itskey;\n }",
"public static String getKeyFile() {\n\t\tif (xml == null) return null;\n\t\treturn keyfile;\n\t}",
"public CryptoKey getMyKey() {\n return myKey;\n }",
"public long getImageId() {\n return imageId;\n }",
"protected String getKey() {\n\t\treturn makeKey(host, port, transport);\n\t}",
"@Override\n\tpublic String getKey() {\n\t\treturn key;\n\t}",
"String key();",
"public long getImageId() {\n return this.imageId;\n }",
"TemplateModel getKey();",
"public K getKey() {\n return key;\n }",
"public int getImageId() {\n return imageId_;\n }",
"protected K getKey() {\n return this.key;\n }"
] | [
"0.7004048",
"0.63995355",
"0.6323925",
"0.6253939",
"0.6248837",
"0.6239712",
"0.62049294",
"0.6191212",
"0.6150887",
"0.60774934",
"0.60768044",
"0.6075401",
"0.6059617",
"0.6055356",
"0.60366786",
"0.60314536",
"0.6024674",
"0.60246295",
"0.60246295",
"0.60246295",
"0.60246295",
"0.60246295",
"0.60246295",
"0.60246295",
"0.60246295",
"0.60246295",
"0.60246295",
"0.6022598",
"0.6022598",
"0.6022598",
"0.60171807",
"0.60066587",
"0.6004756",
"0.6004756",
"0.6004756",
"0.59927243",
"0.59927243",
"0.59927243",
"0.59812963",
"0.59702975",
"0.59702975",
"0.59653264",
"0.5963727",
"0.5958947",
"0.5954796",
"0.594805",
"0.59404397",
"0.5926565",
"0.5926565",
"0.5926565",
"0.5926565",
"0.5926565",
"0.5926565",
"0.5926565",
"0.5926565",
"0.5926565",
"0.5926565",
"0.5926565",
"0.5926565",
"0.5926565",
"0.59220064",
"0.59220064",
"0.59220064",
"0.59220064",
"0.59172404",
"0.59079283",
"0.58836275",
"0.58781326",
"0.5864087",
"0.5864087",
"0.5864087",
"0.5864087",
"0.5864087",
"0.5864087",
"0.58583313",
"0.5854841",
"0.58504903",
"0.5835202",
"0.5827499",
"0.58161926",
"0.58161926",
"0.58161926",
"0.581564",
"0.58148617",
"0.57925504",
"0.57850796",
"0.5784623",
"0.5782593",
"0.57649773",
"0.57542676",
"0.57523334",
"0.57380056",
"0.57365",
"0.5728863",
"0.5725773",
"0.5713613",
"0.57015175",
"0.569903",
"0.56966764",
"0.56842095"
] | 0.68167955 | 1 |
Returns true if this is the Nation's capital. | public boolean isCapital() {
return getType().isCapital();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isSetCapital();",
"public boolean isUpperCase()\n\t{\n\t\treturn upperCase;\n\t}",
"boolean isSetCapitalInKind();",
"public boolean hasUpper(){\n return (alg.hasUpper(input.getText().toString()));\n }",
"public static boolean isCapitalized(String word) {\n \treturn (word.length() > 0 && Character.isUpperCase(word.charAt(0)));\n }",
"public boolean detectCapitalI(String word) {\n\t\tif (word == null || word.length() <= 1) return true;\n\t\tint numUpper = 0;\n\t\tchar[] w = word.toCharArray();\n\t\tfor (char c: w) {\n\t\t\tif (Character.isUpperCase(c)) numUpper++;\n\t\t}\n\t\tif (numUpper == 1 && Character.isUpperCase(w[0])) return true; // case 3\n\t\treturn numUpper == 0 || numUpper == w.length; // case 1 or 2\n\t}",
"public static boolean beginsWithCapital( String w ) \r\n { String t = w.substring(0,1);\r\n\treturn t.toUpperCase().equals(t);\r\n }",
"public boolean detectCapitalUse_regex(String word){\n return word.matches(\"[A-Z]*|.[a-z]*\");\n }",
"private boolean isUpperCase(char c) {\n\n return Character.isUpperCase(c);\n\n }",
"public boolean getIgnoreSentenceCapitalization() {\n\t\treturn ignoreSentenceCapitalization.isChecked();\n\t}",
"public String getCapital() {\n return capital;\n }",
"public boolean getIgnoreUpperCase() {\n\t\treturn ignoreUpperCase.isChecked();\n\t}",
"public abstract boolean containsUppercaseLetters(String str);",
"public static void checkCapitalization(List<Token> token)\r\n\t{\r\n\t\tfor(Token tk : token)\r\n\t\t{\r\n\t\t\t//checks for capitalized word\r\n\t\t\tif(tk.getName().matches(\"[A-Z][a-z]+\"))\r\n\t\t\t{\r\n\t\t\t\ttk.getFeatures().setLexicalType(String.valueOf(Lexical.CAPITAL));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//checks for all caps word\r\n\t\t\tif(tk.getName().matches(\"^[A-Z]{2,}$\")) \r\n\t\t\t{\r\n\t\t\t\ttk.getFeatures().setLexicalType(String.valueOf(Lexical.ALLCAPS));\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}",
"private boolean isUpperCase(String word) {\n boolean ucase = true;\n char[] chars = word.toCharArray();\n for (char ch : chars) {\n if (Character.isLowerCase(ch)) {\n ucase = false;\n break;\n }\n }\n return ucase;\n }",
"private boolean isAllCaps(String name) {\r\n for (int ndx = 0; ndx < name.length(); ndx++) {\r\n char ch = name.charAt(ndx);\r\n if (ch == '_') {\r\n // OK\r\n } else if (Character.isUpperCase(ch)) {\r\n // OK\r\n } else {\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n }",
"public static boolean isUpperCase(char c) {\r\n\r\n\t\tif ((c >= 65 && c <= 95)) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t}",
"private boolean letter() {\r\n return CATS(Lu, Ll, Lt, Lm, Lo);\r\n }",
"boolean isCaseInsensitive();",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:27:59.765 -0500\", hash_original_method = \"6C04521FA8F839DEBC2B7BBE9D95E585\", hash_generated_method = \"BFFBE8223A396DBD3D67310C7959581B\")\n \npublic static boolean shouldCap(Capitalize cap, CharSequence cs, int off) {\n int i;\n char c;\n\n if (cap == Capitalize.NONE) {\n return false;\n }\n if (cap == Capitalize.CHARACTERS) {\n return true;\n }\n\n return TextUtils.getCapsMode(cs, off, cap == Capitalize.WORDS\n ? TextUtils.CAP_MODE_WORDS : TextUtils.CAP_MODE_SENTENCES)\n != 0;\n }",
"public boolean isCaseInseneitive() {\r\n return caseInseneitive;\r\n }",
"public boolean checkUpperCase(String password) {\n return password.matches(\".*[A-Z].*\");\n }",
"public int getCapital() {\n\n return capital;\n }",
"public void setCapital(boolean isCapital) {\n if (isCapital() != isCapital) {\n setType(owner.getNationType().getSettlementType(isCapital));\n }\n }",
"public static boolean[] getCases(String in) {\n boolean[] cs = new boolean[in.length()];\n for (int s = 0; s < in.length(); s++) {\n cs[s] = Character.isUpperCase(in.charAt(s));\n }\n return cs;\n }",
"private static boolean isContentUppercase(String contentString)\n {\n char[] charArray = contentString.toCharArray();\n \n for(int i = 0; i < charArray.length; i++)\n {\n //if any character is lower case, return false (DB tablenames have only uppercase letters).\n if(Character.isLowerCase(charArray[i]))\n {\n return false; \n }\n } \n return true;\n }",
"private boolean hasCapDifferential(List<String> tokenList) {\n int countAllCaps = 0;\n for (String token : tokenList) {\n if (Utils.isUpper(token)) {\n countAllCaps++;\n }\n }\n final int capDifferential = tokenList.size() - countAllCaps;\n return (capDifferential > 0) && (capDifferential < tokenList.size());\n }",
"public static boolean isAllCaps(String word) {\n \tfor(int iChar = 0; iChar < word.length(); iChar++)\n \t\tif(!Character.isUpperCase(word.charAt(iChar)))\n \t\t\treturn false;\n \t\n \treturn true;\n }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.NullableBoolean.Enum getCapitalInKind();",
"public BigDecimal getCAPITALIZE_IN_OUT_AMT() {\r\n return CAPITALIZE_IN_OUT_AMT;\r\n }",
"public static boolean hasUpperAlpha (String password) throws NoUpperAlphaException\r\n {\r\n Pattern pattern = Pattern.compile(\".*[A-Z].*\");\r\n Matcher matcher = pattern.matcher(password);\r\n if (!matcher.matches())\r\n throw new NoUpperAlphaException();\r\n return true;\r\n }",
"public BigDecimal getCAPITAL_AMT() {\r\n return CAPITAL_AMT;\r\n }",
"@Test\n public void validateCapital() {\n\n\t\tgiven()\n\t\t.pathParam(\"country\", \"GB\")\n\t\t.when()\n\t\t.get(\"https://restcountries.eu/rest/v2/name/{country}\")\n\t\t.then()\n\t\t.body(\"capital\", contains(\"London\"));\n\t}",
"@attribute(value = \"\", required = false)\r\n\tpublic void setUpperCaseHeader(Boolean upper) {\r\n\t\tupperCaseHeader = upper;\r\n\t}",
"public static void printUpperCase() {\n\t\tString isExit= \"\";\n\t\twhile (!isExit.equals(\"N\")) {\n\t\t\tStringBuffer bf = readInput();\n\t\t\tStringBuffer result = new StringBuffer();\n\t\t\tString str = bf.toString();\n\t\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\t\tif (Character.isUpperCase(str.charAt(i))) {\n\t\t\t\t\tresult.append(String.valueOf(str.charAt(i)));\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"Chuỗi chữ hoa: \" + result);\n\t\t\tSystem.out.println(\"Bạn có muốn nhập tiếp không(0/1):\");\n\t\t\tisExit = scan.next().toString();\n\t\t}\n\t}",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.NullableBoolean xgetCapitalInKind();",
"public boolean getCaseSesitive() {\n\t\treturn this.caseSensitive;\n\t}",
"public static boolean isAsciiAlphaUpper(char ch) {\n/* 479 */ return (ch >= 'A' && ch <= 'Z');\n/* */ }",
"static void checkexpression(String sentence){\n //matching the sentence to see if it begins with capital letter and ends with .\n boolean check = Pattern.matches(\"^[A-Z].*[.]$\",sentence);\n if(check){\n System.out.println(\"Correct Format.\");\n }else{\n System.out.println(\"Incorrect Format.\");\n }\n }",
"public void firstToUpperCase() {\n \n }",
"private boolean name() {\r\n return (\r\n (letter() && alphas()) ||\r\n (CHAR('`') && nobquotes() && MARK(QUOTE) && CHAR('`'))\r\n );\r\n }",
"public boolean isIgnoreCase() {\n return this.ignoreCase;\n }",
"public void testInvalidUpperCase()\n\t{\n\t\tInputField field = new InputField();\n\t\tfield.setUpperCase(true);\n\n\t\tfield.setDataType(EqDataType.TYPE_BOOLEAN);\n\t\tString expected = LanguageResources.getString(\"Language.UpperCaseInputNotRelevantToBoolean\");\n\t\tMessage message = getMessageWithText(field, expected);\n\t\tObject actual = message == null ? null : message.getText();\n\t\tassertEquals(expected, actual);\n\n\t}",
"public Capital() {\n\t\tthis.nation = \"korea\";\n\t\tthis.capital = \"seoul\";\n\t}",
"private String capital() {\r\n\t\tString out=\"Companies Capital: \\n\\n\";\r\n\t\tint[] temp= tile.getCompanyCapital();\r\n\t\tint square=(int)Math.sqrt(temp.length);\r\n\t\tif(square*square<temp.length) {\r\n\t\t\tsquare++;\r\n\t\t}\r\n\t\tfor(int i=0; i<temp.length;) {\r\n\t\t\tfor(int j=0; j<square; j++) {\r\n\t\t\t\tif(i<temp.length) {\r\n\t\t\t\t\tout=out.concat(String.format(\"%4s\", temp[i]));\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tj=square;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tout=out.concat(\"\\n\");\r\n\t\t}\r\n\t\tout=out.concat(\"\\n\\nAgent Capital: \\n\\n\");\r\n\t\ttemp=tile.getAgentCapital();\r\n\t\tsquare=(int)Math.sqrt(temp.length);\r\n\t\tif(square*square<temp.length) {\r\n\t\t\tsquare++;\r\n\t\t}\r\n\t\tfor(int i=0; i<temp.length;i++) {\r\n\t\t\tfor(int j=0; j<square; j++) {\r\n\t\t\t\tif(i<temp.length) {\r\n\t\t\t\t\tout=out.concat(String.format(\"%4s\", temp[i]));\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tj=square;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tout=out.concat(\"\\n\");\r\n\t\t}\r\n\t\treturn out;\r\n\t}",
"public void setCapital(int capital) {\n\n this.capital = capital;\n }",
"private boolean isAbbreviation(String word) {\n\n boolean abbr = true;\n String[] parts = word.split(\"\\\\.\");\n for (String part : parts) {\n if (part.length() > 1 || !Pattern.matches(\"[a-zA-Z]\", part)) {\n abbr = false;\n break;\n }\n }\n return abbr;\n }",
"public Point getCapitalPosition() {\n return capital;\n }",
"private static boolean equalsIgnoreCase(String inputOfCustomer) {\n\t\treturn false;\n\t}",
"boolean hasBusinessName();",
"public boolean isGoal(){\n char c = this.getGoalLetter();\n return 'a' <= c && c <= 'z'; // will return true if goalLetter is a lowercase letter\n }",
"void unsetCapital();",
"boolean isSetCapitalPayed();",
"private boolean noUpper(String password) {\n return !password.equals(password.toLowerCase());\n }",
"public void setUpperCase(boolean upperCase)\n\t{\n\t\tthis.upperCase = upperCase;\n\t}",
"public Boolean comprovaSurname(String name) {\n\t\treturn (rv.validateName(name));\n\t}",
"public static boolean isCon(String s){\n boolean flag = true;\n int i = 0;\n while(flag && i < s.length()){\n if ((s.charAt(i) >= 'a' && s.charAt(i) <= 'z') || (s.charAt(i) >= 'A' && s.charAt(i) <='Z')) {\n flag = (s.charAt(i) != 'a' && s.charAt(i) != 'A' &&\n s.charAt(i) != 'e' && s.charAt(i) != 'E' &&\n s.charAt(i) != 'i' && s.charAt(i) != 'I' &&\n s.charAt(i) != 'o' && s.charAt(i) != 'O' &&\n s.charAt(i) != 'u' && s.charAt(i) != 'U' );\n }else\n flag = false;\n \n i++;\n }\n return flag;\n }",
"public java.lang.String getTipoPagoCapital() {\n return tipoPagoCapital;\n }",
"public static int camelcase(String s) {\n int count = 1;\n String upper = \"(.*[A-Z].*)\";\n for(char c : s.toCharArray()){\n if (Character.isUpperCase(c))\n {\n count ++;\n }\n }\n return count;\n }",
"public boolean getCaseNr() {\n\t\treturn caseNr == 1? true : false;\n\t}",
"void setCapitalInKind(ch.crif_online.www.webservices.crifsoapservice.v1_00.NullableBoolean.Enum capitalInKind);",
"public static void upperCaseFirst() {\n\t\tString isExit = \"\";\n\t\twhile (!isExit.equals(\"N\")) {\n\t\t\tStringBuffer bf = readInput();\n\t\t\tString str = bf.toString();\n\t\t\t// str=String.valueOf(str.charAt(0)).toUpperCase()+str.substring(1,\n\t\t\t// str.length());\n\t\t\tSystem.out.println(\"Chuỗi có chữ đầu viết hoa:\\n\"\n\t\t\t\t\t+ String.valueOf(str.charAt(0)).toUpperCase()\n\t\t\t\t\t+ str.substring(1, str.length()));\n\t\t\tSystem.out.println(\"Bạn có muốn nhập tiếp không(0/1):\");\n\t\t\tisExit = scan.next().toString();\n\t\t}\n\t}",
"boolean hasSurname();",
"public void setCAPITALIZE_IN_OUT_AMT(BigDecimal CAPITALIZE_IN_OUT_AMT) {\r\n this.CAPITALIZE_IN_OUT_AMT = CAPITALIZE_IN_OUT_AMT;\r\n }",
"public static boolean isCaseSensitive(String fieldPropAltName) {\n\t\t// both-sensitive or diacritics-insensitive\n\t\treturn fieldPropAltName.endsWith(ALT_SEP + \"s\") || fieldPropAltName.endsWith(ALT_SEP + \"di\");\n\t}",
"public boolean isClassical() {\n return this == CLASSICAL;\n }",
"static boolean isCharacter(char c) {\n\t\t\tswitch (c) {\n\t\t\t\tcase CHARACTER:\n\t\t\t\tcase CHARACTER_UPPER:\n\t\t\t\t\treturn true;\n\t\t\t\tdefault:\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"private void useCapitalLettersFromType(String type, StringBuffer buffer) {\r\n for (int ndx = 0; ndx < type.length(); ndx++) {\r\n char ch = type.charAt(ndx);\r\n if (Character.isUpperCase(ch)) {\r\n buffer.append(Character.toLowerCase(ch));\r\n }\r\n }\r\n }",
"public String getCapName() {\n StringBuilder result = new StringBuilder();\n for (String s : getNameParts()) {\n result.append(Util.capitalize(s));\n }\n return result.toString();\n }",
"public String toUpperCase(String in)\n {\n return in;\n }",
"public static String checkUpperCase(String city) {\n\t\tboolean b = false;\n\t\tif(!Character.isUpperCase(city.charAt(0))) {\n\t\t\tString temp = city;\n\t\t\tchar c = Character.toUpperCase(city.charAt(0));\n\t\t\tcity = c + temp.substring(1,temp.length());\n\t\t}\n\t\t\n\t\tfor(int i = 1; i < city.length(); i++) {\n\t\t\tif(b) {\n\t\t\t\tif(!Character.isUpperCase(city.charAt(i))) {\n\t\t\t\t\tString temp = city;\n\t\t\t\t\tchar c = Character.toUpperCase(city.charAt(i));\n\t\t\t\t\tcity = temp.substring(0, i) + c + temp.substring(i+1,temp.length());\n\t\t\t\t}\n\t\t\t\tb = false;\n\t\t\t}\n\t\t\tif(city.charAt(i) == ' ')\n\t\t\t\tb = true;\n\t\t}\n\t\treturn city;\n\t}",
"public boolean isBname() {\n return Bname;\n }",
"private boolean isNoun(int i)\n\t{\n\t\tif (text.get(i).length() > 1) // Ensures word is more than one character\n\t\t{\n\t\t\tString prior = text.get(i-1);\n\t\t\tif (prior.charAt(0) == '\\\"' || prior.charAt(0) == '-' || prior.charAt(0) == '“') // Checks if \" or - is the char next to the word\n\t\t\t{\n\t\t\t\tif (text.get(i-2).charAt(0) == 10) // Checks if the char 2 spaces before the word is a newline character\n\t\t\t\t{\n\t\t\t\t\tfullStops.add(i); // Saves location for second pass\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif (text.get(i-2).length() == 1 && text.get(i-3).length() == 1) // Checks if there is a one letter word before the space before the word\n\t\t\t\t{\n\t\t\t\t\tfullStops.add(i); // Saves location for second pass\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif (text.get(i-3).charAt(0) == 13)\n\t\t\t\t{\n\t\t\t\t\tfullStops.add(i); // Saves location for second pass\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t}\n\t\tif (prior.charAt(0) == ' ' && text.get(i-2).length() == 1 && text.get(i-2).charAt(0) != 'I') // Checks that word prior to word is not a type of full stop\n\t\t{\n\t\t\tfullStops.add(i); // Saves location for second pass\n\t\t\treturn false;\n\t\t}\n\t\tif (prior.charAt(0) == 10) //If char before word is a newline character then it is saved for another iteration\n\t\t{\n\t\t\tfullStops.add(i);\n\t\t\treturn false;\n\t\t}\n\n\t\tif (text.get(i).charAt(0) > 64 && text.get(i).charAt(0) < 91) // If starting character is uppercase then it is assumed to be a noun\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isUrgentLetter() {\n\t\treturn false;\n\t}",
"@In Boolean caseSensitive();",
"public String test(String x){\r\n\t\treturn x.toUpperCase();\r\n\t}",
"public static boolean flyFrom(City a, City b) {\n\t\tif(a.getCapital() && b.getCapital()) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}",
"boolean hasHasCharacter();",
"public boolean isBtitle() {\n return Btitle;\n }",
"void xsetCapitalInKind(ch.crif_online.www.webservices.crifsoapservice.v1_00.NullableBoolean capitalInKind);",
"public static boolean containsCaseInsensitive(char lookFor, CharSequence in) {\n char lookFor1 = Character.toLowerCase(lookFor);\n char lookFor2 = Character.toUpperCase(lookFor);\n return biIterate(in, (index, ch, len, remaining) -> {\n if (ch == lookFor1 || ch == lookFor2) {\n return BiIterateResult.YES;\n }\n return BiIterateResult.MAYBE;\n }).isSuccess();\n }",
"public boolean isFormal() {\n return this.code != null && this.type != null && (this.type == NameType.SCIENTIFIC || this.type == NameType.HYBRID || this.type == NameType.CULTIVAR || this.type == NameType.VIRUS);\n }",
"public boolean isAllCap() throws PDFNetException {\n/* 605 */ return IsAllCap(this.a);\n/* */ }",
"public static boolean capicuaOrNot(String theNumber){\r\n\r\n //more local variables\r\n int counter=0, size=0;\r\n String newNumber=\"\";\r\n boolean yesOrNo=false;\r\n\r\n //process to determine wether it's capicúa or not\r\n size=theNumber.length()-1;\r\n //System.out.println(theNumber + size);\r\n for(counter=size; counter>=0; counter--){\r\n newNumber+=theNumber.charAt(counter);\r\n }//end of for loop\r\n System.out.println(newNumber);\r\n if(newNumber.equals(theNumber)){\r\n yesOrNo=true;\r\n }\r\n return yesOrNo;\r\n\r\n }",
"public boolean hasLower(){\n return (alg.hasLower(input.getText().toString()));\n }",
"public final void mUPPER() throws RecognitionException {\n\t\ttry {\n\t\t\t// /Users/probst/workspace/MiniJava_A6/src/compiler/Frontend/MiniJava.g:312:16: ( ( 'A' .. 'Z' ) )\n\t\t\t// /Users/probst/workspace/MiniJava_A6/src/compiler/Frontend/MiniJava.g:\n\t\t\t{\n\t\t\tif ( (input.LA(1) >= 'A' && input.LA(1) <= 'Z') ) {\n\t\t\t\tinput.consume();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tMismatchedSetException mse = new MismatchedSetException(null,input);\n\t\t\t\trecover(mse);\n\t\t\t\tthrow mse;\n\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}",
"public boolean isVital() {\n\t\treturn isVital;\n\t}",
"public BigDecimal getCAPITAL_AMT_BEFORE_XIRR() {\r\n return CAPITAL_AMT_BEFORE_XIRR;\r\n }",
"public boolean isCaseSensitive() {\n return this.caseSensitive;\n }",
"@Test //TEST ONE\n void testCapital1stLetterBreedName()\n {\n Rabbit_RegEx rabbit_breed = new Rabbit_RegEx();\n rabbit_breed.setBreedName(\"AmericanFuzzyLop\"); //American Fuzzy Lop, very cute!\n assertTrue(rabbit_breed.getBreedName().matches(\"^[A-Za-z][a-zA-Z-][a-zA-z- ]*\"));\n }",
"public static boolean isAbecedarian(String s) {\n for (char c = 1; c < s.length(); c++) {\n\n //Checking if the letter is bigger or equal to the previous index letter.\n if (s.charAt(c) >= s.charAt(c - 1)) {\n }\n else {\n //Returns if input is not abecedarian.\n return (false);\n }\n }\n //Returns if input is abecedarian.\n return (true);\n }",
"public boolean estPlein() {\n return this.tapis.size() == capacite;\n }",
"public boolean isChemical() {\n return chemical;\n }",
"public final boolean isEmphasis() {\n return emphasis;\n }",
"public boolean centerJustified(){\n return justification.equals(FormatAlignment.CENTER_JUSTIFY);\n }",
"private String capitalize(String title) {\n return title.substring(0, 1).toUpperCase() + title.substring(1);\n }",
"private String capitalCase(String name) {\n if (name == null) {\n return null;\n }\n StringBuilder sb = new StringBuilder();\n boolean skippingSpace = true;\n for (int index=0; index<name.length(); index++) {\n char ch = name.charAt(index);\n if (!Character.isAlphabetic(ch) && !Character.isDigit(ch) ){\n ch = ' ';\n }\n if (Character.isWhitespace(ch)) {\n skippingSpace = true;\n continue;\n }\n if (skippingSpace) {\n ch = Character.toUpperCase(ch);\n }\n else {\n ch = Character.toLowerCase(ch);\n }\n sb.append(ch);\n skippingSpace = false;\n }\n return sb.toString();\n }",
"public void setCAPITAL_AMT(BigDecimal CAPITAL_AMT) {\r\n this.CAPITAL_AMT = CAPITAL_AMT;\r\n }",
"void setCapital(ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount capital);",
"public boolean owns(String establishment) {\n for (int i = 0; i < Establishments.size(); i++) {\n if (Establishments.get(i).getName().equals(establishment)) {\n return true;\n }\n }\n return false;\n }"
] | [
"0.76796865",
"0.7176735",
"0.71322024",
"0.7072419",
"0.700131",
"0.6904946",
"0.6732333",
"0.66437507",
"0.6622239",
"0.63736904",
"0.6298774",
"0.6256335",
"0.6219747",
"0.6152976",
"0.61506724",
"0.61207086",
"0.60979015",
"0.5955175",
"0.58935934",
"0.5849054",
"0.5795798",
"0.57891506",
"0.5785963",
"0.5633263",
"0.5591222",
"0.5582597",
"0.5558288",
"0.55424416",
"0.5535277",
"0.5533843",
"0.55177027",
"0.5486049",
"0.5472968",
"0.54544836",
"0.545197",
"0.5431054",
"0.54173017",
"0.5410672",
"0.5351639",
"0.5306436",
"0.52977526",
"0.5292808",
"0.5269195",
"0.52620953",
"0.5257813",
"0.5251345",
"0.5247962",
"0.523211",
"0.5232103",
"0.522534",
"0.5197488",
"0.51847774",
"0.5174867",
"0.5173514",
"0.5134539",
"0.5131159",
"0.5115136",
"0.5104582",
"0.51042444",
"0.5071",
"0.50688434",
"0.5044833",
"0.50332797",
"0.5033068",
"0.50165004",
"0.5006865",
"0.5001489",
"0.4996132",
"0.49958858",
"0.4984107",
"0.4978192",
"0.4971032",
"0.4966248",
"0.49544445",
"0.493797",
"0.49360633",
"0.49004298",
"0.489277",
"0.4890463",
"0.48865584",
"0.48767936",
"0.48680404",
"0.48565078",
"0.4851425",
"0.48490918",
"0.4847992",
"0.48473144",
"0.4840671",
"0.48398674",
"0.48398054",
"0.48393488",
"0.48361444",
"0.48310527",
"0.4829648",
"0.4827788",
"0.48269922",
"0.4826157",
"0.48253092",
"0.4823432",
"0.48224133"
] | 0.77645713 | 0 |
Sets the capital value. | public void setCapital(boolean isCapital) {
if (isCapital() != isCapital) {
setType(owner.getNationType().getSettlementType(isCapital));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCapital(int capital) {\n\n this.capital = capital;\n }",
"void setCapital(ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount capital);",
"public void setUpper(int value) {\n this.upper = value;\n }",
"public String getCapital() {\n return capital;\n }",
"public int getCapital() {\n\n return capital;\n }",
"public void setUpperCase() {\r\n\t\tCollection<Component> collection = groupboxEditar.getFellows();\r\n\t\tfor (Component abstractComponent : collection) {\r\n\t\t\tif (abstractComponent instanceof Textbox) {\r\n\t\t\t\tTextbox textbox = (Textbox) abstractComponent;\r\n\t\t\t\tif (!(textbox instanceof Combobox)) {\r\n\t\t\t\t\t((Textbox) abstractComponent)\r\n\t\t\t\t\t\t\t.setText(((Textbox) abstractComponent).getText()\r\n\t\t\t\t\t\t\t\t\t.trim().toUpperCase());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void setUpperCase() {\r\n\t\tCollection<Component> collection = groupboxEditar.getFellows();\r\n\t\tfor (Component abstractComponent : collection) {\r\n\t\t\tif (abstractComponent instanceof Textbox) {\r\n\t\t\t\tTextbox textbox = (Textbox) abstractComponent;\r\n\t\t\t\tif (!(textbox instanceof Combobox)) {\r\n\t\t\t\t\t((Textbox) abstractComponent)\r\n\t\t\t\t\t\t\t.setText(((Textbox) abstractComponent).getText()\r\n\t\t\t\t\t\t\t\t\t.trim().toUpperCase());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"void unsetCapital();",
"public void setCap(String aCap) {\n cap = aCap;\n }",
"public Capital() {\n\t\tthis.nation = \"korea\";\n\t\tthis.capital = \"seoul\";\n\t}",
"@Override\n public void write(char[] cbuf, int off, int len) throws IOException {\n for (int i = 0; i < cbuf.length; ++i)\n cbuf[i] = Character.toUpperCase(cbuf[i]);\n \n super.write(cbuf, off, len);\n \n }",
"private void switchToUpperCase() {\n for (int i = 0; i < mLetterButtons.length; i++) {\n mLetterButtons[i].setText((mQWERTYWithDot.charAt(i) + \"\").toUpperCase());\n }\n mIsShiftPressed = true;\n\n }",
"public void setUpperCaseLettersCount(long value) {\n this.upperCaseLettersCount = value;\n }",
"public void firstToUpperCase() {\n \n }",
"public void setUpperCase(boolean upperCase)\n\t{\n\t\tthis.upperCase = upperCase;\n\t}",
"private void useCapitalLettersFromType(String type, StringBuffer buffer) {\r\n for (int ndx = 0; ndx < type.length(); ndx++) {\r\n char ch = type.charAt(ndx);\r\n if (Character.isUpperCase(ch)) {\r\n buffer.append(Character.toLowerCase(ch));\r\n }\r\n }\r\n }",
"public void setCAPITAL_AMT(BigDecimal CAPITAL_AMT) {\r\n this.CAPITAL_AMT = CAPITAL_AMT;\r\n }",
"public void toUpper() {\n ArrayList<Character> newSeq = new ArrayList<Character>();\n for (char c : seq) {\n newSeq.add(Character.toUpperCase(c));\n }\n seq = newSeq;\n }",
"@attribute(value = \"\", required = false)\r\n\tpublic void setUpperCaseHeader(Boolean upper) {\r\n\t\tupperCaseHeader = upper;\r\n\t}",
"void setCap(int cap);",
"public Builder<I> toUpperCase() {\n upperCase = true;\n return this;\n }",
"public boolean isCapital() {\n return getType().isCapital();\n }",
"boolean isSetCapital();",
"void setCapitalPayed(ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount capitalPayed);",
"public void setCamelCaseName(CamelCaseName value){\n ((MvwDefinitionDMO) core).setCamelCaseName(value);\n }",
"public void setCAPITAL_AMT_LIMIT(BigDecimal CAPITAL_AMT_LIMIT) {\r\n this.CAPITAL_AMT_LIMIT = CAPITAL_AMT_LIMIT;\r\n }",
"protected String alterCase(String value) {\n\t\tswitch (getCase()) {\n\t\tcase UPPERCASE:\n\t\t\treturn value.toUpperCase();\n\t\tcase LOWERCASE:\n\t\t\treturn value.toLowerCase();\n\t\tdefault:\n\t\t\treturn value;\n\t\t}\n\t}",
"public XMLString toUpperCase() {\n/* 746 */ return new XMLStringDefault(this.m_str.toUpperCase());\n/* */ }",
"private static String kebapToUpperCamel(String input) {\n return CaseFormat.LOWER_HYPHEN.to(CaseFormat.UPPER_CAMEL, input);\n }",
"private String capital() {\r\n\t\tString out=\"Companies Capital: \\n\\n\";\r\n\t\tint[] temp= tile.getCompanyCapital();\r\n\t\tint square=(int)Math.sqrt(temp.length);\r\n\t\tif(square*square<temp.length) {\r\n\t\t\tsquare++;\r\n\t\t}\r\n\t\tfor(int i=0; i<temp.length;) {\r\n\t\t\tfor(int j=0; j<square; j++) {\r\n\t\t\t\tif(i<temp.length) {\r\n\t\t\t\t\tout=out.concat(String.format(\"%4s\", temp[i]));\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tj=square;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tout=out.concat(\"\\n\");\r\n\t\t}\r\n\t\tout=out.concat(\"\\n\\nAgent Capital: \\n\\n\");\r\n\t\ttemp=tile.getAgentCapital();\r\n\t\tsquare=(int)Math.sqrt(temp.length);\r\n\t\tif(square*square<temp.length) {\r\n\t\t\tsquare++;\r\n\t\t}\r\n\t\tfor(int i=0; i<temp.length;i++) {\r\n\t\t\tfor(int j=0; j<square; j++) {\r\n\t\t\t\tif(i<temp.length) {\r\n\t\t\t\t\tout=out.concat(String.format(\"%4s\", temp[i]));\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tj=square;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tout=out.concat(\"\\n\");\r\n\t\t}\r\n\t\treturn out;\r\n\t}",
"public String toUpperCase(String in)\n {\n return in;\n }",
"public static void printUpperCase()\n {\n for(char i = 'A'; i <= 'Z'; i++){\n System.out.print(i + \" \");\n }\n System.out.println();\n }",
"public void upperString() {\n\t\t\tString sentence = \"I am studying\";\n\t\t\t//have to assign it to new string with = to change string\n\t\t\tsentence = sentence.toLowerCase();\n\t\t\t//have to assign it to sentence\n\t\t\tSystem.out.println(\"lower case sentence \" + sentence);\n\t\t}",
"public static String initCap(final String value) {\n if (value == null) {\n return null;\n }\n\n StringBuilder sb = new StringBuilder();\n String[] tokens = value.split(\"\\s\");\n\n for (String token : tokens) {\n if (token.length() == 1) {\n sb.append(token.toUpperCase());\n\n } else if (token.length() > 1) {\n sb.append(token.substring(0,1).toUpperCase() + token.substring(1).toLowerCase());\n sb.append(\" \");\n }\n }\n\n return sb.toString().trim();\n }",
"public static String getUpperCaseValue(String value) {\n if (isNotEmpty(value)) {\n return value.toUpperCase();\n } else {\n return null;\n }\n }",
"public UpperCaseField(final String value) {\n this(value, 0, 0);\n }",
"public BigDecimal getCAPITAL_AMT() {\r\n return CAPITAL_AMT;\r\n }",
"void setCapitalInKind(ch.crif_online.www.webservices.crifsoapservice.v1_00.NullableBoolean.Enum capitalInKind);",
"public final void mUPPER() throws RecognitionException {\n\t\ttry {\n\t\t\t// /Users/probst/workspace/MiniJava_A6/src/compiler/Frontend/MiniJava.g:312:16: ( ( 'A' .. 'Z' ) )\n\t\t\t// /Users/probst/workspace/MiniJava_A6/src/compiler/Frontend/MiniJava.g:\n\t\t\t{\n\t\t\tif ( (input.LA(1) >= 'A' && input.LA(1) <= 'Z') ) {\n\t\t\t\tinput.consume();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tMismatchedSetException mse = new MismatchedSetException(null,input);\n\t\t\t\trecover(mse);\n\t\t\t\tthrow mse;\n\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}",
"public int getUpper() {\n return upper;\n }",
"public boolean isUpperCase()\n\t{\n\t\treturn upperCase;\n\t}",
"public void setCAPITALIZE_IN_OUT_AMT(BigDecimal CAPITALIZE_IN_OUT_AMT) {\r\n this.CAPITALIZE_IN_OUT_AMT = CAPITALIZE_IN_OUT_AMT;\r\n }",
"public static void printUpperCase() {\n\t\tString isExit= \"\";\n\t\twhile (!isExit.equals(\"N\")) {\n\t\t\tStringBuffer bf = readInput();\n\t\t\tStringBuffer result = new StringBuffer();\n\t\t\tString str = bf.toString();\n\t\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\t\tif (Character.isUpperCase(str.charAt(i))) {\n\t\t\t\t\tresult.append(String.valueOf(str.charAt(i)));\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"Chuỗi chữ hoa: \" + result);\n\t\t\tSystem.out.println(\"Bạn có muốn nhập tiếp không(0/1):\");\n\t\t\tisExit = scan.next().toString();\n\t\t}\n\t}",
"public static String firstUpperCase(String value) {\n\t\tif (value == null || value.length() == 0) {\n\t return value;\n\t }\n\t\t\n\t\treturn value.substring(0, 1).toUpperCase() + value.substring(1);\n\t}",
"UpperCaseDocument(final int ml) {\n maximumLength = ml;\n }",
"public InputBox setTextCap(int textCap) {\n\t\tthis.textCap = textCap;\n\t\t\n\t\treturn this;\n\t}",
"public ReturnValue modRgstCapitalValue(RgstCapitalValue rc) throws RemoteException {\n\t\treturn cp.modRgstCapitalValue(rc);\r\n\t}",
"int getUpper();",
"public Point getCapitalPosition() {\n return capital;\n }",
"public static String getFieldUpperCase(String name) {\r\n\t\tString aux = name.substring(0, 1);\r\n\t\tString mayus = aux.toUpperCase()+name.substring(1);\r\n\t\treturn mayus;\r\n\t}",
"public static String initCapitalize(String style){\n\t\tString newValue =\"\";\n\t\tif(style!=null){\n\t\t\tString[] parts = StringUtils.split(style,'-');\n\t\t\tif (parts.length>1){\n\t\t\t\tfor(int j=0;j<parts.length;j++){\n\t\t\t\t\tif (j>0){\n\t\t\t\t\t\tif (parts[j].length()>0){\n\t\t\t\t\t\t\tString capString = parts[j].substring(0,1);\n\t\t\t\t\t\t\tcapString = capString.toUpperCase();\n\t\t\t\t\t\t\tcapString += parts[j].substring(1);\n\t\t\t\t\t\t\tnewValue+=capString;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tnewValue+=parts[j];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tnewValue= style;\n\t\t\t}\n\t\t}\n\t\treturn newValue;\n\t}",
"public static final void setVar(final Str varNum, String val, final boolean upperFy) {\n if (val == null)\n val = \"\";\n setUpLowVar(varNum, upperFy ? val.toUpperCase() : val);\n }",
"public static void upperCaseFirst() {\n\t\tString isExit = \"\";\n\t\twhile (!isExit.equals(\"N\")) {\n\t\t\tStringBuffer bf = readInput();\n\t\t\tString str = bf.toString();\n\t\t\t// str=String.valueOf(str.charAt(0)).toUpperCase()+str.substring(1,\n\t\t\t// str.length());\n\t\t\tSystem.out.println(\"Chuỗi có chữ đầu viết hoa:\\n\"\n\t\t\t\t\t+ String.valueOf(str.charAt(0)).toUpperCase()\n\t\t\t\t\t+ str.substring(1, str.length()));\n\t\t\tSystem.out.println(\"Bạn có muốn nhập tiếp không(0/1):\");\n\t\t\tisExit = scan.next().toString();\n\t\t}\n\t}",
"public String capitalize(String x)\n\t{\n\t\treturn x.toUpperCase();\n\t}",
"public static void checkCapitalization(List<Token> token)\r\n\t{\r\n\t\tfor(Token tk : token)\r\n\t\t{\r\n\t\t\t//checks for capitalized word\r\n\t\t\tif(tk.getName().matches(\"[A-Z][a-z]+\"))\r\n\t\t\t{\r\n\t\t\t\ttk.getFeatures().setLexicalType(String.valueOf(Lexical.CAPITAL));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//checks for all caps word\r\n\t\t\tif(tk.getName().matches(\"^[A-Z]{2,}$\")) \r\n\t\t\t{\r\n\t\t\t\ttk.getFeatures().setLexicalType(String.valueOf(Lexical.ALLCAPS));\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}",
"private static String firstLetterCapital(final String text)\n {\n return (null == text ? null : text.substring(0, 1).toUpperCase() + text.substring(1, text.length()));\n }",
"void xsetCapitalInKind(ch.crif_online.www.webservices.crifsoapservice.v1_00.NullableBoolean capitalInKind);",
"public void setCamelCaseName(Object value) throws DmcValueException {\n ((MvwDefinitionDMO) core).setCamelCaseName(value);\n }",
"public String test(String x){\r\n\t\treturn x.toUpperCase();\r\n\t}",
"void setCaseSensitive(int value);",
"public String getCapName() {\n StringBuilder result = new StringBuilder();\n for (String s : getNameParts()) {\n result.append(Util.capitalize(s));\n }\n return result.toString();\n }",
"public void setCAPITAL_AMT_BEFORE_XIRR(BigDecimal CAPITAL_AMT_BEFORE_XIRR) {\r\n this.CAPITAL_AMT_BEFORE_XIRR = CAPITAL_AMT_BEFORE_XIRR;\r\n }",
"@Override\r\n public void setCase(Case theCase) {\n }",
"public void setElementName(CamelCaseName value){\n ((MenuDMO) core).setElementName(value);\n }",
"public final void mT__49() throws RecognitionException {\n try {\n int _type = T__49;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:47:7: ( 'uppercase' )\n // InternalMyDsl.g:47:9: 'uppercase'\n {\n match(\"uppercase\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public String convertToUpperCase(String word);",
"public static char getRandomUpperCaseLetter(){\n\t\treturn getRandomCharacter('A','Z');\n\t}",
"public void setNbCase(int nbCase) {\n this.nbCase = nbCase;\n }",
"private static String capName(String name) { return name.substring(0, 1).toUpperCase() + name.substring(1); }",
"private String capitalize(String title) {\n return title.substring(0, 1).toUpperCase() + title.substring(1);\n }",
"@JsProperty\n public void setLineCap(String lineCap);",
"public BigDecimal getCAPITAL_AMT_LIMIT() {\r\n return CAPITAL_AMT_LIMIT;\r\n }",
"@Override\n\t\t\tpublic void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\n\t\t\t\tString cadena = txtMarca.getText().toUpperCase();\n\t\t\t\ttxtMarca.setText(cadena);\n\t\t\t}",
"@Test\n public void validateCapital() {\n\n\t\tgiven()\n\t\t.pathParam(\"country\", \"GB\")\n\t\t.when()\n\t\t.get(\"https://restcountries.eu/rest/v2/name/{country}\")\n\t\t.then()\n\t\t.body(\"capital\", contains(\"London\"));\n\t}",
"public String upperCase(String word){\n return word.toUpperCase();\n }",
"public static char toUpperCase(char c) {\r\n\r\n\t\tif (isUpperCase(c)) {\r\n\t\t\treturn c;\r\n\t\t} else {\r\n\t\t\treturn (char) (c - 32);\r\n\t\t}\r\n\t}",
"public MyString2 toUpperCase() {\n\t\tString upperCase = \"\";\n\t\tfor (int i = 0; i < this.s.length(); i++) {\n\t\t\tupperCase += this.s.toUpperCase().charAt(i);\n\t\t}\n\t\treturn new MyString2(upperCase);\n\t}",
"public XMLString toUpperCase(Locale locale) {\n/* 715 */ return new XMLStringDefault(this.m_str.toUpperCase(locale));\n/* */ }",
"private String capitalCase(String name) {\n if (name == null) {\n return null;\n }\n StringBuilder sb = new StringBuilder();\n boolean skippingSpace = true;\n for (int index=0; index<name.length(); index++) {\n char ch = name.charAt(index);\n if (!Character.isAlphabetic(ch) && !Character.isDigit(ch) ){\n ch = ' ';\n }\n if (Character.isWhitespace(ch)) {\n skippingSpace = true;\n continue;\n }\n if (skippingSpace) {\n ch = Character.toUpperCase(ch);\n }\n else {\n ch = Character.toLowerCase(ch);\n }\n sb.append(ch);\n skippingSpace = false;\n }\n return sb.toString();\n }",
"public static String cap(String w) {\n if (w.toLowerCase().equals(w)){ //if there are no capitals\n return w; // //then just return the word as is\n }\n else{\n // for (int i=0; i<w.length(); i++) {\n \n return w.substring(0,1).toUpperCase() + w.substring(1).toLowerCase(); //if there is a capital then make the first only the first letter capital and the rest lowercase\n }\n }",
"public BigDecimal getCAPITALIZE_IN_OUT_AMT() {\r\n return CAPITALIZE_IN_OUT_AMT;\r\n }",
"public void setBlankValue(char let){\n value = 0;\n letter = Character.toUpperCase(let);\n\n }",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:27:59.765 -0500\", hash_original_method = \"6C04521FA8F839DEBC2B7BBE9D95E585\", hash_generated_method = \"BFFBE8223A396DBD3D67310C7959581B\")\n \npublic static boolean shouldCap(Capitalize cap, CharSequence cs, int off) {\n int i;\n char c;\n\n if (cap == Capitalize.NONE) {\n return false;\n }\n if (cap == Capitalize.CHARACTERS) {\n return true;\n }\n\n return TextUtils.getCapsMode(cs, off, cap == Capitalize.WORDS\n ? TextUtils.CAP_MODE_WORDS : TextUtils.CAP_MODE_SENTENCES)\n != 0;\n }",
"@Override\r\n\tpublic String doSome() {\n\t\treturn super.doSome().toUpperCase();\r\n\t}",
"private void setName(String name) {\n name = name.trim().replaceAll(\"\\\"\", \"\");\n name = name.substring(0,1).toUpperCase() + name.substring(1);\n\n this.name = name;\n }",
"@Test\n public final void testCapitalize1() {\n Object target = \"abc\";\n String expResult = \"Abc\";\n String result = StringUtils.capitalize(target);\n Assertions.assertEquals(expResult, result);\n }",
"@Override\n\t\t\tpublic void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\n\t\t\t\tString cadena = txtCodigo.getText().toUpperCase();\n\t\t\t\ttxtCodigo.setText(cadena);\n\t\t\t}",
"public static String upperFirst(String value) {\r\n\t\tif(value == null || value.length() == 0) {\r\n\t\t\treturn value;\r\n\t\t}\r\n\t\tif(value.length() == 1) {\r\n\t\t\treturn value.toUpperCase();\r\n\t\t}\r\n\t\treturn Character.toUpperCase(value.charAt(0)) + value.substring(1); \r\n\t}",
"private static String capitalize (String input) {\n\n String output = WordUtils.capitalize(input.toLowerCase());\n\n return output;\n }",
"public void setUpperValue(int value) {\n // Compute new extent.\n int lowerValue = getValue();\n int newExtent = Math.min(Math.max(0, value - lowerValue), getMaximum() - lowerValue);\n \n // Set extent to set upper value.\n setExtent(newExtent);\n }",
"public IconBuilder textCase(TextCase textCase) {\n\t\tthis.textCase = textCase;\n\t\treturn this;\n\t}",
"public CaseChangingCharStream(CharStream stream, boolean upper) {\n\t\tthis.stream = stream;\n\t\tthis.upper = upper;\n\t}",
"private boolean isUpperCase(char c) {\n\n return Character.isUpperCase(c);\n\n }",
"public String getCap() {\n return cap;\n }",
"public void setCapAmount(int capAmount){\r\n\t\t//saves the variable in capAmount\r\n\t\tthis.capAmount=capAmount;\r\n\t}",
"public void setCapitalAssetNumber(Long capitalAssetNumber) {\n this.capitalAssetNumber = capitalAssetNumber;\n }",
"int upper();",
"public void setValue(char value)\n\t{\n\t\tthis.value = value;\n\t}",
"public static Capital getRandomCapital() {\n\n ArrayList<Capital> capitals = getCapitalsFromFile();\n Random randomGenerator = new Random();\n int randomIndex = randomGenerator.nextInt(capitals.size());\n return capitals.get(randomIndex);\n }",
"public void setUpperLimit(String upperLimit) {\n this.upperLimit = upperLimit == null ? null : upperLimit.trim();\n }"
] | [
"0.8066763",
"0.76134044",
"0.7407304",
"0.7272771",
"0.7035897",
"0.6790146",
"0.6790146",
"0.6629107",
"0.6620419",
"0.6604536",
"0.6535495",
"0.64146554",
"0.64121807",
"0.6374065",
"0.6304711",
"0.62821686",
"0.6256615",
"0.6239825",
"0.62367696",
"0.6233698",
"0.62291646",
"0.61793554",
"0.6057817",
"0.6049867",
"0.6037601",
"0.6035641",
"0.5985374",
"0.59769714",
"0.5918998",
"0.58642256",
"0.58318883",
"0.582791",
"0.58094084",
"0.577035",
"0.5767498",
"0.5748086",
"0.5746595",
"0.5738746",
"0.5727705",
"0.5695683",
"0.5638239",
"0.56064963",
"0.56038654",
"0.5592162",
"0.5578464",
"0.55676574",
"0.5564825",
"0.5550713",
"0.55451286",
"0.5531914",
"0.55305195",
"0.5520258",
"0.5518499",
"0.5479861",
"0.54766",
"0.54660916",
"0.5458229",
"0.5454186",
"0.54410183",
"0.54384786",
"0.54381734",
"0.5428775",
"0.5426566",
"0.5415952",
"0.541369",
"0.54079306",
"0.540781",
"0.53998125",
"0.5397813",
"0.5397029",
"0.5378067",
"0.53716916",
"0.5365274",
"0.53357404",
"0.5321173",
"0.5319239",
"0.53188586",
"0.5316609",
"0.5313424",
"0.5312936",
"0.5308883",
"0.5296102",
"0.5296039",
"0.52931994",
"0.5288182",
"0.5279301",
"0.5276833",
"0.5262182",
"0.52565455",
"0.52556187",
"0.52475965",
"0.52472734",
"0.5246692",
"0.52309734",
"0.52268004",
"0.5218915",
"0.52033466",
"0.5200918",
"0.5197477",
"0.5197088"
] | 0.64938265 | 11 |
Get this settlement's feature container. | @Override
public FeatureContainer getFeatureContainer() {
return featureContainer;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object getUnderlyingObject() {\n return feature;\n }",
"public FeatureSet getFeatures() {\n\treturn features;\n }",
"public FeatureCollection<SimpleFeatureType,SimpleFeature> getCollection() {\n return (SimpleFeatureCollection) collection;\n }",
"public final native GEFeatureContainer getFeatures() /*-{\r\n\t\treturn this.getFeatures();\r\n\t}-*/;",
"public org.pentaho.pms.cwm.pentaho.meta.core.CwmStructuralFeature getFeature();",
"public AbstractMFeature2 getFeature() {\n return feature;\n }",
"public String getFeature() {\r\n return feature;\r\n }",
"protected Vector getFeatureSet()\n {\n // get the superclass' vector\n Vector v = super.getFeatureSet();\n\n // add the features\n\n // return the vector\n return v;\n }",
"FeatureProvider getFeatureProvider() {\n return this.provider;\n }",
"public java.util.List getFeature() \n {\n \tModelFacade instance = ModelFacade.getInstance(this.refOutermostPackage().refMofId());\n \tif (instance != null && \n \t\tinstance.isRepresentative(this.refMofId())&&\n \t\tinstance.hasRefObject(this.refMofId()))\n \t{ \t\n \t\tList list = instance.getFeature(this.refMofId());\n \t\tlist.addAll(super_getFeature());\n \t\t\n \t\treturn list; \t\t\n \t}\n \n \treturn super_getFeature();\n }",
"public Integer getFeature() {\n return feature;\n }",
"public org.pentaho.pms.cwm.pentaho.meta.expressions.CwmFeatureNode getFeatureNode();",
"@Nullable JvmIdentifiableElement getFeature();",
"public gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.FeatureTypeType xgetFeatureType()\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.FeatureTypeType target = null;\n target = (gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.FeatureTypeType)get_store().find_element_user(FEATURETYPE$4, 0);\n return target;\n }\n }",
"@Nonnull\r\n public Set<Feature> getFeatures() {\r\n return features;\r\n }",
"public FeatureElements getFeatureAccess() {\n\t\treturn pFeature;\n\t}",
"public java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList()\r\n {\r\n final class FeatureList extends java.util.AbstractList<org.landxml.schema.landXML11.FeatureDocument.Feature>\r\n {\r\n public org.landxml.schema.landXML11.FeatureDocument.Feature get(int i)\r\n { return SurfaceImpl.this.getFeatureArray(i); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature set(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = SurfaceImpl.this.getFeatureArray(i);\r\n SurfaceImpl.this.setFeatureArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n { SurfaceImpl.this.insertNewFeature(i).set(o); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature remove(int i)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = SurfaceImpl.this.getFeatureArray(i);\r\n SurfaceImpl.this.removeFeature(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return SurfaceImpl.this.sizeOfFeatureArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new FeatureList();\r\n }\r\n }",
"public String feature() {\n return feature;\n }",
"List<Feature> getFeatures();",
"@Override\n public synchronized Set<FeatureType> getFeatures() {\n return features = nonNullSet(features, FeatureType.class);\n }",
"public vis.smart.webservice.ProteinFeaturesFeature[] getFeature() {\n return feature;\n }",
"@JsonGetter\n private Feature<Impact> feature() {\n return feature;\n }",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic <T extends ComponentFeature> T getFeature(Class<T> featureClass) {\r\n\t\tfor (final ComponentFeature f : features)\r\n\t\t\tif (f.getClass().isAssignableFrom(featureClass))\r\n\t\t\t\treturn (T) f;\r\n\r\n\t\treturn null;\r\n\t}",
"public final Element getContainer() {\n\t\treturn impl.getContainer();\n }",
"public java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList()\r\n {\r\n final class FeatureList extends java.util.AbstractList<org.landxml.schema.landXML11.FeatureDocument.Feature>\r\n {\r\n public org.landxml.schema.landXML11.FeatureDocument.Feature get(int i)\r\n { return IntersectionImpl.this.getFeatureArray(i); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature set(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = IntersectionImpl.this.getFeatureArray(i);\r\n IntersectionImpl.this.setFeatureArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n { IntersectionImpl.this.insertNewFeature(i).set(o); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature remove(int i)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = IntersectionImpl.this.getFeatureArray(i);\r\n IntersectionImpl.this.removeFeature(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return IntersectionImpl.this.sizeOfFeatureArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new FeatureList();\r\n }\r\n }",
"public FeatureModel getFeatureModel() {\r\n\t\treturn featureModel;\r\n\t}",
"public java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList()\r\n {\r\n final class FeatureList extends java.util.AbstractList<org.landxml.schema.landXML11.FeatureDocument.Feature>\r\n {\r\n public org.landxml.schema.landXML11.FeatureDocument.Feature get(int i)\r\n { return GPSSetupImpl.this.getFeatureArray(i); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature set(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = GPSSetupImpl.this.getFeatureArray(i);\r\n GPSSetupImpl.this.setFeatureArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n { GPSSetupImpl.this.insertNewFeature(i).set(o); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature remove(int i)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = GPSSetupImpl.this.getFeatureArray(i);\r\n GPSSetupImpl.this.removeFeature(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return GPSSetupImpl.this.sizeOfFeatureArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new FeatureList();\r\n }\r\n }",
"public Feature getTestedFeature() {\n return testedFeature;\n }",
"public Iterator<SimpleFeature> getFeatures() {\n \treturn this.iterator();\n }",
"Collection<Feature> getReference();",
"public FeatureStream getFeatureStream() {\n\treturn stream;\n }",
"public Container getContainer() {\r\n return container;\r\n }",
"@Nonnull\n @Override\n public FeatureType getCollectionFeatureType() {\n return collectionFeatureType;\n }",
"@Override\n public synchronized Set<FeatureType> getFeatureInstances() {\n return featureInstances = nonNullSet(featureInstances, FeatureType.class);\n }",
"Feature getFeature();",
"Feature getFeature();",
"public ComponentFeature getFeature(int index) {\r\n\t\tif (index >= features.length)\r\n\t\t\treturn null;\r\n\r\n\t\treturn features[index];\r\n\t}",
"public Feature[] getFeatures() {\n Feature[] features = new Feature[rows.size()];\n for(int i=0;i<features.length;i++){\n features[i] = (Feature)rows.elementAt(i);\n }\n return features;\n }",
"public WebServiceFeature[] getFeatures() {\n\t\treturn null;\n\t}",
"public Container getContainer();",
"protected Container getContainer()\r\n {\n return _xarSource.getXarContext().getContainer();\r\n }",
"String getFeature();",
"String getFeature();",
"public static GameContainer getContainer() {\r\n return container;\r\n }",
"@Override\n FeatureMapLayer getLayer();",
"public FeatureDependencyElements getFeatureDependencyAccess() {\r\n\t\treturn pFeatureDependency;\r\n\t}",
"public List<String> getFeatures() {\n return features;\n }",
"public Node getContainer() {\n return container;\n }",
"Feature createFeature();",
"@Override\n public String getContig() {\n return feature.getContig();\n }",
"public GeoService getService() {\n return GeoService.this;\n }",
"public String getCountryFeature() {\n\n return (String) this.getAdditionalTagValue(\n GeographicErrorTest.MAPPED_FEATURE_TAG_ID, BGConcepts.COUNTRY);\n }",
"public gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.FeatureTypeType.Enum getFeatureType()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FEATURETYPE$4, 0);\n if (target == null)\n {\n return null;\n }\n return (gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.FeatureTypeType.Enum)target.getEnumValue();\n }\n }",
"public Feature copy() {\n\t\tFeature ret = new AbbeelFeature();\n\t\treturn ret;\n\t}",
"private FeatureSet extractFeatureSet() {\n if (accountTypeGuestJRadioButton.isSelected()) {\n return FeatureSet.FREE;\n } else if (accountTypeStandardJRadioButton.isSelected()) {\n return FeatureSet.PREMIUM;\n } else {\n throw Assert.createUnreachable(\"Unknown account type selected.\");\n }\n }",
"public static Feature get(int id) throws SQLException {\r\n\t\tString featureIdColumnName = \"FEATURE_ID\";\r\n\t\tResultSet rs = operation.getRow(\"FEATURE\", featureIdColumnName, id);\r\n\t\tFeature feature = new Feature();\r\n\t\t\r\n\t\twhile (rs.next()) {\r\n\t\t\tfeature.setFeatureId(rs.getString(\"FEATURE_ID\"))\r\n\t\t\t\t.setVideoId(rs.getString(\"VIDEO_ID\"))\r\n\t\t\t\t.setFeatureName(rs.getString(\"FEATURE_NAME\"))\r\n\t\t\t\t.setFeatureVector(rs.getString(\"FEATURE_VECTOR\"))\r\n\t\t\t\t.setCreationDate(rs.getString(\"CREATION_DATE\"));\r\n\t\t}\r\n\t\t\r\n\t\t//System.out.println(\"Name: \" + feature.getFeatureName());\r\n\t\treturn feature;\r\n\t}",
"FeatureId getFeatureId();",
"public String getCountyFeature() {\n\n return (String) this.getAdditionalTagValue(\n GeographicErrorTest.MAPPED_FEATURE_TAG_ID, BGConcepts.COUNTY);\n }",
"public JLayeredPane getContainer(){\n\t\treturn contentPane;\n\t}",
"public Set<String> getFeatures();",
"public org.landxml.schema.landXML11.FeatureDocument.Feature[] getFeatureArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store().find_all_element_users(FEATURE$6, targetList);\r\n org.landxml.schema.landXML11.FeatureDocument.Feature[] result = new org.landxml.schema.landXML11.FeatureDocument.Feature[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }",
"public org.landxml.schema.landXML11.FeatureDocument.Feature[] getFeatureArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store().find_all_element_users(FEATURE$6, targetList);\r\n org.landxml.schema.landXML11.FeatureDocument.Feature[] result = new org.landxml.schema.landXML11.FeatureDocument.Feature[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }",
"public Layer getLayer() {\n return layer;\n }",
"public boolean is_set_feature() {\n return this.feature != null;\n }",
"@Override\r\n\t\tpublic Object getFeature(String feature, String version)\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"public org.landxml.schema.landXML11.FeatureDocument.Feature[] getFeatureArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store().find_all_element_users(FEATURE$14, targetList);\r\n org.landxml.schema.landXML11.FeatureDocument.Feature[] result = new org.landxml.schema.landXML11.FeatureDocument.Feature[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }",
"public String getContainer() {\n return this.container;\n }",
"@Override\n\tpublic String getFeatureName() {\n\t\treturn this.name();\n\t}",
"public Layer getLayer() {\n return _layer;\n }",
"java.util.List<iet.distributed.telemetry.Feature> \n getFeatureList();",
"public HashMap<String, HashMap<String, String>> getNearestFacility() {\n if (this.featureInfoHashMap==null) {\n return null;\n }\n return (HashMap<String, HashMap<String, String>>) this.featureInfoHashMap.entrySet().iterator().next();\n }",
"FTCommand getFeature();",
"public org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().add_element_user(FEATURE$6);\r\n return target;\r\n }\r\n }",
"public org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().add_element_user(FEATURE$6);\r\n return target;\r\n }\r\n }",
"public Layer.Layers getLayer();",
"List<IFeature> getFeatureList();",
"public String container() {\n return this.container;\n }",
"public Layer getLayer() {\n\t\treturn layer;\n\t}",
"public org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().add_element_user(FEATURE$14);\r\n return target;\r\n }\r\n }",
"public StackPane getPane() {\n return this.container;\n }",
"@Override\n public String getFeature() {\n return this.exteriorFeature;\n }",
"public HashMap<String, HashMap<String, String>> getFeatureInfoHashMap() {\n return featureInfoHashMap;\n }",
"public int featureDimension() {\n assert featureDimension > 0;\n return featureDimension;\n }",
"public GameContainer getGameContainer() {\r\n\t\treturn this;\r\n\t}",
"public HashMap<String, HashMap<String, String>> getFurthestFacility() {\n Map.Entry<String, HashMap<String, String>> lastElement = null;\n while (this.featureInfoHashMap.entrySet().iterator().hasNext()) {\n lastElement = this.featureInfoHashMap.entrySet().iterator().next();\n }\n return (HashMap<String, HashMap<String, String>>) lastElement;\n }",
"public Layer getActiveLayer() {\n\t\treturn null;\n\t}",
"public FeatureCollection() {\n//\t\tif (featureTypes!=null) {\n//\t\t\tavailableFeatureTypes = featureTypes;\n//\t\t}\n\t}",
"@Override\n\tpublic String getFeatureCode() {\n\t\treturn featureCode;\n\t}",
"public PaymentFixed getSettlement() {\n return _settlement;\n }",
"@View( VIEW_CREATE_FEATURE )\r\n public String getCreateFeature( HttpServletRequest request )\r\n {\r\n _feature = ( _feature != null ) ? _feature : new Feature( );\r\n\r\n Map<String, Object> model = getModel( );\r\n model.put( MARK_FEATURE, _feature );\r\n model.put( MARK_CATEGORIES_LIST, FeatureCategoryHome.getCategoriesList( ) );\r\n model.put( MARK_TARGETS_LIST, ActionLinkService.getTargetList( getLocale( ) ) );\r\n model.put( MARK_DISPLAY_LEVELS_LIST, FeatureService.getFeatureDisplayLevels( getLocale( ) ) );\r\n\r\n return getPage( PROPERTY_PAGE_TITLE_CREATE_FEATURE, TEMPLATE_CREATE_FEATURE, model );\r\n }",
"public SymbolLayer getSymbolLayer() {\n return _symbolLayer;\n }",
"public DasFeature getNextFeature() {\n String feature = iXml.substring(iXml.indexOf(\"<FEATURE\", lastFeatureEndPosition + 9), iXml.indexOf(\"</FEATURE>\", lastFeatureEndPosition + 9) + 10);\n lastFeatureEndPosition = iXml.indexOf(\"</FEATURE>\", lastFeatureEndPosition + 9);\n DasFeature f = new DasFeature(feature);\n return f;\n }",
"public TableVerticalFeaturizationSettings featurizationSettings() {\n return this.featurizationSettings;\n }",
"@Override\n public DerivedFeatureConfig getConfig() {\n return config_ == null ? DerivedFeatureConfig.getDefaultInstance() : config_;\n }",
"java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList();",
"java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList();",
"public Fogger getFogger() {\n return fogger_;\n }",
"com.google.cloud.videointelligence.v1p3beta1.StreamingFeature getFeature();",
"public PersistentDataContainer getPersistentDataContainer ( ) {\n\t\treturn extract ( handle -> handle.getPersistentDataContainer ( ) );\n\t}",
"public ZigbeeLocalProcessing zigbee() {\n return this.zigbee;\n }"
] | [
"0.6653996",
"0.6543979",
"0.6399908",
"0.6397356",
"0.6381805",
"0.63762367",
"0.63416535",
"0.6274176",
"0.6243491",
"0.6157177",
"0.6154697",
"0.61002785",
"0.60912764",
"0.6090789",
"0.6086515",
"0.60807437",
"0.6026685",
"0.59840804",
"0.59398943",
"0.5931528",
"0.58826846",
"0.5839854",
"0.5836442",
"0.5831357",
"0.58123046",
"0.58071667",
"0.57912195",
"0.57796454",
"0.5776653",
"0.57472944",
"0.5691327",
"0.5678955",
"0.5643745",
"0.5627276",
"0.56156707",
"0.56156707",
"0.5599568",
"0.55932987",
"0.55917406",
"0.5569328",
"0.55258006",
"0.55247253",
"0.55247253",
"0.5503539",
"0.5499213",
"0.54893345",
"0.54783624",
"0.546355",
"0.5427307",
"0.5403833",
"0.5391747",
"0.5381321",
"0.5379461",
"0.5374945",
"0.5331115",
"0.53240675",
"0.53226143",
"0.5312642",
"0.52981734",
"0.52714646",
"0.5266456",
"0.5266456",
"0.52578104",
"0.52569175",
"0.52552813",
"0.52493745",
"0.52464694",
"0.52442974",
"0.52427137",
"0.52373326",
"0.52355784",
"0.52067065",
"0.5206626",
"0.5206626",
"0.5206319",
"0.5190225",
"0.5179764",
"0.5175271",
"0.51740104",
"0.51707506",
"0.5169357",
"0.51684946",
"0.5160862",
"0.51516855",
"0.51425934",
"0.5142151",
"0.5140635",
"0.5136548",
"0.5130154",
"0.5114745",
"0.5111016",
"0.5109611",
"0.510776",
"0.50861555",
"0.5083063",
"0.5083063",
"0.5082958",
"0.50715256",
"0.5062423",
"0.5062283"
] | 0.75746095 | 0 |
Gets this colony's line of sight. | public int getLineOfSight() {
return (int)applyModifier((float)getType().getVisibleRadius(),
"model.modifier.lineOfSightBonus");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Line getLine ()\r\n {\r\n if (line == null) {\r\n computeLine();\r\n }\r\n\r\n return line;\r\n }",
"public String getLine() {\n \treturn this.lineColor;\n }",
"public Line getRightLine() {\n\n return new Line(this.getupperRigth(), this.getdownRigth());\n\n }",
"public Line getLine()\n {\n return line;\n }",
"public Line getDownerLine() {\n\n return new Line(this.getdownLeft(), this.getdownRigth());\n }",
"public Color getLineColor() {\n return lineColor;\n }",
"@Override\n public Line getLine() {\n return line;\n }",
"public Number getLineId() {\n return (Number)getAttributeInternal(LINEID);\n }",
"public Number getLineId() {\n return (Number)getAttributeInternal(LINEID);\n }",
"public String getStitchingLine() {\n return (String)getAttributeInternal(STITCHINGLINE);\n }",
"public Number getLineId() {\n return (Number) getAttributeInternal(LINEID);\n }",
"public Color getLineColor()\n {\n return lineacolore;\n }",
"public int getPointLineOnScreen(float y){\n return Math.min(getPointLine(y + getOffsetY()),getLineCount() - 1);\n }",
"public Line getUpperLine() {\n\n return new Line(this.getUpperLeft(), this.getupperRigth());\n }",
"public String getLine() {\n return this.line;\n }",
"public int getLineWidth() {\n return (int) mPaintLine.getStrokeWidth();\n }",
"public String getLine() {\n\t\treturn line.toString();\n\t}",
"public String getLineColor()\n {\n return lineColor;\n }",
"public int getLineColor() {\r\n return LineColor;\r\n }",
"public MInOutLine getLine()\n\t{\n\t\tif (m_line == null)\n\t\t\tm_line = new MInOutLine (getCtx(), getM_InOutLine_ID(), get_TrxName());\n\t\treturn m_line;\n\t}",
"public int getLineColor() { return mLineColor; }",
"public String getCellLine()\n {\n return this.cellLine;\n }",
"public int getLine() {\n return line;\n }",
"public String getline() {\n\t\treturn _line;\n\t}",
"public int getLine() {\n\t\treturn line;\n\t}",
"public int getLine() {\r\n\t\treturn line;\r\n\t}",
"public int getLine() {\n return line;\n }",
"public int getLineWidth() {\r\n return LineWidth;\r\n }",
"@SuppressWarnings(\"unchecked\")\n public PropertyValue<String> getLineColor() {\n return (PropertyValue<String>) new PropertyValue(nativeGetLineColor());\n }",
"public int getLine() {\r\n return line;\r\n }",
"public int getLine() {\n return lineNum;\n }",
"public ITimeLine getTimeLine() {\n\t\treturn timeLine;\n\t}",
"public Shape getTraceLineShape()\n {\n return ScatterTraceViewShapes.getLineShape(this, false);\n }",
"public final LineStyle getStyle(){\n return LineStyleUtils.getLineStyle(stroke);\n }",
"public int getLineToStart() {\r\n\t\treturn this.lineToStart;\r\n\t}",
"public Timeline getLineMovement()\r\n {\r\n return timeline;\r\n }",
"public int getLineStyle() {\r\n return LineStyle;\r\n }",
"public static int getLine() {\r\n\t\treturn rline;\r\n\t}",
"public StatusLine getStatusLine() {\n return statusLine;\n }",
"public String getLineId() {\n return lineId;\n }",
"public mxStyleSheet getLineStyle()\n\t{\n\t\treturn lineStyle;\n\t}",
"public int getIncline() { return incline; }",
"public KochLine getLineC(){\n\t\tKochLine lineC= new KochLine(p3,p4);\n\t\treturn lineC;\n\t\t\n\t}",
"public LineSymbolPainter getLinePainter() {\n return linePainter;\n }",
"public int getLineWidth ( ) {\r\n\t\treturn line_width;\r\n\t}",
"public SalesLineItem getCurrentSaleLine() {\n\t\treturn currentSaleLine;\n\t}",
"public BossBarLine getLine(UUID id) {\n\t\tfor (BossBarLine line : getLines().values()) {\n\t\t\tif (line.getUuid() == id) return line;\n\t\t}\n\t\treturn null;\n\t}",
"public CommandLine getLine() {\n return line;\n }",
"@Override\n public double getLineWidth() {\n return graphicsEnvironmentImpl.getLineWidth(canvas);\n }",
"public Coordinates projectionAsLine() {\n return projectionAsLine;\n }",
"public Line getOrthogonalLine(){\n return new Line(point, MathUtil.getOrthogonalDirection(direction));\n }",
"public String getCmndLine()\n {\n return cmndLine;\n }",
"public double getLineWidth(\n )\n {return lineWidth;}",
"private int getTargetLineByPos(double y) {\n return (int)y / lineHeight + 1;\n }",
"public IfcPositiveLengthMeasure getLiningThickness()\n\t{\n\t\treturn this.LiningThickness;\n\t}",
"public KochLine getLineD(){\n\t\tKochLine lineD= new KochLine(p4,p5);\n\t\treturn lineD;\n\t\t\n\t}",
"public Line getLeftLine() {\n\n return new Line(this.getUpperLeft(), this.getdownLeft());\n }",
"public int getPositionWithinLine() {\n\t\treturn positionWithinLine;\n\t}",
"public ObjectProperty<DrawingInfos> lastLineProperty() {\n return lastLine;\n }",
"public double intercept() {\r\n return (this.start.getY() - (this.lineSlope() * this.start.getX()));\r\n }",
"public String getLine ()\n {\n return line;\n }",
"public int line() {\r\n return line;\r\n }",
"public int lineNum() {\n return myLineNum;\n }",
"public Piece[] getRightLine() {\n Piece[] rightLine = new Piece[3];\n for (int i = 0; i < this._board.length; i += 1) {\n rightLine[i] = _board[2][2-i];\n }\n return rightLine;\n }",
"public int getDecoratedLine (Node node);",
"public int getLine() {return _line;}",
"public int getLineNo()\n\t{\n\t\treturn getIntColumn(OFF_LINE_NO, LEN_LINE_NO);\n\t}",
"public int getLineDirection() {\r\n return LineDirection;\r\n }",
"public int getNowLineColor() {\n return config.nowLineColor;\n }",
"public int getPointLine(float yPos){\n int r = (int)yPos / getLineHeight();\n return r < 0 ? 0 : r;\n }",
"public LineDash getLineDash(\n )\n {return lineDash;}",
"public int getLinePosition() {\n return linePosition;\n }",
"public BigDecimal getLINE_NO() {\r\n return LINE_NO;\r\n }",
"public BigDecimal getLINE_NO() {\r\n return LINE_NO;\r\n }",
"public BigDecimal getLINE_NO() {\r\n return LINE_NO;\r\n }",
"public BigDecimal getLINE_NO() {\r\n return LINE_NO;\r\n }",
"public int getLinePos() {\n return linePos;\n }",
"public Coordinates intersectionAsLines() {\n return intersectionAsLines;\n }",
"public int getLineTop(int line){\n return getLineHeight() * line;\n }",
"private Line getLastLine() {\n\t\treturn doily.lines.get(doily.lines.size()-1);\n\t}",
"public int getLineNumber() {\n return line;\n }",
"public String getLine2() {\n return line2;\n }",
"private Line getTrajectory() {\n Point target = this.topLeft.add(this.velocity).asPoint();\n return new Line(this.topLeft.asPoint(), target);\n }",
"public int getLineNum() {\n\t\treturn lineNum;\n\t}",
"public IfcLengthMeasure getLiningOffset()\n\t{\n\t\treturn this.LiningOffset;\n\t}",
"public java.lang.String getLine2() {\r\n return line2;\r\n }",
"private Line addLine() {\n\t\t// Create a new line\n\t\tLine line = new Line(doily.settings.getPenScale(), \n\t\t\t\tdoily.settings.getPenColor(), doily.settings.isReflect());\n\t\tdoily.lines.add(line);\n\t\treturn line;\n\t}",
"public double lineLenght() {\n\t\tdouble xdif = p1.getX() - p2.getX();\n\t\tdouble ydif = p1.getY() - p2.getY();\n\t\treturn Math.sqrt(xdif*xdif+ydif*ydif);\t\n\t\t\t\n\t}",
"public int getLineNumber() {\n return line;\n }",
"public String getLineCode() {\n return (String)getAttributeInternal(LINECODE);\n }",
"public int getLineID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LINEID$2, 0);\n if (target == null)\n {\n return 0;\n }\n return target.getIntValue();\n }\n }",
"public int getLineHeight() {\n return lineHeight;\n }",
"public String getLine2() {\n return line2;\n }",
"public RecodedColor getLineColor(){\n return ps == null ? null :(RecodedColor) ps.getFillLegend().getFillColorLegend();\n }",
"public String getSecondLine() {\n return this.secondLine;\n }",
"@Override\n public Line[] getLines(){\n Line[] arrayOfLines = new Line[]{topLine, rightLine, bottomLine, leftLine}; //stores the array of lines that form the rectangle\n return arrayOfLines;\n }",
"public PixelPoint getStopPoint ()\r\n {\r\n Point stop = glyph.getLag()\r\n .switchRef(\r\n new Point(getStop(), line.yAt(getStop())),\r\n null);\r\n\r\n return new PixelPoint(stop.x, stop.y);\r\n }",
"public String getLine(int line) {\n if (line > 14)\n return null;\n if (line < 0)\n return null;\n return getOrCreateTeam(line).getValue();\n }",
"public RecodedString getLineDash() {\n return ps == null ? null :ps.getDashLegend();\n }",
"public Piece[] getTopLine() {\n Piece[] topLine = new Piece[3];\n for (int i = 0; i < this.getBoard().length; i += 1) {\n topLine[i] = this.getBoard()[i][2];\n }\n return topLine;\n }"
] | [
"0.7112935",
"0.69568837",
"0.69118184",
"0.6903939",
"0.6875035",
"0.6847974",
"0.67634875",
"0.6739189",
"0.6739189",
"0.6685962",
"0.66819364",
"0.66526216",
"0.6632901",
"0.6586255",
"0.65827787",
"0.65209913",
"0.6506188",
"0.64971715",
"0.6480431",
"0.64758545",
"0.6463415",
"0.64359945",
"0.6431129",
"0.6389365",
"0.63768893",
"0.6365345",
"0.6360834",
"0.63490325",
"0.6344137",
"0.63398933",
"0.6327002",
"0.630824",
"0.63077277",
"0.6300325",
"0.6299418",
"0.62815815",
"0.6277458",
"0.6265466",
"0.6255634",
"0.62543136",
"0.62350726",
"0.62229997",
"0.6215612",
"0.6204576",
"0.6199856",
"0.61856705",
"0.6185451",
"0.61653286",
"0.61647195",
"0.6163349",
"0.61592984",
"0.6147112",
"0.6140168",
"0.60986364",
"0.6072301",
"0.60703546",
"0.6068785",
"0.6055193",
"0.6049024",
"0.6041376",
"0.60211295",
"0.6012615",
"0.6011868",
"0.5989046",
"0.59882313",
"0.5982107",
"0.5975613",
"0.5962477",
"0.5960218",
"0.5956269",
"0.5955994",
"0.59353805",
"0.5930698",
"0.5930698",
"0.5930698",
"0.5930698",
"0.59292585",
"0.5924919",
"0.59152424",
"0.591263",
"0.5910597",
"0.59060097",
"0.5905881",
"0.58953255",
"0.589432",
"0.5886948",
"0.588364",
"0.58779436",
"0.58675265",
"0.58522046",
"0.5850963",
"0.5849544",
"0.5836529",
"0.5807376",
"0.5802435",
"0.5800362",
"0.58001935",
"0.5795764",
"0.5789171",
"0.5784055"
] | 0.7088546 | 1 |
Gets the Unit that is currently defending this Settlement. | abstract public Unit getDefendingUnit(Unit attacker); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final Unit getUnit()\n { \n return Unit.forValue(m_Unit);\n }",
"public Unit<?> getUnit() {\n return _unit;\n }",
"public gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType.Enum getUnit()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(UNIT$6, 0);\n if (target == null)\n {\n return null;\n }\n return (gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType.Enum)target.getEnumValue();\n }\n }",
"DefiningUnitType getDefiningUnit();",
"public gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType xgetUnit()\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType target = null;\n target = (gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType)get_store().find_element_user(UNIT$6, 0);\n return target;\n }\n }",
"public jkt.hms.masters.business.MasStoreAirForceDepot getUnit () {\n\t\treturn unit;\n\t}",
"public OrgUnit getOrgUnit() {\n return OrgUnitDao.getOrgUnitByRefId(getOrgUnitRefId());\n }",
"public Unit getUnit() {\n\t\treturn unit;\n\t}",
"DefinedUnitType getDefinedUnit();",
"public jkt.hms.masters.business.MasUnit getOtherUnit () {\n\t\treturn otherUnit;\n\t}",
"Unit getUnit();",
"public TempUnit getHighUnit() {\n return highUnit;\n }",
"public Unit getUnit() {\n return unit;\n }",
"public java.math.BigDecimal getFreightDuty () {\n\t\treturn freightDuty;\n\t}",
"public Node getLastSettlementNode() {\r\n\t\treturn lastSettlementNode;\r\n\t}",
"public String getUnit() {\n\t\tString unit;\n\t\ttry {\n\t\t\tunit = this.getString(\"unit\");\n\t\t} catch (Exception e) {\n\t\t\tunit = null;\n\t\t}\n\t\treturn unit;\n\t}",
"@Override\n\tpublic double getDefense() {\n\t\treturn 0;\n\t}",
"Unit getHasUnit();",
"public org.hl7.fhir.Boolean getWasNotGiven()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Boolean target = null;\n target = (org.hl7.fhir.Boolean)get_store().find_element_user(WASNOTGIVEN$4, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public float getDefense()\n {\n return defense;\n }",
"public TempUnit getLowUnit() {\n return lowUnit;\n }",
"public AIUnit getAIUnit(Unit unit) {\n AIObject aio = getAIObject(unit.getId());\n return (aio instanceof AIUnit) ? (AIUnit) aio : null;\n }",
"public Unit getUnit(){\r\n return tacUnit;\r\n }",
"ChronoUnit getUnit();",
"public java.lang.String getUnitPassenger() {\n\t\treturn _tempNoTiceShipMessage.getUnitPassenger();\n\t}",
"public String getTransferUnit() {\n\n if (transferUnit.length() > 0) {\n return transferUnit + \"/sec\";\n } else {\n return transferUnit; // default value is empty string\n }\n }",
"public static Unit getDefaultUnit() {\r\n return (Unit)getDefaultUnit(AngularMeasurement.class);\r\n }",
"public String getUnit()\n {\n return (this.unit);\n }",
"public String getUnit() {\n\t\treturn(symbol);\n\t}",
"public Enemy summon() {\n\t\treturn null;\n\t}",
"public java.lang.String getUnitDWT() {\n\t\treturn _tempNoTiceShipMessage.getUnitDWT();\n\t}",
"@Override\n\tpublic EntityCombatStrategy getCombatStrategyOrNull() {\n\t\treturn this;\n\t}",
"public jkt.hms.masters.business.MasUnitOfMeasurement getUnitOfMeasurement() {\n\t\treturn unitOfMeasurement;\n\t}",
"public int getDefense() {\n\t\treturn defense;\n\t}",
"public static Value makeAbsent() {\n return theAbsent;\n }",
"public String getToUnit() {\r\n return this.toUnit;\r\n }",
"public com.exacttarget.wsdl.partnerapi.RecurrenceTypeEnum xgetDataRetentionPeriodUnitOfMeasure()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.exacttarget.wsdl.partnerapi.RecurrenceTypeEnum target = null;\n target = (com.exacttarget.wsdl.partnerapi.RecurrenceTypeEnum)get_store().find_element_user(DATARETENTIONPERIODUNITOFMEASURE$28, 0);\n return target;\n }\n }",
"public int getCurDefense() {\n\t\treturn curDefense;\n\t}",
"public String getUnit() {\n\t\treturn unit;\n\t}",
"@Updatable\n public String getUnit() {\n return unit;\n }",
"public com.mpe.financial.model.ItemUnit getItemUnit () {\r\n\t\treturn itemUnit;\r\n\t}",
"public Battleable getOpponent()\n\t{\n\t\t/* TODO: Inherited function from Character Interface, requires implementation! */\n\t\treturn null;\n\t}",
"public UnitTypes GetCurrentUnitType()\n {\n return MethodsCommon.GetTypeFromUnit(Unit);\n }",
"public int getDefense() {\n return defense_;\n }",
"public int getDefense() {\n return defense_;\n }",
"public int getDefense() {\n return defense_;\n }",
"public int getDefense() {\n return defense_;\n }",
"public int getDefense() {\n return defense_;\n }",
"public int getDefense() {\n return defense_;\n }",
"@Override\r\n\t/**\r\n\t * Each enemy has a unique drop\r\n\t */\r\n\tpublic String enemyDrop() {\n\t\treturn null;\r\n\t}",
"public String getUnit() {\n return unit;\n }",
"public String getUnit() {\n return unit;\n }",
"public String getUnit() {\n return unit;\n }",
"public double getUnpaidBalance() \r\n\t{\r\n\t\t\r\n\t\treturn unpaidBalance;\r\n\t\t\r\n\t}",
"@Accessor(qualifier = \"Unit\", type = Accessor.Type.GETTER)\n\tpublic B2BUnitModel getUnit()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(UNIT);\n\t}",
"@java.lang.Override\n public int getIndividualDefense() {\n return individualDefense_;\n }",
"public Character getNotActivePlayer() {\n\t\tif(this.getActivePlayer().equals(this.getPlayer1())) {\n\t\t\treturn this.getPlayer2();\n\t\t} else {\n\t\t\treturn this.getPlayer1();\n\t\t}\n\t}",
"public String getUnit () {\n\treturn this.unit;\n }",
"public Player getInactivePlayer() {\n if (redPlayer.equals(getActivePlayer()))\n return whitePlayer;\n else\n return redPlayer;\n }",
"public int getDefense() {\n return defense_;\n }",
"public int getDefense() {\n return defense_;\n }",
"public int getDefense() {\n return defense_;\n }",
"public int getDefense() {\n return defense_;\n }",
"public int getDefense() {\n return defense_;\n }",
"public int getDefense() {\n return defense_;\n }",
"public Door getFreeDoor() {\n for (Door d: doors) {\n if (!d.getUsed()) {\n return d;\n }\n }\n return null;\n }",
"public org.hl7.fhir.Boolean getActual()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Boolean target = null;\n target = (org.hl7.fhir.Boolean)get_store().find_element_user(ACTUAL$4, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"@java.lang.Override\n public int getIndividualDefense() {\n return individualDefense_;\n }",
"public WebElement getUntb() {\r\n\t\treturn untb;\r\n\t}",
"public Enemy deathSummon() {\n\t\treturn null;\n\t}",
"public final double getFuelEconomy() {\n return fuelEconomy;\n }",
"public com.exacttarget.wsdl.partnerapi.RecurrenceTypeEnum.Enum getDataRetentionPeriodUnitOfMeasure()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DATARETENTIONPERIODUNITOFMEASURE$28, 0);\n if (target == null)\n {\n return null;\n }\n return (com.exacttarget.wsdl.partnerapi.RecurrenceTypeEnum.Enum)target.getEnumValue();\n }\n }",
"public ArrayList<Enemy> getDefeated() {\n return defeated;\n }",
"public Fine getFine() {\r\n\t\treturn loanFine;\r\n\t}",
"String getUnit();",
"public boolean usedDefend() { return _usedDefend; }",
"public String getUnit();",
"public boolean getUnitIdNull() {\n return unitIdNull_;\n }",
"int getDefense();",
"int getDefense();",
"int getDefense();",
"int getDefense();",
"int getDefense();",
"int getDefense();",
"int getIndividualDefense();",
"public double FuelRemaining()\n {\n \treturn amountOfFuelInTheTank;\n }",
"public java.lang.String getUnitClearanceHeight() {\n\t\treturn _tempNoTiceShipMessage.getUnitClearanceHeight();\n\t}",
"public double getRemainingMonthlyBudget() {\n\t\treturn 0;\n\t}",
"@ApiModelProperty(required = true, value = \"Unit Amount Excluding Tax\")\n public Double getUnitAmountExcludingTax() {\n return unitAmountExcludingTax;\n }",
"public Double getBalance() {\n return null;\n }",
"public BudgetCustTranImpl getBudgetCustTran() {\n return (BudgetCustTranImpl)getEntity(0);\n }",
"public Attack getBestOpponentAttack()\n\t{\n\t\treturn bestOpponentAttack;\n\t}",
"public PaymentFixed getSettlement() {\n return _settlement;\n }",
"int defend(Unit unit, Unit enemy);",
"public boolean getUnitIdNull() {\n return unitIdNull_;\n }",
"@Override\n\tpublic Statistic getStatistic() {\n\t\treturn null;\n\t}",
"TimeUnit getUnit();",
"public int getDef()\r\n {\r\n return defense;\r\n }",
"public java.lang.String getUnitCrew() {\n\t\treturn _tempNoTiceShipMessage.getUnitCrew();\n\t}",
"public BigDecimal getUnitAmount() {\n return unitAmount;\n }"
] | [
"0.64363855",
"0.6099102",
"0.6069703",
"0.6067926",
"0.6008989",
"0.59473014",
"0.58876747",
"0.5887054",
"0.58073056",
"0.5756014",
"0.569787",
"0.5697638",
"0.5695022",
"0.55309093",
"0.5417217",
"0.54158837",
"0.540114",
"0.53997296",
"0.538616",
"0.53544366",
"0.5348103",
"0.53475803",
"0.53372455",
"0.5324022",
"0.53202975",
"0.5315309",
"0.5311215",
"0.5306618",
"0.53026706",
"0.52811986",
"0.5262022",
"0.52570784",
"0.5243405",
"0.5227473",
"0.5218647",
"0.5218502",
"0.52149475",
"0.5212292",
"0.52111953",
"0.52111197",
"0.51921743",
"0.5171206",
"0.51696336",
"0.51603365",
"0.51603365",
"0.51603365",
"0.5159068",
"0.5159068",
"0.5159068",
"0.5155765",
"0.5139426",
"0.5139426",
"0.5139426",
"0.5133793",
"0.51326686",
"0.5128865",
"0.51221746",
"0.5120169",
"0.5118477",
"0.51062167",
"0.51062167",
"0.51062167",
"0.51060915",
"0.5105806",
"0.5105806",
"0.5103269",
"0.50979847",
"0.5090844",
"0.50785714",
"0.50770867",
"0.50659245",
"0.5065599",
"0.5060794",
"0.5057845",
"0.50541705",
"0.5043942",
"0.50403804",
"0.50394475",
"0.5030539",
"0.5030539",
"0.5030539",
"0.5030539",
"0.5030539",
"0.5030539",
"0.5022838",
"0.5017128",
"0.5017017",
"0.50123274",
"0.50090593",
"0.5007366",
"0.5000253",
"0.49969465",
"0.49921453",
"0.4989145",
"0.4983146",
"0.49790344",
"0.49778762",
"0.4976257",
"0.4973723",
"0.49733496"
] | 0.7157959 | 0 |
Gets the range of gold plunderable when this settlement is captured. | abstract public RandomRange getPlunderRange(Unit attacker); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getRange(){\n\n double range = fuelRemaining * fuelEconomy;\n return range;\n }",
"public double getLethalRange()\n {\n return this.lethal_range;\n }",
"public Integer getGold() {\n\t\treturn gold;\n\t}",
"int getAttackRange();",
"int range() {\n\t\treturn mpg * fuelcap;\n\t}",
"public int getWeaponRange() {\n\t\treturn Math.round(type.getWeaponRange() * type.getItemLevelMultipliers()\n\t\t\t\t[level - 1]);\n\t}",
"public Number getGroundArea() {\n return (Number) getAttributeInternal(GROUNDAREA);\n }",
"public double getRange(){\n\t\treturn range;\n\t}",
"public static int getGold() {\n\t\treturn gold;\n\t}",
"public double getRange(){\r\n\t\t uSensor.ping();\r\n\t\t return uSensor.getRangeInches();\r\n\t\t}",
"public int getGoldAmt() {\n\t\treturn goldAmt;\n\t}",
"public default double getTargetRange(Entity casterIn){ return RangeType.getRange(casterIn, this); }",
"public int getGold();",
"public int damagedRangeLimit() {\r\n return fDamagedRange[1];\r\n }",
"public float getTargetRange() {\n\t\treturn targetRange;\n\t}",
"public double holdings()\n\t{\n\t\treturn _dblHoldings;\n\t}",
"public String getSalaryRange() {\r\n return salaryRange;\r\n }",
"int range(){\n return fuelcap*mpg;\n }",
"public BigDecimal getLiterAllocation();",
"public double getOverdraftLimit() {\n\t\treturn overdraftLimit;\n\t}",
"public double getRangeToBestTarget()\n\t{\n\t\treturn getRangeToTarget(currentBestTarget);\n\t}",
"public Money getLuggage() {\n\t\treturn luggage;\n\t}",
"public int getTotalGold() {\n\t\treturn total_gold;\n\t}",
"public Range ageRange() {\n return getObject(Range.class, FhirPropertyNames.PROPERTY_AGE_RANGE);\n }",
"public String getGradeRange() {\n\t\treturn this.gradeRange;\n\t}",
"public int getGold(){\n return this.gold;\n }",
"public int bombRange() {\r\n return bombRange;\r\n }",
"double getUpperThreshold();",
"public double getProfit() {\n\n\n double difference = maxRange * GAS_RATE;\n double sum = super.getProfit();\n\n return sum - difference;\n\n }",
"public int getNextLevelGold() {\n return nextLevelGold_;\n }",
"public float getHungerDamage();",
"public int getRegularHourlyWage() {\n return regularHourlyWage;\n }",
"public int getNextLevelGold() {\n return nextLevelGold_;\n }",
"public double getRangeInches(){\r\n\t\t return uSensor.getRangeInches();\r\n\t\t}",
"int getNextLevelGold();",
"public Number getGroundPricePerMeter() {\n return (Number) getAttributeInternal(GROUNDPRICEPERMETER);\n }",
"public double getGoodPopulationPercent()\n\t{\n\t\treturn selection.getGoodPopulationPercent();\n\t}",
"public double getMaxRange() {\n return maxRange;\n }",
"public BigDecimal getUseGprs() {\r\n return useGprs;\r\n }",
"public double getMinRange() {\n return minRange;\n }",
"public LocalHolding\t\tgetHolding();",
"public double getPowerUpProbabilityPillar() {\n \t\treturn 0.15;\n \t}",
"public int getBalanceLowGate() {\r\n return balanceLowGate;\r\n }",
"public Range onsetRange() {\n return getObject(Range.class, FhirPropertyNames.PROPERTY_ONSET_RANGE);\n }",
"public double get40To49FieldGoals()\r\n {\r\n return fg_40_49;\r\n }",
"public int getRange() {\n return mRange;\n }",
"public String getAssessRange() {\r\n return assessRange;\r\n }",
"public Location getRangeBottomLeft() {\n\t\treturn rangeBottomLeft;\n\t}",
"public int getEffectiveRange() {\n return effectiveRange;\n }",
"public int getRange()\n\t{\n\t\treturn Range;\n\t}",
"public InventoryRange getGrid() {\n \t\treturn this.grid;\n \t}",
"public int getUpperThreshold() {\r\n\t\tint upperThreshold;\r\n\t\tupperThreshold=this.upperThreshold;\r\n\t\treturn upperThreshold;\r\n\t}",
"public java.math.BigInteger getGBInterval_from(){\n return localGBInterval_from;\n }",
"public double getBust() {\n return bust;\n }",
"public RangeInteger<TdProductShipment> getProductShipmentIdRange(){\n return productShipmentIdRange;\n }",
"@Override\r\n\tpublic float getRange() {\r\n\t\tsp.fetchSample(sample, 0);\r\n\r\n\t\treturn sample[0];\r\n\t}",
"@Override\n public double earnings() {\n if (getHours() < 40)\n return getWage() * getHours();\n else\n return 40 * getWage() + ( getHours() - 40 ) * getWage() * 1.5;\n }",
"public double getGuppyVolumeRequirementInLitres() {\n double volumeNeededInML = 0.0;\n Iterator<Guppy> it = guppiesInPool.iterator();\n\n while (it.hasNext()) { /*get volume in mL for each guppy*/\n Guppy currentGuppy = it.next();\n volumeNeededInML += currentGuppy.getVolumeNeeded();\n }\n return volumeNeededInML / ML_TO_L_CONVERSION; /*convert to litres*/\n }",
"@Override\n\tpublic int getRange() {\n\t\treturn range;\n\t}",
"public double get30To39FieldGoals()\r\n {\r\n return fg_30_39;\r\n }",
"public double getXRangeMax() {\n return xRangeMax;\n }",
"public double[] getUpperLeft() {\n this.upperLeft = new double[]{minX, maxY};\n return upperLeft;\n }",
"public Integer getPsr99Drop() {\n return psr99Drop;\n }",
"public double getYRangeMin() {\n return yRangeMin;\n }",
"public int getMaxPayRaise ()\r\n {\r\n return maxPayRaise;\r\n }",
"public Integer getHoldscale() {\r\n return holdscale;\r\n }",
"public String getPAST_DUE() {\r\n return PAST_DUE;\r\n }",
"public double get50PlusFieldGoals()\r\n {\r\n return fg_50_plus;\r\n }",
"@Override\n\tpublic int getGrowingAge() {\n\t\t// adapter for vanilla code to enable breeding interaction\n\t\treturn isAdult() ? 0 : -1;\n\t}",
"@Override\n\tpublic GoldValue addGoldValue() {\n\t\treturn new HoldTheLineGoldValue();\n\t}",
"float getGt();",
"public long getPopulation() {\n return population;\n }",
"public long getPopulation() {\n return population;\n }",
"public int getTotalGold() {\n return StatisticsHelper.sumMapValueIntegers(statistics.getGoldByWins());\n }",
"public Bounds getBounds() {\n\t\treturn boss.getBoundsInParent();\n\t}",
"public int getOldLoyaltyScale() {\n return oldLoyaltyScale;\n }",
"public double getLowThreshold(){\n return lowThreshold;\n }",
"public double get_overcharge_cost() {\n\t\treturn overchargepermin;\n\t}",
"public double getVolumeNeeded() {\n if (!this.getIsAlive()) {\n return 0.0;\n }\n if (this.ageInWeeks < YOUNG_FISH_AGE_IN_WEEKS) {\n return MINIMUM_WATER_VOLUME_ML;\n } else if (this.ageInWeeks <= MATURE_FISH_AGE_IN_WEEKS) {\n return MINIMUM_WATER_VOLUME_ML * this.ageInWeeks / YOUNG_FISH_AGE_IN_WEEKS;\n } else if (this.ageInWeeks <= MAXIMUM_AGE_IN_WEEKS) {\n return MINIMUM_WATER_VOLUME_ML * MATURE_FISH_WATER_VOLUME_CONSTANT;\n }\n return 0.0;\n }",
"public int getMinRange() {\r\n return fMinRange;\r\n }",
"public float getUpperBound()\n {\n return fUpperBound;\n }",
"public double getMaxHp() {\n return maxHp;\n }",
"public int getSupplyMovementRate() {\n return supplyMovementRate;\n }",
"public java.math.BigInteger getGBInterval_to(){\n return localGBInterval_to;\n }",
"public double getDelaunayThreshold() {\n return delaunayThreshold;\n }",
"public long getLowerTBound() {\n\t\treturn this.lowerTBound;\n\t}",
"double getMaxActiveAltitude();",
"int getRange();",
"public WorldDistance getInvestigateHeight()\n\t{\n\t\treturn _investigateHeight;\n\t}",
"public double mageStrike()\r\n\t{\r\n\t\tdouble r = random.nextDouble();\r\n\t\tdmg2 = dmg + ((2*pRange)/100) * (r - 0.5) * dmg;\r\n\t\tif (r < (crit/100))\r\n\t\t{\r\n\t\t\tdmg2 = 2*dmg2;\r\n\t\t\taggro = aggro * 1.4;\r\n\t\t}\r\n\t\taggro = aggro * 1.2;\r\n\t\treturn dmg2;\r\n\t}",
"public float getMinAvailability()\n\t{\n\t\treturn piecePicker.getMinAvailability();\n\t}",
"public int getPlunder(Unit attacker, Random random) {\n RandomRange range = getPlunderRange(attacker);\n return (range == null) ? 0\n : range.getAmount(\"Plunder \" + getName(), random, false);\n }",
"public int getDefensePower() {\n return defensePower;\n }",
"public int getOvertimeHourlyWage() {\n return overtimeHourlyWage;\n }",
"public double getDropAmount() {\n return dropAmount;\n }",
"private double getRangeToTarget(TargetReport target)\n\t{\n\t\tif (target != null)\n\t\t{\n\t\t\t// chose to use height because most consistent across view angles\n\t\t\t// d = TargetHeightFeet*FOVHeightPixel / (2*TargetHeightPixel*tan(FOV/2) ) (HYPOTENUSE)\n\t\t\treturn TARGET_HEIGHT*IMAGE_HEIGHT / (2*target.height*Math.tan(Math.toRadians(CAMERA_FOV/2)))\n\t\t\t\t\t*Math.cos(Math.toRadians(CAMERA_ELEVATION)); // convert to horizontal\n\t\t}\n\t\telse\n\t\t\treturn 0;\n\t}",
"public long getUpperTbound() {\n\t\treturn this.upperTBound;\n\t}",
"public String getRange() {\n return this.range;\n }",
"public double getMaxHealth() {\n return maxHealth;\n }",
"public Rectangle getBounds() {\r\n return new Rectangle(x, y, 55, 51);\r\n }"
] | [
"0.6376715",
"0.6339109",
"0.6173729",
"0.61593956",
"0.6133902",
"0.6074361",
"0.6067393",
"0.59990543",
"0.5989658",
"0.5917186",
"0.5899067",
"0.5774022",
"0.5750719",
"0.57506275",
"0.57428384",
"0.5733769",
"0.57024044",
"0.56246346",
"0.5623543",
"0.5622912",
"0.5621853",
"0.56155735",
"0.56036675",
"0.5574539",
"0.5565662",
"0.55645525",
"0.55471236",
"0.5543473",
"0.55138236",
"0.55130357",
"0.55082107",
"0.5506612",
"0.55060387",
"0.5498307",
"0.548759",
"0.54834497",
"0.5481707",
"0.5473353",
"0.5470691",
"0.5470246",
"0.5452631",
"0.54515755",
"0.5441204",
"0.5433895",
"0.5426564",
"0.5426121",
"0.54148865",
"0.5407549",
"0.5400744",
"0.5388389",
"0.53871024",
"0.5383519",
"0.53815883",
"0.53796417",
"0.5366281",
"0.5361932",
"0.536129",
"0.53576183",
"0.5356606",
"0.5344918",
"0.5343284",
"0.5335115",
"0.5323307",
"0.53216445",
"0.5314464",
"0.5310358",
"0.5308225",
"0.53031564",
"0.5302284",
"0.5300196",
"0.529798",
"0.52967757",
"0.52967757",
"0.52853346",
"0.5283828",
"0.5282487",
"0.5276927",
"0.5271503",
"0.5270979",
"0.5269732",
"0.5268025",
"0.5264843",
"0.52630794",
"0.52609324",
"0.5254205",
"0.5252465",
"0.5246868",
"0.52430975",
"0.52417624",
"0.5238191",
"0.5233477",
"0.5209546",
"0.52085954",
"0.520614",
"0.5194244",
"0.5180266",
"0.51732254",
"0.517272",
"0.51721245",
"0.5171066"
] | 0.6698166 | 0 |
Gets an amount of plunder when this settlement is taken. | public int getPlunder(Unit attacker, Random random) {
RandomRange range = getPlunderRange(attacker);
return (range == null) ? 0
: range.getAmount("Plunder " + getName(), random, false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"double getUnpaidAmount();",
"public double getUnpaidBalance() \r\n\t{\r\n\t\t\r\n\t\treturn unpaidBalance;\r\n\t\t\r\n\t}",
"public static int totalSupply() {\n return totalSupplyGet();\n }",
"public double getmoneyremainingtoSave()\n\t{\n\t\treturn this.getIdealAmount()-this.moneySaved();\n\t}",
"public double dollarTorp()\r\n\t{\r\n\t\treturn getAmount() * 14251.25;\r\n\t}",
"public long calcRemaining(){\n return getGrandTotal() - getTotalPaid();\n }",
"public String getPAST_DUE() {\r\n return PAST_DUE;\r\n }",
"public static int getSupplyTotal() {\n return Atlantis.getBwapi().getSelf().getSupplyTotal() / 2;\n }",
"public int getMoneyAfterBet() {\n moneyAfterBet = initialBudget - betAmount;\n // initialBudget = moneyAfterBet;\n return moneyAfterBet;\n\n }",
"public double getPaymentDue()\n\t{\n\t\tif(this.inProgress())\n\t\t{\n\t\t\tdouble start = ParkingRateUtil.calculateCost(this.clock.getTime()-this.currentTicket.getStartTime());\n\t\t\tdouble payed = ParkingRateUtil.calculateCost(this.currentTicket.getPaymentTime()-this.currentTicket.getStartTime());\n\t\t\tif(this.currentTicket.getPaymentTime() != 0)\n\t\t\t{\n\t\t\t\tif (this.clock.getTime()-this.currentTicket.getPaymentTime()>ParkingRateUtil.EXIT_TIME_LIMIT)\n\t\t\t\t{return start-payed;}\n\t\t\t\treturn payed;\n\t\t\t}\n\t\t\treturn start;\n\t\t}\n\t\treturn 0.0;\n\t}",
"public double getSettlementDiscountPercent() {\n return (settlePct);\n }",
"public Long getSettlementmoney() {\n return settlementmoney;\n }",
"public double getmoneySaved()\n\t{\n\t\treturn this.getincome()-this.getexpense();\n\t}",
"public double getBalance() {\n\n double balance = 0;\n balance = overDraftLimit;\n return balance;\n\n }",
"public double getPUtilization() {\n return pUtilization;\n }",
"public java.lang.Double getTotalOverdueAmount() {\n return totalOverdueAmount;\n }",
"public int getMoney() {\n return this.budget;\n }",
"public double calculateChangeToGive() {\r\n\t\treturn amountPaid - amountToPay;\r\n\t}",
"public double uninvested() {\r\n\t\treturn getAmount() - allocated();\r\n\t}",
"public int getLevelUpCost() {\n\t\treturn levelUpCost;\n\t}",
"public BigDecimal getOverdueAmount() {\n return overdueAmount;\n }",
"public int raiseMoney()\r\n {\r\n int total = super.raiseMoney();\r\n getCandidate().setMoneyMod(getCandidate().getMoneyMod() - .05);\r\n return total;\r\n }",
"protected double getPay() {\n\t\tint extraHrs = 0;\n\t\tif (this.hoursWrkd > 40) {\n\t\t\textraHrs = this.hoursWrkd - 40;\n\t\t\treturn (hourlyRate * 40) + (extraHrs * (hourlyRate * 1.5));\n\t\t} else {\n\t\t\treturn hoursWrkd * hourlyRate;\n\t\t}\t\t\n\t}",
"public double salaryPay() {\n\t\treturn overtimePay() + getSalary();\n\t}",
"public double getPayment() {\n\t\treturn getNumHours() * getHourlyRates();\n\t}",
"public double FuelRemaining()\n {\n \treturn amountOfFuelInTheTank;\n }",
"public int getWorth()\n {\n return worth;\n }",
"public double getPowerUpProbabilityPillar() {\n \t\treturn 0.15;\n \t}",
"public int getMoney() {\n return wallet.getMoney();\n }",
"public double getWorth() {\r\n\t\treturn worth;\r\n\t}",
"public double getAmount() {\r\n\t\treturn investmentAmount;\r\n\t}",
"public double getMoney() { //Not useful for the project but used on the test.\n\t\treturn money;\n\t}",
"public double getUncoveredSlipAnnualLease(){//added by Nathalie\n double annualLeaseAmount = UNCOVERED_SLIP_BY_LINEAR_FOOT * slipLenght;\n return annualLeaseAmount;\n }",
"public double getrealamounttoSavemonthly()\n\t{\n\t\treturn this.moneyremainingtoSave()%this.gettimetoAchieve();\n\t}",
"public float PL() { //negative for a loss and positive for a win.\r\n\t\tif (!isClosed()) {\r\n\t\t\tSystem.err.println(\"Cannot compute PL if trade is on\");\r\n\t\t\treturn -1f;\r\n\t\t}\r\n\t\tif (dir == Direction.SHORT) {\r\n\t\t\treturn (entryPrice - exitPrice) * numberOfShares;\r\n\t\t}\r\n\t\t//Long\r\n\t\treturn (exitPrice - entryPrice) * numberOfShares;\r\n\t}",
"public double getTotalOwed() {\r\n\t\treturn totalOwedToYou;\r\n\t}",
"@Override\n public int tonKho() {\n return getAmount() - amountBorrow;\n }",
"public BigDecimal getEntrustPaid() {\n return entrustPaid;\n }",
"public int getThunderTime()\n {\n return thunderTime;\n }",
"public float getPressure() {\n pressure = calculatePressure();\n return pressure;\n }",
"public double getPrice() {\n double price = BASE_PRICE;\n for (Topping topping : toppings) {\n if (topping.isPremium()) {\n price += 1.25;\n } else {\n price += 0.75;\n }\n }\n return price;\n }",
"public int getToll() {\n\t\treturn toll;\n\t}",
"double getPaidAmount();",
"public BigDecimal getArtificialWithdrawMoney() {\n return artificialWithdrawMoney;\n }",
"Double getTotalSpent();",
"public BigDecimal getWithdrawMoney() {\n return withdrawMoney;\n }",
"public int getPoundsOfFoodNeeded() {\n\t\treturn this.poundsOfFoodNeeded;\n\t}",
"public double getDepositAmount()\n\t{\n\t\treturn this.getFlightCosts() + this.totalPrice * this.half;\n\t}",
"public Double getPrizeAmount() {\n return prizeAmount;\n }",
"public BigDecimal getPbackPaid() {\n return pbackPaid;\n }",
"public Integer getRefundMoney() {\n return refundMoney;\n }",
"public int getCostUnderestimate() {\n int bottomLoad = 0;\n int bottomLevel = 0;\n int loadBalance = ((AlgorithmConfig.getTotalNodeWeight() + getIdleTime()) / AlgorithmConfig.getNumOfProcessors());\n for (ScheduledTask scheduledTask : this) {\n bottomLevel = Math.max(bottomLevel, scheduledTask.getStartTime() + scheduledTask.getNode().getBottomLevel());\n bottomLoad = Math.max(bottomLoad, scheduledTask.getNode().getBottomLoad()/AlgorithmConfig.getNumOfProcessors() + scheduledTask.getFinishTime());\n }\n return Math.max(bottomLevel, Math.max(loadBalance, bottomLoad));\n }",
"public BigDecimal getPREPAID_AMOUNT() {\r\n return PREPAID_AMOUNT;\r\n }",
"double getPaid();",
"public int getTotalSupply() {\n if (this.totalSupply == -1) {\n int tempTotalSupply = 0;\n for (G good : this.goods) {\n tempTotalSupply += good.getSupply();\n }\n this.totalSupply = tempTotalSupply;\n }\n return this.totalSupply;\n }",
"public int getCoinsPickedUp() {\n return coinsPickedUp;\n }",
"public int getMoney() {\n\t\tint money = super.getMoney();\n\t\treturn money;\n\t}",
"public double getSavingsBalance() {\n return savingsBalance;\n }",
"public double getMoney() {\n\t\treturn totalMoney;\n\t}",
"public int getMoney() {\n return money_;\n }",
"public double getSupplyToDemandRatio() {\n return (this.supplyToDemandRatio == -1.0) ? (double) this.getTotalSupply() / this.getTotalDemand() : this.supplyToDemandRatio;\n }",
"int getBurnDuration();",
"public int getMoney() {\n return money_;\n }",
"public BigDecimal getBackPaid() {\n return backPaid;\n }",
"public Double getTotalBuyMoney() {\r\n return totalBuyMoney;\r\n }",
"public double getMoney() {\n return money_;\n }",
"public double getAmountEarned(){\r\n return getSalary() + getBonus() + getCommission() * getNumSales();\r\n }",
"public double getMoney() {\n return money_;\n }",
"@Override \n public double getPaymentAmount() \n { \n return getWeeklySalary(); \n }",
"public int getSupplyMovementRate() {\n return supplyMovementRate;\n }",
"public double getBalanceDue(double paymentMade){\n balanceDue -= paymentMade;\n return balanceDue;\n }",
"public BigDecimal getTotalAmountDue() {\n\t\treturn totalAmountDue;\n\t}",
"public int getRemainingWeight() { // get the remaining weight\n\t\treturn maximumWeight - cargoWeight;\n\t}",
"public int getMoney() {\n \t\treturn money;\n \t}",
"public BigDecimal getPREPAID_PROFIT_AMOUNT() {\r\n return PREPAID_PROFIT_AMOUNT;\r\n }",
"public double getDropAmount() {\n return dropAmount;\n }",
"private double calculateMoneyToSpend() {\n\t\tdouble moneyToSpend = getMoney();\n\t\tif(moneyToSpend < 300) {\n\t\t\tmoneyToSpend = 0;//We do not want the player to go below 200E\n\t\t}\n\t\telse if(moneyToSpend < 500) {\n\t\t\tmoneyToSpend *= 0.34;\n\t\t}\n\t\telse if(moneyToSpend < 1000) {\n\t\t\tmoneyToSpend*= 0.4;\n\t\t}\n\t\telse if(moneyToSpend < 1500) {\n\t\t\tmoneyToSpend*= 0.5;\n\t\t}\n\t\telse if(moneyToSpend < 2000) {\n\t\t\tmoneyToSpend*= 0.6;\n\t\t}\n\t\telse {\n\t\t\tmoneyToSpend*= 0.7;\n\t\t}\n\t\treturn moneyToSpend;\n\t}",
"public Money getPerUnitDeclaredValue() {\n return perUnitDeclaredValue;\n }",
"public Amount getTotalAmountSpent() {\n return this.totalAmountSpent;\n }",
"public void claimDollars() {\n if (totalSpent >= 5000) {\n airlineDollars += ( ((totalSpent - (totalSpent % 5000)) / 5000) * 400);\n totalSpent = totalSpent % 5000;\n }\n }",
"public double holdings()\n\t{\n\t\treturn _dblHoldings;\n\t}",
"public String getSupEntMoney() {\n return supEntMoney;\n }",
"public double getAmount() \r\n {\r\n assert(true);\r\n return amount;\r\n }",
"public long getMoney() {\n return money;\n }",
"public BigDecimal getTOTAL_PRINCIPAL_OUTSTANDIG() {\r\n return TOTAL_PRINCIPAL_OUTSTANDIG;\r\n }",
"public double getBankroll() {\n return bankroll;\n }",
"public int getMoney() {\r\n\t\treturn money;\r\n\t}",
"public int getMoney() {\r\n\t\treturn money;\r\n\t}",
"public double getHoldTime();",
"public int getUpkeep() {\n return upkeep;\n }",
"public Integer getPourcentage() {\n\t\treturn this.pourcentage;\n\t}",
"int getToughness(Unit unit);",
"public double getPreDeductionTotal() {\n\t\tdouble preTotal = 0.0;\n\t\tpreTotal += MathUtil.roundDecimal( getSubTotal() );\n\t\tpreTotal += MathUtil.roundDecimal( getTaxValue() );\n\t\tpreTotal += MathUtil.roundDecimal( getDepositValue() );\n\n\t\t// apply charges\n\t\tfor ( ErpChargeLineModel m : getCharges() ) {\n\t\t\tpreTotal += MathUtil.roundDecimal( m.getTotalAmount() );\n\t\t}\n\t\treturn MathUtil.roundDecimal( preTotal );\n\t}",
"public BigDecimal getTotalDue() {\n\t\treturn totalDue;\n\t}",
"public ArmCurrency getSettlementDiscountAmount() {\n ArmCurrency rtnVal = settleAmt;\n if (isReturn && rtnVal != null) {\n rtnVal = rtnVal.multiply( -1).round();\n }\n return (rtnVal);\n }",
"public synchronized int getUPS() {\n return ups;\n }",
"public int getMoney()\n\t{\n\t\treturn money;\n\t}",
"public double getBalance(){\n return balance.getBalance();\n }",
"@Override\n public double earnings() {\n if (getHours() < 40)\n return getWage() * getHours();\n else\n return 40 * getWage() + ( getHours() - 40 ) * getWage() * 1.5;\n }",
"@Override\r\n\tpublic int getRent() {\n\t\tint rent = 0;\r\n\t\tif (owner != null) {// if the instance is owned, the rent is calculated.\r\n\t\t\trent = cup.roll() * baseRent * owner.ownedTypes(this);// Gets a roll\r\n\t\t}\r\n\t\treturn rent;\r\n\t}"
] | [
"0.64368314",
"0.6394126",
"0.6300869",
"0.6195545",
"0.6143352",
"0.6110848",
"0.60826105",
"0.6065446",
"0.60360307",
"0.5968639",
"0.59494394",
"0.5943599",
"0.5890573",
"0.5883707",
"0.58788735",
"0.58753234",
"0.5869811",
"0.58451426",
"0.58427775",
"0.5835488",
"0.5828826",
"0.5828785",
"0.58224225",
"0.5821366",
"0.5821131",
"0.58178735",
"0.58084434",
"0.5807703",
"0.5792601",
"0.5773584",
"0.5771019",
"0.57579553",
"0.575188",
"0.57440656",
"0.5740403",
"0.5734289",
"0.5726455",
"0.5724472",
"0.5715269",
"0.5708854",
"0.5705589",
"0.5702538",
"0.5683802",
"0.5681365",
"0.568115",
"0.5677804",
"0.5677621",
"0.56761354",
"0.56753707",
"0.5673369",
"0.5670376",
"0.56587285",
"0.5655425",
"0.5654255",
"0.56539047",
"0.56455654",
"0.56418765",
"0.56386995",
"0.5637858",
"0.56281954",
"0.559911",
"0.5593577",
"0.5590147",
"0.55888224",
"0.5576121",
"0.5569253",
"0.55677044",
"0.5560915",
"0.55586",
"0.55585635",
"0.55533224",
"0.5551556",
"0.555061",
"0.5547994",
"0.55471885",
"0.5545887",
"0.5543304",
"0.5542089",
"0.5537951",
"0.5530134",
"0.55254805",
"0.55245215",
"0.55229294",
"0.55181926",
"0.5514377",
"0.550833",
"0.55080324",
"0.55080324",
"0.5504774",
"0.54989314",
"0.5498546",
"0.54962915",
"0.5493423",
"0.5493275",
"0.5479109",
"0.54779327",
"0.54748785",
"0.5469066",
"0.54687196",
"0.5468099"
] | 0.6559063 | 0 |
Gets the Tile where this Settlement is located. | public Tile getTile() {
return tile;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Tile getTile() {\n\t\treturn tile;\n\t}",
"public Tile getTile()\r\n\t{\r\n\t\tif(this.hasTiles())\r\n\t\t\treturn _tiles.remove(0);\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}",
"public Tile getTile(){\n\t\treturn currentTile;\n\t}",
"public Tile getTile() {\n return _tile;\n }",
"Tile getTile() {\n if (tiles.size() == 0) {\n return null;\n } else {\n int randomIndex = ThreadLocalRandom.current().nextInt(0, tiles.size());\n Tile result = tiles.get(randomIndex);\n tiles.remove(randomIndex);\n return result;\n }\n }",
"public Tile getTile() { return tile; }",
"public Location getLocation() {\n return ((Location) tile);\n }",
"public TileLocation getLocation() {\n return location;\n }",
"public Tile getTileAt(Position p);",
"public int getTileId() {\n\t\treturn tileId;\n\t}",
"private Tile getTileAt(Position p) {\n return getTileAt(p.getRow(), p.getCol());\n }",
"public abstract Tile getTileAt(int x, int y);",
"public Tile getTileAt(Point position) {\n\t\treturn getTileAt(position.x, position.y);\n\t}",
"TileItem getCurrentTile();",
"public int getTile(int t) {\n switch (t) {\n case HARDFLOOR: return hardfloors[type];\n case HARDWALL: return hardwalls[type];\n case SOFTFLOOR: return softfloors[type];\n case SOFTWALL: return softwalls[type];\n case STREAM: return streams[type];\n case RIVER: return rivers[type];\n } \n return Tile.WALL;\n }",
"@Override\n\tpublic final Tile getLocation() {\n\t\tfinal Client client = Loader.getClient();\n\t\treturn new Tile(client.getBaseX() + getLocalRegionX(),\n\t\t\t\tclient.getBaseY() + getLocalRegionY(), client.getPlane());\n\t}",
"public TileEnum getSelectedTile() {\n return selectedTile;\n }",
"public Tile getTile(int x, int y) {\r\n assert (tiles != null);\r\n \r\n if (x < 0 || y < 0 || x >= width || y >= height) {\r\n return Tile.floorTile;\r\n }\r\n \r\n Tile t = Tile.tiles[tiles[x][y]];\r\n if (t == null) {\r\n return Tile.floorTile;\r\n }\r\n return t;\r\n }",
"public final Tile getTile(Player p, int ID) {\n\n\t\tTile tile = getTile(p, p.getX(), p.getY());\n\t\tif (tile != null && tile.getID() == ID)\n\t\t\treturn tile;\n\n\t\tSystem.err.println(\"Returning Null\");\n\t\treturn null;\n\t}",
"public TileMap getMyTileMap() {\n return this.myTileMap;\n }",
"public final Optional<Tile> getTile(final GridPoint2D tilePoint) {\n\t if ((tilePoint.getRow() >= 0) && \n\t (tilePoint.getRow() < mLayout.size()) &&\n\t (tilePoint.getColumn() >= 0) && \n\t (tilePoint.getColumn() < mLayout.get(tilePoint.getRow()).size())) {\n\t return Optional.<Tile>of(mLayout.get(tilePoint.getRow()).get(tilePoint.getColumn()));\n\t } \n\t // The indicated point was outside of the battlefield, so return a null\n\t else {\n\t return Optional.<Tile>absent();\n\t }\n\t}",
"public OthelloTile getTile(Point p) {\n if(p == null) {\n return null;\n }\n int x = (p.x-35)/grid[0][0].getPreferredSize().width;\n int y = (p.y-35)/grid[0][0].getPreferredSize().height;\n if(x<0 || x>=grid.length || y<0 || y>=grid[0].length) {\n return null;\n }\n return grid[y][x];\n }",
"private Tile getTileAt(int x, int y)\n {\n int tileAt = y * TILES_PER_ROW + x;\n \n if (tileAt >= tileset.getTileCount())\n {\n return null;\n }\n else \n {\n return tileset.getTile(tileAt);\n }\n }",
"public Tile getTile(int x, int y) {\n\t\tif (x < 0 || x >= width || y < 0 || y >= height) {\n\t\t\treturn Tile.voidTile;\n\t\t}\n\t\treturn tiles[x + y * width];\n\t}",
"public Tile getTile(int x, int y, int z) {\r\n\t\treturn map.getTile(x, y, z);\r\n\t}",
"public Class<? extends TileEntity> getTileEntity() {\n return this.tileEntity;\n }",
"public int tileType(){\n\t\treturn this.type;\n\t}",
"@Override\n public ITile getClosestTile(int x, int y) {\n return getClosestTile(new Point(x, y), getTileSize());\n }",
"@Override\n public SquareTile getTile(Point location) {\n return getTile(location.getX(), location.getY());\n }",
"private VolaTile getCaveTile() {\n/* */ try {\n/* 2147 */ Zone z = Zones.getZone(this.tilex, this.tiley, false);\n/* 2148 */ return z.getOrCreateTile(this.tilex, this.tiley);\n/* */ }\n/* 2150 */ catch (NoSuchZoneException noSuchZoneException) {\n/* */ \n/* */ \n/* 2153 */ logger.log(Level.WARNING, \"No cave tile for \" + this.tilex + \", \" + this.tiley);\n/* 2154 */ return this;\n/* */ } \n/* */ }",
"public Tile getTile(int x, int y){\n\t\tif(x < 0 || y < 0 || x >= width || y >= height){\r\n\t\t\treturn Tile.grassTile;\r\n\t\t}\r\n\t\t\r\n\t\t//tiles[x][y] give us the id and the tiles[id] is the texture\r\n\t\tTile t = Tile.tiles[tiles[x][y]]; \r\n\t\tif(t == null){\r\n\t\t\t//If you try to access undefined tile index, return dirt tile as default\r\n\t\t\treturn Tile.dirtTile; \r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn t;\r\n\t\t}\r\n\t}",
"@Override\n public SquareTile getTile(int x, int y) {\n // Check that the location is inside the grid\n if (x < 0 || x >= width || y < 0 || y >= height)\n return null;\n\n return tiles[x * width + y];\n }",
"public Tile[][] getTileMap(){\r\n\t\treturn tileMap;\r\n\t}",
"public Tile getInitTile() {\n return new Tile(initItem.type + \"-Init\", initItem.left, initItem.right,\n initItem.up, initItem.down, initItem.center, initItem.coatOfArms, initItem.separatedCities);\n }",
"public int getTileType() {\r\n\t\treturn 3;\r\n\t}",
"public int getTileX()\n\t{\n\t\treturn this.tileX;\n\t}",
"SerializableState getTile(Long id, int x, int y) throws RemoteException;",
"public Tile getTile(int x, int y) {\n\t\tif(!isValidCoordinates(x,y)){\n\t\t\t//remove later -F\n\t\t\tSystem.out.println(\"Invalid\");\n\t\t\treturn tileGrid[0][0]; //will add handling in check later -F\n\t\t}\n\t\telse{\n\t\t\treturn tileGrid[x][y];\n\t\t}\n\t}",
"public int getTile(int x, int y)\n {\n return tilemap[x][y];\n }",
"public abstract TiledMapTileSet getTileSet();",
"public BoardTile getTile(int column, int row) {\r\n return tiles[column][row];\r\n }",
"public MapEntity getTileAt(int x, int y) {\n\t\ttry {\n\t\t\treturn tiles.get(y)[x];\n\t\t}\n\t\tcatch(IndexOutOfBoundsException | NullPointerException e) {\n\t\t\treturn null;\n\t\t}\n\t}",
"@Override\n public Tile getFirst() {\n return tiles.iterator().next();\n }",
"private Tile getTile(int x, int y) {\n\t\tif (x < 0 || x > width || y < 0 || y > height) return Tile.VOID;\n\t\treturn Tile.tiles[tiles[x + y * width]];\n\t}",
"public int getTileX() {\n\t\treturn tileX;\n\t}",
"public Tile getTile(int x, int y) {\n\t\tif (x < 0 || x >= (this.width / Tile.WIDTH) || y < 0 || y >= (this.height / Tile.HEIGHT)) {\n//\t\t\tSystem.out.println(x + \" \" + y + \" \" + \"comes heere\");\n\t\t\treturn VoidTiled.getInstance();\n\t\t}\n\t\treturn tiles[x + y * (this.width / Tile.WIDTH)];\n\t}",
"public Tile getTile(int x, int y)\n\t{\n\t\t\n\t\tif(x < 0 || y < 0 || x >= width || y >= height)\n\t\t{\n\t\t\tSystem.out.println(\"wrong\");\n\n\t\t\treturn Tile.dirt;\n\t\t}\n\t\t\n\t\tTile t = Tile.tiles[worldTiles[x][y]];\n\t\t// if the tile is null returns dirt on default\n\t\tif(t == null)\n\t\t{\n\t\t\tSystem.out.println(\"null\");\n\n\t\t\treturn Tile.dirt;\n\t\t}\n\t\treturn t;\n\t}",
"public int getTile(int x, int y)\n {\n try {\n return board[x][y];\n } catch (ArrayIndexOutOfBoundsException e) {\n return EMPTY_FLAG;\n }\n }",
"public Tile getTile(int pos) {\n\t\tObject t = tileList.get(pos);\n\t\tif(t instanceof Property){\n\t\t\treturn (Property) t;\n\t\t} else if(t instanceof TaxTile){\n\t\t\treturn (TaxTile) t;\n\t\t} else { // Should not happen\n\t\t\treturn (Tile) t;\n\t\t}\n\t}",
"public FloorTile getGoalTile() {\r\n return goalTile;\r\n }",
"String getTileType();",
"public Tile getCurrent(){\n\t\tif(generated)\n\t\t\treturn deck.get(curr);\n\t\tthrow new RuntimeException(\"Deck must be generated before using it\");\n\t}",
"public int getTileY()\n\t{\n\t\treturn this.tileY;\n\t}",
"public int getTileY() {\n\t\treturn tileY;\n\t}",
"protected Optional<Tile> getTile(Coordinate c) {\n\t\tfor (Tile t : model.getPuzzle()) {\n\t\t\tif (t.contains(c)) {\n\t\t\t\treturn Optional.of(t);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn Optional.empty(); \n\t}",
"public FloorTile getTileAt(int row, int col) {\n return board[row][col];\n }",
"private Tile getTileAt(int row, int col) {\n return getTiles()[row][col];\n }",
"public Node getBoardNode() {\r\n return tilesNode;\r\n }",
"public Tile removeTile() {\n if (tileBag.size() == 0) {\n return null;\n }\n return tileBag.remove(0);\n }",
"@Override\n public Tile get(int left, int top) {\n if (left < 1) return null;\n if (top < 1) return null;\n int index = getPosition(left, top);\n if (index >= tiles.size()) {\n return null;\n }\n\n return this.tiles.get(index);\n }",
"public int getMaxTileX() {\n return convertXToTileX(getMaxX() - 1);\n }",
"public int getTileLevel()\n {\n return tileLevel;\n }",
"public Tile getTile(Coordinaat crd){\n\n for(int Y=0; Y<size; Y++){\n for(int X=0; X<size; X++){\n if(crd.compareTo(tiles[X][Y].getCoordinaat()) == 0){\n return tiles[X][Y];\n }\n }\n }\n \n return null;\n }",
"public FloorTile getTileFromTheBoard(int row, int col) {\r\n return board[row][col];\r\n }",
"protected Tile getTile( Tile[] tiles, int x, int y ) {\n return tiles[ (y * getHeightInTiles()) + x ];\n }",
"public MapTile getTile(int x_pos, int y_pos) {\n if (x_pos < 0 || y_pos < 0 || x_pos >= map_grid_[0].length || y_pos >= map_grid_.length) {\n return null;\n }\n return map_grid_[y_pos][x_pos];\n }",
"public DungeonObject getDungeonTile(int x, int y) {\n\t\treturn dungeonRoom[x][y];\r\n\t}",
"public void getTile_B8();",
"public Tile getRandomFreeTile() {\n\n\t\tRandom random = new Random();\n\t\tArrayList<Tile> emptyTiles = getEmptyTiles();\n\t\tTile randomTile = emptyTiles.get( random.nextInt(emptyTiles.size()));\n\t\treturn randomTile;\n\t}",
"public int getTileSize() {\r\n\t\treturn this.tileSize;\r\n\t}",
"public Piece getPieceInTile() {\n \r\n return pieceInTile;\r\n }",
"private static TETile getRandomTile() {\n Random r = new Random();\n int tileNum = r.nextInt(5);\n switch (tileNum) {\n case 0: return Tileset.FLOWER;\n case 1: return Tileset.MOUNTAIN;\n case 2: return Tileset.TREE;\n case 3: return Tileset.GRASS;\n case 4: return Tileset.SAND;\n default: return Tileset.SAND;\n }\n }",
"public Tile getNext(){\n\t\treturn this.next;\n\t}",
"public Image getTileImage(){\n\t\treturn tileImage;\n\t}",
"public Planet getLocation() {\n\t\treturn currentLocation;\n\t}",
"public Tile getSample() {\n return (Tile) super.getSample();\n }",
"Tile getPosition();",
"public Rect getTileRect(){\n return this.tileRect;\n }",
"public Tile getTile(int i, int k) {\n return tiles[i][k];\n }",
"public Tiles getTiles() {\n return tiles;\n }",
"public Tile getRandomLegalTile(){\n\t\tRandom random = new Random();\n\t\tArrayList<Tile> legalTiles = getAllLegalMoves(Game.getInstance().getCurrentPlayerColor());\n\t\tTile randomTile = legalTiles.get( random.nextInt(legalTiles.size()));\n\t\treturn randomTile;\n\t}",
"public Tile getNextTile(Unit u);",
"public Point getStartPoint() {\n // First, this is Settler's location\n UnitList units = unitService.findByClassUuid(Settlers.CLASS_UUID);\n if (units != null && !units.isEmpty()) {\n return units.getAny().getLocation();\n }\n\n // If Settlers were destroyed then it is the first city's location\n City city = cityService.getAny();\n if (city != null) {\n return city.getLocation();\n }\n\n // If there is no cities, then the first Unit's location\n AbstractUnit unit = unitService.getAny();\n if (unit != null) {\n return unit.getLocation();\n }\n\n // If there is no units then (0, 0)\n return new Point(0, 0);\n }",
"public TilesManager getTilesManager() {\n return this.tilesManager;\n }",
"public Board twin() {\n if (tiles[0][0] != 0 && tiles[0][1] != 0)\n return new Board(tiles, new Position(0, 0), new Position(0, 1));\n else\n return new Board(tiles, new Position(1, 0), new Position(1, 1));\n }",
"public Tile getTileInLocation(Location location) throws LocationException {\n\n\t\tif (location == null) return null;\n\t\tArrayList<Tile> tilesInRow = getTilesinRow(location.getRow());\n\t\tif(tilesInRow != null) {\n\t\t\treturn tilesInRow.get(location.getColumn() - 'A');\n\t\t}else {\n\t\t\tthrow new LocationException(\"Error: Row \" + location.getRow() + \" has no tiles\");\n\t\t}\n\n\t}",
"public final World getWorld() {\n\t\treturn baseTile.getWorld();\n\t}",
"public Node getLastSettlementNode() {\r\n\t\treturn lastSettlementNode;\r\n\t}",
"public Town getLocation() {\n\t\treturn new Town(\"St James's Gate, Ushers, Dublin 8\");\r\n\t}",
"@Override\n public int getTileHeight() {\n return this.tileHeight;\n }",
"public Location getTransportDestination() {\n Tile target = (hasTools())\n ? ((!checkTileImprovementPlan(tileImprovementPlan)) ? null\n : tileImprovementPlan.getTarget())\n : ((!checkColonyForTools(getAIUnit(), colonyWithTools)) ? null\n : colonyWithTools.getTile());\n return (shouldTakeTransportToTile(target)) ? target : null;\n }",
"public Tile getPath() {\n\t\treturn path;\n\t}",
"public int getTileSize() {\r\n\t\treturn tSize;\r\n\t}",
"@Override\n public int getMinTileY() {\n return convertYToTileY(getMinY());\n }",
"public BufferedImage getSingleTile(final int x, final int y) {\n return this.sheet.getSubimage(x * TILE_SIZE_IN_GAME, y * TILE_SIZE_IN_GAME, TILE_SIZE_IN_GAME,\n TILE_SIZE_IN_GAME);\n }",
"public Tile[][] getTiles() {\n return tiles;\n }",
"public Tile[][] getTiles() {\n return tiles;\n }",
"public Location getLocation() {\n return getLocation(null);\n }",
"public Town getTraleeLocation1() {\n\t\treturn new Town(\"Town Park Denny Street\");\r\n\t}"
] | [
"0.76218086",
"0.74922115",
"0.73653716",
"0.72272027",
"0.7157457",
"0.70209795",
"0.68599033",
"0.6714734",
"0.66735333",
"0.66359544",
"0.65455085",
"0.6498958",
"0.6492656",
"0.64882636",
"0.64583975",
"0.64080966",
"0.63901526",
"0.6365932",
"0.635112",
"0.634407",
"0.63438654",
"0.62967443",
"0.6296282",
"0.62881184",
"0.627623",
"0.6247319",
"0.6234129",
"0.6229976",
"0.6229468",
"0.62237966",
"0.62198406",
"0.62183154",
"0.6191077",
"0.618356",
"0.61804837",
"0.6179995",
"0.6175472",
"0.6127425",
"0.61254764",
"0.61205494",
"0.6120206",
"0.61054265",
"0.60975444",
"0.60884106",
"0.60791534",
"0.6062742",
"0.60296774",
"0.5999155",
"0.59742177",
"0.59723556",
"0.5924978",
"0.59051824",
"0.58727777",
"0.58699226",
"0.58572423",
"0.58117175",
"0.57902104",
"0.57869244",
"0.5773507",
"0.57717216",
"0.57596487",
"0.57576025",
"0.57555693",
"0.5751496",
"0.57128525",
"0.5709437",
"0.56981665",
"0.56873596",
"0.56846386",
"0.567547",
"0.5666137",
"0.56435627",
"0.56401914",
"0.5637156",
"0.5634453",
"0.56211346",
"0.5613241",
"0.5608703",
"0.558285",
"0.5578388",
"0.55723226",
"0.55676275",
"0.5536093",
"0.55227304",
"0.5521109",
"0.5513504",
"0.5512625",
"0.5506367",
"0.5501657",
"0.54921496",
"0.5489697",
"0.5466497",
"0.5465721",
"0.5446527",
"0.544263",
"0.54368365",
"0.54315597",
"0.5430109",
"0.5406719"
] | 0.67859375 | 8 |
Put a prepared settlement onto the map. | public void placeSettlement(boolean maximal) {
List<Tile> tiles;
if (maximal) {
tiles = getGame().getMap()
.getClaimableTiles(owner, tile, getRadius());
} else {
tiles = new ArrayList<Tile>();
tiles.add(tile);
}
tile.setSettlement(this);
for (Tile t : tiles) {
t.changeOwnership(owner, this);
}
for (Tile t : tile.getSurroundingTiles(getLineOfSight())) {
owner.setExplored(t);
}
owner.invalidateCanSeeTiles();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSettlement(Settlement set);",
"public void placeSettlement(int playerID, VertexLocation loc) {\n\t\tVertex vert = verticies.get(loc.getNormalizedLocation());\n\t\tvert.setPiece(new Piece(PieceType.SETTLEMENT, null, null, playerID));\n\t}",
"public void placeSettlement(Player p, Corner c){\r\n if(c.getSettlement()==Settlement.NONE){\r\n c.placeSettlement(Settlement.SMALL,p);\r\n }\r\n else{\r\n c.placeSettlement(Settlement.LARGE, p);\r\n }\r\n }",
"@Override\r\n\tpublic void placeSettlement(VertexLocation vertLoc) {\n\t\t\r\n\t}",
"private void setupSettlementCost(){\n\t\tsettlementCost.put(ResourceKind.WOOL, 1);\n\t\tsettlementCost.put(ResourceKind.WOOD, 1);\n\t\tsettlementCost.put(ResourceKind.BRICK, 1);\n\t\tsettlementCost.put(ResourceKind.GRAIN, 1);\n\t}",
"@Override\r\n\tpublic void buildSettlement() {\n\t\t\r\n\t}",
"@SneakyThrows\n @Override\n public void prepare() {\n final String orderId = order.getId();\n final BlockingQueue<Order> queue = new LinkedBlockingDeque<>();\n if (preparedOrderMap.containsKey(orderId)) {\n throw new SimulatorException(\"Encounter repeated order id!\");\n }\n preparedOrderMap.put(orderId, queue);\n\n Thread.sleep(order.getPrepTime() * SCALE_MILLI_SECOND);\n order.setOrderPreparedTime(new Date());\n preparedOrderMap.get(orderId).put(order);\n log.info(String.format(\"Order prepared: %s\", order.getId()));\n }",
"public boolean canDoBuySettlement(){\n\t\t if(resourceCardHand.canDoPayForSettlement() == false || playerPieces.hasAvailableSettlement() == false) {\n\t\t\t return false;\n\t\t }\n\t\t // If the player does not have a valid place to put a settlement on the map, we won't let the player buy one\n\t\t if(playerPieces.canPlaceASettlementOnTheMap() == false) {\n\t\t\t return false;\n\t\t }\n\t\t return true;\n\t }",
"BrainTreeSubmitForSettlementTransactionResult submitForSettlementTransaction(\n\t\t\tBrainTreeSubmitForSettlementTransactionRequest request);",
"public Settlement(Game game, Player owner, String name, Tile tile) {\n super(game);\n this.owner = owner;\n this.name = name;\n this.tile = tile;\n \n setType(owner.getNationType().getSettlementType(false));\n }",
"public void buySettlement(Vertex vertex) throws CannotBuyException, InsufficientPlayerResourcesException, AllPiecesPlayedException{\n\t\t if(canDoBuySettlement() == false) {\n\t\t\t throw new CannotBuyException(\"Cannot Buy Settlement, possibly no vertex to place a settlement\");\n\t\t }\n\t\t resourceCardHand.payForSettlement();\n\t\t playerPieces.placeSettlement(vertex);\n\t\t // increment victory points\n\t\t totalVictoryPoints++;\n\t }",
"public void placeTile(Tile t){\n\t\t//System.out.println(t.toString() + \" was placed\");\n\t\toccupied = true;\n\t\tcurrentTile = t;\n\t}",
"private void buildSettlement() {\r\n\t\t// client.setCurrentPhase(Constants.PHASE_3);\r\n\t\tlastSettlementNode = clickedNode;\r\n\t\tMessage message = new Message(clickedNode, true, null);\r\n\t\tsendMessage(message);\r\n\t}",
"public void commitToPutAllCities() throws SQLException {\n \t\tstreetDAO.commit();\n \t}",
"public void deliver(Plate plate) throws InterruptedException {\n placeSetting.put(plate);\n }",
"@MessageMapping(\"/setupsettlement\")\n @SendTo(\"/topic/settlement\")\n public ViewPiece setupSettlement(ViewPiece pNew, Principal caller){\n System.out.println(\"Check settlement\");\n Player checkee = gameManager.getPlayerFromString(caller.getName());\n Intersection checker = gameManager.getGame().getBoard().getIntersections().get(pNew.getId());\n boolean isValid = gameManager.checkIntersectionSetupEligibility(checker);\n if(isValid) {\n gameManager.placeSettlement(checkee, checker);\n }\n pNew.setIsValid(isValid);\n return pNew;\n }",
"@Override\n public void placeSettlement(VertexLocation vertex) throws ModelException {\n assert vertex != null;\n if (!GameModelFacade.instance().canPlaceSettlement(vertex)) {\n throw new ModelException(\"Preconditions for action not met.\");\n }\n\n try {\n String clientModel = m_theProxy.buildSettlement(GameModelFacade.instance().getLocalPlayer().getIndex(), vertex, GameModelFacade.instance().isFreeRound());\n new ModelInitializer().initializeClientModel(clientModel, m_theProxy.getPlayerId());\n } catch (NetworkException e) {\n throw new ModelException(e);\n }\n }",
"@Override\r\n\tpublic void prepare(Map stormConf, String schedulerLocalDir) {\n\r\n\t}",
"void buildSettlement(VertexLocation vert, boolean free);",
"@Test\n void testSuccess_putAndLoadStreetLines() {\n tm().transact(() -> tm().put(entity));\n assertAddress(loadByEntity(entity).address, \"123 W 14th St\", \"8th Fl\", \"Rm 8\");\n }",
"public void setSettlementno(Integer settlementno) {\n this.settlementno = settlementno;\n }",
"public void setSettlementType(java.lang.String settlementType) {\n this.settlementType = settlementType;\n }",
"public void setSettlementStatus(java.lang.String settlementStatus) {\n this.settlementStatus = settlementStatus;\n }",
"public void insert(final Trip t) throws SQLException {\n long v;\n if(t.hasVehicle()) {\n v = t.getVehicle();\n if(v > vehicle) {\n vehicle = v + 1;\n }\n } else {\n v = vehicle++;\n }\n stmt.setLong(1, t.getPickupTime());\n stmt.setLong(2, v);\n stmt.setLong(3, t.getDropoffTime());\n stmt.setDouble(4, t.getPickupLat());\n stmt.setDouble(5, t.getPickupLon());\n stmt.setDouble(6, t.getDropoffLat());\n stmt.setDouble(7, t.getDropoffLon());\n stmt.executeUpdate();\n }",
"public void prepare() {\n this.shifts = new ArrayList<>();\n this.rates = new ArrayList<>();\n // bootstrap shifts and rates\n this.prepareShifts();\n this.prepareRates();\n }",
"@Override\r\n\tpublic void salvar(Plano t) {\n\t\tEntityManager em = new Conexao().getInstance();\r\n\t\tem.getTransaction().begin();\r\n\t\tem.persist(t);\r\n\t\tem.getTransaction().commit();\r\n\t\tem.close();\r\n\t}",
"public void prepareTable() {\n \tthis.table = new Tape(this.height,this.width,2,this.map);\n }",
"public void prepare() {\n\t}",
"public void pave() {\n if (!world[position.x][position.y].equals(Tileset.NOTHING)) {\n System.out.println(\"I cannot pave at this place.\");\n return;\n }\n world[position.x][position.y] = Tileset.FLOOR;\n }",
"public String buildSettlement(BuildSettlement buildSettlement) throws Exception {\n\t\tString url = server_url + \"/moves/buildSettlement\";\n\t\tURL obj = new URL(url);\n\t\tHttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\n\t\t//add request header\n\t\tcon.setRequestMethod(\"POST\");\n\t\tcon.setRequestProperty(\"User-Agent\", \"Mozilla/5.0\");\n\t\tcon.setRequestProperty(\"Accept-Language\", \"en-US,en;q=0.5\");\n\t\tcon.setRequestProperty(\"Cookie\", usercookie + \"; \" + gamecookie);\n\t\t\n\t\tJsonObject info = new JsonObject();\n\t\tinfo.addProperty(\"type\",\"buildSettlement\");\n\t\tinfo.addProperty(\"playerIndex\", buildSettlement.playerIndex);\n\t\tinfo.addProperty(\"free\", buildSettlement.free);\n\t\t\n\t\tJsonObject loc = new JsonObject();\n\t\tloc.addProperty(\"x\", buildSettlement.vertexLocation.getHexLoc().getX());\n\t\tloc.addProperty(\"y\", buildSettlement.vertexLocation.getHexLoc().getY());\n\t\tloc.addProperty(\"direction\", directions.get(buildSettlement.vertexLocation.getDir().name()));\n\t\tinfo.add(\"vertexLocation\", loc);\n\t\t\n\t\t// Send post request\n\t\tcon.setDoOutput(true);\n\t\tDataOutputStream wr = new DataOutputStream(con.getOutputStream());\n\t\twr.writeBytes(info.toString());\n\t\twr.flush();\n\t\twr.close();\n\n\t\tint responseCode = con.getResponseCode();\n\t\t//System.out.println(\"\\nSending 'POST' request to URL : \" + url);\n\t\t//System.out.println(\"Post parameters : \" + info.toString());\n\t\t//System.out.println(\"Response Code : \" + responseCode);\n\n\t\tif (responseCode == 400) {\n\t\t\tthrow new Exception();\n\t\t}\n\t\tBufferedReader in = new BufferedReader(\n\t\t new InputStreamReader(con.getInputStream()));\n\t\tString inputLine;\n\t\tStringBuffer response = new StringBuffer();\n\n\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\tresponse.append(inputLine);\n\t\t}\n\t\tin.close();\n\t\t\n\t\t//print result\n\t\t////System.out.println(response.toString());\n\t\treturn response.toString();\n\t}",
"public void confirmPrepared() {\n getCurrentOrder().setPrepared(true);\n getRestaurant().getOrderSystem().preparedOrder(getCurrentOrder());\n EventLogger.log(\"Order #\" + getCurrentOrder().getOrderNum() + \" has been prepared by chef \" + this.getName());\n doneWithOrder();\n }",
"public void saveSingleMinded(String table_name, int n, int m, int k, HashMap<String, DescriptiveStatistics> stats) throws SQLException {\n // Add the number of goods.\n DescriptiveStatistics numberOfGoods = new DescriptiveStatistics();\n numberOfGoods.addValue(n);\n stats.put(\"n\", numberOfGoods);\n // Add the number of bidders.\n DescriptiveStatistics numberOfBidders = new DescriptiveStatistics();\n numberOfBidders.addValue(m);\n stats.put(\"m\", numberOfBidders);\n // Add the bound on the size of demand set\n DescriptiveStatistics boundOnDemand = new DescriptiveStatistics();\n boundOnDemand.addValue(k);\n stats.put(\"k\", boundOnDemand);\n // Create and execute SQL statement.\n this.createAndExecuteSQLStatement(table_name, stats);\n }",
"@Override\n\tpublic void setParameters(int set, String value) {\n\t\ttransferDbData.insertValues(set, value);\n\t}",
"Map retrievePreparedTransactions();",
"@Override\n\tpublic void prepare(TopologyContext context) {\n\t\t\n\t}",
"public void insertTuple(TransactionId tid, int tableId, Tuple t)\n throws DbException, IOException, TransactionAbortedException {\n // some code goes here\n // not necessary for lab1\n DbFile dbFile = Database.getCatalog().getDatabaseFile(tableId);\n ArrayList<Page> affectedPgs = dbFile.insertTuple(tid, t);\n for (Page page : affectedPgs) {\n page.markDirty(true, tid);\n // bufferPool.replace(page.getId(), page);\n // bufferPool.remove(page.getId());\n bufferPool.put(page.getId(), page);\n }\n }",
"public void prepareInsertObject() {\n // Require modify row to prepare.\n if (getModifyRow() == null) {\n return;\n }\n\n if (hasMultipleStatements()) {\n for (Enumeration statementEnum = getSQLStatements().elements();\n statementEnum.hasMoreElements();) {\n ((SQLModifyStatement)statementEnum.nextElement()).setModifyRow(getModifyRow());\n }\n } else if (getSQLStatement() != null) {\n ((SQLModifyStatement)getSQLStatement()).setModifyRow(getModifyRow());\n }\n setCallFromStatement();\n // The statement is no longer require so can be released.\n clearStatement();\n\n super.prepareInsertObject();\n }",
"public void setSettlementmoney(Long settlementmoney) {\n this.settlementmoney = settlementmoney;\n }",
"private static void prepare(PreparedStatement preparedStatement, ReserveTime reserveTime){\n\t\ttry {\n\t\t\tpreparedStatement.setInt(1, reserveTime.getUnitID());\n\t\t\tpreparedStatement.setInt(2, reserveTime.getDateID());\n\t\t\tpreparedStatement.setInt(3, reserveTime.getMiddayID().getValue());\n\t\t\tpreparedStatement.setObject(4, reserveTime.getStartTime());\n\t\t\tpreparedStatement.setInt(5, reserveTime.getDuration());\n\t\t\tpreparedStatement.setInt(6, reserveTime.getStatus().getValue());\n\t\t\tpreparedStatement.setInt(7, reserveTime.getClientID());\n\t\t\tpreparedStatement.setString(8, reserveTime.getResCodeID());\n\t\t\tpreparedStatement.setObject(9, reserveTime.getReserveTimeGRDateTime());\n\t\t}catch (SQLException e){\n\t\t\tLogger.getLogger(\"Exception\").log(Level.SEVERE, \"Exception \" + e);\n\t\t}\n\t}",
"void putTo(ByteBuffer dst, TcpTxContext tx) {}",
"void setPosition(Tile t);",
"@Override\n\tpublic void prepare(Map arg0, TopologyContext arg1, OutputCollector collector) {\n\t\tthis.collector = collector;\n\t\tbucket = new ConcurrentHashMap<>();\n\t\ttop_value = new TreeMap<>(Collections.reverseOrder());\n\t\ttimer = new Timer();\n\t\ttimer.scheduleAtFixedRate(new java.util.TimerTask() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// your code here\n\t\t\t\temit_top();\n\t\t\t}\n\t\t}, 10000, 8000);\n\t\tbucketID = 1;\n\t\tbucketSize = 500;\n\t\tthreshold = 0;\n\t}",
"public void setSettlementDate(String settlementDate) {\r\n\r\n\t\ttry {\r\n\r\n\t\t\tthis.settlementDate = this.sdf.parse(settlementDate);\r\n\r\n\t\t\tthis.c.setTime(this.settlementDate);\r\n\r\n\t\t\tint iDayOfWeek = this.c.get(Calendar.DAY_OF_WEEK);\r\n\r\n\t\t\t/*\r\n\t\t\t * We add 1 day to settlement date until the settlement date not\r\n\t\t\t * fall in weekend\r\n\t\t\t */\r\n\t\t\twhile (!((iDayOfWeek >= this.cur.getWeekStart()) && (iDayOfWeek <= this.cur.getWeekEnds()))) {\r\n\r\n\t\t\t\tthis.c.add(Calendar.DATE, 1);\r\n\r\n\t\t\t\tiDayOfWeek = this.c.get(Calendar.DAY_OF_WEEK);\r\n\t\t\t}\r\n\r\n\t\t\tthis.settlementDate = this.c.getTime();\r\n\r\n\t\t} catch (ParseException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"void setPosition(Unit unit, MapLocation position);",
"@Override\n\tpublic void prepare(Map arg0, TopologyContext arg1, OutputCollector arg2) {\n\t\t\n\t\tsuid_list =new ArrayList<Integer>();\n\t\t\n\t}",
"public void startTransit() {\n\t\tthis.currentDriver.setStatus(Status.INTRANSIT);\n\t\tthis.currentDriver.setStatus(Status.FINISHED);\n\t\tthis.passenger.setLocation(currentRide.getDropOff());\n\t\tthis.currentDriver.setLocation(currentRide.getDropOff());\n\t\tthis.finishRide();\n\t}",
"void put(ThreadLocal<?> key, Object value) {\n cleanUp();\n\n // Keep track of first tombstone. That's where we want to go back\n // and add an entry if necessary.\n int firstTombstone = -1;\n\n for (int index = key.hash & mask;; index = next(index)) {\n Object k = table[index];\n\n if (k == key.reference) {\n // Replace existing entry.\n table[index + 1] = value;\n return;\n }\n\n if (k == null) {\n if (firstTombstone == -1) {\n // Fill in null slot.\n table[index] = key.reference;\n table[index + 1] = value;\n size++;\n return;\n }\n\n // Go back and replace first tombstone.\n table[firstTombstone] = key.reference;\n table[firstTombstone + 1] = value;\n tombstones--;\n size++;\n return;\n }\n\n // Remember first tombstone.\n if (firstTombstone == -1 && k == TOMBSTONE) {\n firstTombstone = index;\n }\n }\n }",
"private void addWater() {\n for (int i = 0; i < MAP_LENGTH; i++) {\n for (int j = 0; j < MAP_LENGTH; j++) {\n if (tileMap[i][j] == null) {\n tileMap[i][j] = new Space(new Water(i, j));\n }\n }\n }\n }",
"public void prepare()\n\t{\n\t\tsuper.prepare();\n\t}",
"@SuppressWarnings(\"unchecked\")\n public void putAll(Map t) {\n map.putAll(t);\n }",
"@Override\n\tpublic void prepare(Map stormConf, TopologyContext context,\n\t\t\tOutputCollector collector) {\n\t\tthis.collector=collector;\n\t\ttairManager=TairFactory.tairInstance();\n\t\texecutorService.execute(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\twhile(!stopThread) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(200); \n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tList<Long> platformMapList=new ArrayList<Long>(platformMap.keySet());\n\t\t\t\t\tif(!platformMapList.isEmpty()) {\n\t\t\t\t\t\tstartTime=(long) Collections.min(platformMapList);\n\t\t\t\t\t\tendTime=(long) Collections.max(platformMapList);\n\t\t\t\t\t}\n\t\t\t\t\tdouble wirelessAmount=0;\n\t\t\t\t\tdouble pcAmount=0;\n\t\t\t\t\t//double ratio=0;\n\t\t\t\t\t//boolean result;\n\t\t\t\t\t//LOG.info(\"startTime is \" + startTime +\" endTime is \" + endTime);\n\t\t\t\t\tfor(long i = startTime; i<=endTime; i+=60) {\n\t\t\t\t\t\twirelessAmount+=platformMap.get(i).getWirelessAmount();\n\t\t\t\t\t\tpcAmount+=platformMap.get(i).getPcAmount();\n\t\t\t\t\t\t/*if(pcAmount>0.01) {\n\t\t\t\t\t\t\tratio=wirelessAmount/pcAmount;\n\t\t\t\t\t\t\tresult = tairManager.put(RaceConfig.TairNamespace, ratioPrefix +i, df.format(ratio));\n\t\t\t\t\t\t\t//LOG.info(\"Tair Input: \"+ RaceConfig.prex_ratio + i + \": \" + pcAmount + \" \" + wirelessAmount + \" \" + df.format(ratio));\n\t\t\t\t\t\t\tif (!result.isSuccess())\n\t\t\t\t\t\t\t\tLOG.error(\"fail input: \"+ ratioPrefix + i + \":\" + df.format(ratio));\n\t\t\t\t\t\t}*/\n\t\t\t\t\t\t//7.10改为判断变化再更新\n\t\t\t\t\t\tif(!platformAllMap.containsKey(i)){\n\t\t\t\t\t\t\t//交易总额初始化\n\t\t\t\t\t\t\tRatioCount ratioCount = new RatioCount();\n\t\t\t\t\t\t\tratioCount.setPcAmountAll(pcAmount);\n\t\t\t\t\t\t\tratioCount.setWirelessAll(wirelessAmount);\n\t\t\t\t\t\t\tplatformAllMap.put(i, ratioCount);\n\t\t\t\t\t\t\tratioCount.writeIntoTair(ratioPrefix, i, tairManager, df);\n\t\t\t\t\t\t\t/*if (!result)\n\t\t\t\t\t\t\t\tLOG.error(\"fail input: \"+ RaceConfig.prex_ratio + i + \":\" + df.format(ratioCount.getRatio()));*/\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t//当前时分交易总额对比,有更新则写入Tair\n\t\t\t\t\t\t\tdouble pcAll = platformAllMap.get(i).getPcAmountAll();\n\t\t\t\t\t\t\tdouble wirelessAll = platformAllMap.get(i).getWirelessAmountAll();\n\t\t\t\t\t\t\t//platformAllLock.lock();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(pcAll<pcAmount)\n\t\t\t\t\t\t\t\tplatformAllMap.get(i).setPcAmountAll(pcAmount);\n\t\t\t\t\t\t\tif(wirelessAll<wirelessAmount)\n\t\t\t\t\t\t\t\tplatformAllMap.get(i).setWirelessAll(wirelessAmount);\n\t\t\t\t\t\t\tplatformAllMap.get(i).writeIntoTair(ratioPrefix, i, tairManager, df);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t/*if (!result)\n\t\t\t\t\t\t\t\tLOG.error(\"fail input: \"+ RaceConfig.prex_ratio + i + \":\" + df.format(platformAllMap.get(i).getRatio()));*/\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t});\n\t}",
"private void processTilesetMap() {\r\n for (int t = 0; t < this.getTileSetCount(); t++) {\r\n TileSet tileSet = this.getTileSet(t);\r\n this.tilesetNameToIDMap.put(tileSet.name, t);\r\n }\r\n }",
"private static void fillReserveTime(ResultSet resultSet, ReserveTime reserveTime){\n\t\ttry {\n\t\t\treserveTime.setID(resultSet.getInt(1));\n\t\t\treserveTime.setUnitID(resultSet.getInt(2));\n\t\t\treserveTime.setDateID(resultSet.getInt(3));\n\t\t\treserveTime.setMiddayID(MiddayID.getByValue(resultSet.getInt(4)));\n\t\t\treserveTime.setStartTime(resultSet.getObject(5, LocalTime.class));\n\t\t\treserveTime.setDuration(resultSet.getInt(6));\n\t\t\treserveTime.setStatus(ReserveTimeStatus.getByValue(resultSet.getInt(7)));\n\t\t\treserveTime.setClientID(resultSet.getInt(8));\n\t\t\treserveTime.setResCodeID(resultSet.getString(9));\n\t\t\treserveTime.setReserveTimeGRDateTime(resultSet.getObject(10, LocalDateTime.class));\n\t\t}catch (SQLException e){\n\t\t\tLogger.getLogger(\"Exception\").log(Level.SEVERE, \"Exception \" + e);\n\t\t}\n\t}",
"public void setMoveCost(TerrainType t, int c)\n {\n put(t, c);\n }",
"public void prepare(Map stormConf, TopologyContext context, OutputCollector collector) {\n\t\tthis.collector = collector;\n\t}",
"@Override\n\tpublic void prepare() {\n\t}",
"private void persistFactions(Set<FactionWorth> factions) throws SQLException {\n Set<FactionWorth> createdFactions = insertFactions(factions);\n\n // Add newly created chunk positions to the identity cache.\n cacheFactionIds(createdFactions);\n }",
"@Override\n\tpublic void insertSanCtn(Map<String, String> params) throws SQLException {\n\t\t\n\t}",
"public void insertTeam(Team t) {\n\t\tEntityManager em = emfactory.createEntityManager();\n\t\tem.getTransaction().begin();\n\t\tem.persist(t);\n\t\tem.getTransaction().commit();\n\t\tem.close();\n\t}",
"@Override\n public final void makeAddPrepareForCopy(final Map<String, Object> pAddParam,\n final GoodsLoss pEntity) throws Exception {\n //nothing\n }",
"abstract void prepare();",
"@Override\n\tpublic void saveEntry(T t) {\n\t\tthis.hibernateTemplate.save(t);\n\t}",
"public void put(Transaction tx, GlobalTransaction gtx)\n {\n if (tx == null)\n {\n log.error(\"key (Transaction) is null\");\n return;\n }\n tx2gtxMap.put(tx, gtx);\n gtx2TxMap.put(gtx, tx);\n }",
"public void setSETTLEMENT_AMOUNT(BigDecimal SETTLEMENT_AMOUNT) {\r\n this.SETTLEMENT_AMOUNT = SETTLEMENT_AMOUNT;\r\n }",
"public void prepare(Map stormConf, TopologyContext context, OutputCollector collector) {\n\t\tthis.collector = collector;\n\n\t}",
"void setUnitCost(String elementName, Map<String, Double> unitCosts);",
"void doPlaceObject() {\r\n\t\tif (renderer.surface == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (currentBaseTile != null) {\r\n\t\t\tUndoableMapEdit undo = new UndoableMapEdit(renderer.surface);\r\n\t\t\tdeleteEntitiesOf(renderer.surface.basemap, renderer.placementRectangle, false);\r\n\t\t\tSurfaceFeature sf = new SurfaceFeature();\r\n\t\t\tsf.id = currentBaseTile.id;\r\n\t\t\tsf.type = currentBaseTile.type;\r\n\t\t\tsf.tile = currentBaseTile.tile;\r\n\t\t\tsf.location = Location.of(renderer.placementRectangle.x, renderer.placementRectangle.y);\r\n\t\t\trenderer.surface.features.add(sf);\r\n\t\t\t\r\n\t\t\tplaceTile(currentBaseTile.tile, renderer.placementRectangle.x, renderer.placementRectangle.y, SurfaceEntityType.BASE, null);\r\n\t\t\t\r\n\t\t\tundo.setAfter();\r\n\t\t\taddUndo(undo);\r\n\t\t\trenderer.repaint();\r\n\t\t} else\r\n\t\tif (currentBuildingType != null && renderer.canPlaceBuilding(renderer.placementRectangle) && renderer.placementRectangle.width > 0) {\r\n\t\t\tUndoableMapEdit undo = new UndoableMapEdit(renderer.surface);\r\n\t\t\tBuilding bld = new Building(currentBuildingType, currentBuildingRace);\r\n\t\t\tbld.makeFullyBuilt();\r\n\t\t\tbld.location = Location.of(renderer.placementRectangle.x + 1, renderer.placementRectangle.y - 1); // leave room for the roads!\r\n\t\t\trenderer.surface.buildings.add(bld);\r\n\t\t\t\r\n\t\t\tplaceTile(bld.tileset.normal, bld.location.x, bld.location.y, SurfaceEntityType.BUILDING, bld);\r\n\t\t\tplaceRoads(currentBuildingRace);\r\n\t\t\t\r\n\t\t\tundo.setAfter();\r\n\t\t\taddUndo(undo);\r\n\t\t\trenderer.repaint();\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void prepare() {\n\t\t\n\t}",
"@Override\n public final void makeFirstPrepareForSave(final Map<String, Object> pAddParam,\n final GoodsLoss pEntity) throws Exception {\n //nothing\n }",
"public static void PrepareTransferAll(JailZone zone, String target)\r\n \t{\r\n \t\tfor (JailPrisoner prisoner : zone.getPrisoners())\r\n \t\t{\r\n \t\t\tprisoner.setTransferDestination(target);\r\n \t\t\tPlayer player = Jail.instance.getServer().getPlayerExact(prisoner.getName());\r\n \t\t\tif (player == null)\r\n \t\t\t{\r\n \t\t\t\t\r\n \t\t\t\tprisoner.setOfflinePending(true);\r\n \t\t\t\tInputOutput.UpdatePrisoner(prisoner);\r\n \t\t\t\tJail.prisoners.put(prisoner.getName(), prisoner);\r\n \t\t\t\t\r\n \t\t\t}\r\n \t\t\telse\r\n \t\t\t{\r\n \t\t\t\tTransfer(prisoner, player);\r\n \t\t\t\t\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n \t}",
"public void placeStone(Stone stone) {\r\n if(board[stone.getY()][stone.getX()].isPlayable()){\r\n Slot slot = (Slot) board[stone.getY()][stone.getX()];\r\n \r\n if (stone.getType()==PlayerType.COMPUTER)\r\n {\r\n if (lastStone !=null)\r\n {\r\n lastStone.setType(PlayerType.COMPUTER);\r\n }\r\n stone.setType(PlayerType.COMPUTER_LASTPLACE);\r\n lastStone=stone;\r\n }\r\n slot.placeStone(stone);\r\n board[stone.getY()][stone.getX()] = slot;\r\n \r\n // l.log(Level.INFO, \"Placed at \"+ stone.getY() + \" \" + stone.getX());\r\n //l.log(Level.INFO, \"tostring is:\" + board[stone.getY()][stone.getX()].toString());\r\n }\r\n }",
"boolean canPlaceSettlement(VertexLocation vertLoc, boolean free);",
"public void putInMap(Map<String, Object> paramMap) {\n\t\tparamMap.put(\"wms_cre_credit_service_type_id\", this.wms_cre_credit_service_type_id);\n\t\tparamMap.put(\"wms_cre_credit_head_id\", this.wms_cre_credit_head_id);\n\t\tparamMap.put(\"pre_wms_cre_credit_head_id\", this.pre_wms_cre_credit_head_id);\n\t\tparamMap.put(\"old_wms_cre_credit_head_id\", this.old_wms_cre_credit_head_id);\n\t\tparamMap.put(\"wms_cre_credit_notary_warn_id\", this.wms_cre_credit_notary_warn_id);\n\t\tparamMap.put(\"pre_wms_cre_credit_notary_warn_id\", this.pre_wms_cre_credit_notary_warn_id);\n\t\tparamMap.put(\"old_wms_cre_credit_notary_warn_id\", this.old_wms_cre_credit_notary_warn_id);\n\t\tparamMap.put(\"bill_code\", this.bill_code);\n\t\tparamMap.put(\"operating_time\", this.operating_time);\n\t\tparamMap.put(\"operating_time_str\", this.operating_time_str);\n\t\tparamMap.put(\"the_number\", this.the_number);\n\t\tparamMap.put(\"create_user_id\", this.create_user_id);\n\t\tparamMap.put(\"create_user_name\", this.create_user_name);\n\t\tparamMap.put(\"create_timestamp\", this.create_timestamp);\n\t\tparamMap.put(\"create_timestamp_str\", this.create_timestamp_str);\n\t\tparamMap.put(\"last_update_user_id\", this.last_update_user_id);\n\t\tparamMap.put(\"last_update_timestamp\", this.last_update_timestamp);\n\t\tparamMap.put(\"last_update_timestamp_str\", this.last_update_timestamp_str);\n\t\tparamMap.put(\"enable_flag\", this.enable_flag);\n\t\tparamMap.put(\"isExcludePKFlag\", this.isExcludePKFlag);\n\t}",
"protected Settlement() {\n // empty constructor\n }",
"void saveShipment(Shipment shipment);",
"public void prepare() {\n long millis, nanos;\n TestCaseImpl tc = _testCase;\n \n nanos = Util.currentTimeNanos();\n prepare(tc);\n nanos = Util.currentTimeNanos() - nanos;\n tc.setDoubleParam(Constants.ACTUAL_PREPARE_TIME, \n Util.nanosToMillis(nanos));\n }",
"public void setSettlementtype(Integer settlementtype) {\n this.settlementtype = settlementtype;\n }",
"public void prepareStatements() throws SQLException {\n\t\tpstmt_updateTicket = connection.prepareStatement(\r\n\t\t \"UPDATE ticket \" +\r\n \"SET kunde = ? \" +\r\n \"WHERE tid IN (\" +\r\n \"SELECT tid FROM ticket WHERE kunde IS NULL AND auffuehrung = ? LIMIT ?)\" +\r\n \"RETURNING preis\");\r\n\t}",
"public abstract void setData(Map<ID, T> data);",
"private void prepare()\n {\n // Add three lines to this doc with your class constructor and your row and seat number\n // Make sure to match your first and last name to the class file you created.\n\n /* Example */\n KilgoreTrout kilgoretrout = new KilgoreTrout(\"Kilgore\", \"Trout\", 1, 1);\n addObject(kilgoretrout, 1, 1);\n kilgoretrout.sitDown();\n \n riajain = new RiaJain(\"Ria\", \"Jain\", 2, 1);\n addObject(riajain, riajain.myRow, riajain.mySeat);\n riajain.sitDown();\n }",
"public abstract void prepare();",
"public void prepare()\n {\n // First, we assign the payload a new UUID if it does not already have one\n if(getId() == null)\n setId(UUID.randomUUID());\n \n // Set the submission date to now\n setSubmissionDate(new Date());\n }",
"@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)\n public void setTaskContent(Task taskObj, Boolean inbound, Map<String, Object> taskContent) {\n EntityManager eManager = null;\n ObjectOutputStream out = null; \n try {\n eManager = humanTaskEMF.createEntityManager();\n uTrnx.begin();\n \n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n out = new ObjectOutputStream(bos);\n out.writeObject(taskContent);\n out.close();\n byte[] byteResults = bos.toByteArray();\n \n // persist the serialized results map into Content table\n Content content = new Content();\n content.setContent(byteResults);\n eManager.persist(content); // will generate a unique id for this content by jpa\n \n ContentData contentData = new ContentData();\n contentData.setContent(byteResults);\n contentData.setAccessType(org.jbpm.task.AccessType.Inline);\n taskObj.getTaskData().setOutput(content.getId(), contentData);\n eManager.merge(taskObj);\n \n uTrnx.commit();\n log.info(\"setTaskContent() taskId = \"+taskObj.getId()+\" : inbound = \"+inbound+\" contentBytes size = \"+byteResults.length);\n } catch(Exception x) {\n throw new RuntimeException(x);\n } finally {\n if(eManager != null)\n eManager.close();\n try {\n if(out != null)\n out.close();\n }catch(Exception x){x.printStackTrace();}\n }\n }",
"public static void insertTreatment(String trtName,int cost,String date,String start,String partner){\r\n\t\ttry{\r\n\t\t\t// this is how you connect\r\n\t\t\tconnection = DriverManager.getConnection(connectionString);\r\n\t\t\tstmt = connection.prepareStatement(\"INSERT INTO Treatment VALUES(?,?,?,?,?);\");\r\n\t\t\tstmt.setString(1, trtName);\r\n\t\t\tstmt.setString(2, String.valueOf(cost));\r\n\t\t\tstmt.setString(3, date);\r\n\t\t\tstmt.setString(4, start);\r\n\t\t\tstmt.setString(5, partner);\r\n\t\t\tstmt.executeUpdate();\r\n\t\t}\r\n\t\tcatch (SQLException ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void ajouter(Zone t) {\n\t\ttry {\n\t\t\t //preparation de la requete\n\t\t\tString sql=\"INSERT into zone (lieu,frequence,id_chaine) values(?, ?,?)\";\n\t\t\tPreparedStatement pst=Con.prepareStatement(sql);\n\t\t\t//transmission des valeurs aux parametres de la requete\n\t\t\tpst.setString(1,t.getLieu());\n\t\t\tpst.setString(2,t.getFrequence());\n\t\t\tpst.setInt(3, t.getChaine().getId_chaine());\n\t\t\t//execussion de la requete\n\t\t\tpst.executeUpdate();\n\t\t\tSystem.out.println(\"zone ajoutees \");\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\tSystem.out.println(\"Probleme de driver ou connection avec la BD\");\n\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"public void setSETTLED_PROFIT_AMT(BigDecimal SETTLED_PROFIT_AMT) {\r\n this.SETTLED_PROFIT_AMT = SETTLED_PROFIT_AMT;\r\n }",
"public RequirementPrepaidCard(TicketDBGateway cardMapper, HistoryDBGateway historyMapper) {\n\t\tthis.cardGateWay = cardMapper;\n\t\tthis.historyGW = historyMapper;\n\t}",
"@Override\n\tpublic void save(Campground theCampground) {\n\t\tString sqlInsertCampground = \"Insert into campground (park_id,name,open_from_mm,open_to_mm,daily_fee) \" + \n\t\t\t\t\"values (?,?,?,?,?)\";\n\t\tjdbcTemplate.update(sqlInsertCampground,theCampground.getPark_id() // create primary key using new data\n ,theCampground.getName()\n ,theCampground.getOpen_from_mm()\n ,theCampground.getOpen_to_mm()\n ,theCampground.getDaily_fee());\t\n\t}",
"public void prepare(Map stormConf, TopologyContext context, OutputCollector collector) {\r\n this.conf = stormConf;\r\n this.context = context;\r\n this.collector = collector;\r\n }",
"abstract void setStatement(@NotNull PreparedStatement preparedStatement, @NotNull T object) throws SQLException, NotEnoughDataException;",
"void setMap(Map aMap);",
"public void prepare() {\n if ((!hasMultipleStatements()) && (getSQLStatement() == null)) {\n throw QueryException.sqlStatementNotSetProperly(getQuery());\n }\n\n // Cannot call super yet as the call is not built.\n }",
"public void getSettledTransactionReport(HashMap<String, String> params) {\n\t\tQUERY_BY_SETTLEMENT = \"1\";\n\t\tREPORT_START = params.get(\"reportStart\");\n\t\tREPORT_END = params.get(\"reportEnd\");\n\t\tQUERY_BY_HIERARCHY = params.get(\"subaccountsSearched\");\n\t\tDO_NOT_ESCAPE = params.get(\"doNotEscape\");\n\t\tEXCLUDE_ERRORS = params.get(\"excludeErrors\");\n\t\tAPI = \"bpdailyreport2\";\n\t}",
"protected abstract void preparePresenter( PlaceRequest request, T presenter );",
"public void placeOrder(TradeOrder order)\r\n {\r\n brokerage.placeOrder(order);\r\n }",
"@Override\n\t\t\tpublic void putAll(Map<? extends PathwayImpl, ? extends AnalysisResult> m) {\n\t\t\t\t\n\t\t\t}",
"public void setSatellite( Satellite sat ) {\r\n /*========================================================================*/ \r\n this.sat = sat;\r\n }",
"protected void doPrepare(final Map stormConf, final TopologyContext context, final OutputCollector collector) {\n }",
"public abstract PlacedBet register(double bet, double balance, Payout payout);",
"public void put(GlobalTransaction tx, TransactionContext transactionContext)\n {\n if (tx == null)\n {\n log.error(\"key (GlobalTransaction) is null\");\n return;\n }\n gtx2ContextMap.put(tx, transactionContext);\n }"
] | [
"0.6545362",
"0.60838467",
"0.5977649",
"0.5832452",
"0.5584178",
"0.5573024",
"0.5442977",
"0.5350193",
"0.5233797",
"0.52231336",
"0.5210402",
"0.51339406",
"0.5084827",
"0.508161",
"0.5005493",
"0.5003847",
"0.49940535",
"0.49340826",
"0.49242863",
"0.49160025",
"0.48232415",
"0.47835785",
"0.47655162",
"0.47505894",
"0.47025612",
"0.47022128",
"0.4688911",
"0.4668483",
"0.46578404",
"0.46453667",
"0.46165103",
"0.4608343",
"0.46007296",
"0.45922703",
"0.458065",
"0.45777798",
"0.45734504",
"0.45353946",
"0.45169273",
"0.4500333",
"0.4496361",
"0.4496061",
"0.44922227",
"0.44899204",
"0.44823238",
"0.4478509",
"0.44782287",
"0.44752976",
"0.4473698",
"0.44524285",
"0.44499537",
"0.44494018",
"0.4447345",
"0.4446835",
"0.44434834",
"0.44433185",
"0.44404218",
"0.4423174",
"0.44186446",
"0.44165924",
"0.44128722",
"0.4406684",
"0.44057658",
"0.4405136",
"0.44035333",
"0.43997613",
"0.43971694",
"0.43889847",
"0.43871367",
"0.4382586",
"0.43758017",
"0.4375306",
"0.43751696",
"0.4373315",
"0.43713602",
"0.43701088",
"0.43692496",
"0.4369111",
"0.43654773",
"0.43586874",
"0.43568116",
"0.4351237",
"0.43501252",
"0.43472826",
"0.4345846",
"0.43401933",
"0.43323204",
"0.43262288",
"0.4325201",
"0.43246213",
"0.43227422",
"0.43198082",
"0.43185544",
"0.43175244",
"0.43151894",
"0.43147525",
"0.43081233",
"0.43059194",
"0.4288635",
"0.42800048"
] | 0.55709255 | 6 |
Gets the owner of this Settlement. | public Player getOwner() {
return owner;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public AccountEntity getOwner() {\n\t\treturn owner;\n\t}",
"public T getOwner() {\n return owner;\n }",
"public long getOwner() {\n\t\treturn owner;\n\t}",
"public String getOwner() {\n\n return Owner;\n }",
"public Owner getOwner() {\n return owner;\n }",
"public User getOwner() {\n return owner;\n }",
"public String getOwner() {\r\n\t\treturn owner;\r\n\t}",
"public String getOwner() {\n return owner;\n }",
"public String getOwner() {\n return owner;\n }",
"public String getOwner() {\n return owner;\n }",
"public String getOwner() {\n return owner;\n }",
"public String getOwner() {\n return owner;\n }",
"public String getOwner() {\n return owner;\n }",
"public UUID getOwner() {\n return owner;\n }",
"public UUID getOwner() {\n return owner;\n }",
"public String getOwner() {\n return mOwner;\n }",
"public String getOwner() {\r\n return owner;\r\n }",
"public String getOwner() {\n\n return owner;\n\n }",
"public UserModel getOwner() {\n return localOwner;\n }",
"public com.sforce.soap.enterprise.sobject.SObject getOwner() {\r\n return owner;\r\n }",
"public SettlementPlayer getOwner();",
"public Owner getOwner()\n {\n return owner;\n }",
"public com.hps.july.persistence.OrganizationAccessBean getOwner() {\n\treturn owner;\n}",
"public java.lang.String getOwnerId() {\r\n return ownerId;\r\n }",
"User getOwner();",
"public String getOwner(){\r\n \ttry{\r\n \t\t_lockObject.lock();\r\n \t\treturn _owner;\r\n \t}finally{\r\n \t\t_lockObject.unlock();\r\n \t}\r\n }",
"java.lang.String getOwner();",
"java.lang.String getOwner();",
"public String getOwner() {\r\n if (mOwner==null) {\r\n return \"n/a\";\r\n }\r\n return mOwner;\r\n }",
"public synchronized static String getOwner() {\n return owner;\n }",
"@Override\n\tpublic UUID getOwnerId() {\n\t\treturn this.dataManager.get(OWNER_UUID).orNull();\n\t}",
"final int GetOwner() {\n return owner;\n }",
"public String owner() {\n return this.owner;\n }",
"public Player getOwner() {\n\t\tif (owner == null && possibleOwners.size() == 1)\n\t\t\towner = possibleOwners.get(0);\n\t\t\n\t\treturn owner;\n\t}",
"@objid (\"8b942215-f0a1-454e-9f8a-596315ee40d5\")\n Instance getOwner();",
"public String getOwnerId() {\n return ownerId;\n }",
"@Column(name=\"owner\")\n\tpublic String getOwner() {\n\t\treturn owner;\n\t}",
"public Integer getOwnerId() {\n return ownerId;\n }",
"public String getOwnerName() {\n\n return ownerName;\n }",
"public String getOwner() { return owner; }",
"@Column (name=\"OWNER\", insertable = true, updatable = false)\r\n\tpublic String getOwner() {\r\n\t\treturn owner;\r\n\t}",
"String getOwner();",
"String getOwner();",
"public Long getIdOwner() {\r\n return idOwner;\r\n }",
"public String getOwner();",
"public User getObjectOwner() {\r\n\t\treturn objectOwner;\r\n\t}",
"public String getOwner(){\n\t\treturn new SmartAPIModel().getCpOwner(cp.getLocalName());\n\t}",
"public int getOwnerID() {\r\n\t\treturn ownerID;\r\n\t}",
"public String getOwner() {\n return lockOwner;\n }",
"public String getAccountOwner() {\n return accountOwner;\n }",
"public com.google.protobuf.ByteString getOwner() {\n return owner_;\n }",
"public com.google.protobuf.ByteString getOwner() {\n return owner_;\n }",
"public int getOwner() {\n validify();\n return Client.INSTANCE.pieceGetOwner(ptr);\n }",
"@Override\r\n\tpublic Principal getOwner() {\n\t\treturn null;\r\n\t}",
"public String getOwnerName() {\r\n return this.ownerName;\r\n }",
"public String getOwnerName() {\r\n\t\treturn ownerName;\r\n\t}",
"public OwnerType getOwnerType() {\n\t\treturn ownerType;\n\t}",
"protected Object getOwner(){\n return owner;\n }",
"public String getOwnerName() {\n\t\treturn ownerName;\n\t}",
"public Account getOrganizationOwnerAccount() {\n return organizationOwnerAccount;\n }",
"public com.google.protobuf.ByteString getOwner() {\n return owner_;\n }",
"public com.google.protobuf.ByteString getOwner() {\n return owner_;\n }",
"public Long getOwnerUserId() {\n return ownerUserId;\n }",
"public String getOwner(){\n return owner;\r\n }",
"public Subject getOwner()\n {\n return owner;\n }",
"public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Organisation getOwner() {\n for (final DeviceAuthorization authorization : this.authorizations) {\n if (authorization.getFunctionGroup().equals(DeviceFunctionGroup.OWNER)) {\n return authorization.getOrganisation();\n }\n }\n\n return null;\n }",
"public AbstractGameObject getOwner() {\r\n\t\treturn owner;\r\n\t}",
"public String getOwnerString() {\n return String.valueOf(enteredBy);\n }",
"Optional<String> getOwner();",
"public String getOwnerType() {\n\t\treturn ownerType;\n\t}",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public PetriNet getOwnerNet() {\r\n\t\treturn ownerNet;\r\n\t}",
"com.google.protobuf.ByteString\n getOwnerBytes();",
"public String ownerName() {\n\t\t\treturn null;\n\t\t}",
"com.google.protobuf.ByteString\n getOwnerBytes();",
"@Override\n\tpublic EntityLivingBase getOwner() {\n\t\tif(this.owner!=null&&!(this.owner instanceof EntityPlayer && this.owner.isDead)){\n\t\t\treturn this.owner;\n\t\t}\n\t\telse if(this.getOwnerId()!=null){\n\t\t\treturn this.owner=this.worldObj.getPlayerEntityByUUID(this.getOwnerId());\n\t\t}\n\t\t//System.out.println(\"owner: \"+this.getOwnerId());\n\t\treturn null;\n\t}",
"public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public OwnerReference getOwnerReference() {\n return new OwnerReferenceBuilder()\n .withController(true)\n .withApiVersion(getApiVersion())\n .withKind(getKind())\n .withName(getMetaName())\n .withUid(getMetadata().getUid())\n .build();\n }",
"public String getownerName() {\n\t return this.ownerName;\n\t}",
"@Override\r\n\tpublic Person Owner() {\n\t\treturn Owner;\r\n\t}",
"@java.lang.Override\n public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n }\n }",
"@java.lang.Override\n public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n }\n }",
"public final UUID getOwnerUniqueId() {\n\t\treturn ownerUniqueId;\n\t}",
"@JsonGetter(\"owner\")\r\n public String getOwner() {\r\n return owner;\r\n }",
"public static Hash160 contractOwner() {\n return contractOwner;\n }",
"@Override\n\tpublic Battle getOwner() {\n\t\treturn (Battle) super.getOwner();\n\t}",
"public WikiUI getOwner() {\n\t\treturn owner_;\n\t}",
"public PersonAndOrganization getOwningUser()\r\n\t{\r\n\t\treturn owningUser;\r\n\t}",
"public SWActor getOwner() {\n\t\t//Return the SWActor owner of this Actor (initially nothing, can change!)\n\t\treturn owner;\n\t}",
"private CFComponent getOwner() {\n\t\treturn owner;\n\t}",
"com.google.protobuf.ByteString getOwner();",
"com.google.protobuf.ByteString getOwner();",
"public abstract User getOwner();",
"@Override\n public final Long getOwnerId() {\n return null;\n }",
"public ReadOnlyProperty<BusinessObject> ownerProperty() {\n\t\treturn _ownerProperty();\n\t}",
"public Long getOwnerEntityId()\r\n\t{\r\n\t\treturn ownerEntityId;\r\n\t}",
"public Player owner() {\n\t\treturn null;\n\t}"
] | [
"0.7865665",
"0.78454405",
"0.7837095",
"0.7835557",
"0.77934873",
"0.777694",
"0.7768881",
"0.7750905",
"0.7750905",
"0.7750905",
"0.7750905",
"0.7750905",
"0.7750905",
"0.7737515",
"0.7737515",
"0.7729409",
"0.771254",
"0.76948434",
"0.76623166",
"0.7639405",
"0.7639362",
"0.7587879",
"0.75577074",
"0.75253105",
"0.75207883",
"0.75008816",
"0.74922734",
"0.74922734",
"0.7481049",
"0.74777895",
"0.7443318",
"0.7431605",
"0.7388933",
"0.7375491",
"0.73718894",
"0.73555577",
"0.73525304",
"0.73151094",
"0.7303794",
"0.7296556",
"0.728548",
"0.72662973",
"0.72662973",
"0.725225",
"0.7246785",
"0.7206766",
"0.720129",
"0.7188112",
"0.7177017",
"0.7174934",
"0.7171677",
"0.7171677",
"0.7161613",
"0.7150155",
"0.71420884",
"0.71209925",
"0.71143013",
"0.71084225",
"0.7096754",
"0.7083168",
"0.70650923",
"0.70650923",
"0.7018887",
"0.701888",
"0.7018702",
"0.70178425",
"0.70178425",
"0.6997918",
"0.69978976",
"0.6975771",
"0.6954131",
"0.69333684",
"0.6903075",
"0.6903075",
"0.6893562",
"0.6862387",
"0.6862245",
"0.6860899",
"0.6859276",
"0.6857658",
"0.6856837",
"0.68525064",
"0.68478626",
"0.6842056",
"0.68393856",
"0.68393826",
"0.6830424",
"0.68054545",
"0.67799366",
"0.67743576",
"0.67707986",
"0.6747565",
"0.672254",
"0.6711068",
"0.66990405",
"0.66990405",
"0.6690604",
"0.6674098",
"0.6667042",
"0.66519135",
"0.6640645"
] | 0.0 | -1 |
Sets the owner of this Settlement. | public void setOwner(Player player) {
owner = player;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setOwner(Owner owner) {\n this.owner = owner;\n }",
"public void setOwner(User owner) {\n this.owner = owner;\n }",
"protected void setOwner(T owner) {\n this.owner = owner;\n }",
"public void setOwner(Person owner)\n {\n this.owner = owner;\n }",
"public void setOwner(com.sforce.soap.enterprise.sobject.SObject owner) {\r\n this.owner = owner;\r\n }",
"public void setOwner(String owner) {\n mOwner = owner;\n }",
"void setOwner(String owner);",
"void setOwner(Entity owner);",
"public void setOwner(String owner) {\n this.owner = owner;\n }",
"public void setOwner(String owner) {\n this.owner = owner;\n }",
"public void setOwner(String owner) {\n this.owner = owner;\n }",
"public void setOwner(String owner) {\n this.owner = owner;\n }",
"public void setOwner( String owner ){\r\n \ttry{\r\n \t\t_lockObject.lock();\r\n \t_owner = owner;\r\n \t_itDepartment.setDirector(_owner);\r\n \t}finally{\r\n \t\t_lockObject.unlock();\r\n \t}\r\n }",
"public void setOwner(Player owner) {\n\t\tthis.owner = owner;\n\t}",
"public void setOwner (String owner) {\n\t\tthis.owner=owner;\n\t}",
"public void setOwner(int owner) { this.owner = owner; }",
"public void setOwner(String mOwner) {\r\n this.mOwner = mOwner;\r\n }",
"public void setOwner(EntityLivingBase owner) {\n\t\tthis.owner=owner;\n\t\tif(owner instanceof EntityPlayer){\n\t\t\tthis.dataManager.set(OWNER_UUID,Optional.of(owner.getUniqueID()));\n\t\t}\n\t}",
"public void setOwner(Person person) {\n _owner = person;\n }",
"public void setOwner(String owner) {\r\n this.owner = owner == null ? null : owner.trim();\r\n }",
"public void setOwner(String owner) {\n this.owner = owner == null ? null : owner.trim();\n }",
"public void setOwner(String owner) {\n this.owner = owner == null ? null : owner.trim();\n }",
"public synchronized void setOwner(String s) {\n owner = s;\n }",
"public void setOwner(Person person) \n {\n owner = person;\n }",
"public void setOwner(AbstractGameObject owner) {\r\n\t\tthis.owner = owner;\r\n\t}",
"void setOwner(Subject owner)\n {\n this.owner = owner;\n }",
"public void setOwner(UserModel param) {\n localOwnerTracker = true;\n\n this.localOwner = param;\n }",
"public void setOwner(com.hps.july.persistence.OrganizationAccessBean newOwner) {\n\towner = newOwner;\n}",
"public void changeOwner(String o){\n owner = o;\r\n }",
"public void setIdOwner(Long idOwner) {\r\n this.idOwner = idOwner;\r\n }",
"public void setOwnerId(String ownerId) {\n this.ownerId = ownerId;\n }",
"public void setObjectOwner(User objectOwner) {\r\n\t\tthis.objectOwner = objectOwner;\r\n\t}",
"@JsonSetter(\"owner\")\r\n public void setOwner(String owner) {\r\n this.owner = owner;\r\n }",
"@Override\r\n\tpublic void setTheOwner(Player owner) {\n\t\t\r\n\t}",
"public void setOwnerId(Integer ownerId) {\n this.ownerId = ownerId;\n }",
"public void setOwnerPlayer( final PlayerModel ownerPlayer ) {\r\n\t\tthis.ownerPlayer = ownerPlayer;\r\n\t}",
"public void setOwnerId(java.lang.String ownerId) {\r\n this.ownerId = ownerId;\r\n }",
"public void setOwner(Owner bucketOwner)\n {\n this.owner = bucketOwner;\n }",
"public void setOwner(String newOwner) {\n\t\t_pcs.firePropertyChange(\"owner\", this.owner, newOwner); //$NON-NLS-1$\n\t\tthis.owner = newOwner;\n\t}",
"public void setOwner(TLPropertyOwner propertyOwner) {\n this.propertyOwner = propertyOwner;\n }",
"public void setOwnerName( String name ) {\n\n ownerName = name;\n }",
"public void setOwningUser(PersonAndOrganization owningUser)\r\n\t{\r\n\t\tthis.owningUser = owningUser;\r\n\t}",
"void SetOwner(int passedOwner) {\n if(passedOwner == 0 || passedOwner == 1) {\n owner = passedOwner;\n }\n else {\n Log.d(\"MyError\", \"Error in setting the owner of a build in the build class.\");\n }\n }",
"public void setOwnerName(String name) {\r\n this.ownerName = name;\r\n }",
"public void setOwnerType(OwnerType ownerType) {\n\t\tthis.ownerType = ownerType;\n\t}",
"public void setOwner(ItunesPodcastOwner owner) {\n this.owner = owner;\n }",
"public Builder setOwner(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n owner_ = value;\n onChanged();\n return this;\n }",
"public Builder setOwner(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n owner_ = value;\n onChanged();\n return this;\n }",
"@Override\n public void setLockOwner(Object lockOwner) {\n }",
"public void setOwner(SWActor newOwner) {\n\t\t//Set this SWActors' owner to newOwner\n\t\tthis.owner = newOwner;\n\t\t\n\t\t//Set humancontrolled boolean to true\n\t\tthis.humanControlled = true;\n\t}",
"public void setOwner(AbstractBuilding building) {\n\t\tthis.owner = building;\r\n\t}",
"public void setOwnerName(String ownerName) {\r\n\t\tthis.ownerName = ownerName;\r\n\t}",
"public void setOwnerName(String ownerName) {\r\n\t\tthis.ownerName = ownerName;\r\n\t}",
"public void setownerName(String ownerName) {\n\t this.ownerName = ownerName;\n\t}",
"public Builder setOwner(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n owner_ = value;\n onChanged();\n return this;\n }",
"public Builder setOwner(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n owner_ = value;\n onChanged();\n return this;\n }",
"public void setIsowner(java.lang.Boolean newIsowner) {\n\tisowner = newIsowner;\n}",
"public void setOwnerPermission(TUserPermission ownerPermission) {\n\n\t\tthis.ownerPermission = ownerPermission;\n\t}",
"public String getOwner() {\r\n\t\treturn owner;\r\n\t}",
"@Column(name=\"owner\")\n\tpublic String getOwner() {\n\t\treturn owner;\n\t}",
"public void setInternetRadioStationOwner(Contact value) {\r\n\t\tBase.set(this.model, this.getResource(), INTERNETRADIOSTATIONOWNER, value);\r\n\t}",
"public String getOwner() {\n\n return owner;\n\n }",
"public SettlementPlayer getOwner();",
"public String getOwner() {\r\n return owner;\r\n }",
"public void setOwnerStatus(String ownerStatus)\n {\n // put your code here\n this.ownerStatus = ownerStatus;\n }",
"public String getOwner() {\n return owner;\n }",
"public String getOwner() {\n return owner;\n }",
"public String getOwner() {\n return owner;\n }",
"public String getOwner() {\n return owner;\n }",
"public String getOwner() {\n return owner;\n }",
"public String getOwner() {\n return owner;\n }",
"public String getOwner() {\n\n return Owner;\n }",
"public void setOwnerString(String s) {\n ownerString = s;\r\n }",
"public void setDataOwner(String sDataOwner);",
"public void changeOwner(Player newOwner) {\n Player oldOwner = this.owner;\n setOwner(newOwner);\n \n if (oldOwner.hasSettlement(this)) {\n oldOwner.removeSettlement(this);\n }\n if (!newOwner.hasSettlement(this)) {\n newOwner.addSettlement(this);\n }\n \n List<Unit> units = getUnitList();\n units.addAll(getTile().getUnitList());\n while (!units.isEmpty()) {\n Unit u = units.remove(0);\n units.addAll(u.getUnitList());\n u.setState(Unit.UnitState.ACTIVE);\n UnitType type = u.getTypeChange((newOwner.isUndead())\n ? ChangeType.UNDEAD\n : ChangeType.CAPTURE, newOwner);\n if (type != null) u.setType(type);\n u.setOwner(newOwner);\n }\n \n for (Tile t : getOwnedTiles()) {\n t.changeOwnership(newOwner, this);\n }\n oldOwner.invalidateCanSeeTiles();\n newOwner.invalidateCanSeeTiles();\n \n if (getGame().getFreeColGameObjectListener() != null) {\n getGame().getFreeColGameObjectListener()\n .ownerChanged(this, oldOwner, newOwner);\n }\n }",
"@Column (name=\"OWNER\", insertable = true, updatable = false)\r\n\tpublic String getOwner() {\r\n\t\treturn owner;\r\n\t}",
"public void setOwnerUserId(Long ownerUserId) {\n this.ownerUserId = ownerUserId;\n }",
"void setOwner(Agent agent) {\n\t\tsuper.setOwner(agent);\n\t\tthis.referencesFromCapacityMap.set(0);\n\t}",
"void setOwner(StatementContribution sc) {\n\t\tthis.owner_ = sc;\n\t}",
"public void setOwnerList(Collection<OwnerModel> ownerList)\r\n\t{\r\n\t\tthis.ownerList = ownerList;\r\n\t}",
"public Owner getOwner() {\n return owner;\n }",
"public long getOwner() {\n\t\treturn owner;\n\t}",
"public void setInternetRadioStationOwner( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), INTERNETRADIOSTATIONOWNER, value);\r\n\t}",
"public UUID getOwner() {\n return owner;\n }",
"public UUID getOwner() {\n return owner;\n }",
"public void setCarOwner(String carOwner)\n {\n this.carOwner = carOwner;\n }",
"void setTaskOwner(ConversationalObject taskOwner);",
"public String getOwnerId() {\n return ownerId;\n }",
"ODatabaseInternal<?> setDatabaseOwner(ODatabaseInternal<?> iOwner);",
"public Builder setOwnerBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n owner_ = value;\n onChanged();\n return this;\n }",
"public Builder setOwnerBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n owner_ = value;\n onChanged();\n return this;\n }",
"public AccountEntity getOwner() {\n\t\treturn owner;\n\t}",
"public com.sforce.soap.enterprise.sobject.SObject getOwner() {\r\n return owner;\r\n }",
"public String getOwner() {\n return mOwner;\n }",
"public String getOwner() { return owner; }",
"public User getOwner() {\n return owner;\n }",
"public OrglRoot setAllOwners(ID owner) {\n\tthrow new SubclassResponsibilityException();\n/*\nudanax-top.st:9676:OrglRoot methodsFor: 'accessing'!\n{OrglRoot} setAllOwners: owner {ID}\n\t\"Return the portiong whose owner couldn't be changed.\"\n\t\t\n\tself subclassResponsibility!\n*/\n}",
"public void setOwner(RMParentShape anObj) { _owner = anObj; }",
"public void setOwnerType(String ownerType) {\n\t\tthis.ownerType = ownerType;\n\t}",
"public void setOwnername(java.lang.String newOwnername) {\n\townername = newOwnername;\n}"
] | [
"0.7993402",
"0.78742254",
"0.76314104",
"0.76244015",
"0.7573011",
"0.75713575",
"0.7495881",
"0.7481964",
"0.7407797",
"0.7407797",
"0.7407797",
"0.7407797",
"0.73939824",
"0.73471004",
"0.7320899",
"0.7299099",
"0.72724295",
"0.71631604",
"0.71418285",
"0.7060334",
"0.70582604",
"0.70582604",
"0.7056639",
"0.7009181",
"0.6944531",
"0.693601",
"0.6904245",
"0.6892384",
"0.6862533",
"0.68245023",
"0.68090194",
"0.67770916",
"0.6762432",
"0.66713285",
"0.66707784",
"0.66461116",
"0.65653974",
"0.653546",
"0.6531485",
"0.65135485",
"0.64833164",
"0.6461704",
"0.64579904",
"0.641536",
"0.6412788",
"0.64043504",
"0.6320865",
"0.6320865",
"0.63064516",
"0.62911224",
"0.6254856",
"0.624463",
"0.624463",
"0.6190498",
"0.6182013",
"0.6182013",
"0.6175372",
"0.6160761",
"0.6122293",
"0.6113884",
"0.60841817",
"0.60768235",
"0.6072665",
"0.60720026",
"0.60608137",
"0.6057558",
"0.6057558",
"0.6057558",
"0.6057558",
"0.6057558",
"0.6057558",
"0.6048422",
"0.60471034",
"0.6038955",
"0.6029268",
"0.6022187",
"0.5996241",
"0.5959452",
"0.59456617",
"0.5940997",
"0.59331477",
"0.5929696",
"0.5919805",
"0.5916923",
"0.5916923",
"0.5911335",
"0.5910577",
"0.5902442",
"0.5898315",
"0.58889556",
"0.5888603",
"0.58875406",
"0.58832926",
"0.58804846",
"0.58741456",
"0.5869416",
"0.584755",
"0.5843097",
"0.58303684",
"0.57882714"
] | 0.6665231 | 35 |
Change the owner of this Settlement. | public void changeOwner(Player newOwner) {
Player oldOwner = this.owner;
setOwner(newOwner);
if (oldOwner.hasSettlement(this)) {
oldOwner.removeSettlement(this);
}
if (!newOwner.hasSettlement(this)) {
newOwner.addSettlement(this);
}
List<Unit> units = getUnitList();
units.addAll(getTile().getUnitList());
while (!units.isEmpty()) {
Unit u = units.remove(0);
units.addAll(u.getUnitList());
u.setState(Unit.UnitState.ACTIVE);
UnitType type = u.getTypeChange((newOwner.isUndead())
? ChangeType.UNDEAD
: ChangeType.CAPTURE, newOwner);
if (type != null) u.setType(type);
u.setOwner(newOwner);
}
for (Tile t : getOwnedTiles()) {
t.changeOwnership(newOwner, this);
}
oldOwner.invalidateCanSeeTiles();
newOwner.invalidateCanSeeTiles();
if (getGame().getFreeColGameObjectListener() != null) {
getGame().getFreeColGameObjectListener()
.ownerChanged(this, oldOwner, newOwner);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setOwner(Owner owner) {\n this.owner = owner;\n }",
"public void setOwner(User owner) {\n this.owner = owner;\n }",
"public void setOwner(Person owner)\n {\n this.owner = owner;\n }",
"void setOwner(String owner);",
"public void changeOwner(String o){\n owner = o;\r\n }",
"public void setOwner(String owner) {\n mOwner = owner;\n }",
"public void setOwner(int owner) { this.owner = owner; }",
"public void setOwner(String owner) {\n this.owner = owner;\n }",
"public void setOwner(String owner) {\n this.owner = owner;\n }",
"public void setOwner(String owner) {\n this.owner = owner;\n }",
"public void setOwner(String owner) {\n this.owner = owner;\n }",
"void setOwner(Entity owner);",
"public void setOwner(com.hps.july.persistence.OrganizationAccessBean newOwner) {\n\towner = newOwner;\n}",
"public void setOwner (String owner) {\n\t\tthis.owner=owner;\n\t}",
"protected void setOwner(T owner) {\n this.owner = owner;\n }",
"public void setOwner(com.sforce.soap.enterprise.sobject.SObject owner) {\r\n this.owner = owner;\r\n }",
"public void setOwner( String owner ){\r\n \ttry{\r\n \t\t_lockObject.lock();\r\n \t_owner = owner;\r\n \t_itDepartment.setDirector(_owner);\r\n \t}finally{\r\n \t\t_lockObject.unlock();\r\n \t}\r\n }",
"public void setOwner(Player owner) {\n\t\tthis.owner = owner;\n\t}",
"public void setOwner(String mOwner) {\r\n this.mOwner = mOwner;\r\n }",
"public void setOwner(Person person) {\n _owner = person;\n }",
"public void setOwner(String newOwner) {\n\t\t_pcs.firePropertyChange(\"owner\", this.owner, newOwner); //$NON-NLS-1$\n\t\tthis.owner = newOwner;\n\t}",
"public void setOwner(Person person) \n {\n owner = person;\n }",
"public void setOwner(EntityLivingBase owner) {\n\t\tthis.owner=owner;\n\t\tif(owner instanceof EntityPlayer){\n\t\t\tthis.dataManager.set(OWNER_UUID,Optional.of(owner.getUniqueID()));\n\t\t}\n\t}",
"public synchronized void setOwner(String s) {\n owner = s;\n }",
"public void setOwner(String owner) {\r\n this.owner = owner == null ? null : owner.trim();\r\n }",
"public void setOwner(String owner) {\n this.owner = owner == null ? null : owner.trim();\n }",
"public void setOwner(String owner) {\n this.owner = owner == null ? null : owner.trim();\n }",
"public void setOwner(UserModel param) {\n localOwnerTracker = true;\n\n this.localOwner = param;\n }",
"public void setIdOwner(Long idOwner) {\r\n this.idOwner = idOwner;\r\n }",
"void setOwner(Subject owner)\n {\n this.owner = owner;\n }",
"public void setOwnerId(String ownerId) {\n this.ownerId = ownerId;\n }",
"public void setOwner(SWActor newOwner) {\n\t\t//Set this SWActors' owner to newOwner\n\t\tthis.owner = newOwner;\n\t\t\n\t\t//Set humancontrolled boolean to true\n\t\tthis.humanControlled = true;\n\t}",
"@Override\r\n\tpublic void setTheOwner(Player owner) {\n\t\t\r\n\t}",
"@JsonSetter(\"owner\")\r\n public void setOwner(String owner) {\r\n this.owner = owner;\r\n }",
"public void setIsowner(java.lang.Boolean newIsowner) {\n\tisowner = newIsowner;\n}",
"public void setOwner(AbstractGameObject owner) {\r\n\t\tthis.owner = owner;\r\n\t}",
"public void setOwner(Player player) {\n owner = player;\n }",
"public void setOwnerId(Integer ownerId) {\n this.ownerId = ownerId;\n }",
"public void setOwnerName( String name ) {\n\n ownerName = name;\n }",
"public void setOwnerName(String name) {\r\n this.ownerName = name;\r\n }",
"public void setOwnerId(java.lang.String ownerId) {\r\n this.ownerId = ownerId;\r\n }",
"public void setObjectOwner(User objectOwner) {\r\n\t\tthis.objectOwner = objectOwner;\r\n\t}",
"public void setOwningUser(PersonAndOrganization owningUser)\r\n\t{\r\n\t\tthis.owningUser = owningUser;\r\n\t}",
"public void setOwnerType(OwnerType ownerType) {\n\t\tthis.ownerType = ownerType;\n\t}",
"void SetOwner(int passedOwner) {\n if(passedOwner == 0 || passedOwner == 1) {\n owner = passedOwner;\n }\n else {\n Log.d(\"MyError\", \"Error in setting the owner of a build in the build class.\");\n }\n }",
"public void setOwnerPlayer( final PlayerModel ownerPlayer ) {\r\n\t\tthis.ownerPlayer = ownerPlayer;\r\n\t}",
"public void setOwnername(java.lang.String newOwnername) {\n\townername = newOwnername;\n}",
"public void setOwner(Owner bucketOwner)\n {\n this.owner = bucketOwner;\n }",
"public void setOwnerName(String ownerName) {\r\n\t\tthis.ownerName = ownerName;\r\n\t}",
"public void setOwnerName(String ownerName) {\r\n\t\tthis.ownerName = ownerName;\r\n\t}",
"public void setownerName(String ownerName) {\n\t this.ownerName = ownerName;\n\t}",
"public void setOwner(TLPropertyOwner propertyOwner) {\n this.propertyOwner = propertyOwner;\n }",
"public void updateOwner(String number, String owner) throws SQLException {\r\n\t\tConnection connection = dbAdministration.getConnection();\r\n\t\tStatement statement = connection.createStatement();\r\n\t\tString sql = \"UPDATE account SET owner = '\" + owner + \"' WHERE number = '\" + number + \"'\";\r\n\t\t// Der Datensatz wird auf der Datenbank aktualisiert\r\n\t\tstatement.executeUpdate(sql);\r\n\t\tlogger.info(\"SQL-Statement ausgeführt: \" + sql);\r\n\t\tlogger.info(\"Der Besitzer des Kontos \" + number + \" wurde durch \\\"\" + owner + \"\\\" ersetzt.\");\r\n\t\tstatement.close();\r\n\t\tconnection.close();\r\n\t}",
"public void setOwner(AbstractBuilding building) {\n\t\tthis.owner = building;\r\n\t}",
"public void setOwnerStatus(String ownerStatus)\n {\n // put your code here\n this.ownerStatus = ownerStatus;\n }",
"public SettlementPlayer getOwner();",
"@Column(name=\"owner\")\n\tpublic String getOwner() {\n\t\treturn owner;\n\t}",
"public void setInternetRadioStationOwner(Contact value) {\r\n\t\tBase.set(this.model, this.getResource(), INTERNETRADIOSTATIONOWNER, value);\r\n\t}",
"@Override\n public void setLockOwner(Object lockOwner) {\n }",
"public String getOwner() {\n\n return Owner;\n }",
"@Column (name=\"OWNER\", insertable = true, updatable = false)\r\n\tpublic String getOwner() {\r\n\t\treturn owner;\r\n\t}",
"public String getOwner() {\n\n return owner;\n\n }",
"public String getOwner() {\r\n\t\treturn owner;\r\n\t}",
"public void setOwner(ItunesPodcastOwner owner) {\n this.owner = owner;\n }",
"public void setOwnerPermission(TUserPermission ownerPermission) {\n\n\t\tthis.ownerPermission = ownerPermission;\n\t}",
"public String getOwner() {\r\n return owner;\r\n }",
"public void setOwnerString(String s) {\n ownerString = s;\r\n }",
"public String getOwner() {\n return owner;\n }",
"public String getOwner() {\n return owner;\n }",
"public String getOwner() {\n return owner;\n }",
"public String getOwner() {\n return owner;\n }",
"public String getOwner() {\n return owner;\n }",
"public String getOwner() {\n return owner;\n }",
"public OrglRoot setAllOwners(ID owner) {\n\tthrow new SubclassResponsibilityException();\n/*\nudanax-top.st:9676:OrglRoot methodsFor: 'accessing'!\n{OrglRoot} setAllOwners: owner {ID}\n\t\"Return the portiong whose owner couldn't be changed.\"\n\t\t\n\tself subclassResponsibility!\n*/\n}",
"public void setCarOwner(String carOwner)\n {\n this.carOwner = carOwner;\n }",
"public void updateOwners() {\n\t\tbuyOrder.getOwner().executedOrder(buyOrder,this);\n\t\tsellOrder.getOwner().executedOrder(sellOrder,this);\n\t}",
"public void setDataOwner(String sDataOwner);",
"public void setOwnerType(String ownerType) {\n\t\tthis.ownerType = ownerType;\n\t}",
"public void setInternetRadioStationOwner( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), INTERNETRADIOSTATIONOWNER, value);\r\n\t}",
"public String getOwner() { return owner; }",
"public Builder setOwner(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n owner_ = value;\n onChanged();\n return this;\n }",
"public Builder setOwner(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n owner_ = value;\n onChanged();\n return this;\n }",
"public long getOwner() {\n\t\treturn owner;\n\t}",
"public String getOwnerId() {\n return ownerId;\n }",
"public String getOwner(){\n return owner;\r\n }",
"public String getOwner() {\n return mOwner;\n }",
"public Owner getOwner() {\n return owner;\n }",
"public UUID getOwner() {\n return owner;\n }",
"public UUID getOwner() {\n return owner;\n }",
"void setOwner(StatementContribution sc) {\n\t\tthis.owner_ = sc;\n\t}",
"public AccountEntity getOwner() {\n\t\treturn owner;\n\t}",
"@objid (\"6680b948-597e-4df9-b9a2-de8dc499acb3\")\n void setOwnerProfile(Profile value);",
"void setOwner(Agent agent) {\n\t\tsuper.setOwner(agent);\n\t\tthis.referencesFromCapacityMap.set(0);\n\t}",
"ODatabaseInternal<?> setDatabaseOwner(ODatabaseInternal<?> iOwner);",
"public User getOwner() {\n return owner;\n }",
"java.lang.String getOwner();",
"java.lang.String getOwner();",
"public void setOwnerUserId(Long ownerUserId) {\n this.ownerUserId = ownerUserId;\n }",
"public Builder setOwner(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n owner_ = value;\n onChanged();\n return this;\n }",
"public Builder setOwner(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n owner_ = value;\n onChanged();\n return this;\n }"
] | [
"0.7771577",
"0.77136546",
"0.7548644",
"0.7544719",
"0.7509333",
"0.74753356",
"0.7416652",
"0.7381032",
"0.7381032",
"0.7381032",
"0.7381032",
"0.7378892",
"0.73455286",
"0.73306465",
"0.73262036",
"0.73112386",
"0.73042387",
"0.7227302",
"0.7170772",
"0.71485573",
"0.71284235",
"0.7069353",
"0.7031099",
"0.7012401",
"0.6977504",
"0.69685155",
"0.69685155",
"0.68902344",
"0.6839698",
"0.6829946",
"0.6790999",
"0.677425",
"0.6713661",
"0.67052615",
"0.6700645",
"0.66905683",
"0.66820145",
"0.6659403",
"0.6631884",
"0.6607933",
"0.65894365",
"0.65816176",
"0.65289694",
"0.6525871",
"0.6487748",
"0.6426549",
"0.6425526",
"0.63714904",
"0.63540316",
"0.63540316",
"0.6329736",
"0.6312739",
"0.62811416",
"0.62670165",
"0.6246708",
"0.6218436",
"0.61814994",
"0.6177342",
"0.61688167",
"0.61534166",
"0.61149496",
"0.6114722",
"0.6111123",
"0.6110907",
"0.6110786",
"0.61067885",
"0.61062616",
"0.60844773",
"0.60844773",
"0.60844773",
"0.60844773",
"0.60844773",
"0.60844773",
"0.6056011",
"0.6047311",
"0.6045865",
"0.60399777",
"0.60121757",
"0.5993201",
"0.59786886",
"0.5959928",
"0.5959928",
"0.5951109",
"0.5944632",
"0.5927455",
"0.5919232",
"0.59104383",
"0.5909031",
"0.5909031",
"0.5898195",
"0.5897024",
"0.5889849",
"0.58862656",
"0.58782035",
"0.5874076",
"0.5850286",
"0.5850286",
"0.5834246",
"0.58323956",
"0.58323956"
] | 0.6923807 | 27 |
Get the tiles this settlement owns. | public List<Tile> getOwnedTiles() {
return new ArrayList<Tile>(ownedTiles);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Tile[][] getTiles() {\n return tiles;\n }",
"public Tile[][] getTiles() {\n return tiles;\n }",
"public Tiles getTiles() {\n return tiles;\n }",
"public ArrayList<TileSet> getTilesets() {\r\n return this.tileSets;\r\n }",
"public SetOfTiles getSetOfTiles();",
"public ArrayList<Tile> getTiles(){\r\n return tiles;\r\n }",
"public ArrayList<Tile> getDeckTiles() {\n\t\treturn tileDeck.getDeck();\n\t}",
"public Tile[][] getTileMap(){\r\n\t\treturn tileMap;\r\n\t}",
"public ArrayList<Tile> getAllBoardTiles() {\n\n\t\tArrayList<ArrayList<Tile>> tilesMapValues=new ArrayList<ArrayList<Tile>>(getTilesMap().values()) ;\n\t\tArrayList<Tile> allTiles =new ArrayList<Tile>() ;\n\t\tfor(ArrayList<Tile> tileList : tilesMapValues) {\n\t\t\tallTiles.addAll(tileList);\n\n\t\t}\n\t\treturn allTiles;\n\t}",
"public Tile[] generateTiles() {\n return null;\n }",
"public abstract TiledMapTileSet getTileSet();",
"ArrayList<Tile> getTilesPlayerOne() throws RemoteException;",
"@NotNull\r\n BlockState[] getTileEntities();",
"public ArrayList<MahjongSolitaireTile> getStackTiles()\n {\n return stackTiles;\n }",
"public TileMap getMyTileMap() {\n return this.myTileMap;\n }",
"public ArrayList<MahjongSolitaireTile>[][] getTileGrid() \n { \n return tileGrid; \n }",
"public static byte[] getGoalTiles() {\n return GOAL_TILES;\n }",
"public ArrayList<Tile> getOrangeTiles() {\n\t\treturn orangeTiles;\n\t}",
"public Tile getTile() {\n return _tile;\n }",
"ArrayList<Tile> getTilesPlayerTwo() throws RemoteException;",
"public static ArrayList<FloorTile> getEffectedTiles() {\r\n\r\n ArrayList<FloorTile> temp = new ArrayList<>();\r\n for(int i = GameControl.ytile-1; i < GameControl.ytile + 2; i++) {\r\n for(int j = GameControl.xtile-1; j < GameControl.xtile + 2; j++) {\r\n if(i >= 0 && i < board.length && j >= 0 && j < board[0].length) {\r\n temp.add(board[i][j]);\r\n }\r\n }\r\n }\r\n return temp;\r\n }",
"@Override\n public Tile[][] getGrid() { return grid; }",
"public static int getTileBits() {\n return TILE_BITS;\n }",
"private List<Tile> makeTiles() {\n List<Tile> tiles = new ArrayList<>();\n Board board = (Board) boardManager.getBoard();\n final int numTiles = board.getNumRows() * board.getNumCols();\n for (int tileNum = 0; tileNum != numTiles; tileNum++) {\n tiles.add(new Tile(tileNum + 1, tileNum, 4));\n }\n\n return tiles;\n }",
"public Tile getTile() { return tile; }",
"public Tile getTile() {\n return tile;\n }",
"public Tile getTile() {\n return tile;\n }",
"public Tile getTile() {\n\t\treturn tile;\n\t}",
"List<Tile> getAdjacentTiles();",
"public ArrayList<TileView> getTileViewList() {\n\t\treturn tileViewList;\n\t}",
"public TilesManager getTilesManager() {\n return this.tilesManager;\n }",
"public void setTiles() {\n\t\tTileStack names = new TileStack();\n\t\tfor(int x=0; x < theBoard.getCols(); x++) {\n\t\t\tfor(int y=0; y < theBoard.getRows(); y++) {\n\t\t\t\tp = new Point(x,y);\n\t\t\t\tif(p.equals(new Point(0,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(1,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(4,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(0,1)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,1)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(0,4)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,4)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(0,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(1,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(4,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse \n\t\t\t\t\ttheBoard.setTile(p, names.pop());\n\t\t\t}\n\t\t}\n\t}",
"public abstract Set<Tile> getNeighbors(Tile tile);",
"public int[] getGrassTileRaw() {\n return grassTileRaw;\n }",
"public Iterator<MahjongSolitaireTile> getMovingTiles()\n {\n return movingTiles.iterator();\n }",
"public Rect getTileRect(){\n return this.tileRect;\n }",
"public List<Tile> getTilesAtAbsoluteRect(AbsoluteRectangle rect) {\n List<Tile> tiles = new ArrayList<>();\n int tileWidth = tileMap.getTileWidth();\n int tileHeight = tileMap.getTileHeight();\n int startX = rect.x / tileWidth;\n int startY = rect.y / tileHeight;\n int endX = (int) Math.ceil((rect.x + rect.width) / (float) tileWidth);\n int endY = (int) Math.ceil((rect.y + rect.height) / (float) tileHeight);\n for (int x = startX; x < endX; x++)\n for (int y = startY; y < endY; y++) {\n Tile tile = tileMap.getTile(x, y);\n if (tile != null)\n tiles.add(tile);\n }\n return tiles;\n }",
"public Board twin() {\n if (tiles[0][0] != 0 && tiles[0][1] != 0)\n return new Board(tiles, new Position(0, 0), new Position(0, 1));\n else\n return new Board(tiles, new Position(1, 0), new Position(1, 1));\n }",
"public ArrayList<Tile> getPlayerHand(){\n return playerHand;\n }",
"public Node getBoardNode() {\r\n return tilesNode;\r\n }",
"public Tile[] getSelectedTiles() {\n\t\treturn selectedTiles.clone();\n\t}",
"public ArrayList<Tile> getAllTilesFromAllLayers(String tilesetName) {\r\n ArrayList<Tile> tiles = new ArrayList<Tile>();\r\n int tilesetID = this.tilesetNameToIDMap.get(tilesetName);\r\n for (int x = 0; x < this.getWidth(); x++) {\r\n for (int y = 0; y < this.getHeight(); y++) {\r\n for (int l = 0; l < this.getLayerCount(); l++) {\r\n Layer layer = this.layers.get(l);\r\n if (layer.data[x][y][0] == tilesetID) {\r\n Tile t = new Tile(x, y, layer.name, layer.data[x][y][2], tilesetName);\r\n tiles.add(t);\r\n }\r\n }\r\n }\r\n }\r\n return tiles;\r\n }",
"public List<Tile> getNeighbors() {\n List<Tile> list = new ArrayList<Tile>();\n\n if (this.tileNorth != null) {\n list.add(this.tileNorth);\n }\n\n if (this.tileEast != null) {\n list.add(this.tileEast);\n }\n\n if (this.tileSouth != null) {\n list.add(this.tileSouth);\n }\n\n if (this.tileWest != null) {\n list.add(this.tileWest);\n }\n\n return list;\n }",
"public abstract Tile getTileAt(int x, int y);",
"public ArrayList<Tile> getEmptyTiles(){\n\t\tArrayList<Tile> emptyTiles = new ArrayList<Tile>();\n\t\tArrayList<Tile> boardTiles = getAllBoardTiles();\n\t\tfor (Tile tile : boardTiles) {\n\t\t\tif(tile.getPiece()== null && tile.getColor1()== PrimaryColor.BLACK) {\n\t\t\t\temptyTiles.add(tile);\n\t\t\t}\n\t\t}\n\t\treturn emptyTiles;\n\t}",
"protected Tile[] newTiles() {\n int len = getWidthInTiles() * getHeightInTiles();\n Tile[] t = new Tile[ len ];\n for(int i = 0; i < len; i++) {\n t[i] = null;\n }\n return t;\n }",
"public AmmoTilesImmutable getAmmoTiles() {\n return ammoTiles;\n }",
"public Tile[] generate() {\n Tile[] tiles = generateTiles();\n calculatePathfindingGrid(tiles);\n return tiles;\n }",
"public Terrain[][] getTerrains() {\n return terrains;\n }",
"protected Tile getTile( Tile[] tiles, int x, int y ) {\n return tiles[ (y * getHeightInTiles()) + x ];\n }",
"public int getTileX()\n\t{\n\t\treturn this.tileX;\n\t}",
"public Board twin() {\n Board c = getClone();\n int firstTileRow = -1, firstTileCol = -1, secTileRow = -1, secTileCol = -1;\n outerloop:\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n if (tiles[i][j] != 0) {\n firstTileRow = i;\n firstTileCol = j;\n break outerloop;\n }\n }\n }\n\n outerloop:\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n if ((tiles[i][j] != 0) && ((i != firstTileRow) || (j != firstTileCol))) {\n secTileRow = i;\n secTileCol = j;\n break outerloop;\n }\n }\n }\n\n int t = c.tiles[firstTileRow][firstTileCol];\n c.tiles[firstTileRow][firstTileCol] = c.tiles[secTileRow][secTileCol];\n c.tiles[secTileRow][secTileCol] = t;\n return c;\n }",
"private Tile getTileAt(int x, int y)\n {\n int tileAt = y * TILES_PER_ROW + x;\n \n if (tileAt >= tileset.getTileCount())\n {\n return null;\n }\n else \n {\n return tileset.getTile(tileAt);\n }\n }",
"public ArrayList<Tile> getColoredTilesList() {\n\t\treturn coloredTilesList;\n\t}",
"Tile getTile() {\n if (tiles.size() == 0) {\n return null;\n } else {\n int randomIndex = ThreadLocalRandom.current().nextInt(0, tiles.size());\n Tile result = tiles.get(randomIndex);\n tiles.remove(randomIndex);\n return result;\n }\n }",
"private static Image[][] getTileBases()\n\t{\n\t\tImage[][] tileBases = new Image[2][4];\n\t\tfor (int type = 0; type < 4; type++) {\n\t\t\ttry {\n\t\t\t\ttileBases[0][type] = ImageIO.read(new File(tileDirectory\n\t\t\t\t\t\t+ \"tile_\" + tileColours[type] + \".png\"));\n\t\t\t} catch (IOException ioe) {\n\t\t\t}\n\t\t}\n\t\tfor (int type = 0; type < 4; type++) {\n\t\t\ttry {\n\t\t\t\ttileBases[1][type] = ImageIO.read(new File(tileDirectory\n\t\t\t\t\t\t+ \"tile_\" + tileColours[type] + \"_trans.png\"));\n\t\t\t} catch (IOException ioe) {\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn tileBases;\n\t}",
"public Tile getTile(){\n\t\treturn currentTile;\n\t}",
"public int getTileX() {\n\t\treturn tileX;\n\t}",
"public Tile[][] getBoard() {\r\n return board;\r\n }",
"@Override\n public SquareTile getTile(int x, int y) {\n // Check that the location is inside the grid\n if (x < 0 || x >= width || y < 0 || y >= height)\n return null;\n\n return tiles[x * width + y];\n }",
"public FloorTile[][] getBoard(){\r\n return board;\r\n }",
"public List<Tile> getNeighbours() {\n \r\n return neighbours;\r\n }",
"public int tilesRemain() {\n return tiles.size();\n }",
"public ArrayList<Pile> getPiles() {\n \t\treturn mTable;\n \n \t}",
"@Override\n\tpublic BlockState[] getTileEntities()\n\t{\n\t\tthrow new UnimplementedOperationException();\n\t}",
"public int getTile(int x, int y)\n {\n return tilemap[x][y];\n }",
"public Tile getTile(int x, int y) {\n\t\tif (x < 0 || x >= (this.width / Tile.WIDTH) || y < 0 || y >= (this.height / Tile.HEIGHT)) {\n//\t\t\tSystem.out.println(x + \" \" + y + \" \" + \"comes heere\");\n\t\t\treturn VoidTiled.getInstance();\n\t\t}\n\t\treturn tiles[x + y * (this.width / Tile.WIDTH)];\n\t}",
"public Board twin() {\n exchangeFirstKeys(); // exchange (0,0) with (0,1)\n Board twinBoard = new Board(tiles);\n exchangeFirstKeys(); // roll it back\n return twinBoard;\n }",
"Coordinate[] getTilePosition(int x, int y) {\n\t\treturn guiTiles.get(y).get(x).getBoundary();\n\t}",
"public static void loadTiles() {\n\t\tTILE_SETS.put(\"grass\", TileSet.loadTileSet(\"plains\"));\n\t}",
"public Tile[] getAdjs(){\r\n return adjTiles;\r\n }",
"public ArrayList<FloorTile> getFixedTilesFromBoard() {\r\n ArrayList<FloorTile> fixedTiles = new ArrayList<FloorTile>();\r\n for(int i = 0; i < board.length; i++) {\r\n for (int j = 0; j < board[i].length; j++) {\r\n if (board[i][j].isFixedTile()) {\r\n fixedTiles.add(board[i][j]);\r\n }\r\n }\r\n }\r\n\r\n return fixedTiles;\r\n }",
"Map<BoardCellCoordinates, Set<Integer>> getWinningCoordinates();",
"public Tile getTile(int x, int y) {\r\n assert (tiles != null);\r\n \r\n if (x < 0 || y < 0 || x >= width || y >= height) {\r\n return Tile.floorTile;\r\n }\r\n \r\n Tile t = Tile.tiles[tiles[x][y]];\r\n if (t == null) {\r\n return Tile.floorTile;\r\n }\r\n return t;\r\n }",
"public interface TileManager {\r\n\t\r\n\tpublic String encode(long id);\r\n\t\r\n\tpublic int getNumTilesX();\r\n\t\r\n\tpublic int getNumTilesY();\r\n\t\r\n\tpublic double getTileSize();\r\n\t\r\n\tpublic String getCRS();\r\n\t\r\n\tpublic int[] getTileCoordinates(double[] bbox);\r\n\t\r\n\tpublic void setTiles(double[] geobbox);\r\n\t\r\n\tpublic List<String> getTiles(double[] geobbox);\r\n\t\r\n\tpublic List<Tile> getTiles();\r\n\t\r\n\tpublic double[] getWorldBBox();\r\n\t\t\r\n\tpublic List<String> getNeighourTiles(String code, List<String> directions);\r\n\t\r\n}",
"public int getTileId() {\n\t\treturn tileId;\n\t}",
"public Tile getTile()\r\n\t{\r\n\t\tif(this.hasTiles())\r\n\t\t\treturn _tiles.remove(0);\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}",
"public List<FreeColGameObject> disposeList() {\n List<FreeColGameObject> objects = new ArrayList<FreeColGameObject>();\n if (owner != null\n && getTile() != null\n && getTile().getSettlement() != null) {\n // Defensive tests to handle transition from calling dispose()\n // on both sides to when it is only called on server-side.\n \n // Get off the map\n Tile settlementTile = getTile();\n List<Tile> lostTiles = getOwnedTiles();\n for (Tile tile : lostTiles) {\n tile.changeOwnership(null, null);\n }\n settlementTile.setSettlement(null);\n \n // The owner forgets about the settlement.\n Player oldOwner = owner;\n oldOwner.removeSettlement(this);\n oldOwner.invalidateCanSeeTiles();\n // It is not safe to setOwner(null). When a settlement is\n // destroyed there is a race between this code and some\n // display routines that still need to know who owned the\n // dead settlement.\n }\n \n objects.addAll(super.disposeList());\n return objects;\n }",
"public Image getVisibleTile(int x, int y) throws SlickException {\r\n Image visibleTileImage = null;\r\n for (int l = this.getLayerCount() - 1; l > -1; l--) {\r\n if (visibleTileImage == null) {\r\n visibleTileImage = this.getTileImage(x, y, l);\r\n continue;\r\n }\r\n }\r\n if (visibleTileImage == null) {\r\n throw new SlickException(\"Tile doesn't have a tileset!\");\r\n }\r\n return visibleTileImage;\r\n }",
"public synchronized Collection<TurtleBody> getTurtles(int x, int y) {\n\t\treturn this.grid.getTurtles(x, y);\n\t}",
"public Tile getTileAt(Position p);",
"private Tile getTile(int x, int y) {\n\t\tif (x < 0 || x > width || y < 0 || y > height) return Tile.VOID;\n\t\treturn Tile.tiles[tiles[x + y * width]];\n\t}",
"private Point getTileCoordinates(int x, int y)\n {\n int tileWidth = this.tileset.getTileWidth() + 1;\n int tileHeight = this.tileset.getTileHeight() + 1;\n int tileCount = this.tileset.getTileCount();\n int rows = tileCount / TILES_PER_ROW + \n (tileCount % TILES_PER_ROW > 0 ? 1 : 0);\n \n int tileX = Math.max(0, Math.min(x / tileWidth, TILES_PER_ROW - 1));\n int tileY = Math.max(0, Math.min(y / tileHeight, rows - 1));\n \n return new Point(tileX, tileY);\n }",
"public int getTileLevel()\n {\n return tileLevel;\n }",
"public Tile getTile(int x, int y) {\n\t\tif (x < 0 || x >= width || y < 0 || y >= height) {\n\t\t\treturn Tile.voidTile;\n\t\t}\n\t\treturn tiles[x + y * width];\n\t}",
"protected BattleGrid getGrid() {\n return grid;\n }",
"public ArrayList<Territory> getAdjacentTerritories() {\r\n\t\treturn adjacentTerritories;\r\n\t}",
"public Board twin() {\n Board twin;\n int[][] input = numArray(this.tiles);\n if (input[0][0] != 0 && input[0][1] != 0)\n twin = new Board(swap(input, 0, 0, 0, 1));\n else\n twin = new Board(swap(input, 1, 0, 1, 1));\n return twin;\n }",
"public void getTile_B8();",
"public int getTileType() {\r\n\t\treturn 3;\r\n\t}",
"public int tileType(){\n\t\treturn this.type;\n\t}",
"@Override\n public int getNumXTiles() {\n return getMaxTileX() - getMinTileX() + 1;\n }",
"@Override\n\tpublic List<Unit> getUnits() {\n\t\tList<Unit> units = new LinkedList<Unit>();\n\t\tfor (GameCoordinate gameCoordinate : unitPositions) {\n\t\t\tUnit unit = getUnit(gameCoordinate);\n\t\t\tif (!unit.isDead()) {\n\t\t\t\tunits.add(getUnit(gameCoordinate));\n\t\t\t}\n\t\t}\n\t\treturn units;\n\t}",
"public HashMap<String, List<OwnedWarp>> getTable() {\n return warps;\n }",
"public MapEntity getTileAt(int x, int y) {\n\t\ttry {\n\t\t\treturn tiles.get(y)[x];\n\t\t}\n\t\tcatch(IndexOutOfBoundsException | NullPointerException e) {\n\t\t\treturn null;\n\t\t}\n\t}",
"public int getTileWidth() {\n return 8;\n }",
"public final int getTilesXSize() {\n\t\treturn xSize;\n\t}",
"public int size()\r\n\t{\r\n\t\treturn _tiles.size();\r\n\t}",
"public Creature[][] getGrid()\n\t{\n\t\treturn grid;\n\t}",
"public Point getTileCoordinates(int x, int y) {\n int tileWidth = this.board.getTileSet().getTileWidth() + 1;\n int tileHeight = this.board.getTileSet().getTileHeight() + 1;\n\n int tileX = Math.max(0, Math.min(x / tileWidth, this.board.getWidth() - 1));\n int tileY = Math.max(0, Math.min(y / tileHeight, this.board.getHeight() - 1));\n\n return new Point(tileX, tileY);\n }"
] | [
"0.70721257",
"0.7026069",
"0.70063746",
"0.6891966",
"0.6684008",
"0.6648693",
"0.65306646",
"0.6527866",
"0.6485517",
"0.63901377",
"0.6379884",
"0.6268618",
"0.62245744",
"0.6191424",
"0.61160254",
"0.6084927",
"0.6002401",
"0.59902567",
"0.5927714",
"0.59052783",
"0.5897",
"0.5887339",
"0.5866967",
"0.57914466",
"0.5777952",
"0.57639563",
"0.57639563",
"0.5762214",
"0.5760656",
"0.5741179",
"0.5732695",
"0.57240516",
"0.5694512",
"0.5667304",
"0.5641613",
"0.5630635",
"0.5614146",
"0.557608",
"0.5561083",
"0.55590403",
"0.55492705",
"0.55383927",
"0.5533565",
"0.5521834",
"0.55207783",
"0.5515356",
"0.548894",
"0.5483222",
"0.5480053",
"0.5478499",
"0.54743785",
"0.545775",
"0.5451336",
"0.54266983",
"0.5424946",
"0.5417712",
"0.540941",
"0.53912485",
"0.5389521",
"0.5389123",
"0.5388415",
"0.5376371",
"0.53684187",
"0.5354237",
"0.5336934",
"0.53368735",
"0.53050584",
"0.5270703",
"0.52674806",
"0.526374",
"0.5262869",
"0.5258457",
"0.52550536",
"0.5248236",
"0.52422386",
"0.523889",
"0.5235463",
"0.5221299",
"0.5211571",
"0.5211392",
"0.5209569",
"0.51956767",
"0.51954854",
"0.51953626",
"0.5180968",
"0.5178524",
"0.5177909",
"0.5173096",
"0.51355237",
"0.5130016",
"0.51099133",
"0.509755",
"0.5097278",
"0.5095186",
"0.5092589",
"0.50904083",
"0.50656193",
"0.50652987",
"0.50637203",
"0.5058532"
] | 0.7391751 | 0 |
Adds a tile to this settlement. | public void addTile(Tile tile) {
ownedTiles.add(tile);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addTile(Tile tile)\r\n\t{\r\n\t\ttiles.add(tile);\r\n\t}",
"public Map add(Tile tile) {\n this.tiles.add(tile);\n return this;\n }",
"private void add(Tile t) {\n tileBag.add(t);\n shuffleBag();\n }",
"public boolean addTile(Tile tile) {\n\n\t\tboolean isSuccess = false;\n\t\tint tileRow = tile.getLocation().getRow();\n\t\tint tileCol = tile.getLocation().getColumn();\n\n\t\tArrayList<Tile> boardRow= null;\n\n\t\tif(tiles.containsKey(tileRow)) {\n\t\t\tboardRow=tiles.get(tileRow);\n\t\t\tif(boardRow == null) {\n\t\t\t\tboardRow = new ArrayList<Tile>(BOARD_SIZE);\n\t\t\t\tfor (int i = 0; i < BOARD_SIZE; i++) {\n\t\t\t\t\tboardRow.add(0,null);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tboardRow= new ArrayList<Tile>(BOARD_SIZE);\n\t\t\tfor (int i = 0; i < BOARD_SIZE; i++) {\n\t\t\t\tboardRow.add(0,null);\n\t\t\t}\n\t\t}\n\t\tboardRow.set(tileCol - 'A', tile);\n\t\tthis.tiles.put(tileRow, boardRow);\n\t\tisSuccess = true;\n\n\t\treturn isSuccess;\n\n\t}",
"public void addTileOnBeginning(Tile tile);",
"public void addTileAtTheEnd(Tile tile);",
"public void addSubbedTile(Tile t) { subbedTiles.add(t); }",
"public void addEditedTile(GroundTile tile) {\n this.editedTiles.add(tile);\n }",
"public void placeTile(Tile t){\n\t\t//System.out.println(t.toString() + \" was placed\");\n\t\toccupied = true;\n\t\tcurrentTile = t;\n\t}",
"public void addToTile(GameEntity e) {\n\t\t\n\t\tGridTile tile = getTile(e.pos());\n\t\ttile.add(e);\n\t}",
"void setTile(Tile tile) {\n _tile = tile;\n }",
"public int addTerrain(Terrain t, int x, int y) {\n if (t != null) {\n t.setMapRelation(new MapTerrain_Relation(this, t));\n this.map_grid_[y][x].addTerrain(t);\n t.getMapRelation().setMapTile(this.map_grid_[y][x]);\n return 0;\n } else {\n return -1;\n }\n }",
"public void setTile(Tile tile) {\n\t\tthis.tile = tile;\n\t}",
"public void enterMap(Map map, int layer, int i, int j) {\n //1. add the tile to the map\n map.addTile( layer, i, j, this);\n }",
"private boolean addTile(int tileRow, int tileCol, Palette.FillColor color, int width, int height) {\n\t\t\tif (tileRow + height > ROWS || tileCol + width > COLS)\n\t\t\t\treturn false;\n\t\t\t\n\t\t\t// check if another tile exists in region\n\t\t\tfor (int r = tileRow; r < tileRow + height; r++) {\n\t\t\t\tfor (int c = tileCol; c < tileCol + width; c++) {\n\t\t\t\t\tif (m_tileMap[r][c] != '0')\n\t\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tboolean added = m_tiles.get(tileRow).add(new Board.Tile(tileCol, color, width, height));\n\t\t\tif (added) {\n\t\t\t\tfor (int r = tileRow; r < tileRow + height; r++) {\n\t\t\t\t\tfor (int c = tileCol; c < tileCol + width; c++)\n\t\t\t\t\t\tm_tileMap[r][c] = '1';\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn added;\n\t\t}",
"public static void addTile(Color[][] tileData, int x, int y, Color[] palData)\n {\n int tileNumber = ChrFile.getTileNum(tileData, palData);\n\n allTiles[x/8][y/8] = tileNumber;\n numOfTiles++;\n }",
"protected void addTileToCache(ElevationTile tile, BufferWrapper elevations)\n {\n if (tile.getLevelNumber() == 0)\n this.levelZeroTiles.put(tile.getTileKey(), tile);\n else\n this.getMemoryCache().add(tile.getTileKey(), tile, elevations.getSizeInBytes());\n }",
"protected void registerTile(int x, int y) {}",
"public void addInSort(Tile t) {\n\t\tthis.addJoker(t);\n\t\tthis.tiles.add(t);\n\t}",
"public final void addTile(final int rowPos, //!< Row position of tile\n\t\t\t final int colPos, //!< Column position of tile\n\t\t\t Tile tile //!< Tile object to be added\n\t\t\t ) {\n\t\t// Add additional rows to the tile container if necessary\n\t\tfor (int resizeIter = mLayout.size(); resizeIter <= rowPos; resizeIter++) {\n\t\t\tmLayout.add(new Vector<Tile>());\n\t\t}\n\n\t\t// Add additional columns to the row if necessary\n\t\tfor (int resizeIter = mLayout.get(rowPos).size(); resizeIter <= colPos; resizeIter++) {\n\t\t\tmLayout.get(rowPos).add(tileFactory.create(TileFactory.Type.GRASS));\n\t\t}\n\n\t\tmLayout.get(rowPos).setElementAt(tile, colPos);\n\t}",
"@Override\r\n public void onTileAdded() {\r\n super.onTileAdded();\r\n //Log.d(TAG, \"on tile added running\");\r\n initTileState();\r\n }",
"@Override\n public Map put(Tile tile, int left, int top) {\n // TODO if useful\n int index = getPosition(left, top);\n while (this.tiles.size() <= index) {\n this.tiles.add(null);\n }\n this.tiles.set(index, tile);\n return this;\n }",
"private void initTile(SpriteType sT, String tileType)\n {\n // CONSTRUCT THE TILE\n MahjongSolitaireTile newTile = new MahjongSolitaireTile(sT, unassignedTilesX, unassignedTilesY, 0, 0, INVISIBLE_STATE, tileType);\n \n // AND ADD IT TO THE STACK\n stackTiles.add(newTile); \n }",
"protected void setTile( Tile[] tiles, int x, int y, Tile tile ) {\n tiles[ (y * getHeightInTiles()) + x ] = tile;\n }",
"private void createTile(){\n for(int i = 0; i < COPY_TILE; i++){\n for(int k = 0; k < DIFF_TILES -2; k++){\n allTiles.add(new Tile(k));\n }\n }\n }",
"public TileItem(Game game, Tile tile) {\n super(game);\n if (tile == null) {\n throw new NullPointerException();\n }\n this.tile = tile;\n }",
"void placeTile(Tile tile, int x, int y, SurfaceEntityType type, Building building) {\r\n\t\tfor (int a = x; a < x + tile.width; a++) {\r\n\t\t\tfor (int b = y; b > y - tile.height; b--) {\r\n\t\t\t\tSurfaceEntity se = new SurfaceEntity();\r\n\t\t\t\tse.type = type;\r\n\t\t\t\tse.virtualRow = y - b;\r\n\t\t\t\tse.virtualColumn = a - x;\r\n\t\t\t\tse.tile = tile;\r\n\t\t\t\tse.tile.alpha = alpha;\r\n\t\t\t\tse.building = building;\r\n\t\t\t\tif (type != SurfaceEntityType.BASE) {\r\n\t\t\t\t\trenderer.surface.buildingmap.put(Location.of(a, b), se);\r\n\t\t\t\t} else {\r\n\t\t\t\t\trenderer.surface.basemap.put(Location.of(a, b), se);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public TileObject(Point position, TileContainer superContainer, TETile tile) {\n super(1, 1, position, superContainer);\n superContainer.addElement(this);\n this.tile = tile;\n }",
"private static void addUnexploredTile(DisplayTile tile, HashMap<DisplayTile, DisplayTile> chainedTiles, LinkedList<DisplayTile> tilesToExplore) {\n\t\tif (!tile.isRoomTile() && tile.isPassage()) {\n\t\t\tchainedTiles.put(tile, null);\n\t\t\ttile = tile.getPassageConnection();\n\t\t}\n\t\ttilesToExplore.add(tile);\n\t}",
"public boolean addBoardTile(Tile t, int xpos, int ypos) {\n \tTile leftTile = null;\n \tTile rightTile = null;\n \tif (ypos != 1) {\n \t\t// Aka if the tile isn't at the leftmost side\n \t\tleftTile = boardTiles.get(new Point(xpos - 1, ypos));\n \t} \t\n \tif (ypos != BoardController.BOARDSIZE) {\n \t\t// Aka if the tile isn't at the rightmost side\n \t\trightTile = boardTiles.get(new Point(xpos + 1, ypos));\n \t}\n \t\n \tif (leftTile != null && rightTile != null) {\n \t\t// Tile placed on the board between two existing melds\n \t\t// NOTE: If the tile is moved a space to the left or right, and that space is \n \t\t// not occupied, and there is another existing meld beside that space,\n \t\t// then the two melds are the meld it was moved beside and itself\n \t\tMeld leftMeld = findMeld(leftTile);\n \t\tMeld rightMeld = findMeld(rightTile);\n \t\t\n \t\t// First check if either meld is the single tile being moved\n \t\tif (leftMeld.getTiles().contains(t)) {\n \t\t\t// Treat as adding only that tile\n \t\t\tif(rightMeld.addLeftside(t)) {\n \t\t\t\tif (boardTiles.containsValue(t)) {\n \t\t\t\t\tremoveBoardTile(t);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tremoveHandTile(t);\n \t\t\t\t}\n \t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t\t}\n \t\t\treturn false;\n \t\t}\n \t\telse if (rightMeld.getTiles().contains(t)) {\n \t\t\t// Treat as adding only that tile\n \t\t\tif(leftMeld.addRightside(t)) {\n \t\t\t\tif (boardTiles.containsValue(t)) {\n \t\t\t\t\tremoveBoardTile(t);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tremoveHandTile(t);\n \t\t\t\t}\n \t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t\t}\n \t\t\treturn false;\n \t\t}\n \t\telse if (leftMeld.addRightside(t)) {\n \t\t\tif(combineMeld(leftMeld, rightMeld)) {\n \t\t\t\tif (boardTiles.containsValue(t)) {\n \t \t\t\tremoveBoardTile(t);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tremoveHandTile(t);\n \t\t\t\t}\n \t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\t\tcontroller.updateView();\n \t\t\t\treturn true;\n \t\t\t}\n \t\t\telse {\n \t\t\t\tleftMeld.removeFromMeld(t);\n \t\t\t\treturn false;\n \t\t\t}\n \t\t}\n \t\treturn false;\n \t}\n \t\n \telse if (leftTile == null && rightTile == null) {\n \t\t// Tile is placed on the board as the start of a new meld!\n \t\tmelds.add(new Meld(t));\n \t\tif (boardTiles.containsValue(t)) {\n \t\t\tremoveBoardTile(t);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tremoveHandTile(t);\n\t\t\t}\n\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n\t\t\tcontroller.updateView();\n\t\t\treturn true;\n \t}\n \t\n \telse if(leftTile != null) {\n \t\t// Tile is added to the end of an existing meld\n \t\t// OR tile is moved to the right and the left tile is itself!\n \t\t\n \t\tif (leftTile.equals(t)) {\n \t\t\tif (findMeld(t).getSize() == 1) {\n \t\t\t\tmelds.remove(findMeld(t));\n \t\t\t}\n \t\t\telse {\n \t\t\t\tfindMeld(t).removeFromMeld(t);\n \t\t\t}\n \t\t\tmelds.add(new Meld(t));\n \t\tif (boardTiles.containsValue(t)) {\n \t\t\tremoveBoardTile(t);\n \t\t\t}\n \t\t\telse {\n \t\t\t\tremoveHandTile(t);\n \t\t\t}\n \t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t}\n \t\t\n \t\tif(leftTile.getID() > 9) {\n \t\t\t// First tile of meld to add to is a joker\n \t\t\tif (findMeld(leftTile).getSize() == 2) {\n \t\t\t\t// Just the joker and another tile in the meld\n \t\t\t\t// Can change the joker's value now to reflect the newly\n \t\t\t\t// added tile\n \t\t\t\tif(findMeld(leftTile).setMeld(t, 0)) {\n \t\t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t \t\t\tcontroller.updateView();\n \t\t\t\t\treturn true;\n \t\t\t\t}\n \t\t\t\treturn false;\n \t\t\t}\n \t\t}\n \t\t\n \t\tMeld meldToAddTo = findMeld(leftTile);\n \t\tif (meldToAddTo != null) {\n \t\t\tif(meldToAddTo.addRightside(t)) {\n \t\t\t\tif (boardTiles.containsValue(t)) {\n \t\t\t\t\tremoveBoardTile(t);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tremoveHandTile(t);\n \t\t\t\t}\n \t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t\t}\n \t\t\treturn false;\n \t\t}\n \t\telse {\n \t\t\t// The tile that was already on the board is\n \t\t\t// somehow not found in any meld. Should not\n \t\t\t// reach here!\n \t\t\tSystem.out.println(\"2\");\n \t\t\treturn false;\n \t\t}\n \t}\n \t\n \telse if(rightTile != null) {\n \t\tif (rightTile.equals(t)) {\n \t\t\tif (findMeld(t).getSize() == 1) {\n \t\t\t\tmelds.remove(findMeld(t));\n \t\t\t}\n \t\t\telse {\n \t\t\t\tfindMeld(t).removeFromMeld(t);\n \t\t\t}\n \t\t\tmelds.add(new Meld(t));\n \t\tif (boardTiles.containsValue(t)) {\n \t\t\tremoveBoardTile(t);\n \t\t\t}\n \t\t\telse {\n \t\t\t\tremoveHandTile(t);\n \t\t\t}\n \t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t}\n \t\t\n \t\tif(rightTile.getID() > 9) {\n \t\t\t// First tile of meld to add to is a joker\n \t\t\tif (findMeld(rightTile).getSize() == 2) {\n \t\t\t\t// Just the joker and another tile in the meld\n \t\t\t\t// Can change the joker's value now to reflect the newly\n \t\t\t\t// added tile\n \t\t\t\tif(findMeld(rightTile).setMeld(t, 1)) {\n \t\t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t \t\t\tcontroller.updateView();\n \t\t\t\t\treturn true;\n \t\t\t\t}\n \t\t\t\treturn false;\n \t\t\t}\n \t\t}\n \t\t\n \t\tMeld meldToAddTo = findMeld(rightTile);\n \t\tif (meldToAddTo != null) {\n \t\t\tif(meldToAddTo.addLeftside(t)) {\n \t\t\t\tif (boardTiles.containsValue(t)) {\n \t\t\t\t\tremoveBoardTile(t);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tremoveHandTile(t);\n \t\t\t\t}\n \t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t\t}\n \t\t\tSystem.out.print(\"We get here >:\");\n \t\t\tSystem.out.print(t.getValue());\n \t\t\tSystem.out.print(t.getColour().getName());\n \t\t\t\n \t\t\tSystem.out.println(rightTile.getValue());\n \t\t\tSystem.out.println(rightTile.getColour().getName());\n \t\t\treturn false;\n \t\t}\n \t\telse {\n \t\t\t// The tile that was already on the board is\n \t\t\t// somehow not found in any meld. Should not\n \t\t\t// reach here!\n \t\t\tSystem.out.println(\"3\");\n \t\t\treturn false;\n \t\t}\n \t}\n \telse {\n \t\t// Should not reach here, throw an error if it does\n \t\tSystem.out.println(\"4\");\n \t\treturn false;\n \t}\n }",
"@Override\n\tpublic void addTask(Teatask ta)\n\t{\n\t\tteataskMapper.addTask(ta);\n\t}",
"public void push(View tile) {\n }",
"public void onTileEntry(Tile tile) {}",
"protected abstract void setTile( int tile, int x, int y );",
"public Tile(Tile tile){\n this.gameX = tile.getGameX();\n this.gameY = tile.getGameY();\n this.state = tile.getState();\n this.color = tile.getColor();\n }",
"public void install(GridTile tile) {\n NameTile = tile;\n if ( (NameTile != null) && (NameFrill != null)) {\n NameTile.addFrill(NameFrill);\n }\n }",
"public void addDetailTile(WeatherDetail weatherDetail, int addPos, int delPos)\n {\n tileList.add(addPos, weatherDetail);\n notifyItemInserted(addPos);\n\n if(delPos != Constant.DONT_REMOVE)\n {\n tileList.remove(delPos);\n notifyItemRemoved(delPos);\n }\n }",
"public void addTicket(LotteryTicket ticket)\r\n\t{\r\n\t\tlotteryTickets.add(ticket);\r\n\t}",
"public void removeTile(Tile tile) {\n ownedTiles.remove(tile);\n }",
"public void drawTile() {\n\n }",
"public boolean hasTile(GroundTile tile) {\n return this.editedTiles.contains(tile);\n }",
"public int getTileId() {\n\t\treturn tileId;\n\t}",
"public void addTrip(Trip trip) {\n this.trips.add(trip);\n modifiedSinceLastResult = true;\n }",
"public void placeSettlement(boolean maximal) {\n List<Tile> tiles;\n if (maximal) {\n tiles = getGame().getMap()\n .getClaimableTiles(owner, tile, getRadius());\n } else {\n tiles = new ArrayList<Tile>();\n tiles.add(tile);\n }\n \n tile.setSettlement(this);\n for (Tile t : tiles) {\n t.changeOwnership(owner, this);\n }\n for (Tile t : tile.getSurroundingTiles(getLineOfSight())) {\n owner.setExplored(t);\n }\n owner.invalidateCanSeeTiles();\n }",
"public Tile getTile() { return tile; }",
"public static void addTower(Tower t)\n\t{\n\t\ttowers.add(t);\n\t}",
"public void initTiles() {\n\t\ttileList.add(new Go());\n\n\t\t// Brown properties\n\t\tProperty mediterranean = new Property(\"Mediterranean\");\n\t\tProperty balticAve = new Property(\"Baltic Avenue\");\n\n\t\t// Light blue properties\n\t\tProperty orientalAve = new Property(\"Oriental Avenue\");\n\t\tProperty vermontAve = new Property(\"Vermont Avenue\");\n\t\tProperty connecticutAve = new Property(\"Connecticut Avenue\");\n\n\t\t// Magenta properties\n\t\tProperty stCharles = new Property(\"St. Charles Place\");\n\t\tProperty statesAve = new Property(\"States Avenue\");\n\t\tProperty virginiaAve = new Property(\"Virginia Avenue\");\n\n\t\t// Orange properties\n\t\tProperty stJames = new Property(\"St. James Place\");\n\t\tProperty tennesseeAve = new Property(\"Tennessee Avenue\");\n\t\tProperty newYorkAve = new Property(\"New York Avenue\");\n\n\t\t// Red properties\n\t\tProperty kentuckyAve = new Property(\"Kentucky Avenue\");\n\t\tProperty indianaAve = new Property(\"Indiana Avenue\");\n\t\tProperty illinoisAve = new Property(\"Illinois Avenue\");\n\n\t\t// Yellow Properties\n\t\tProperty atlanticAve = new Property(\"Atlantic Avenue\");\n\t\tProperty ventnorAve = new Property(\"Ventnor Avenue\");\n\t\tProperty marvinGard = new Property(\"Marvin Gardins\");\n\n\t\t// Green Properties\n\t\tProperty pacificAve = new Property(\"Pacific Avenue\");\n\t\tProperty northCar = new Property(\"North Carolina Avenue\");\n\t\tProperty pennsylvannia = new Property(\"Pennsylvania Avenue\");\n\n\t\t// Dark blue properties\n\t\tProperty parkPlace = new Property(\"Park Place\");\n\t\tProperty boardWalk = new Property(\"Boardwalk\");\n\n\t\t// Tax tiles\n\t\tTaxTile incomeTax = new TaxTile(\"Income Tax\", 200);\n\t\tTaxTile luxuryTax = new TaxTile(\"Luxury Tax\", 100);\n\n\t\t// Utilities\n\t\tUtility electric = new Utility(\"Electric Company\");\n\t\tUtility water = new Utility(\"Water Works\");\n\n\t\t// Railroads\n\t\tRailroad reading = new Railroad(\"Reading\");\n\t\tRailroad pennRail = new Railroad(\"Pennsylvania\");\n\t\tRailroad bno = new Railroad(\"B & O\");\n\t\tRailroad shortLine = new Railroad(\"Short Line\");\n\n\t\t// Chance and community chest\n\t\tChance chance = new Chance();\n\t\tCommunity chest = new Community();\n\n\t\t// Adds the properties by color in accordance with their position on the board\n\t\t// adds color + placement of piece to a list of their respective colors\n\t\tbrown.add(1);\n\t\tbrown.add(3);\n\t\trailroads.add(5);\n\t\tlightBlue.add(6);\n\t\tlightBlue.add(8);\n\t\tlightBlue.add(9);\n\t\tmagenta.add(11);\n\t\tutilities.add(12);\n\t\tmagenta.add(13);\n\t\tmagenta.add(14);\n\t\trailroads.add(15);\n\t\torange.add(16);\n\t\torange.add(18);\n\t\torange.add(19);\n\t\tred.add(21);\n\t\tred.add(23);\n\t\tred.add(24);\n\t\trailroads.add(25);\n\t\tyellow.add(26);\n\t\tyellow.add(27);\n\t\tutilities.add(28);\n\t\tyellow.add(29);\n\t\tgreen.add(31);\n\t\tgreen.add(32);\n\t\tgreen.add(34);\n\t\trailroads.add(35);\n\t\tdarkBlue.add(37);\n\t\tdarkBlue.add(39);\n\n\t\t// tileList is the list of tiles of the board where each tile is representative of a place on the board\n\t\t// adds each tile is chronological order beginning of the board \"go\"\n\t\t//this list includes: properties, taxes, railroads, chance, community chest\n\t\t\n\t\ttileList.add(new Go());\n\n\t\ttileList.add(mediterranean);\n\t\ttileList.add(chest);\n\t\ttileList.add(balticAve);\n\t\ttileList.add(incomeTax);\n\t\ttileList.add(reading);\n\t\ttileList.add(orientalAve);\n\t\ttileList.add(chance);\t\n\t\ttileList.add(vermontAve);\n\t\ttileList.add(connecticutAve);\n\n\t\ttileList.add(new Jail());\n\t\t\t\n\t\ttileList.add(stCharles);\n\t\ttileList.add(electric);\t\t\t\n\t\ttileList.add(statesAve);\t\t\t\n\t\ttileList.add(virginiaAve);\n\t\ttileList.add(pennRail);\n\t\ttileList.add(stJames);\t\n\t\ttileList.add(chest);\n\t\ttileList.add(tennesseeAve);\t\t\t\n\t\ttileList.add(newYorkAve);\n\n\t\ttileList.add(new FreeParking());\n\t\t\t\n\t\ttileList.add(kentuckyAve);\t\t\n\t\ttileList.add(chance);\t\n\t\ttileList.add(indianaAve);\t\t\t\n\t\ttileList.add(illinoisAve);\n\t\ttileList.add(bno);\n\t\ttileList.add(atlanticAve);\t\t\t\n\t\ttileList.add(ventnorAve);\n\t\ttileList.add(water);\n\t\ttileList.add(marvinGard);\n\n\t\ttileList.add(new GoToJail());\n\t\t\t\t\t\n\t\ttileList.add(pacificAve);\t\t\t\n\t\ttileList.add(northCar);\n\t\ttileList.add(chest);\t\t\t\n\t\ttileList.add(pennsylvannia);\n\t\ttileList.add(shortLine);\n\t\ttileList.add(chance);\n\t\ttileList.add(parkPlace);\n\t\ttileList.add(luxuryTax);\n\t\ttileList.add(boardWalk);\n\t}",
"public MapTile(final Sprite sprite) {\n if (sprite == null) {\n this.sprite = Sprite.UNKNOWN;\n }\n\n this.sprite = sprite;\n }",
"public Tile getTile() {\n return tile;\n }",
"public Tile getTile() {\n return tile;\n }",
"private void addSaveTile(int x, int y) {\n\t\ttry {\n\t\t\tthis.solver.addClause(new VecInt(new int[]{-tileToIntMapperB(x, y)}));\n\t\t\tthis.solver.addClause(new VecInt(new int[]{-tileToIntMapperS(x, y)}));\n\t\t\tthis.kb.add(new int[]{-tileToIntMapperB(x, y)});\n\t\t\tthis.kb.add(new int[]{-tileToIntMapperS(x, y)});\n\t\t} catch (ContradictionException e) {\n\t\t\tLog.error(\"Initialization of the KB failed\");\n\t\t}\n\t}",
"public Tile(int number) {\n this.number = number;\n }",
"@Override\r\n\tpublic Trainee addTrainee(Trainee t) {\n\t\treturn dao.addTrainee(t);\r\n\t}",
"@Override\n public synchronized void addTileObserver(final TileObserver observer) {\n observers = addTileObserver(observers, observer);\n }",
"public Tile getTile() {\n return _tile;\n }",
"public <T extends BlockEntity> void registerTile(Class<T> clazz, ICapabilityConstructor<?, T, T> constructor) {\n checkNotBaked();\n List<ICapabilityConstructor<?, ? extends BlockEntity, ? extends BlockEntity>> constructors = capabilityConstructorsTile.get(clazz);\n if (constructors == null) {\n constructors = Lists.newArrayList();\n capabilityConstructorsTile.put(clazz, constructors);\n }\n constructors.add(constructor);\n\n if (!registeredTileEventListener) {\n registeredTileEventListener = true;\n MinecraftForge.EVENT_BUS.register(new TileEventListener());\n }\n }",
"public TilePanel(CoordinatesTile coordTile) {\r\n\t\tthis(getPath(coordTile));\r\n\t}",
"public Tile getTile() {\n\t\treturn tile;\n\t}",
"public void removeTile(Tile tile) {\r\n frame.remove(tile);\r\n }",
"public TiledWraparound(Spatial tile)\r\n {\r\n super(tile.getTopRight());\r\n final int PAD = 1;\r\n int tiles = PAD*2+1;\r\n this.tile = tile;\r\n float BLx = -tr.getX(), BLy = -tr.getY();\r\n offsets = new Location[tiles*tiles];\r\n for(int i=0; i<tiles; i++)\r\n {\r\n for(int j=0; j<tiles; j++)\r\n {\r\n offsets[i*tiles+j] = new Location.Location2D(BLx+tr.getX()*i, BLy+tr.getY()*j);\r\n }\r\n }\r\n }",
"@Test\n public void testSetTile()\n {\n try\n {\n Square s = new Square();\n\n s.setTile(Tile.E); // Add a tile\n\n assertEquals(Tile.E, s.getTile()); // Check the tile is now on the square\n assertTrue(s.isOccupied()); // Check the status is now true\n }\n catch(Exception ex)\n {\n fail(\"No exception should be thrown when setting a Tile onto the square.\");\n }\n }",
"public MapTile() {}",
"public void setTileMap(Tile[][] tileMap) {\r\n\t\tthis.tileMap = tileMap;\r\n\t}",
"void setPosition(Tile t);",
"private void drawTile(int i, int j, Tile tile) {\n\t\tRectangle rect = new Rectangle(175*i+50,j*175+25,175, 175);\r\n\t\ttilesDrawn.add(rect);\r\n\t}",
"public boolean addActor(Actor actor) {\n\t\tCoordinate pos = actor.getPosition();\n\t\tTile tile = getTileAt(pos.x, pos.y);\n\t\tif (tile.getActor() != null)\n\t\t\treturn false;\n\n\t\tactors.add(actor);\n\t\ttile.setActor(actor);\n\t\treturn true;\n\t}",
"public void addTeam(Team team){\n\t\tthis.teamList.add(team);\n\t}",
"public Triplet add(Triplet t) throws DAOException;",
"private void addWater() {\n for (int i = 0; i < MAP_LENGTH; i++) {\n for (int j = 0; j < MAP_LENGTH; j++) {\n if (tileMap[i][j] == null) {\n tileMap[i][j] = new Space(new Water(i, j));\n }\n }\n }\n }",
"public void writeAdditionalInfo(TileEntity tile, NBTTagCompound tag) {\n \t\n }",
"public void setTiles(Tile[][] tiles) {\n this.tiles = tiles;\n }",
"public void add(MiningTask mt) {\n miningTasks.add(mt);\n }",
"public boolean hasTile(Tile a_tile){\n for(int i = 0; i < playerHand.size(); i++){\n if(playerHand.get(i).getLeft() == a_tile.getLeft() && playerHand.get(i).getRight() == a_tile.getRight()){\n return true;\n }\n }\n return false;\n }",
"public void add(HayStack stack){\n if(canMoveTo(stack.getPosition())){\n mapElement.put(stack.getPosition(), stack);\n }\n else{\n throw new IllegalArgumentException(\"UnboundedMap.add - This field is occupied\");\n }\n }",
"public Settlement(Game game, Player owner, String name, Tile tile) {\n super(game);\n this.owner = owner;\n this.name = name;\n this.tile = tile;\n \n setType(owner.getNationType().getSettlementType(false));\n }",
"public void add(int a, int b, int x, int y)\n\t{\n\t\tfor (int r = a; r <= x; r++)\n\t\t\tfor (int c = b; c <= y; c++)\n\t\t\t\ttilesBool[r][c] = true;\n\t}",
"public void addAgent(String layer, Agent a)\n/* 170: */ {\n/* 171:240 */ this.mapPanel.addAgent(layer, a);\n/* 172: */ }",
"@Test\n public void testGetTile()\n {\n try\n {\n Square s = new Square();\n\n assertNull(s.getTile()); // Should return null as no tile placed yet.\n\n s.setTile(Tile.E); // Add a tile\n\n assertEquals(Tile.E, s.getTile()); // Check the tile is now on the square\n }\n catch(Exception ex)\n {\n fail(\"No exception should be thrown when getting a Tile from the square.\");\n }\n }",
"public Tile getNextTile(Unit u);",
"public void add() {\n\t\tcart.add(item.createCopy());\n\t}",
"protected void drawTile(Canvas canvas, PaintConfig pcfg, int xt, int yt, int zoom, int layer) {\n\t\t//Log.d(TAG, \"Draw tile: \"+xt+\",\"+yt+\" zoom=\"+zoom);\n\t\tString tid = getTileId(xt, yt, zoom);\n\t\tOsmTile t = mTiles.get(tid);\n\t\tif (t == null) {\n\t\t\tt = createTile(xt, yt, zoom);\n\t\t\tmTiles.put(tid, t);\n\t\t\t//Log.d(TAG, \"New tile, TID=\"+tid+\" LruCache size=\"+mTiles.size());\n\t\t\thandleMissingTile(t, layer);\n\t\t\tif (layer==1)\n\t\t\t\tt.drawX(canvas, pcfg);\n\t\t} else {\n\t\t\tif (layer==0) {\n\t\t\t\tt.draw(canvas, pcfg);\n\t\t\t}\n\t\t\tif (layer==1 && !t.canDraw(canvas, pcfg)) {\n\t\t\t\tt.drawX(canvas, pcfg);\n\t\t\t}\n\t\t}\n\t}",
"public void removeTile(){\n\t\toccupied = false;\n\t\tcurrentTile = null;\n\t}",
"public void addTrip(Trip trip) {\n\n\t\tsessionFactory.getCurrentSession().save(trip);\n\n\t}",
"@SubscribeEvent\n public static void registerTileEntity(final RegistryEvent.Register<TileEntityType<?>> event){\n walletBlockTileEntityType = TileEntityType.Builder.create(WalletBlockTileEntity::new, walletBlock).build(null);\n walletBlockTileEntityType.setRegistryName(\"bitcoinmod:wallet_block_tile_entity\");\n event.getRegistry().register(walletBlockTileEntityType);\n }",
"public Tile(Color color, Point p, Board b)\r\n\t{\r\n\t\ttiles.add(this);\r\n\t\tthis.location = p;\r\n\t\tthis.color = color;\r\n\t\tthis.board = b;\r\n\t}",
"public void draw(TETile te) {\n world[position.x][position.y] = te;\n }",
"public boolean addPieceToBoardTile(Piece piece) {\n\n\t\tif(piece == null) return false; \n\t\tLocation pieceLoc = piece.getLocation();\n\n\t\tTile tile=null;\n\n\t\ttry {\n\t\t\ttile = getTileInLocation(pieceLoc);\n\t\t\ttile.setPiece(piece);\n\t\t\tthis.replaceTileInSameTileLocation(tile);\n\t\t\treturn true;\n\t\t} catch (LocationException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\n\t}",
"public void addCard(Card card){\n\t\tthis.pile.add(0, card);\n\t}",
"public Tile createTile(int i, int x, int y) {\n\t\tif (Constants.INTERACTIVE_TILES.contains(\" \" + i + \" \")) {\n\t\t\treturn new InteractiveTile(i, x, y);\n\t\t} else if (Constants.ITEM_IDS.contains(\" \" + i + \" \")\n\t\t\t\t|| Constants.IOBJECTS_IDS.contains(\" \" + i + \" \")\n\t\t\t\t|| Constants.CREATURE_IDS.contains(\" \" + i + \" \")) {\n\t\t\treturn new Tile(0, x, y);\n\t\t} else {\n\n\t\t\treturn new Tile(i, x, y);\n\t\t}\n\t}",
"public int tileType(){\n\t\treturn this.type;\n\t}",
"public synchronized void promote(Tile tile) {\r\n if(tileQueue.contains(tile)) {\r\n try {\r\n tileQueue.remove(tile);\r\n tile.setPriority(Tile.Priority.High);\r\n tileQueue.put(tile);\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n }",
"public Tile getTile(){\n\t\treturn currentTile;\n\t}",
"public void setTileX(int x) {\n\t\ttileX = x;\n\t}",
"public MetroTile(MetroTileView metroTileView) {\n this.metroTileView = metroTileView;\n getRows();\n getTiles();\n }",
"public void addTransaction(Transactions t){\n listOfTransactions.put(LocalDate.now(), t);\n }",
"@Override\n\tpublic AbstractTileOLD createTile(Frame frame, Point pos, Point sourcePos) {\n\t\t// TileOLD t = new TileOLD(frame, pos.x, pos.y, new ZoneSheet(frame,\n\t\t// ZoneSheet.TILE_SHEET), sourcePos.x, sourcePos.y);\n\t\t// t.setData((TileDataOLD) data[sourcePos.x][sourcePos.y]);\n\t\treturn null;\n\t}",
"public void setTiles(String tileString) {\r\n\t\t_tiles.clear();\r\n\t\tfor(int i = 0; i < tileString.length(); i++) {\r\n\t\t\tTile tile = new Tile(tileString.charAt(i));\r\n\t\t\t_tiles.add(tile);\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic ResultMessage addTeam(TeamPO oneTeam) {\n\t\treturn teams.addTeam(oneTeam) ;\r\n\t}",
"void addDate(long t) {\n\tif (act != null) {\n\t long date = act.getDate() + t;\n\t act.setLocation(act.getMap(), act.getX(), act.getY(), date);\n\t}\n }",
"public boolean addTeam(T team){\n if (teams.contains(team)){\n System.out.println(\"Cant add team is allready in the league list.\");\n return false;\n }else{\n teams.add(team);\n return true;\n }\n }"
] | [
"0.80244946",
"0.73001546",
"0.7175381",
"0.6980122",
"0.67792976",
"0.6697644",
"0.6648346",
"0.6604731",
"0.66004825",
"0.6541681",
"0.6312504",
"0.61593443",
"0.61320126",
"0.6035099",
"0.6004167",
"0.59652907",
"0.5951756",
"0.5879208",
"0.56951153",
"0.5660035",
"0.5583715",
"0.556907",
"0.5541849",
"0.5511403",
"0.54972297",
"0.54123485",
"0.5400097",
"0.5382393",
"0.5372284",
"0.53688943",
"0.53520834",
"0.53463584",
"0.5334566",
"0.5282058",
"0.5272693",
"0.5254925",
"0.52450025",
"0.52308583",
"0.52097887",
"0.5196657",
"0.5191078",
"0.51869464",
"0.5182903",
"0.5173266",
"0.5163082",
"0.51519775",
"0.5134671",
"0.51184064",
"0.5115079",
"0.5115079",
"0.51071507",
"0.5104307",
"0.50946414",
"0.5092185",
"0.50844824",
"0.5083506",
"0.5066129",
"0.50609696",
"0.5055314",
"0.50530297",
"0.5006958",
"0.50058675",
"0.4992102",
"0.4985241",
"0.49833864",
"0.4978716",
"0.49683505",
"0.49404365",
"0.4930392",
"0.4923444",
"0.49188185",
"0.4916162",
"0.49068698",
"0.49018756",
"0.4900627",
"0.48887333",
"0.48835328",
"0.4879929",
"0.4879543",
"0.48752022",
"0.4872405",
"0.487169",
"0.48645905",
"0.48523048",
"0.48424917",
"0.48326024",
"0.48291588",
"0.48206377",
"0.48163846",
"0.48144168",
"0.4810537",
"0.4805912",
"0.47946027",
"0.47903278",
"0.47901595",
"0.4785672",
"0.4777922",
"0.4777789",
"0.4777197",
"0.47664607"
] | 0.777819 | 1 |
Removes a tile from this settlement. | public void removeTile(Tile tile) {
ownedTiles.remove(tile);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeTile(Tile tile) {\r\n frame.remove(tile);\r\n }",
"public void removeTile(){\n\t\toccupied = false;\n\t\tcurrentTile = null;\n\t}",
"public Tile removeTile() {\n if (tileBag.size() == 0) {\n return null;\n }\n return tileBag.remove(0);\n }",
"public void removeEditedTile(GroundTile tile) {\n this.editedTiles.remove(tile);\n }",
"public void removeTile(Tile a_tile){\n for(int i = 0; i < playerHand.size(); i++){\n if(playerHand.get(i).getRight() == a_tile.getRight() && playerHand.get(i).getLeft() == a_tile.getLeft()){\n playerHand.remove(i);\n break;\n }\n }\n }",
"public boolean removeBoardTile(Tile t) {\n\t\tSet<Entry<Point, Tile>> entrySet = boardTiles.entrySet();\n\t\tfor (Iterator<Entry<Point, Tile>> iterator = entrySet.iterator(); iterator.hasNext();) {\n\t\t\tEntry<Point, Tile> entry = iterator.next();\n\t\t\tif (entry.getValue() != null) {\n\t\t\t\tif (entry.getValue().equals(t)) {\n\t\t\t\t\tentry.setValue(null);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n }",
"public void removeTile(int i)\n {\n int c = 0;\n for(Tile t: tiles)\n {\n if(t != null)\n c += 1;\n }\n c -=1;\n \n \n if(!(c < 2))\n {\n if(i == c)\n {\n tiles[i] = null;\n previews[i] = null;\n previewGradients[i] = null;\n previewHover[i] = false;\n activeTile = i-1;\n createPreviewGradients();\n return;\n }\n else\n {\n int last = 0;\n for(int j = i; j < c; j++)\n {\n tiles[j] = tiles[j+1];\n if(tiles[j] != null)\n tiles[j].setTileLevel(j);\n previews[j] = previews[j+1];\n previewGradients[j] = previewGradients[j+1];\n previewHover[j] = previewHover[j+1];\n last = j;\n }\n last += 1;\n tiles[last] = null;\n previews[last] = null;\n previewGradients[last] = null;\n previewHover[last] = false;\n createPreviewGradients();\n \n return;\n }\n }\n \n }",
"public void removeTiles(ArrayList<Tile> tiles) {\r\n for (Tile tile : tiles) {\r\n frame.remove(tile);\r\n }\r\n }",
"public Tile getTile()\r\n\t{\r\n\t\tif(this.hasTiles())\r\n\t\t\treturn _tiles.remove(0);\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}",
"@Override\n public synchronized void removeTileObserver(final TileObserver observer) {\n observers = removeTileObserver(observers, observer);\n }",
"public void remove(Tuple t){\r\n\t\ttuples.remove(t);\r\n\t\tsize--;\r\n\t}",
"private void removeALakeTile(Game game) {\n\t\tLakeTile[][] board = game.getPlayArea().getLakeTilesOnBoard();\n\t\tArrayList<Position> positions = new ArrayList<Position>();\n\t\tfor (int y = 0; y < board.length; y++) {\n\t\t\tfor (int x = 0; x < board[y].length; x++) {\n\t\t\t\tLakeTile laketile = board[x][y];\n\t\t\t\tif (laketile != null) {\n\t\t\t\t\tint connect_laketile = 4;\n\t\t\t\t\tif (x + 1 < board.length && board[x + 1][y] == null)\n\t\t\t\t\t\tconnect_laketile -= 1;\n\t\t\t\t\tif (y + 1 < board.length && board[x][y + 1] == null)\n\t\t\t\t\t\tconnect_laketile -= 1;\n\t\t\t\t\tif (x - 1 >= 0 && board[x - 1][y] == null)\n\t\t\t\t\t\tconnect_laketile -= 1;\n\t\t\t\t\tif (y - 1 >= 0 && board[x][y - 1] == null)\n\t\t\t\t\t\tconnect_laketile -= 1;\n\t\t\t\t\tif (connect_laketile == 1) {\n\t\t\t\t\t\tPosition p = new Position(x, y);\n\t\t\t\t\t\tpositions.add(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (countLakeTileOnBoard(board) != 0 && positions.size() == 0) {\n\t\t\tpositions = getAllLakeTilePositionOnBoard(board);\n\t\t}\n\t\tCollections.shuffle(positions);\n\t\tPosition pos = positions.get(0);\n\t\tint x = pos.getX();\n\t\tint y = pos.getY();\n\t\tremoved_laketile.add(board[x][y]);\n\t\tremoved_position.add(pos);\n\t\tboard[x][y] = null;\n\t}",
"public final void removeUnit(final Unit unit) {\n\t for (Vector<Tile> row : mLayout) {\n\t for (Tile tile : row) {\n\t if (tile.hasOccupant() && (tile.getOccupant() == unit)) {\n\t tile.setOccupant(null);\n\t }\n\t }\n\t }\n\t}",
"void removeTiles(Map<Location, SurfaceEntity> map, int x, int y, int width, int height) {\r\n\t\tfor (int i = x; i < x + width; i++) {\r\n\t\t\tfor (int j = y; j > y - height; j--) {\r\n\t\t\t\tmap.remove(Location.of(x, y));\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"protected void discard(int tile, int pos) {\n\t\tif(active){\n\t\t\tif(tileadded) {\n\t\t\t\ttileadded = false;\n\t\t\t\tunhighlight(); }\n\t\t\tgui.setHumanDiscard(tile);\n\t\t\tgui.setHumanDiscardPosition(pos);\n\t\t\tactive=false; }\n\t}",
"public static void removeTower(Tower t)\n\t{\n\t\ttowers.remove(t);\n\t}",
"protected void finishTile(TileInfo inTile)\n {\n final TileInfo tile;\n synchronized (tilesByFetchRequest) {\n tile = tilesByFetchRequest.get(inTile.request);\n if (tile != null) {\n tilesByFetchRequest.remove(tile.request);\n }\n }\n if (tile == null) {\n if (debugMode)\n Log.d(\"RemoteTileFetcher\",\"Dropping fetch: \" + inTile.fetchInfo.urlReq);\n return;\n }\n\n synchronized (loading) {\n loading.remove(tile);\n }\n synchronized (toLoad) {\n toLoad.remove(tile);\n }\n\n updateActiveStats();\n }",
"Tile getTile() {\n if (tiles.size() == 0) {\n return null;\n } else {\n int randomIndex = ThreadLocalRandom.current().nextInt(0, tiles.size());\n Tile result = tiles.get(randomIndex);\n tiles.remove(randomIndex);\n return result;\n }\n }",
"void remove(ThreadLocal<?> key) {\n cleanUp();\n\n for (int index = key.hash & mask;; index = next(index)) {\n Object reference = table[index];\n\n if (reference == key.reference) {\n // Success!\n table[index] = TOMBSTONE;\n table[index + 1] = null;\n tombstones++;\n size--;\n return;\n }\n\n if (reference == null) {\n // No entry found.\n return;\n }\n }\n }",
"public void removeTeam(Team t) {\r\n Iterator<Match> itr = this.resultsTree.iterator();\r\n while (itr.hasNext()) {\r\n //Match to be removed\r\n if (itr.next().containsTeam(t)) {\r\n itr.remove();\r\n }\r\n }\r\n \r\n //Decremente the number of teams left\r\n Team.nbTeam--;\r\n }",
"public RemoveTileChange() {}",
"public void removeTiles(Renderer r) {\n\n\t\t// Return if the room has not been rendered\n\t\tif (shadowMap == null) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Delete the shadow map\n\t\t// r.deleteMap(shadowMap);\n\n\t\t// Delete the tiles\n\t\tfor (int i = 0; i < tiles.length; i++) {\n\t\t\tfor (int j = 0; j < tiles[0].length; j++) {\n\n\t\t\t\tTile tile = tiles[i][j];\n\n\t\t\t\t// Delete model of the tile\n\t\t\t\tif (tile.getModel() != null) {\n\t\t\t\t\tr.deleteModel(tile.getModel().getName());\n\t\t\t\t}\n\n\t\t\t\t// If there are any items delete them too\n\t\t\t\tif (tile instanceof BasicFloor) {\n\n\t\t\t\t\tBasicFloor floor = (BasicFloor) tile;\n\n\t\t\t\t\tfor (Item item : floor.getItems())\n\t\t\t\t\t\tr.deleteModel(item.getModel().getName());\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void removeUnit(){\r\n tacUnit = null;\r\n }",
"public void remove() {\n int size = itinerary.size();\n if (size != 1) {\n \n // Removes last Flight in this Itinerary.\n Flight removedFlight = this.itinerary.remove(size - 1);\n \n // Gets the new last Flight in this Itinerary.\n Flight flight = this.itinerary.get(size - 2);\n \n // Updates all the relevant fields in this Itinerary.\n this.price -= removedFlight.getCost();\n this.arrivalDateTime = flight.getArrivalDateTime();\n this.destination = flight.getDestination();\n this.travelTime = arrivalDateTime.timeDiff(departDateTime);\n this.places.remove(size);\n }\n }",
"private void removeArea() {\n \t\tthis.set.remove( this.area );\n \t\tthis.finish();\n \t}",
"public void clearSubbedTiles() { subbedTiles.clear(); }",
"public void clearItem(final int x, final int y) {\r\n\t\tfor (int i = 2; i < LAYERS; i ++) {\r\n\t\t\tsetTile(x, y, i, Tile.getEmptyTile());\r\n\t\t}\r\n\t}",
"public void remove(T t) {\n Node<T> position = this.find(t);\n if (position == null) { return; }\n if (position.next != null) {\n position.next.prev = position.prev;\n }\n if (position.prev != null) {\n position.prev.next = position.next;\n } else {\n this.head = position.next;\n }\n }",
"public void delMissile(Missile missile)\r\n {\n \r\n \r\n boolean remove = missiles.remove(missile);\r\n try {\r\n missile.finalize();\r\n } catch (Throwable ex) {\r\n Logger.getLogger(Object_.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n //System.out.println(\"Remove: \" + remove);\r\n }",
"public void clearTiles() {\n \tfor (int x = 0; x < (mAbsoluteTileCount.getX()); x++) {\n for (int y = 0; y < (mAbsoluteTileCount.getY()); y++) {\n setTile(0, x, y);\n }\n }\n }",
"public void removeElement(DemoTask task) {\n\t\tdata.remove(task);\n\t}",
"public void removeLastEntry(){\r\n\t\tboards.remove(boards.size() -1 );\r\n\t}",
"@Override\n public RemoveWorkloadResult removeWorkload(RemoveWorkloadRequest request) {\n request = beforeClientExecution(request);\n return executeRemoveWorkload(request);\n }",
"public void clearTiles() {\r\n\r\n for (int i = 0; i < 16; i += 1) {\r\n tiles[i] = 0;\r\n }\r\n boardView.invalidate();\r\n placedShips = 0;\r\n }",
"public void removeActor(Actor act) { ActorSet.removeElement(act); }",
"public void remove(T t) throws NoSuchElementException{\n int bucket = hash(t);\n int index = Table.get(bucket).linearSearch(t);\n if (index == -1) {\n \tthrow new NoSuchElementException(\"remove(): \" \n \t\t\t+ \"element is not in the table\");\n } else {\n \tTable.get(bucket).advanceToIndex(index);\n \tTable.get(bucket).removeIterator();\n \tnumElements--;\n }\n }",
"private void removeEntry(CacheEntry entry) {\n\t\tmap.remove(entry.getKey());\n\t\tsize.decrementAndGet();\n\t\tindex.remove(entry.getItem());\n\t\tentry.delete();\n\t}",
"public void removeFromPlanet() {\n this.currentPlanet = null;\n }",
"public void setTile(Tile tile) {\n\t\tthis.tile = tile;\n\t}",
"public void dropNewTile() {\n ArrayList<Integer> emptyTilesX= new ArrayList<Integer>();\n ArrayList<Integer> emptyTilesY= new ArrayList<Integer>();\n\n for(int x= 0; x<4; x++) {\n for(int y= 0; y<4; y++) {\n if(board[x][y]==0) {\n emptyTilesX.add(x);\n emptyTilesY.add(y);\n }\n }\n }\n\n int randTile= rand.nextInt(emptyTilesX.size());\n int percent= rand.nextInt(20);\n int newTileNumber= 2;\n if(percent==0 || percent==1 || percent==2) {\n newTileNumber= 4;\n }\n \n int dropX= emptyTilesX.get(randTile);\n int dropY= emptyTilesY.get(randTile);\n board[dropX][dropY]= newTileNumber;\n }",
"public Card removeTopCard(){\n\t\treturn this.pile.remove(0);\n\t}",
"public void reset() {\n\t\ttilePath.clear();\n\t}",
"private boolean removePieceFromBoardTile(Piece piece) {\n\n\t\tif(piece == null) return false; \n\t\tLocation pieceLoc = piece.getLocation();\n\n\t\tTile tile=null;\n\t\ttry {\n\t\t\ttile = getTileInLocation(pieceLoc);\n\t\t\ttile.setPiece(null);\n\t\t\tthis.replaceTileInSameTileLocation(tile);\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}",
"public Item removeTopItem(int x, int y) {\n Item item = this.map_grid_[y][x].removeTopItem();\n items_list_.remove(item);\n return item;\n }",
"void setTile(Tile tile) {\n _tile = tile;\n }",
"public void removeTemplate(ITuple template) {\n\t\tthis.takeHolder.removeLease(template);\n\t\tthis.readHolder.removeLease(template);\n\t}",
"@Override\n\tpublic void removeEntity(T t) {\n\t\tgetSession().delete(t);\n\t}",
"exitLockedTile(int row, int col){\r\n this.row = row;\r\n this.col = col;\r\n }",
"public void remove() {\r\n\t\t\trequireModificationCountUnchanged();\r\n\r\n\t\t\tif (currentEntry == null) {\r\n\t\t\t\tthrow new IllegalStateException();\r\n\t\t\t}\r\n\r\n\t\t\tSimpleHashtable.this.remove(currentEntry.key);\r\n\t\t\titeratorModificationCount++;\r\n\t\t\tcurrentEntry = null;\r\n\t\t}",
"@Override\r\n\tpublic void perform() {\n\t\tview.removeMapMonster(toremove);\r\n\t}",
"public void removeFeature(Feature feature) {\n rows.removeElement(feature);\n }",
"public void remove(Station station)\n {\n world.removeActor(station.getId());\n\n for (int i = 0; i < stations.length; ++i)\n {\n if (station == stations[i])\n {\n stations[i] = null;\n break;\n }\n }\n }",
"public void deleteLastPathTile(){\n\t\tif(temp.isEmpty()){\n\t\t\tif(currentPos!=-1){\n\t\t\t\tcurrentPos=-1;\n\t\t\t\tsetEntryPoint(null);//start has been deleted\n\t\t\t\tgrid[currentPath.getRow()][currentPath.getCol()]= null;\n\t\t\t\tcurrentPath=null;\n\t\t\t}\n\t\t\treturn;//the list is empty\n\t\t}\n\t\telse {//\n\t\t\tif(getCompletePath()){\n\t\t\t\t\tsetCompletePath(false);\n\t\t\t\t\tsetExitPoint(null);\n\t\t\t\t\tremoveScenery();\n\t\t\t\t\t\n\t\t\t}//since the last node was removed\n\t\t\telse//if the path wasn't complete (should it be scenery?)\n\t\t\t\tgrid[currentPath.getRow()][currentPath.getCol()]= null;\n\t\t\t\tcurrentPath=null;\n\t\t\t\n\t\t\tPath removedPath=temp.removeLast();\n\t\t\tcurrentPos=removedPath.getPos();\n\t\t\tcurrentPath=new Path(currentPos);\n\t\t}\n\t}",
"void remove(Team team);",
"public Piece removePiece(Position position) {\n return positionToPieceMap.remove(position);\n }",
"public void remove() {\n btRemove().push();\n }",
"public void remove() {\n btRemove().push();\n }",
"public void erase()\n {\n this.top = null;\n }",
"public void remove(Card card) {\n if (!myTurn()) {\n return;\n }\n if (handPile.contains(card)) {\n //history.add(new CardAction(card, \"Remove: \" + card.getName()));\n handPile.remove(card);\n }\n }",
"public boolean remove(T anEntry);",
"public void removeItem(){\n\t\tthis.item = null;\n\t}",
"public void removeTomb(String player) {\r\n\t\ttombs.remove(player);\r\n\t}",
"public final void remove () {\r\n }",
"void removeTariff(int idTariff) throws ServiceException;",
"public void placeTile(Tile t){\n\t\t//System.out.println(t.toString() + \" was placed\");\n\t\toccupied = true;\n\t\tcurrentTile = t;\n\t}",
"public void remove(Template template) {\n\tfTemplates.remove(template);\n\tsort();\n }",
"public void removeTask(Task task) {\n tasks.remove(task);\n }",
"public void remove(T element);",
"public Card removeCard(){\n Card temp = pile[0]; //removes top card. putting placement card to avoid null pointer\n for(int i = 0; i < pilePlace; i++){ //shifts cards\n pile[i] = pile[i+1];\n }\n pilePlace--;\n return temp;\n\n }",
"@Override\r\n\tpublic void removeTempSeat(Seat seat) {\n\t\t\r\n\t}",
"public synchronized void promote(Tile tile) {\r\n if(tileQueue.contains(tile)) {\r\n try {\r\n tileQueue.remove(tile);\r\n tile.setPriority(Tile.Priority.High);\r\n tileQueue.put(tile);\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n }",
"public void removeActor(int index) { ActorSet.removeElementAt(index); }",
"public void clearPistonTileEntity()\n {\n if (this.lastProgress < 1.0F && this.worldObj != null)\n {\n this.lastProgress = this.progress = 1.0F;\n this.worldObj.removeTileEntity(this.pos);\n this.invalidate();\n\n if (this.worldObj.getBlockState(this.pos).getBlock() == Blocks.piston_extension)\n {\n this.worldObj.setBlockState(this.pos, this.pistonState, 3);\n this.worldObj.notifyBlockOfStateChange(this.pos, this.pistonState.getBlock());\n }\n }\n }",
"protected void removeLane()\n {\n if (lane == 1)\n {\n\n MyWorld.Lane1Monsters.remove(this);\n getWorld().removeObject(this);\n\n }\n\n else if (lane == 2)\n {\n MyWorld.Lane2Monsters.remove(this);\n getWorld().removeObject(this);\n\n }\n\n else if (lane == 3)\n {\n MyWorld.Lane3Monsters.remove(this);\n getWorld().removeObject(this);\n\n }\n\n else if (lane == 4)\n {\n MyWorld.Lane4Monsters.remove(this);\n getWorld().removeObject(this);\n\n }\n\n else if (lane == 5)\n {\n MyWorld.Lane5Monsters.remove(this);\n getWorld().removeObject(this);\n\n }\n MyWorld.monsterAdded();\n }",
"public void remove();",
"public void remove();",
"public void remove();",
"public void remove();",
"public void remove();",
"public void removePawn(Position position) {\n\t\tboardGrid[position.getRow()][position.getColumn()] = new Empty();\n\t}",
"public void removeRow(int row) {\r\n\t\tdata.remove(row);\r\n\t}",
"public Tile getTile() {\n\t\treturn tile;\n\t}",
"public void remove(AddressEntry entry) {\n addressEntryList.remove(entry);\n }",
"void retract() {\n assert movesMade() > 0;\n Move move = _moves.remove(_moves.size() - 1);\n Piece replaced = move.replacedPiece();\n int c0 = move.getCol0(), c1 = move.getCol1();\n int r0 = move.getRow0(), r1 = move.getRow1();\n Piece movedPiece = move.movedPiece();\n set(c1, r1, replaced);\n set(c0, r0, movedPiece);\n _turn = _turn.opposite();\n }",
"protected void removeEntry(CacheEntry entry) {\n if (entry == _first) {\n _first = entry.getNext();\n }\n if (_last == entry) {\n _last = entry.getPrevious();\n }\n CacheEntry previous = entry.getPrevious();\n CacheEntry next = entry.getNext();\n if (previous != null) {\n previous.setNext(next);\n }\n if (next != null) {\n next.setPrevious(previous);\n }\n entry.setPrevious(null);\n entry.setNext(null);\n }",
"void unsetRoadTerrain();",
"public void remove() {\n\t }",
"public void remove() {\n\t }",
"public void remove() {\n\t }",
"public T remove(Object entry) {\n return null;\n }",
"public void removeByequip_id(long equip_id);",
"public void onTileExit(Tile tile) {}",
"public void remove() {\n\t itr.remove();\n\t size--;\n\t nextCount--;\n\t }",
"public void remove() {\n\t itr.remove();\n\t size--;\n\t nextCount--;\n\t }",
"public void removeAgent(String layer, Agent a)\n/* 175: */ {\n/* 176:247 */ this.mapPanel.removeAgent(layer, a);\n/* 177: */ }",
"public Location remove() {\n\t\t//empty set\n\t\tif (head == null){\n\t\t\treturn null;\n\t\t}\n\n\t\t//removes and returns the SquarePosition object from the top of the set\n\t\tLocation removedLocation = head.getElement();\n\t\thead = head.next;\n\t\tsize --;\n\t\treturn removedLocation;\n\t}",
"public void deleteteacher(Teacher Te){\n this.tlist.remove(Te);\n }",
"public void removeEntry(final String url){\n if(url==null){\n return;\n }\n\n synchronized (mBitmapCache) {\n mBitmapCache.remove(url);\n }\n }",
"public T remove (T element);",
"public void removeTurtle(AbstractTurtle t)\n {\n // Remove the turtle from the vivarium and stop observing it\n this.turtles.remove(t);\n t.removeObserver(this);\n\n // Then, fire paint event\n this.repaint();\n }"
] | [
"0.8224019",
"0.8126429",
"0.7513353",
"0.7216741",
"0.6970994",
"0.64534014",
"0.60431236",
"0.60008353",
"0.59549576",
"0.59456104",
"0.5909282",
"0.5851598",
"0.57922393",
"0.56859386",
"0.5681262",
"0.5669108",
"0.56543344",
"0.5651928",
"0.5527136",
"0.54800093",
"0.54266316",
"0.540388",
"0.5388397",
"0.5367089",
"0.53501815",
"0.52969813",
"0.5274284",
"0.5266399",
"0.5262188",
"0.5258153",
"0.5257345",
"0.5239764",
"0.52199125",
"0.51795006",
"0.5178636",
"0.5170802",
"0.5169188",
"0.51582843",
"0.515465",
"0.5151985",
"0.5150158",
"0.5143386",
"0.5133897",
"0.51315063",
"0.51255405",
"0.51158583",
"0.5115289",
"0.51026386",
"0.5095907",
"0.50865346",
"0.5082007",
"0.5081132",
"0.50803995",
"0.5069034",
"0.50627494",
"0.50619185",
"0.50619185",
"0.50564057",
"0.50425756",
"0.5037428",
"0.50346047",
"0.5034133",
"0.50320506",
"0.502622",
"0.50254583",
"0.50207686",
"0.5019475",
"0.5012012",
"0.50118864",
"0.50075626",
"0.4992526",
"0.4987752",
"0.4965919",
"0.49542698",
"0.4950335",
"0.4950335",
"0.4950335",
"0.4950335",
"0.4950335",
"0.49392322",
"0.49378815",
"0.49327144",
"0.49303797",
"0.49294654",
"0.49259445",
"0.4924097",
"0.49219385",
"0.49219385",
"0.49219385",
"0.49204358",
"0.49182513",
"0.4916794",
"0.49159825",
"0.49159825",
"0.4911026",
"0.4909874",
"0.49092418",
"0.4909194",
"0.49049485",
"0.49038556"
] | 0.8141086 | 1 |
Dispose of this settlement. | public List<FreeColGameObject> disposeList() {
List<FreeColGameObject> objects = new ArrayList<FreeColGameObject>();
if (owner != null
&& getTile() != null
&& getTile().getSettlement() != null) {
// Defensive tests to handle transition from calling dispose()
// on both sides to when it is only called on server-side.
// Get off the map
Tile settlementTile = getTile();
List<Tile> lostTiles = getOwnedTiles();
for (Tile tile : lostTiles) {
tile.changeOwnership(null, null);
}
settlementTile.setSettlement(null);
// The owner forgets about the settlement.
Player oldOwner = owner;
oldOwner.removeSettlement(this);
oldOwner.invalidateCanSeeTiles();
// It is not safe to setOwner(null). When a settlement is
// destroyed there is a race between this code and some
// display routines that still need to know who owned the
// dead settlement.
}
objects.addAll(super.disposeList());
return objects;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void close() {\n HashMap<String, Transaction> map = instance.getTransactions();\n for (Transaction transaction : map.values()) {\n transaction.destroy();\n }\n map.clear();\n instance.transactions.remove();\n }",
"public void dispose() {\n story = null;\n backlog = null;\n parent = null;\n }",
"public void dispose() {\r\n _isdisposed=true;\r\n try {\r\n _tables.dispose(); _tables=null;\r\n finalize();\r\n DataSet _current=this;\r\n _current=null; System.gc();\r\n }\r\n catch (Throwable ex) {\r\n throw new RuntimeException(ex.getMessage());\r\n }\r\n }",
"public void dispose() {\n abandonTileImprovementPlan();\n super.dispose();\n }",
"public void dispose() {\r\n\t\tclose();\r\n\t}",
"public void dispose() {\n\t\t\t\r\n\t\t}",
"public void dispose()\n {\n while( m_count > 0 )\n {\n int i = m_count - 1;\n try\n {\n m_factory.decommission( m_pool[ i ] );\n }\n catch( Exception e )\n {\n // To be backwards compatible, we have to support the logger having not been set.\n if( ( getLogger() != null ) && ( getLogger().isDebugEnabled() ) )\n {\n getLogger().debug( \"Error decommissioning object\", e );\n }\n }\n m_pool[ i ] = null;\n m_count--;\n }\n }",
"public void dispose() {\n\t\t}",
"public void dispose() {\n\t\t}",
"public void dispose() {\r\n\t\t// Nothing to dispose\r\n\t}",
"public void dispose() {\n\t\tBusinessObject owner = getOwner();\n\t\tif (owner != null) {\n\t\t\t// remove potential owner's pointer to this\n\t\t\towner.removeChild(this);\n\t\t\t// remove pointer to owner\n\t\t\t_ownerProperty().setValue(null);\n\t\t}\n\t\t\n\t\t// free all children {\n\t\tif (children != null) {\n\t\t\tBusinessObject[] array = new BusinessObject[children.size()];\n\t\t\tchildren.values().toArray(array);\n\t\t\tfor (BusinessObject bo : array) {\n\t\t\t\tbo.dispose();\n\t\t\t}\n\t\n\t\t\tchildren.clear();\n\t\t\tchildren = null;\t// not needed anymore\n\t\t}\n\t\t\n\t\t// remove all link records\n\t\tif (childLinks != null) {\n\t\t\tchildLinks.clear();\n\t\t\tchildLinks = null;\t// not needed anymore\n\t\t}\n\t\tif (childLinkedAttributes != null) {\n\t\t\tchildLinkedAttributes.clear();\n\t\t\tchildLinkedAttributes = null;\n\t\t}\n\t\t\n\t\t// stop anyone from listening to this object\n\t\tlisteners.clear();\n\t}",
"public void dispose() {\n processDispose(false);\n }",
"public void dispose() {\n\t\t// Nothing to dispose\n\t}",
"public void dispose() {\n\t\t\r\n\t}",
"public void dispose() {\n\t\t\r\n\t}",
"public void dispose() {\n\t\t\r\n\t}",
"public void release() {\n if (this.compositeDisposable != null) {\n this.compositeDisposable.clear();\n }\n }",
"@SuppressWarnings(\"unused\")\n\t\t\tprivate void dispose() {\n\t\t\t\t\n\t\t\t}",
"private void exit() {\n if (otherCost != null) {\n otherCost = null;\n }\n this.dispose();\n }",
"public void toss() {\n\t\t\tif (pool != null) {\n\t\t\t\tpool.creator.destroy(content);\n\t\t\t}\n\t\t\t// Don't allow finalize to put it back in.\n\t\t\tpool = null;\n\t\t}",
"protected void finalize() {\n this.asClient.close();\n this.asClient = null;\n }",
"public void close() {\n dispose();\n }",
"@Override\n\tpublic void dispose() {\n\t\tdestroy();\n\t}",
"public void dispose ()\n {\n if (_tree != null) {\n _tree.dispose();\n _tree = null;\n }\n }",
"public void dispose() {\n equipment.dispose();\n inventory.dispose();\n }",
"@Override\n\t\tpublic void dispose() {\n\t\t \n\t\t}",
"@Override\n\t\t\tpublic void dispose() {\n\t\t\t}",
"public void closeTransaction(){\n\t\ttr.rollback();\n\t\ttr = null;\n\t}",
"public void dispose() {\n\t}",
"public void dispose() {\n\t}",
"public void dispose() {\n\t}",
"public void dispose() {\n\t}",
"public void dispose()\n\t{\n\t\tthis.accessor.dispose();\n\t\tthis.env.close();\n\t}",
"@Override\n\tpublic void dispose()\n\t{\n\t\tsuper.dispose();\n\t\tm_pokemon = null;\n\t\tm_boxes = null;\n\t\tm_friends = null;\n\t\tm_bag = null;\n\t\tm_currentShop = null;\n\t\tm_battleField = null;\n\t}",
"public void dispose() {\n\t\t\n\t}",
"public void free() {\n byteBase.free();\n byteBase = null;\n }",
"@Override\n public void dispose() {\n \n }",
"public void dispose() {\n\t\t\r\n\t\tthis.actionSet = null;\r\n\t\tsuper.dispose();\r\n\r\n\t}",
"public void dispose() {\n\n\t}",
"public void dispose() {\n\n\t}",
"public void dispose() {\n\n\t}",
"public void release()\n \t{\n \t\tif( iterator == null )\n \t\t{\n \t\t\tindex = new SpatialIndex();\n \t\t\tedgeAllocator = 0;\n \t\t\tmergeOps = null;\n \t\t\t\n \t\t\tSystem.gc();\n \t\t}\n \t}",
"public void release() {\r\n pageEL = null;\r\n params = null;\r\n super.release();\r\n }",
"public void release()\r\n\t{\r\n\t\tsuper.release();\r\n\t\t_href = null;\r\n\t\t_box = null;\r\n\t\t_bracket = null;\r\n\t\t_bracketFont = null;\r\n\r\n\t}",
"public void finalize() throws Throwable {\n close();\n }",
"@Override\n\tpublic void release() {\n\t\tsuper.release();\n\t\t\n\t\tthis.privilegeCode = null;\n\t\tthis.controlId = null;\n\t\tthis.controlType = null;\n\t\tthis.desc = null;\n\t}",
"public void close() {\n if (mLeakedException != null) {\n getConnectionManager().shutdown();\n mLeakedException = null;\n }\n }",
"public void destroy() {\n this.bfc.cleanUp();\n }",
"@Override\n\t\tpublic void close() {\n\t\t\ttplItr = null;\n\t\t}",
"public void dispose() {\n\t\tsuper.dispose();\n\t}",
"@Destroy\r\n\tpublic void destroy() {\r\n\t\t// Component disposal code.\r\n\t\t// All properties are disposed.\r\n\t\temailConfiguration=null;\r\n\t}",
"public void dispose( );",
"protected void close() {\n\t\tthis.connection.close();\n\t\tthis.connection = null;\n\t}",
"public void finalize() {\n acquire.release();\n }",
"public void finalize() {\n acquire.release();\n }",
"public void dispose()\n\t{\n\t}",
"public void dispose()\n {\n getLogger().debug( \"dispose\" );\n }",
"public void dispose() {\r\n try {\r\n rowSet.close();\r\n } catch (SQLException sqlex) {\r\n sqlex.printStackTrace();\r\n }\r\n }",
"public void dispose() {\r\n // Remove from existing Customer render groups.\r\n leaveRenderGroups();\r\n }",
"void dispose() {\n for (int i = 0; i < days.size(); i++) {\n days.get(i).dispose();\n }\n days.clear();\n days = null;\n }",
"public void dispose() {\n\r\n\t}",
"public void dispose() {\n\r\n\t}",
"public void dispose() {\n\r\n\t}",
"public void dispose() {\r\n\t\t\r\n\t}",
"private void dispose() {\n\n\t}",
"public void dispose() {\n\t\twhile(unackHead != null) {\n\t\t\tcancel(unackHead);\n\t\t\tunackHead = unackHead.next;\n\t\t}\n\t\tif(curChunker != null)\n\t\t\tcurChunker.dispose();\n\t}",
"@Override\n\tpublic void finalize() throws TrippiException {\n close();\n }",
"@Override\r\n\tpublic void dispose() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dispose() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dispose() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dispose() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dispose() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dispose() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dispose() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dispose() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dispose()\r\n\t{}",
"@Override\n \t\t\tpublic void dispose() {\n \n \t\t\t}",
"public void release()\n\t{\n\t\t// System.out.println(usedBy.getName() + \": Releasing \" + toString());\n\t\tthis.usedBy = null;\n\t}",
"protected void finalize() {\n close();\n }",
"public final void dispose() {\n\ttry { if (resultSet != null) resultSet.close(); }\n\tcatch(SQLException e) { e.printStackTrace(); }\n\tresultSet = null;\n\n\ttry { if (stmt != null) stmt.close(); }\n\tcatch(SQLException e) { e.printStackTrace(); }\n\tstmt = null;\n }",
"public void dispose() {\n }",
"public void dispose() {\n if (exporterContainer != null) {\n exporterContainer.close();\n exporterContainer = null;\n }\n\n if (applicationContainer != null) {\n applicationContainer.close();\n applicationContainer = null;\n }\n\n if (network != null) {\n network.close();\n network = null;\n }\n\n httpClient = null;\n }",
"void dispose() {}",
"public void dispose() {\n if (executionPlan != null)\n executionPlan.dispose();\n if (appClassList != null)\n appClassList.clear();\n if (classObserverList != null)\n classObserverList.clear();\n if (referencedClassSet != null)\n referencedClassSet.clear();\n analysisOptions.analysisFeatureSettingList = null;\n bugReporter = null;\n classFactory = null;\n classPath = null;\n classScreener = null;\n detectorFactoryCollection = null;\n executionPlan = null;\n progress = null;\n project = null;\n analysisOptions.userPreferences = null;\n }",
"private void close() {\n if (mGatt != null) {\n mGatt.close();\n mGatt = null;\n mDeviceAddress = null;\n mDevice = null;\n }\n }",
"public void dispose()\n\t{\n\t\tthis.mDText=null;\n\t\tvisitorFacets.dispose();\n\t\tvisitorMicroSpecies.dispose();\n\t\tvisitorAttributes.dispose();\n\t\tvisitorActions.dispose();\n\t\tvisitorReflexes.dispose();\n\t\tvisitorAspects.dispose();\n\t\tthis.visitorFacets=null;\n\t\tthis.visitorMicroSpecies=null;\n\t\tthis.visitorAttributes=null;\n\t\tthis.visitorActions=null;\n\t\tthis.visitorReflexes=null;\n\t\tthis.visitorAspects=null;\n\t\tthis.experimentsLink=null;\n\t\tthis.speciesLink=null;\n\t}",
"public void close()\n {\n getConnectionManager().shutdown();\n }",
"public void finalize() {\n\n if (mBtManager != null) {\n //mBtManager.stop();\n mBtManager.setHandler(null);\n }\n mBtManager = null;\n mContext = null;\n mConnectionInfo = null;\n }",
"protected void destroy() {\n JmsUtils.closeSession(session);\n JmsUtils.closeConnection(connection);\n session = null;\n connection = null;\n }",
"public void dispose()\n\t{\n\t\tsuper.dispose();\n\t}",
"public void dispose() ;",
"@Override\n public void releaseResources() {\n if (cluster != null) {\n cluster.close();\n }\n if (cpds != null) {\n cpds.close();\n }\n }",
"@Override\n public void dispose() {\n\n }",
"void destroy() {\n if (this.consumerContext != null) {\n //this.consumerContext.close();\n this.consumerContext = null;\n }\n }",
"public final void dispose() {\n lock.writeLock().lock();\n try {\n if (available) {\n available = false;\n _dispose();\n }\n } finally {\n lock.writeLock().unlock();\n }\n }",
"@Override\n public void dispose() {\n file = null;\n }",
"public void destroy() {\n \t\n }",
"@Override\n public void dispose() {\n }",
"@Override\n public void dispose() {\n }",
"@Override\n public void dispose() {\n }",
"@Override\n public void dispose() {\n }"
] | [
"0.64782614",
"0.64079875",
"0.6389795",
"0.6383296",
"0.63570464",
"0.6267753",
"0.6265851",
"0.62532127",
"0.62532127",
"0.62138736",
"0.62137824",
"0.6185995",
"0.61738217",
"0.61380315",
"0.61380315",
"0.61380315",
"0.61245185",
"0.6119912",
"0.6113854",
"0.6073327",
"0.6068451",
"0.60607266",
"0.6039266",
"0.6029218",
"0.6013326",
"0.5946094",
"0.59285516",
"0.5919888",
"0.59099865",
"0.59099865",
"0.59099865",
"0.59099865",
"0.59068274",
"0.5905386",
"0.5903318",
"0.58987397",
"0.5893695",
"0.58720297",
"0.5868584",
"0.5868584",
"0.5868584",
"0.58679664",
"0.5867786",
"0.58671397",
"0.5867118",
"0.5865748",
"0.58607644",
"0.5836713",
"0.5824475",
"0.5818666",
"0.58152276",
"0.58076155",
"0.58032984",
"0.580266",
"0.580266",
"0.57995737",
"0.5793805",
"0.57878643",
"0.57863015",
"0.57836604",
"0.5783117",
"0.5783117",
"0.5783117",
"0.5774768",
"0.5769874",
"0.5764707",
"0.5761434",
"0.57544196",
"0.57544196",
"0.57544196",
"0.57544196",
"0.57544196",
"0.57544196",
"0.57544196",
"0.57544196",
"0.57452995",
"0.5742535",
"0.57315665",
"0.57303786",
"0.5729119",
"0.57249343",
"0.57172716",
"0.57104886",
"0.56972784",
"0.56920356",
"0.5691042",
"0.5689819",
"0.56854963",
"0.56843305",
"0.5681849",
"0.5678855",
"0.5673866",
"0.56698686",
"0.56648564",
"0.56600076",
"0.56595236",
"0.5657625",
"0.5641297",
"0.5641297",
"0.5641297",
"0.5641297"
] | 0.0 | -1 |
Gets the radius of what the Settlement considers as it's own land. | public int getRadius() {
return getType().getClaimableRadius();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int radius()\n\t{\n\t\treturn radius;\n\t}",
"public double getRadius() {\n return getCenter().distance(new Coord3d(xmin, ymin, zmin));\n }",
"long getRadius();",
"public float radius() {\n\t\treturn radius;\n\t}",
"public double getRadius() { return radius.get(); }",
"public double getCentralRadius() {\r\n\t\t// Retrieve the radius of the center.\r\n\t\treturn centralRadius;\r\n\t}",
"public int getRadius() {\n return radius_;\n }",
"double getRadius();",
"public double getRadius() {\r\n\t\treturn _radius;\r\n\t}",
"public int getRadius() {\n return radius_;\n }",
"public double getRadius()\r\n\t{\r\n\t\treturn radius;\r\n\t}",
"public float getRadius() {\r\n\t\treturn Float.parseFloat(getProperty(\"radius\").toString());\r\n\t}",
"public double getRadius() {\n return radius;\n }",
"public int getRadius()\n\t{\n\t\treturn radius;\n\t}",
"public double getRadius() {\n return radius;\n }",
"public double getRadius() {\n return radius;\n }",
"public double getRadius() {\n return radius;\n }",
"public double getRadius() {\n return radius;\n }",
"public double getRadius() {\n return radius;\n }",
"public double getRadius() {\n return radius;\n }",
"public double getRadius() {\n return radius;\n }",
"public double getRadius() {\n return radius;\n }",
"public double getRadius() {\n return radius;\n }",
"public double getRadius() {\n return radius;\n }",
"public double getRadius() {\r\n\t\treturn radius;\r\n\t}",
"public double getRadius() {\n\t\treturn radius;\n\t}",
"public double getRadius() {\n\t\treturn radius;\n\t}",
"public double getRadius(){\n\t\treturn radius;\n\t}",
"public int getRadius() {\n\t\treturn radius;\n\t}",
"private double getRadius() {\n\t\treturn Math.min(getWidth(), getHeight()) / 2.0 * RADIUS_MODIFIER;\n\t}",
"public int getRadius() {\r\n\t\treturn this.radius;\r\n\t}",
"public double getRadius() {\n\t\treturn r;\n\t}",
"public int getRadius() {\n return radius;\n }",
"@Basic\n\t@Raw\n\tpublic double getRadius() {\n\t\treturn this.radius;\n\t}",
"public double getRadius()\r\n {\r\n return radius;\r\n }",
"public double getRadius() {\n double x = radius;\n return x;\n\n }",
"int getRadius();",
"public final float getRadius() {\n return radius;\n }",
"public double getCircumference()\n\t{\n\t\tdouble circumference = 2 * Math.PI * radius;\n\t\treturn circumference;\n\t}",
"public double getCircumference()\r\n\t{\r\n\t\tdouble cir = 2*Math.PI*radius;\r\n\t\treturn cir;\r\n\t}",
"public int getRadius()\n {\n return this.radius;\n }",
"@Basic @Raw @Immutable\n public double getRadius(){\n return this.startRadius;\n }",
"public Double getRadius() {\n return this.radius;\n }",
"@Basic\n\t@Immutable\n\tpublic abstract double getRadiusLowerBound();",
"public double getRadius() { return radius; }",
"public double getCircunference(){\n return 2.0 * radius * Math.PI; \n }",
"private double getSatelliteCircleRadius() {\r\n GeoPoint satNadir = new GeoPoint(Math.toRadians(satLat), Math.toRadians(thetaP));\r\n double pointOnTheCircleLat = satLat + getSatelliteSemiEyeWidth();\r\n if (pointOnTheCircleLat > 90D || pointOnTheCircleLat < -90D)\r\n pointOnTheCircleLat = satLat - getSatelliteSemiEyeWidth();\r\n GeoPoint onTheCircle = new GeoPoint(Math.toRadians(pointOnTheCircleLat), Math.toRadians(thetaP));\r\n if (gc == null)\r\n gc = new GreatCircle();\r\n gc.setStart(satNadir);\r\n gc.setArrival(onTheCircle);\r\n gc.calculateGreatCircle(1);\r\n double dist = Math.toDegrees(gc.getDistance()) * 60.0;\r\n\r\n return dist;\r\n }",
"public float getRadius()\n {\n return _radius;\n }",
"public float getRadius() {\n return radius;\n }",
"public double findArea() {\n return radius * radius * Math.PI;\n }",
"public double getRadius(){\n return r;\n }",
"public int getRadius_() {\r\n\t\treturn radius_;\r\n\t}",
"public double getUrbansimZoneRandomLocationDistributionByRadius() {\n return urbansimZoneRandomLocationDistributionByRadius;\n }",
"int findRadius() {\n GraphUtils u = new GraphUtils();\n int diameter = u.furthestDist(\n u.furthestPiece(u.furthestPiece(this.board.get(powerRow).get(powerCol), this.nodes),\n this.nodes),\n this.nodes);\n return diameter / 2 + 1;\n }",
"public double getRadius()\n {\n return m_Radius;\n }",
"public String getRadius() {\n\t\treturn null;\n\t}",
"public double getArea() {\n return ((radius * radius) * Math.PI);\n }",
"public double getCircleRadius();",
"public double getPerimeter() {\n return 2 * radius * Math.PI;\n }",
"int getSightRadius(Unit unit);",
"public double getRadius(){\n return radius;\n }",
"public double getRadius(){\r\n return radius;\r\n }",
"public int getRadius() { return radius; }",
"public double getArea() {\n return radius*radius*Math.PI;\n }",
"public double getArea() {\n return radius * radius * Math.PI;\n }",
"public double getArea() {\n return radius * radius * Math.PI;\n }",
"public CoordinateRadius getRegion();",
"public double getArea()\n\t{\n\t\tdouble area = Math.PI * Math.pow(radius, 2); \n\t\treturn area;\n\t}",
"public double basePerimeter()\r\n {\r\n double basePerimeter = (radius * 2) * Math.PI;\r\n return basePerimeter;\r\n }",
"public static float getNearbyScope(){\n return NEARBY_SCOPE_RADIUS;\n }",
"public double findArea() {\r\n return Math.PI * radius * radius; \r\n }",
"@Override\n\tpublic double getPerimeter()\n\t{\n\t\tdouble perimeter = radius*2*pi;\n\t\treturn perimeter;\n\t}",
"public abstract double getBoundingCircleRadius();",
"public double getArea() {\n return Math.PI * Math.pow(radius, 2.0);\n }",
"public abstract float getRadius();",
"public abstract float getRadius();",
"public int getFixedRadius ( ) {\r\n\t\treturn plot_radius;\r\n\t}",
"public double getArea(){\n\t\treturn radius*radius*Math.PI;\n\t}",
"public int getPerimeter()\n\t{\n\t\treturn (int) (Math.PI * radius * 2);\n\t}",
"public double getArea()\r\n\t{\r\n\t\tdouble area = Math.PI*(Math.pow(radius, 2));\r\n\t\treturn area;\r\n\t}",
"public double circumference() {\r\n\t\treturn 2 * PI * radius;\r\n\t}",
"public SpatialUnits getRadiusUnitOverride() {\n return radiusUnitOverride;\n }",
"public double getArea() {\n\t\treturn this.radius * this.radius * Math.PI;\n\t}",
"public double getArea(){\n return 3.14 * radius * radius;\n }",
"public double calculatePerimeter() {\r\n return 2 * PI * radius;\r\n }",
"public double area() {\r\n\t\treturn radius * radius * PI;\r\n\t}",
"public double getArea(){\n return radius * radius * Math.PI;\n }",
"public double area() {\n return 2 * Math.PI * radius;\n }",
"@Override\n public double getArea() {\n return (int) this.radiusX * (int) this.radiusY * Math.PI;\n }",
"@Schema(description = \"Maximum distance in meters a user wants to travel to reach the travel option\")\n \n @Min(0) public Integer getRadius() {\n return radius;\n }",
"public double area() { return Math.PI * radius * radius; }",
"public double getCircleArea();",
"public float getRadiusCorrectedForPerspective() {\n float scale = 1 / getPerspectiveScaleFactor(location);\n return radius * scale;\n }",
"public double calculatePerimeter()\n {\n return 2 * Math.PI * radius;\n }",
"public double getRadius(){return radius;}",
"public Optional<AuthLoginRadius> authLoginRadius() {\n return Codegen.objectProp(\"authLoginRadius\", AuthLoginRadius.class).config(config).get();\n }",
"public double getRadius() {\n return radius; \n }",
"public double getPerimeter(){\r\n\t\t\r\n\t\tdouble obim = 2 * PI * this.radius;\r\n\t\t\r\n\t\treturn obim;\r\n\t}",
"public double baseArea()\r\n {\r\n double baseArea = Math.pow(radius, 2) * Math.PI;\r\n return baseArea;\r\n }",
"public double getArea() {\n\t\treturn 4.0 * Math.PI * this.radius * this.radius;\n\t}"
] | [
"0.7037572",
"0.7007221",
"0.682734",
"0.680731",
"0.6770202",
"0.67199796",
"0.6652669",
"0.66176975",
"0.6612402",
"0.65996164",
"0.65860546",
"0.65851814",
"0.65416664",
"0.65388",
"0.6522839",
"0.6522839",
"0.6522839",
"0.6522839",
"0.6522839",
"0.6522839",
"0.6522839",
"0.6522839",
"0.6522839",
"0.6522839",
"0.6518684",
"0.65097046",
"0.65097046",
"0.650224",
"0.6482047",
"0.648187",
"0.64809483",
"0.6479814",
"0.64797",
"0.6472369",
"0.64505535",
"0.6450318",
"0.6445546",
"0.6442973",
"0.644263",
"0.64399034",
"0.64314914",
"0.64273494",
"0.6414591",
"0.63963467",
"0.6387571",
"0.6378194",
"0.6371161",
"0.636191",
"0.6341016",
"0.6339561",
"0.63311917",
"0.62988687",
"0.62933385",
"0.62812275",
"0.62665737",
"0.626573",
"0.62626916",
"0.6256975",
"0.6254443",
"0.6243012",
"0.62388325",
"0.62371653",
"0.6233361",
"0.6220337",
"0.62040436",
"0.62040436",
"0.61929786",
"0.6190737",
"0.6188955",
"0.6185202",
"0.61683965",
"0.61656934",
"0.6159019",
"0.6153902",
"0.61494637",
"0.61494637",
"0.6139167",
"0.61391115",
"0.6134883",
"0.6129829",
"0.6113981",
"0.61087084",
"0.6094645",
"0.6087072",
"0.6085032",
"0.60806197",
"0.6067948",
"0.60674024",
"0.6056482",
"0.6045312",
"0.6044509",
"0.6043274",
"0.6033126",
"0.6027608",
"0.60159326",
"0.6015248",
"0.601223",
"0.60035014",
"0.5991802",
"0.59813476"
] | 0.6997472 | 2 |
Gets whether this settlement is connected to the high seas. This is more than merely nonlandlocked, because the settlement could be on an inland lake. | public boolean isConnectedPort() {
for (Tile t : getTile().getSurroundingTiles(1)) {
if (!t.isLand() && t.isHighSeasConnected()) return true;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean isConnected() {\n if (skylinkConnection != null) {\n return skylinkConnection.isConnected();\n }\n return false;\n }",
"public boolean isConnected() {\n return (chord != null);\n }",
"public boolean percolates() {\n return mainObject.connected(vsite1, vsite2);\n }",
"public boolean percolates() {\n return sitesUF.connected(upSiteIndex, downSiteIndex);\n }",
"public boolean isConnected() {\n\t\tif (m == null) return false;\n\t\telse return true;\n\t}",
"boolean isConnected() {\n \t\tif (fConnected == null)\n \t\t\treturn false;\n \t\treturn !fConnected.isEmpty();\n \t}",
"public boolean isOn()\n {\n // Check the pin state\n return ledPin.isHigh();\n }",
"public boolean isBeaconFound() {\n return isLeftKnown() && isRightKnown();\n }",
"public boolean isConnected() {\n if (mState == STATE_CONNECTED) {\n return true;\n }\n return false;\n }",
"public boolean isHighCard() {\r\n\r\n return getHighestConsecutive() == 1;\r\n }",
"public boolean percolates()\n {\n return uf.connected(topVirtualSite, bottomVirtualSite);\n }",
"public boolean isConnected() {\n \t\treturn connected;\n \t}",
"public boolean isConnected(){\r\n\t\treturn connected;\r\n\t}",
"public boolean isConnected() {\n\t\treturn connected;\n\t}",
"public boolean isConnected() {\n\t\treturn connected;\n\t}",
"public boolean isConnected() {\n return this.connected;\n }",
"public boolean isConnected() {\n return this.connected;\n }",
"public boolean connectedToWarden() {\n if (this.isWardenAS()) {\n return true;\n }\n\n for (AS tAS : this.customers) {\n if (tAS.isWardenAS()) {\n return true;\n }\n }\n for (AS tAS : this.providers) {\n if (tAS.isWardenAS()) {\n return true;\n }\n }\n for (AS tAS : this.peers) {\n if (tAS.isWardenAS()) {\n return true;\n }\n }\n return false;\n }",
"public boolean isConnected() {\r\n\treturn connected;\r\n }",
"public boolean isConnected()\n {\n return connected;\n }",
"public boolean isConnected() {\n HiLog.info(LOG_LABEL, \"isConnected: %{public}b\", new Object[]{Boolean.valueOf(this.mIsConnected)});\n return this.mIsConnected;\n }",
"public boolean isConnected() {\n\t\treturn this.isConnected;\n\t}",
"public boolean isOnline() {\n final ConnectivityManager conMgr = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n if (conMgr.getNetworkInfo(0).getState() == NetworkInfo.State.CONNECTED\n || conMgr.getNetworkInfo(1).getState() == NetworkInfo.State.CONNECTED) {\n return true;\n } else {\n return false;\n }\n }",
"public static boolean hasConnected() {\n return sHasConnected;\n }",
"public boolean isConnected() {\n return connected;\n }",
"public boolean isConnected() {\n return connected;\n }",
"public boolean isConnected() {\n return connected;\n }",
"public boolean isConnected() {\n return connected;\n }",
"public boolean isConnected() {\n return connected;\n }",
"public boolean percolates() {\n return mainUnion.connected(virtualTopId, virtualBottomId);\n }",
"public static boolean isConnected() {\r\n\t\treturn dfl != null;\r\n\t}",
"public boolean isConnectedToRendezVous() {\r\n return !rendezVous.isEmpty();\r\n }",
"public boolean isOpen() {\n\t\t\n\t\t//If network is open\n\t\tif (this.open) {\n\t\t\t\n\t\t\treturn true;\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\treturn false;\n\t\t\t\n\t\t}\n\t}",
"protected boolean isConnected() {\n\t\tif (channel == null) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn channel.isOpen();\n\t\t}\n\t}",
"public boolean isConnected() {\r\n return connected;\r\n }",
"public boolean isConnected()\n {\n return connectionId != GatewayProcess.NO_CONNECTION_ID;\n }",
"public boolean percolates() {\n return backwashQuickUnion.connected(virtualTop, virtualBottom);\n }",
"public boolean clockedOut() {\n return state instanceof ClockedOut;\n }",
"public boolean isWayOut () {\n if (this.equals(SquareType.WAYOUT))\n return true;\n else\n return false;\n }",
"public boolean isOnline() {\n return this.online;\n }",
"public boolean isConnected() {\n PublishSubscriber<T> c = state.current;\n return c.connected && !c.done && !c.isDisposed();\n }",
"private boolean isOnline() {\n ConnectivityManager connectivityManager\n = (ConnectivityManager) owner.getBaseContext().getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }",
"public boolean isOnline() {\n\t\tboolean connected = false;\n\t\t\n\t\tConnectivityManager connectivityManager = (ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\t\n\t\t if(connectivityManager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE).getState() == NetworkInfo.State.CONNECTED || \n\t\t connectivityManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI).getState() == NetworkInfo.State.CONNECTED) {\n\t\t //we are connected to a network\n\t\t connected = true;\n\t\t }\n\t\t else\n\t\t {\n\t\t connected = false;\n\t\t }\n\t\t return connected;\n\t}",
"public boolean isConnected() {\n return mConnected;\n }",
"public boolean isOnline()\n\t{\t\t\n\t\treturn chatConnection.isConnected();\n\t}",
"public static boolean isConnected() {\n return (getCon() != null);\n }",
"@Override\n public boolean isConnected() {\n boolean result = false;\n synchronized (CONN_SYNC) {\n result = ((system != null) && system.isConnected());\n }\n return result;\n }",
"public boolean isConnected(){\n return connected;\n }",
"public boolean isSeatAllReserved() {\n return airplane.isFull();\n }",
"private boolean ifNet() {\n \t\t\n \t\tConnectivityManager connectivity = (ConnectivityManager) this\n \t\t\t\t.getSystemService(Context.CONNECTIVITY_SERVICE);\n \t\tif (connectivity != null) {\n \t\t\tNetworkInfo[] info = connectivity.getAllNetworkInfo();\n \t\t\tif (info != null)\n \t\t\t\tfor (int i = 0; i < info.length; i++)\n \t\t\t\t\tif (info[i].getState() == NetworkInfo.State.CONNECTED) {\n \t\t\t\t\t\treturn true;\n \t\t\t\t\t}\n\n \t\t}\n \t\treturn false;\n \t}",
"public boolean isConnecting ()\r\n\t{\r\n\t\tsynchronized (this)\r\n\t\t{\r\n\t\t\treturn _roboCOM!=null;\r\n\t\t}\r\n\t}",
"public Boolean connected() {\n return this.connected;\n }",
"public boolean isOnline() {\n ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo netInfo = cm.getActiveNetworkInfo();\n return netInfo != null && netInfo.isConnectedOrConnecting();\n }",
"public static boolean isOnline() {\n ConnectivityManager cm =\n (ConnectivityManager) MainApplication.getGlobalContext().getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo netInfo = cm.getActiveNetworkInfo();\n return netInfo != null && netInfo.isConnectedOrConnecting();\n }",
"public boolean isConnecting() {\n if (mState == STATE_CONNECTING) {\n return true;\n }\n return false;\n }",
"public boolean isConnected() {\n boolean status = false;\n try {\n status = connection != null && !connection.isClosed();\n } catch (SQLException ex) {\n LOGGER.log(Level.SEVERE, \"Unable to check connection status: {0}\", ex);\n }\n\n return status;\n }",
"public boolean isConnected();",
"public boolean isConnected();",
"public boolean isConnected();",
"public boolean isConnected();",
"public boolean isConnected();",
"public boolean isOnline() {\n ConnectivityManager cm =\n (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo netInfo = cm.getActiveNetworkInfo();\n return netInfo != null && netInfo.isConnectedOrConnecting();\n }",
"public boolean isOnline() {\n ConnectivityManager cm =\n (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo netInfo = cm.getActiveNetworkInfo();\n return netInfo != null && netInfo.isConnectedOrConnecting();\n }",
"boolean isConnected();",
"boolean isConnected();",
"boolean isConnected();",
"boolean isConnected();",
"boolean isConnected();",
"boolean isConnected();",
"boolean isConnected();",
"boolean isConnected();",
"public boolean allConnected()\n {\n if(isDestroyed) throw new RuntimeException(\"pvaClientMultiChannel was destroyed\");\n return (numConnected==numChannel) ? true : false;\n }",
"public boolean isOnline() {\n ConnectivityManager connMgr = (ConnectivityManager) getSystemService(Activity.CONNECTIVITY_SERVICE);\n assert connMgr != null;\n NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();\n return (networkInfo != null && networkInfo.isConnected());\n }",
"public boolean isConnectedToGame() {\n return this.isConnectedToGame;\n }",
"public boolean isOnline() {\n ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo netInfo = cm.getActiveNetworkInfo();\n return netInfo != null && netInfo.isConnected();\n }",
"boolean isDataConnectionAsDesired() {\n boolean roaming = phone.getServiceState().getRoaming();\n\n if (phone.mSIMRecords.getRecordsLoaded() &&\n phone.mSST.getCurrentGprsState() == ServiceState.STATE_IN_SERVICE &&\n (!roaming || getDataOnRoamingEnabled()) &&\n !mIsWifiConnected ) {\n return (state == State.CONNECTED);\n }\n return true;\n }",
"public boolean isOnline() {\n boolean connected = false;\n ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n if (connectivityManager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE).getState() == NetworkInfo.State.CONNECTED || connectivityManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI).getState() == NetworkInfo.State.CONNECTED) {\n connected = true;\n } else {\n connected = false;\n }\n return connected;\n }",
"public boolean isConnected() {\n if (client == null) {\n return false;\n }\n return client.isConnected();\n }",
"public boolean estOuvert(){\n\n return netLinkIp.isOpen();\n\n }",
"public boolean isOnline() {\n\n\t\tConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\tNetworkInfo netInfo = cm.getActiveNetworkInfo();\n\t\tif (netInfo != null && netInfo.isConnectedOrConnecting()) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}",
"public boolean isClosed() {\n return calculateSumOfHouse() > 31;\n }",
"public boolean percolates() {\n if (openSitesCount < gridSize) {\n return false;\n }\n\n if (gridSize == 1 && openSitesCount == 1) {\n return true;\n }\n\n return wquf2.connected(virtualTopSiteIndex, virtualBottomSiteIndex);\n }",
"public boolean isOnline() {\n\t\t\tConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\t\tNetworkInfo netInfo = cm.getActiveNetworkInfo();\n\t\t\tif (netInfo != null && netInfo.isConnectedOrConnecting()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}",
"public boolean isOnline() {\n\t\tConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\tNetworkInfo netInfo = cm.getActiveNetworkInfo();\n\t\tif (netInfo != null && netInfo.isConnectedOrConnecting()) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean isPortalConnected();",
"public boolean isOnline() {\r\n\t\tConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\r\n\t\tNetworkInfo netInfo = cm.getActiveNetworkInfo();\r\n\t\tif (netInfo != null && netInfo.isConnectedOrConnecting()) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"private boolean hasStableConnection() {\n ConnectivityManager cm =\n (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n return activeNetwork != null && activeNetwork.isConnectedOrConnecting();\n }",
"public boolean isOnline() {\n ConnectivityManager cm =\n (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo netInfo = cm.getActiveNetworkInfo();\n if (netInfo != null && netInfo.isConnectedOrConnecting()) {\n return true;\n }\n return false;\n }",
"protected boolean isOnline() {\n\n ConnectivityManager cm = (ConnectivityManager) getContext().getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n\n boolean isConnected = activeNetwork != null &&\n activeNetwork.isConnectedOrConnecting();\n\n //check if the connection id wifi or mobile data\n boolean isWiFi = activeNetwork.getType() == ConnectivityManager.TYPE_WIFI;\n\n return isConnected;\n\n }",
"public boolean isConnected() {\n return mConnectionSocket.isConnected() && !mConnectionSocket.isClosed();\n }",
"private boolean isOnline() {\n\t\tConnectivityManager cm = (ConnectivityManager) getApplicationContext()\n\t\t\t\t.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n\t\treturn cm.getActiveNetworkInfo() != null\n\t\t\t\t&& cm.getActiveNetworkInfo().isConnectedOrConnecting();\n\n\t}",
"public boolean isLevelOver() {\n\t\treturn waveControl.isLevelEnd();\n\t}",
"public boolean isConnecting() {\n PublishSubscriber<T> c = state.current;\n return c.connecting && !c.connected && !c.done && !c.isDisposed();\n }",
"boolean connectedToPower(GamePiece power) {\n if (this.powerStation) {\n return true;\n }\n else {\n GraphUtils u = new GraphUtils();\n HashMap<GamePiece, GamePiece> connections = u.bfs(power);\n return connections.containsKey(this);\n }\n }",
"public static boolean isOnline() {\n ConnectivityManager connectivityManager = (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkinfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkinfo != null && activeNetworkinfo.isConnected();\n }",
"public boolean isConnected() {\n return isConnected;\n }",
"private boolean isOpen () {\n boolean result = false;\n if (interOne == null || interTwo == null) result = true;\n return (result);\n }",
"public boolean isConnected()\n {\n return isConnected;\n }",
"public boolean isConnected() {\n\t\t\treturn (m_soundManager instanceof RemoteSoundManager);\n\t\t}",
"public boolean percolates() {\n // The system percolates if top and bottom are connected\n return UF.connected(top, bottom);\n }"
] | [
"0.58231753",
"0.573707",
"0.56349033",
"0.5633081",
"0.5620339",
"0.55967987",
"0.5596185",
"0.55751914",
"0.5555918",
"0.55444765",
"0.55377495",
"0.55238384",
"0.5518179",
"0.5498071",
"0.5498071",
"0.54829323",
"0.54829323",
"0.54590523",
"0.5448706",
"0.54355067",
"0.54314876",
"0.54289985",
"0.54287535",
"0.5423107",
"0.5419893",
"0.5419893",
"0.5419893",
"0.5419893",
"0.5419893",
"0.5414144",
"0.54037887",
"0.5403108",
"0.5401005",
"0.53831935",
"0.538201",
"0.537941",
"0.5376374",
"0.5365707",
"0.53386754",
"0.53308076",
"0.5330256",
"0.53160363",
"0.531273",
"0.53124756",
"0.5308261",
"0.52973884",
"0.529352",
"0.5292162",
"0.5288709",
"0.52822995",
"0.52818817",
"0.52786785",
"0.5277726",
"0.52759206",
"0.5261942",
"0.52547896",
"0.5254082",
"0.5254082",
"0.5254082",
"0.5254082",
"0.5254082",
"0.5251066",
"0.5251066",
"0.52498406",
"0.52498406",
"0.52498406",
"0.52498406",
"0.52498406",
"0.52498406",
"0.52498406",
"0.52498406",
"0.5249743",
"0.5246465",
"0.52426785",
"0.52402055",
"0.5239537",
"0.5234142",
"0.5229604",
"0.52127004",
"0.5211606",
"0.5203329",
"0.5203328",
"0.5202726",
"0.51979315",
"0.51979303",
"0.5197456",
"0.51860404",
"0.51693326",
"0.51685715",
"0.51661974",
"0.5161583",
"0.51579916",
"0.5155504",
"0.51509696",
"0.5150832",
"0.5144289",
"0.51389265",
"0.51374257",
"0.51337034",
"0.513161"
] | 0.66411877 | 0 |
Gets the current Sons of Liberty in this settlement. | public abstract int getSoL(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<LdsSpouseSealing> getLdsSpouseSealings() {\n return ldsSpouseSealings;\n }",
"public ArrayList<Station> getStations() {\n\t\treturn stations;\n\t}",
"public List<String> getLampStations() {\n\t\treturn this.lampStations;\n\t}",
"public LinkedList<Station> getStations() {\n return stations;\n }",
"public ArrayList<SeatHold> getSeat() {\n\t\treturn seat;\n\t}",
"public ArrayList<Salon> darSalones()\n {\n return salones;\n }",
"public HashMap<String, ArrayList<String>> getStations() \n\t{\n\t\t//return stations hashMap\n\t\treturn stations;\n\t}",
"public Integer getSTS()\n {\n return this.STS;\n }",
"@java.lang.Override\n public int getIndividualStamina() {\n return individualStamina_;\n }",
"@java.lang.Override\n public int getIndividualStamina() {\n return individualStamina_;\n }",
"public Stance getStance() {\n for (TradeItem ti : items) {\n if (ti instanceof StanceTradeItem) {\n return ((StanceTradeItem)ti).getStance();\n }\n }\n return null;\n }",
"public int getStuns() {\n return stuns;\n }",
"public java.lang.String getStudent_interests() {\n\t\treturn _primarySchoolStudent.getStudent_interests();\n\t}",
"public List<String> getDarkskyStations() {\n\t\treturn this.darkskyStations;\n\t}",
"public ArrayList<Student> getStudents() {\r\n\t\treturn this.students;\r\n\t}",
"public ArrayList<Student> getStudents() {\r\n\t\treturn students;\r\n\t}",
"public List<PresentyData> getStudentist() {\n return stList;\n }",
"public Student getStudents() {\n\t\treturn this.student;\n\t}",
"public List<ServiceLivraison> getServiceLivraisons() {\n return serviceLivraisons;\n }",
"public int getSale() {\n\t\treturn sale;\r\n\t}",
"public List<Seat> getSeatsHeld() { return seatsHeld; }",
"public ArrayList<Seat> getSeatList() {\n\t\treturn Sdao.selectSeatList();\r\n\t}",
"public static String getSells() {\n if(DatabaseMethods.sales_analaysis()){\r\n return DatabaseMethods.get_total_sales();\r\n }\r\n else{\r\n return null; \r\n }\r\n \r\n\t}",
"public List<String> getIsdStations() {\n\t\treturn this.isdStations;\n\t}",
"public List<Sale> getSalesLog() {\n return salesLog;\n }",
"public Station[] getStations()\n {\n Vector<Station> ret_stations = new Vector<Station>();\n for (Station station : stations)\n if (station != null)\n ret_stations.add(station);\n return ret_stations.toArray(new Station[0]);\n }",
"public ArrayList<Student> getStudents()\n {\n return students;\n }",
"@Override\r\n\tpublic Student[] getStudents() {\n\t\treturn this.students;\r\n\t}",
"@java.lang.Override\n public int getStamina() {\n return stamina_;\n }",
"public ArrayList<Zapato> getStock(){\n\t\treturn this.stock;\n\t}",
"public ArrayList<SimpleResList> getSellOrList() {\r\n\t\treturn new ArrayList<SimpleResList>(sellOrList); // may be shallow copy\r\n\t}",
"public ArrayList<Student> getStudentList() {\r\n return studentList;\r\n }",
"public List<SatelliteInfo> getSatelliteInfo() {\n\t\treturn this.info;\n\t}",
"public Double getSaleNetWorth() {\r\n return saleNetWorth;\r\n }",
"public ArrayList<Student> getStudentList() {\n return studentList;\n }",
"public ArrayList<Student> getStudentList() {\n\t\treturn studentList;\n\t}",
"public SiacTSoggetto getSiacTSoggetto() {\n\t\treturn this.siacTSoggetto;\n\t}",
"@java.lang.Override\n public int getStamina() {\n return stamina_;\n }",
"public List<Statut> getListStatuts() {\n\t\t\treturn super.findWithNamedQuery(\"findAllStauts\");\n\t\t}",
"public List<Integer> getTeritory() {\n return teritory;\n }",
"public ArrayList<Student> getStudentList()\r\n\t {\r\n\t\treturn studentList;\r\n\t\t\r\n\t }",
"int getIndividualStamina();",
"public String getMySes() {\n\n\t\tif (mySes == null) {\n\n\t\t\treturn \"\";\n\n\t\t}\n\n\t\treturn mySes;\n\n\t}",
"public List<List<Seat>> getEconomy() {\n\t\treturn economy;\n\t}",
"public StationSet getStation()\n {\n StationSet result = new StationSet();\n \n for (Train obj : this)\n {\n result.with(obj.getStation());\n }\n \n return result;\n }",
"public final double getS()\r\n\t{\r\n\t\treturn s;\r\n\t}",
"public ArrayList<Stock> getStockList() {\n\t\treturn stockList;\n\t}",
"public java.lang.String getSpouseTerritorialityCode() {\n return spouseTerritorialityCode;\n }",
"public double marketState()\n\t{\n\t\treturn _dblMarketState;\n\t}",
"public int getSWDES() {\r\n return localSWDES;\r\n }",
"protected synchronized Map<ServiceReference, Interest> getInterests() {\n return interests;\n }",
"public SavingsOpportunity getSavingsOpportunity() {\n return this.savingsOpportunity;\n }",
"public Integer getSt()\n {\n return st; \n }",
"public String getSj() {\n return sj;\n }",
"public List<Seat> getSeats() {\n return Collections.unmodifiableList(seats);\n }",
"public double getS() { return s; }",
"public int getStamina() {\n \t\treturn stamina;\n \t}",
"protected ArrayList<Integer> GetTrains() {\n\t\treturn this.TrainsPresent;\n\t}",
"public double getSale()\n {\n return sale;\n }",
"public List<Star> getStars() {\n return star;\n }",
"public List<Product> getSales() {\n return sales;\n }",
"public String getSiretState() {\r\n\t\treturn siretState;\r\n\t}",
"public int getSirinaTable() {\n\t\treturn this.sirinaTable;\n\t}",
"public java.lang.String getStudent_oversea() {\n\t\treturn _primarySchoolStudent.getStudent_oversea();\n\t}",
"public double getSavings()\r\n {\r\n return savings;\r\n }",
"public String getStationld() {\n return stationld;\n }",
"public String getSupEntIndustry() {\n return supEntIndustry;\n }",
"public ArrayList<PersonStocks> getStock(){\n return myStocks;\n }",
"public float getSecurity() {\n return security;\n }",
"@Override\r\n\tpublic List<Locality> getLocality() {\n\t\treturn customerdao.getLocality();\r\n\t}",
"public Integer getChangedSoc() {\n return changedSoc;\n }",
"@Override\n\tpublic double getSalud() {\n\t\treturn this.salud;\n\t}",
"public Integer getSustenance() {\n return sustenance;\n }",
"private NamedStationTable setStations() {\n NamedStationTable stationTable;\n if (stationTableName == null) {\n stationTable =\n getControlContext().getResourceManager().findLocations(\n \"NEXRAD Sites\");\n } else {\n stationTable =\n getControlContext().getResourceManager().findLocations(\n stationTableName);\n }\n\n if (stationTable == null) {\n stationList = new ArrayList();\n } else {\n stationList = new ArrayList(\n Misc.sort(new ArrayList(stationTable.values())));\n }\n if (stationCbx != null) {\n setStations(stationList, stationCbx);\n stationCbx.setSelectedIndex(stationIdx);\n }\n return stationTable;\n }",
"public java.lang.Long getJamSelesai() {\n return jam_selesai;\n }",
"static List<Student> getStudents() {\n return students;\n }",
"Toy[] getToys() {\r\n\r\n\t\treturn this.toys;\r\n\t}",
"public ArrayList<Shield> getShields() {\n return shields;\n }",
"public List<SkillImport> assistantSkills() {\n return assistantSkills;\n }",
"public int getUnitsSold(){\n\t\treturn unitsSold;\n\t}",
"public List<LdsSpouseSealing> getLdsSpouseSealings(boolean initializeIfNeeded) {\n if (initializeIfNeeded && ldsSpouseSealings == null) {\n ldsSpouseSealings = new ArrayList<>(0);\n }\n return ldsSpouseSealings;\n }",
"public float getAnnualSalary()\n {\n return annualSalary;\n }",
"public String[] getInterestList() {\n return interestList;\n }",
"public List<Sesion> getSesiones() {\r\n\t\treturn sesiones;\r\n\t}",
"public int getStone(){\r\n\t\treturn stone;\r\n\t}",
"public BigDecimal getStake() {\n return stake;\n }",
"public UUID getSoul() {\n return soul;\n }",
"int getSellCurrent();",
"public int getToalCoins()\n\t{\n\t\treturn CoinCount;\n\t}",
"public String[] getStudents() {\n\t\treturn students;\n\t}",
"public abstract Map<Integer, Station> getStations(boolean includeSilent);",
"@Digits(integer=5,fraction=2)\n\t@Override\n\tpublic BigDecimal getSal() {\n\t\treturn super.getSal();\n\t}",
"public String getStsCode() {\n return stsCode;\n }",
"public String getClothesnames() {\n return clothesnames;\n }",
"public HashMap<Integer, Student> getStudents() {\n return _students;\n }",
"public HashMap<String, ArrayList<String>> getLinkedStations()\n\t{\n\t\t//return linkedStations hashMap\n\t\treturn linkedStations;\n\t}",
"public double getSalePrice() {\n return salePrice;\n }",
"public String getSupEntCorporate() {\n return supEntCorporate;\n }",
"@Override\n\tpublic long getLocation() {\n\t\treturn _buySellProducts.getLocation();\n\t}",
"public Integer getSales() {\n return sales;\n }",
"public java.lang.Long getJamSelesai() {\n return jam_selesai;\n }"
] | [
"0.67664117",
"0.61074215",
"0.60926116",
"0.59464663",
"0.59117144",
"0.588049",
"0.5861256",
"0.58402526",
"0.58198476",
"0.5792932",
"0.574573",
"0.5691962",
"0.5677461",
"0.56713396",
"0.56686217",
"0.5604409",
"0.55868095",
"0.5568445",
"0.5555591",
"0.55426234",
"0.5529713",
"0.54951113",
"0.545025",
"0.54225105",
"0.5404725",
"0.5403081",
"0.5400476",
"0.53948396",
"0.5383041",
"0.53828955",
"0.5378731",
"0.53771883",
"0.53768307",
"0.5375353",
"0.5373652",
"0.53692687",
"0.5361605",
"0.53614545",
"0.5360341",
"0.5360154",
"0.5357737",
"0.53438956",
"0.5337274",
"0.5332057",
"0.5323438",
"0.531505",
"0.5310046",
"0.5308864",
"0.5305896",
"0.5288519",
"0.5286321",
"0.52812934",
"0.52635336",
"0.52628547",
"0.5256525",
"0.5244114",
"0.52410966",
"0.523837",
"0.5234114",
"0.5233341",
"0.52329844",
"0.5223848",
"0.5220958",
"0.5217338",
"0.5215398",
"0.5214041",
"0.52091026",
"0.5205451",
"0.52052355",
"0.52037203",
"0.5199633",
"0.5199627",
"0.51953095",
"0.5190867",
"0.5189968",
"0.5185378",
"0.518231",
"0.51806355",
"0.51797265",
"0.51624644",
"0.516135",
"0.5157675",
"0.51575285",
"0.5157021",
"0.5152392",
"0.5151673",
"0.5147262",
"0.5146559",
"0.51426035",
"0.51403767",
"0.5139678",
"0.51387906",
"0.5135725",
"0.51330745",
"0.51324636",
"0.5131292",
"0.5130512",
"0.5129293",
"0.512824",
"0.5123837",
"0.5121901"
] | 0.0 | -1 |
Returns the amount of money necessary to maintain all of the settlement's buildings. | public abstract int getUpkeep(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getTotalbuildings() {\n\t\treturn totalbuildings;\n\t}",
"Money getCashSettlementAmount();",
"public int houseCost() {\n\t\treturn houses;\n\t}",
"public Long getSettlementmoney() {\n return settlementmoney;\n }",
"public int totalCostOfComponents()\n\t{\n\t\tint total = 0;\n\t\tfor (Component comp: configuration.values())\n\t\t{\n\t\t\ttotal += comp.getCost();\n\t\t}\n\t\treturn total;\n\t}",
"public static int totalSupply() {\n return totalSupplyGet();\n }",
"public BigDecimal getPeopleWelfareMoney() {\n return peopleWelfareMoney;\n }",
"public double getMoney() { //Not useful for the project but used on the test.\n\t\treturn money;\n\t}",
"private double calculateMoneyInserted() {\r\n double amount = 0.0;\r\n\r\n for(VendingMachine.Coin coin : coins) {\r\n amount += coin.amount();\r\n }\r\n return amount;\r\n }",
"public Double getTotalBuyMoney() {\r\n return totalBuyMoney;\r\n }",
"public double calculateWIP() {\n\t\tdouble totalDeliveryRate = 0.0;\n\t\tdouble totalLeadTime = 0.0;\n LinkedList<Card> completedCards = BoardManager.get().getCurrentBoard().getCardsOf(Role.COMPLETED_WORK);\n for (Card card : completedCards) {\n totalLeadTime += (int) DAYS.between(card.getCreationDate(versions), card.getCompletionDate(versions));\n\t\t\ttotalDeliveryRate += card.getStoryPoints();\t\n\n }\n\t\ttotalDeliveryRate = totalDeliveryRate/ (BoardManager.get().getCurrentBoard().getAge()); // avrage of cards delivered per time unit\n\t\ttotalLeadTime = totalLeadTime / completedCards.size(); // avarage time it takes to finish a card\n return Math.round(totalDeliveryRate * totalLeadTime * 100D) / 100D;\n }",
"public double getTotalOwed() {\r\n\t\treturn totalOwedToYou;\r\n\t}",
"public int getInfrastructureCost() {\r\n return infrastructureCost;\r\n }",
"public int numHouses() {\n\t\treturn buildings;\n\t}",
"public double calcTotalCaloriesBurned() {\n double sum = 0.0;\n for (ExerciseModel exercise : exercises) {\n sum += exercise.getCalories();\n }\n\n return sum;\n }",
"private int currentCapacity(){\n int total = 0;\n \n for(int i = Elevator.MIN_FLOOR; i <= Elevator.MAX_FLOOR; i++){\n total += destinedPassengers[i];\n }\n \n return total;\n }",
"public String getTotalAmountOfTicketFlight()\n\t{\n\t\tint sum;\n\n\t\tint departurePriceAtbottom = Integer.parseInt(getDepartureFlightPriceAtBottom().replaceAll(\"[Rs ,]\", \"\"));\n\t\tint returnPriceAtbottom = Integer.parseInt(getReturnFlightPriceAtBottom().replaceAll(\"[Rs ,]\", \"\"));\n\t\t\n\t\twaitForSeconds(5);\n\n\t\tif(driver.getPageSource().contains(\"Return trip discount\")) {\n\t\t\tint dAmount = Integer.parseInt(discountTagAmount.getText().replaceAll(\"[Rs ]\", \"\"));\n\t\t\tsum = (departurePriceAtbottom + returnPriceAtbottom)- dAmount;\n\n\t\t}\n\t\telse \n\t\t{\n\n\t\t\tsum = departurePriceAtbottom + returnPriceAtbottom;\n\t\t}\n\n\n\t\treturn String.valueOf(sum);\n\t}",
"public double getTotalCost() {\n cost = spr.calculateCost();\n return cost;\n }",
"private String money() {\r\n\t\tint[] m =tile.getAgentMoney();\r\n\t\tString out =\"Agent Money: \\n\";\r\n\t\tint total=0;\r\n\t\tint square=(int)Math.sqrt(m.length);\r\n\t\tif(square*square<m.length) {\r\n\t\t\tsquare++;\r\n\t\t}\r\n\t\tfor(int i=0; i<m.length;) {\r\n\t\t\tfor(int j=0; j<square; j++) {\r\n\t\t\t\tif(i<m.length) {\r\n\t\t\t\t\tout=out.concat(String.format(\"%8s\", m[i]+\"\"));\r\n\t\t\t\t\ttotal=total+m[i];\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tj=square;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tout=out.concat(\"\\n\");\r\n\t\t}\r\n\t\tout=out.concat(\"Agent Total: \"+total);\r\n\t\tint companyTotal=0;\r\n\t\tout=out.concat(\"\\n\\nCompany Money: \\n\");\r\n\t\tm=tile.getCompanyMoney();\r\n\t\tsquare=(int)Math.sqrt(m.length);\r\n\t\tif(square*square<m.length) {\r\n\t\t\tsquare++;\r\n\t\t}\r\n\t\tfor(int i=0; i<m.length;) {\r\n\t\t\tfor(int j=0; j<square; j++) {\r\n\t\t\t\tif(i<m.length) {\r\n\t\t\t\t\tout=out.concat(String.format(\"%8s\", m[i]));\r\n\t\t\t\t\tcompanyTotal=companyTotal+m[i];\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tj=square;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tout=out.concat(\"\\n\");\r\n\t\t}\r\n\t\tout=out.concat(\"Company Total: \"+companyTotal);\r\n\t\tout=out.concat(\"\\nTotal total: \"+(total+companyTotal));\r\n\t\tif(total+companyTotal!=tile.getPeopleSize()*tile.getAverageMoney()) {\r\n\t\t\tSTART=false;\r\n\t\t}\r\n\t\treturn out;\r\n\t}",
"public double getmoneyremainingtoSave()\n\t{\n\t\treturn this.getIdealAmount()-this.moneySaved();\n\t}",
"public int calculateBill() {\n\t\treturn chargeVehicle(); \n\t}",
"@Override\n protected double calcTotalCost() {\n \n double totalCost, templateBasicRate = DEFAULT_BASIC_RATE;\n double extraBedrooms = 0, extraBathrooms = 0;\n\n // if there are extra beds/baths\n if (this.getNumBedrooms() > DEFAULT_NUM_BEDROOMS)\n extraBedrooms = this.getNumBedrooms() - DEFAULT_NUM_BEDROOMS;\n\n if (this.getNumBathrooms() > DEFAULT_NUM_BATHROOMS)\n extraBathrooms = this.getNumBathrooms() - DEFAULT_NUM_BATHROOMS;\n\n // multiply basic rate by 1.5 if the total area is >= 3,000 sq ft\n if (this.getTotalArea() >= 3000)\n templateBasicRate *= 1.5;\n\n // calculate total cost\n totalCost = (templateBasicRate + ((800 * extraBedrooms) + (500 * extraBathrooms)));\n\n // add tax\n totalCost += (TAX * totalCost);\n\n return totalCost;\n }",
"public int getMoneyAfterBet() {\n moneyAfterBet = initialBudget - betAmount;\n // initialBudget = moneyAfterBet;\n return moneyAfterBet;\n\n }",
"@External(readonly = true)\t\n\tpublic BigInteger get_excess() {\n\t\t\n\t\tBigInteger positive_excess = BigInteger.ZERO;\n\t\tBigInteger game_developers_amount = BigInteger.ZERO;\n\n\t\tfor(int i= 0; i< this.get_approved_games().size(); i++) {\n\t\t\tAddress game = this.get_approved_games().get(i);\n\t\t\tBigInteger game_excess = this.todays_games_excess.get(game);\n\t\t\tif (game_excess!= null && \n\t\t\t\t\tgame_excess.compareTo(BigInteger.ZERO)>= 0) {\n\t\t\t\tpositive_excess = positive_excess.add(game_excess);\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\tgame_developers_amount = this.game_developers_share.get().multiply(positive_excess);\n\t\tgame_developers_amount = game_developers_amount.divide(BigInteger.valueOf(100L));\n\t\t\n\t\treturn game_developers_amount;\n\t}",
"public BigDecimal sumGoodwillTotal(MaintenanceRequest po){\n\t\tBigDecimal total = new BigDecimal(0.00).setScale(2);\n\t\t\n\t\tfor(MaintenanceRequestTask task : po.getMaintenanceRequestTasks()){\n\t\t\ttotal = total.add(MALUtilities.isEmpty(task.getGoodwillCost()) ? new BigDecimal(0) : task.getGoodwillCost());\n\t\t}\n\t\t\n\t\treturn total;\t\t\n\t}",
"public double getBuildCost() {\n return buildCost;\n }",
"public int getBuildings(){\r\n\t\treturn buildings;\r\n\t}",
"public BigDecimal getSETTLED_PENALTY_AMOUNT() {\r\n return SETTLED_PENALTY_AMOUNT;\r\n }",
"public float getWalkC() {\r\n return costs.get(Transports.WALK);\r\n }",
"@Override\n public double getCost() {\n if (lunch != null && dinner != null) {\n return lunch.getCost() + dinner.getCost();\n }\n return 0;\n }",
"public double getWorth() {\r\n\t\treturn worth;\r\n\t}",
"public double getMoney() {\n\t\treturn totalMoney;\n\t}",
"public int getMoney() {\n return this.budget;\n }",
"public double holdings()\n\t{\n\t\treturn _dblHoldings;\n\t}",
"public int calcTotalPrice(){\r\n\t\tint flightPrice = flight.getFlightPrice();\r\n\t\tint bagPrice = nrBag*LUGGAGE_PRICE;\r\n\t\tthis.totalPrice = bagPrice + nrAdult*flightPrice + nrChildren*1/2*flightPrice;\r\n\t\treturn this.totalPrice;\r\n\t}",
"public double calculateTotalCost() {\n finalTotal = (saleAmount + taxSubtotal + SHIPPINGCOST);\n\n return finalTotal;\n }",
"public long getMoney() {\n return money;\n }",
"public void calculateCost() {\n \tdouble costToShipPack;\n \tint numOfPacks = 1;\n \t\n \tfor(Package p: this.packages) {\n \t\tcostToShipPack = 3 + (p.calcVolume() - 1);\n \t\tthis.totalAmounts.put(\"Package \"+numOfPacks, costToShipPack);\n \t\tnumOfPacks++;\n \t}\n \t\n }",
"private int getTotalPrice() {\n int unitPrice = 0;\n if (((CheckBox) findViewById(R.id.whipped_cream_checkbox)).isChecked()) {\n unitPrice += Constants.PRICE_TOPPING_WHIPPED_CREAM;\n }\n\n if (((CheckBox) findViewById(R.id.chocolate_checkbox)).isChecked()) {\n unitPrice += Constants.PRICE_TOPPING_CHOCOLATE;\n }\n\n unitPrice += Constants.PRICE_PER_COFFEE;\n return getNumberOfCoffees() * unitPrice;\n }",
"public BigDecimal getTotalTransactrateMoney() {\n return totalTransactrateMoney;\n }",
"public int getTotalSupply() {\n if (this.totalSupply == -1) {\n int tempTotalSupply = 0;\n for (G good : this.goods) {\n tempTotalSupply += good.getSupply();\n }\n this.totalSupply = tempTotalSupply;\n }\n return this.totalSupply;\n }",
"public Integer costOfDepartment() {\n Integer total = 0;\n for (Manager manager :\n departmentHeads) {\n total += manager.costOfTeam();\n }\n return total;\n }",
"public double getDepositAmount()\n\t{\n\t\treturn this.getFlightCosts() + this.totalPrice * this.half;\n\t}",
"public BigDecimal getTotalAmountDue() {\n\t\treturn totalAmountDue;\n\t}",
"public double usageCost() {\r\n double totalCost = 0;\r\n for (Booking aBooking: getBookings()) {\r\n long diff = (aBooking.getDateTo().getTime() \r\n - aBooking.getDateFrom().getTime());\r\n int noOfDays = (int) ((diff / (1000 * 60 * 60 * 24)) + 1);\r\n totalCost += noOfDays * 50;\r\n }\r\n return totalCost;\r\n }",
"int getChestsAmount();",
"public double calculateNetPay() {\r\n return net_pay = grosspay - Statetax - Fedtax; }",
"public Double getBranchTotalCost() {\n var totalCost = 0D;\n if (parent != null) {\n totalCost += parent.getBranchTotalCost();\n }\n if (item != null) {\n totalCost += item.getCost();\n }\n\n return totalCost;\n }",
"@Override\n public String getTotalSavings() {\n\n setLogString(\"Get total Savings Amount\", true, CustomLogLevel.HIGH);\n final String savingsValue = getElement(getDriver(), By.className(SAVINGS_DOLLARS),\n TINY_TIMEOUT).getText();\n setLogString(\"Total Savings :\" + savingsValue, true, CustomLogLevel.LOW);\n return savingsValue;\n }",
"public double getBankMoney(){\n double total = 0.0;\n for(Coin c : bank){\n total += c.getValue();\n }\n return total;\n }",
"public double calcCost(){\n double cost = 0;\n cost += pMap.get(size);\n cost += cMap.get(crust);\n //Toppings are priced at 3.00 for 3-4 topppings, and 4.0 for 5+ toppings\n \n if(toppings !=null)\n {\n if((toppings.length == 3) || (toppings.length == 4)){\n cost += 3.0;\n }\n if (toppings.length > 4){\n cost += 4.0;\n }\n }\n \n return cost;\n }",
"public static BigDecimal calcTotalMoney()\n {\n SharedPreferences defaultSP;\n defaultSP = PreferenceManager.getDefaultSharedPreferences(MainActivity.mActivity);\n manualTime = Integer.valueOf(defaultSP.getString(\"moneyMode\", \"4\"));\n boolean plus = PolyApplication.plus;\n PolyApplication app = ((PolyApplication) MainActivity.mActivity.getApplication());\n\n if(!plus)\n {\n\n if (manualTime == 4 && app.user.getMeals() > 0)\n {\n today.setToNow();\n int minutes = (today.hour * 60) + today.minute;\n if (minutes >= 420 && minutes <= 599)\n {\n money = mealWorth[0];\n } else if (minutes >= 600 && minutes <= 1019)\n {\n money = mealWorth[1];\n } else if (minutes >= 1020 && minutes <= 1214)\n {\n money = mealWorth[2];\n } else\n {\n money = mealWorth[3];\n }\n return money.subtract(moneySpent).setScale(2);\n } else if(app.user.getMeals() > 0)\n {\n return mealWorth[manualTime].subtract(moneySpent).setScale(2);\n }\n else\n {\n return new BigDecimal(0.00).subtract(moneySpent).setScale(2);\n }\n }\n else\n {\n return ((PolyApplication) MainActivity.mActivity.getApplication()).user.getPlusDollars().subtract(moneySpent);\n }\n }",
"public static int getSupplyTotal() {\n return Atlantis.getBwapi().getSelf().getSupplyTotal() / 2;\n }",
"public double getmoneySaved()\n\t{\n\t\treturn this.getincome()-this.getexpense();\n\t}",
"public double sumTransactions() {\n\t\treturn checkIfTransactionsExist(true);\n\t}",
"Double getTotalSpent();",
"double calculateCost() {\n double cost = 0;\n InspectionDTO[] DTOArray = this.currentInspectionChecklist.inspectionDTOArray;\n for (int i = 0; i <= DTOArray.length - 1; i++) {\n cost += DTOArray[i].getCost();\n }\n return cost;\n }",
"public double getTotal() {\n return totalCost;\n }",
"public int totalCost()\n {\n int cost = 0;\n for (DessertItem item : dessertList) {\n cost += item.getCost();\n }\n return cost;\n }",
"protected double getNumWithdrawals() {\n return numWithdrawals;\n }",
"public java.math.BigDecimal getTotalCost () {\n\t\treturn totalCost;\n\t}",
"public double getMoney() {\n return money_;\n }",
"public double getMoney() {\n return money_;\n }",
"private void checkBuildHouse() {\n\t\tdouble moneyToSpend = calculateMoneyToSpend();\n\t\tif(moneyToSpend > 0) {\n\t\t\tArrayList<PropertyCard> cardsToBuildOn = new ArrayList<>();\n\t\t\tfor(PropertyCard c: getCards()) {\n\t\t\t\tif(isCollectionFull(c)) {\n\t\t\t\t\tcardsToBuildOn.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Sorts so that the most expensive properties are at the start\n\t\t\tCollections.sort(cardsToBuildOn, Collections.reverseOrder());\n\t\t\tint moneySpent = 0;\n\t\t\tfor(PropertyCard c: cardsToBuildOn) {\n\t\t\t\twhile(c.getHousePrice()+moneySpent<=moneyToSpend && c.hasSpaceForHouse()) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, getName()+ \" built a house on \" + c.getName());\n\t\t\t\t\tbuildHouse(c);\n\t\t\t\t\tmoneySpent+=c.getHousePrice();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public int getAmountBought() {\n //System.out.println(clientName + \" has bought \" + amountBought + \" shares of \" + companyName);\n return amountBought;\n }",
"double calculateDeliveryCost(Cart cart);",
"public double getTotalCost(){\r\n\t\t//return the totalCost to the App\r\n\t\treturn totalCost;\r\n\t}",
"@Override\n\tpublic double sumMoney() {\n\t\treturn ob.sumMoney();\n\t}",
"public int getWorth()\n {\n return worth;\n }",
"public void spendAllMoney() {\n\t\tcurrentBalance = 0;\n\t}",
"public void calculateCost()\n\t{\n\t\tLogManager lgmngr = LogManager.getLogManager(); \n\t\tLogger log = lgmngr.getLogger(Logger.GLOBAL_LOGGER_NAME);\n\t\tString s = \"\";\n\t\tint costperfeet = 0;\n\t\tif (this.materialStandard.equals(\"standard materials\") && this.fullyAutomated == false)\n\t\t\tcostperfeet = 1200;\n\t\telse if (this.materialStandard.equals(\"above standard materials\") && this.fullyAutomated == false)\n\t\t\tcostperfeet = 1500;\n\t\telse if(this.materialStandard.equals(\"high standard materials\") && this.fullyAutomated == false)\n\t\t\tcostperfeet = 1800;\n\t\telse if (this.materialStandard.equals(\"high standard materials\") && this.fullyAutomated == true)\n\t\t\tcostperfeet = 2500;\n\t\t\n\t\tint totalCost = costperfeet * this.totalArea;\n\t\t/*s = \"Total Cost of Construction is :- \";\n\t\twriter.printf(\"%s\" + totalCost, s);\n\t\twriter.flush();*/\n\t\tlog.log(Level.INFO, \"Total Cost of Construction is :- \" + totalCost);\n\t}",
"public int getMoney() {\n \t\treturn money;\n \t}",
"private double calculateMoneyToSpend() {\n\t\tdouble moneyToSpend = getMoney();\n\t\tif(moneyToSpend < 300) {\n\t\t\tmoneyToSpend = 0;//We do not want the player to go below 200E\n\t\t}\n\t\telse if(moneyToSpend < 500) {\n\t\t\tmoneyToSpend *= 0.34;\n\t\t}\n\t\telse if(moneyToSpend < 1000) {\n\t\t\tmoneyToSpend*= 0.4;\n\t\t}\n\t\telse if(moneyToSpend < 1500) {\n\t\t\tmoneyToSpend*= 0.5;\n\t\t}\n\t\telse if(moneyToSpend < 2000) {\n\t\t\tmoneyToSpend*= 0.6;\n\t\t}\n\t\telse {\n\t\t\tmoneyToSpend*= 0.7;\n\t\t}\n\t\treturn moneyToSpend;\n\t}",
"public int getBuildings() {\r\n\t\treturn this.buildings;\r\n\t}",
"double getTotalCost();",
"public double getTotalCost() {\r\n return totalCost;\r\n }",
"@Override\n public double getTotalCommission() {\n double cost = 0.0;\n //increase cost for each report in the order\n for (Report report : reports.keySet()) {\n //report cost depends on the WorkType\n //audits are not capped by max employee count\n //regular orders are limited by max employee count\n int employeeCount = reports.get(report);\n cost += workType.calculateReportCost(report, employeeCount);\n }\n //increase cost of order based on priority\n //critical orders increase based on their critical loading\n //regular orders don't have an effect\n cost = priorityType.loadCost(cost);\n return cost;\n }",
"public double getMoney() {\n\t\treturn money;\n\t}",
"public double getMoney() {\n\t\treturn money;\n\t}",
"public int totalCostOfComponents( ){\n\t\tint total=0;\n\t\tfor (Component temp : components){\n\t\t\ttotal+=temp.getCost();\n\t\t}\n\t\treturn total;\n\t}",
"public double cost() {\n return roomType.cost() + COST;\n }",
"public int getToalCoins()\n\t{\n\t\treturn CoinCount;\n\t}",
"public BigDecimal getWithdrawMoney() {\n return withdrawMoney;\n }",
"double getTodaysExpenditureAmount() {\n Long time = new Date().getTime();\n Date date = new Date(time - time % (DAY_DURATION));\n return getExpenditureAmount(date.getTime(), date.getTime() + (DAY_DURATION));\n }",
"public double getCheckingBalance() {\n return checkingBalance;\n }",
"public int getTotalCoins() {\r\n\t\treturn goods.get(Resource.COIN);\r\n\t}",
"public int getMoney() {\n return wallet.getMoney();\n }",
"public void calculateStreetLength(){\r\n\t\tBigDecimal streetLength = BigDecimal.ZERO;\r\n\t\tBigDecimal streetLength_old = BigDecimal.ZERO;\r\n\t\t\r\n\t\tRegion[][] regions = Map.getInstance().getRegions();\r\n\t\t\t\r\n\t\t//iterate trough all regions and streets\r\n\t\tfor(int i = 0; i < regions.length; i++){\r\n\t\t\tfor(int j = 0; j < regions[i].length; j++){\r\n\t\t\t\tStreet[] tmpStreets = regions[i][j].getStreets();\r\n\t\t\t\tfor(int k = 0; k < tmpStreets.length; k++){\t\r\n\t\t\t\t\tstreetLength_old = new BigDecimal(streetLength.toString());\r\n\t\t\t\t\tstreetLength = streetLength_old.add(BigDecimal.valueOf(tmpStreets[k].getLength()));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\tstreetLength_old = new BigDecimal(streetLength.toString());\r\n\t\tstreetLength = streetLength_old.divide(new BigDecimal(100000));\r\n\t\t\t\r\n\t\tJOptionPane.showMessageDialog(null, streetLength.toPlainString() + \"km\", \"Information\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\r\n\t}",
"public BigDecimal sumCostAvoidanceTotal(MaintenanceRequest po){\n\t\tBigDecimal total = new BigDecimal(0.00).setScale(2);\n\t\t\n\t\tfor(MaintenanceRequestTask task : po.getMaintenanceRequestTasks()){\n\t\t\ttotal = total.add(MALUtilities.isEmpty(task.getCostAvoidanceAmount()) ? new BigDecimal(0) : task.getCostAvoidanceAmount());\n\t\t}\n\t\t\n\t\treturn total;\t\t\n\t}",
"public int getMoney() {\r\n\t\treturn money;\r\n\t}",
"public int getMoney() {\r\n\t\treturn money;\r\n\t}",
"public double calculateShipping() {\n shipAmount = (SHIPPINGCOST);\n\n return shipAmount;\n }",
"public int getMoney() {\n return money_;\n }",
"public double calcTotal(){\n\t\tdouble total; // amount to be returned\n\t\t\n\t\t// add .50 cents for any milk that isn't whole or skim, and .35 cents for flavoring\n\t\tif ((milk != \"whole\" && milk != \"skim\") && flavor != \"no\"){\n\t\t\tcost += 0.85;\t\n\t\t}\n\t\t\n\t\t// add .35 cents for flavoring\n\t\telse if (flavor != \"no\"){\n\t\t\tcost += 0.35;\t\n\t\t}\n\t\t\n\t\t// add .50 cents for milk that isn't whole or skim\n\t\telse if (milk != \"whole\" && milk != \"skim\"){\n\t\t\tcost += 0.50;\n\t\t}\n\t\t\n\t\telse{\n\t\t}\n\t\t\n\t\t// add .50 cents for extra shot of espresso\n\t\tif (extraShot != false){\n\t\t\ttotal = cost + 0.50;\n\t\t}\n\t\telse\n\t\t\ttotal = cost;\n\t\t\n\t\treturn total;\n\t}",
"public double getBillTotal(){\n\t\treturn user_cart.getBillTotal();\n\t}",
"public double getSavingsBalance() {\n return savingsBalance;\n }",
"public BigDecimal getTotalDue() {\n\t\treturn totalDue;\n\t}",
"public Integer getTotalHouseholds() {\r\n\t\t// Default to return a total of 0 households in case Data stores nothing\r\n\t\tint totalHouseholds = 0;\r\n\t\t\r\n\t\t// Iterator to cycle through all data to calculate total households.\r\n\t\tIterator<Data> incomes = this.data.values().iterator();\r\n\t\t\r\n\t\twhile(incomes.hasNext()) {\r\n\t\t\ttotalHouseholds += incomes.next().getHouseholds();\r\n\t\t}\t// end while\r\n\t\t\r\n\t\treturn totalHouseholds;\r\n\t}",
"double getMoney();",
"public double getExitingCosts(){\r\n\t\t\r\n\t\treturn exitingCosts;\r\n\t\t\r\n\t}",
"@Override\n public long totalBalances() {\n long total = 0;\n for(Account account : accounts.values()){\n total += account.balance();\n }\n return total;\n }"
] | [
"0.6279729",
"0.60444814",
"0.60194296",
"0.59497905",
"0.5851538",
"0.58417606",
"0.58361506",
"0.5812234",
"0.5788804",
"0.57769835",
"0.57609874",
"0.57587713",
"0.5726394",
"0.5691",
"0.56789064",
"0.5669882",
"0.56186885",
"0.56126565",
"0.56100893",
"0.5607708",
"0.56043154",
"0.5594734",
"0.5583448",
"0.55820096",
"0.55787754",
"0.55666274",
"0.55618334",
"0.55522287",
"0.5551167",
"0.5547536",
"0.55321056",
"0.5513595",
"0.5508545",
"0.5500686",
"0.5500199",
"0.5498643",
"0.54984313",
"0.5492274",
"0.54891247",
"0.5484611",
"0.54814655",
"0.54774976",
"0.54721326",
"0.5470195",
"0.54603934",
"0.545826",
"0.5450608",
"0.5450195",
"0.5442717",
"0.54369116",
"0.54369044",
"0.5433803",
"0.54325014",
"0.54229075",
"0.54194015",
"0.54122794",
"0.5411911",
"0.5409247",
"0.54074425",
"0.54035264",
"0.5394211",
"0.5390354",
"0.5388703",
"0.53853333",
"0.53849876",
"0.5381692",
"0.5380187",
"0.53680587",
"0.53647935",
"0.5360298",
"0.5358862",
"0.53475624",
"0.534603",
"0.53379196",
"0.53375095",
"0.5334352",
"0.53319967",
"0.53311867",
"0.53311867",
"0.5322619",
"0.53225523",
"0.53209203",
"0.5315265",
"0.5307604",
"0.5296545",
"0.52960694",
"0.5294253",
"0.52933776",
"0.52907944",
"0.5290354",
"0.5290354",
"0.5288354",
"0.5286309",
"0.5286175",
"0.5285464",
"0.5285339",
"0.5284285",
"0.527886",
"0.52766293",
"0.5272756",
"0.5268973"
] | 0.0 | -1 |
Propagates a global change in tension down to a settlement. Only apply the change if the settlement is aware of the player causing alarm. | public abstract boolean propagateAlarm(Player player, int addToAlarm); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void sharplyChange(){\r\n\t\t\tgovernmentLegitimacy -= 0.3;\r\n\t\t}",
"public static void decreaseDifficaulty() {\r\n\t\tif (Enemy._timerTicker < 70)\r\n\t\t\tEnemy._timerTicker += 3;\r\n\t\tif (Player._timerTicker > 4)\r\n\t\t\tPlayer._timerTicker -= 2;\r\n\t}",
"public void liftDown() {\n set(m_defaultLiftSpeedDown);\n }",
"private final void maintain(){\n\t\tif(host.getStrength()>MAINTENANCE_COST){\n\t\t\thost.expend(MAINTENANCE_COST);\n\t\t}\n\t\telse{\n\t\t\tkill();\n\t\t}\n\t}",
"private void resetCooldown() {\n nextAttack = tower.getFireFrequency();\n }",
"private PtoPeriodDTO deductTimeOff(PtoPeriodDTO init) {\n\t\tLong totalRequestedHours = (long) 0;\n\t\t\n\t\tList<PtoRequest> ptoRequests = ptoRequestRepository.findPtoRequestsForEmployee(init.getEmployeeId());\n\t\tfor(PtoRequest p : ptoRequests){\n\t\t\ttotalRequestedHours += p.getHoursRequested();\n\t\t}\n\t\t\n\t\tinit.setHoursRemaining(init.getHoursAllowed() - totalRequestedHours);\n\t\t\n\t\t//Also change the accrued hours to reflect this:\n\t\tLong updateAccrued = init.getHoursAccrued() - totalRequestedHours;\n\t\tinit.setHoursAccrued(updateAccrued);\n\t\t\n\t\treturn init;\n\t}",
"public void decay() {\r\n\t\tprotons -= 2;\r\n\t\tneutrons -= 2;\r\n\t}",
"public void pedalDown() {\n\t\tsynthChannel.controlChange(MusicManager.PEDAL_ID, MusicManager.PEDAL_ON);\n\t}",
"public void liftOff() {\n\t\tL.trace(\"liftOff\");\n\t\tif (canFly()) {\n\t\t\tjump();\n\t\t}\n\t}",
"public void setAsDown () \n\t{ \n\t\tn.setFailureState(false);\n\t\tfinal SortedSet<WLightpathRequest> affectedDemands = new TreeSet<> ();\n\t\tgetOutgoingFibers().forEach(f->affectedDemands.addAll(f.getTraversingLpRequestsInAtLeastOneLp()));\n\t\tgetIncomingFibers().forEach(f->affectedDemands.addAll(f.getTraversingLpRequestsInAtLeastOneLp()));\n\t\tfor (WLightpathRequest lpReq : affectedDemands)\n\t\t\tlpReq.internalUpdateOfRoutesCarriedTrafficFromFailureState();\n\t}",
"public void decay()\n\t{\n\t\tprotons -= 2;\n\t\tneutrons -= 2;\n\t}",
"@Override\r\n\tpublic double deductAccountMaintenanceFee() {\n\t\tif (this.getBalance() < 250.0)\r\n\t\t\treturn super.withdraw(250.0);\r\n\t\telse \r\n\t\t\treturn this.getBalance();\r\n\t\t\r\n\t}",
"public void pedalUp() {\n\t\tsynthChannel.controlChange(MusicManager.PEDAL_ID, MusicManager.PEDAL_OFF);\n\t}",
"private void updateTerritoriesHold(Player player) {\n getTerritories(player)\n .forEach(Territory::reduceCompetence);\n\n getTerritories(player).stream()\n .filter(Territory::isArmyTotalPowerUnderThreshold)\n .forEach(this::releaseTerritory);\n //Territory::eliminateThisWeakArmy);\n //activateEventsHandler();\n }",
"public void doubleDown(){\n\t\ttotalMoney -= bet;\n\t\tbet += bet;\n\t}",
"public void detonate()\r\n\t{\r\n\t\tdetonated = true;\r\n\t}",
"public void liftUp(){\n set(m_defaultLiftSpeedUp);\n }",
"public void turnOff(){\n vendingMachine = null;\n Logger.getGlobal().log(Level.INFO,\" Turning Off...\");\n }",
"private void exitCombatPlayerDefeat(){\n\t\tCheckpoint.load();\r\n\t\t//GlobalGameState.setActiveGameState(GameStates.DEFEAT);\r\n\t\tGSTransition.getInstace().prepareTransition( GameStates.DEFEAT );\r\n\t\tGlobalGameState.setActiveGameState(GameStates.TRANSITION);\r\n\t}",
"public void turnStrobeOff(){\n Intent stop_strobe_intent = new Intent(FlareConstants.STOP_STROBE);\n stop_strobe_intent.putExtra(FlareConstants.STOP_STROBE, FlareConstants.STOP_STROBE);\n LocalBroadcastManager.getInstance(this).sendBroadcast(stop_strobe_intent);\n Log.d(TAG, \"Sent stop strobe intent broadcast\");\n }",
"private void penguinStormReaction(){\n if(obstacle.getUserData().getAssetId().equals(OBSTACLE_CLOUD_ASSETS_ID)){\n if(penguin.isFrightStopped()){\n obstacle.setStormRaining(false);\n }else{\n obstacle.setStormRaining(true);\n }\n }\n }",
"void decreaseStrength() {\n if (this.strokeStrength - 0.25 >= 1) {\n this.strokeStrength -= 0.25;\n }\n this.updateAcc();\n this.updateStick();\n }",
"public void noteOff()\n\t{\n\t\ttimeFromOff = 0f;\n\t\tisTurnedOff = true;\n\t}",
"public void deactivateAbility(LevelManager lm){\n\n int prevDamage = lm.player.getDamage();\n int newDamage = prevDamage-12;\n lm.player.setDamage(newDamage);\n }",
"public void buyDecreaseDamage() {\n this.decreaseDamage++;\n }",
"public void updatePatience(){\n Patience = Patience - 1;\n }",
"public void onExemptChanged(AppStateTracker sender) {\n updateAllJobs();\n unblockAllUnrestrictedAlarms();\n }",
"public synchronized void applyFee() {\r\n balance -= FEE;\r\n }",
"private void decrementOpponentRechargeTimes()\n\t{\n\t\tfor (Map.Entry<Skills, Integer> pair : rechargingOpponentSkills.entrySet())\n\t\t{\n\t\t\tint val = pair.getValue();\n\t\t\tSkills s = pair.getKey();\n\t\t\t\n\t\t\tif (val > 0)\n\t\t\t{\n\t\t\t\trechargingOpponentSkills.put(s, --val);\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void flingEffect(Battle b, ActivePokemon pelted) {\n removeLevitation(b, pelted);\n }",
"public void depreciate(){\r\n float amountN = getAmount();\r\n float reduce = amountN*(rate/100);\r\n amountN = amountN - reduce;\r\n this.amount = amountN;\r\n }",
"private void suspend()\n {\n Player target = p.getServer().getPlayer(targetID);\n if (target == null)\n {\n kill();\n return;\n }\n\n addAdditionalEffects();\n\n // suspend them in the air\n originalLocation = target.getLocation();\n Location newLoc = target.getEyeLocation();\n Location suspendLoc = new Location(newLoc.getWorld(), newLoc.getX(), newLoc.getY(), newLoc.getZ(), originalLocation.getYaw(), 45);\n target.teleport(suspendLoc);\n\n suspended = true;\n }",
"public void setRemainingAir ( int ticks ) {\n\t\texecute ( handle -> handle.setRemainingAir ( ticks ) );\n\t}",
"@Test\n public void testRoundsDown() throws Exception {\n gm.setPlayerInfo(clientPlayer2);\n gm.setThisPlayerIndex(clientPlayer2.getPlayerIndex());\n for (ResourceType type : ResourceType.values()) {\n assertEquals(0, getAmounts().getOfType(type));\n }\n assertEquals(4, dc.getMaxDiscard());\n dc.increaseAmount(ResourceType.WHEAT);\n dc.increaseAmount(ResourceType.BRICK);\n dc.increaseAmount(ResourceType.BRICK);\n dc.increaseAmount(ResourceType.ORE);\n // This increase should not work\n dc.increaseAmount(ResourceType.ORE);\n assertEquals(1, getAmounts().getOfType(ResourceType.WHEAT));\n assertEquals(2, getAmounts().getOfType(ResourceType.BRICK));\n assertEquals(1, getAmounts().getOfType(ResourceType.ORE));\n }",
"public void suspend()\r\n {\r\n chargeStatus = STATUS_NOT_CHARGING;\r\n connectionStatus = STATUS_OFFLINE;\r\n timerStop(); //...Suspends the update timer. \r\n }",
"private void tickIsInProduction() {\n if (this.timeInState == this.unitInfo.getProductionTime() - 1) {\n this.player.setSuppliesMax(this.player.getSuppliesMax() + this.unitInfo.getSuppliesGain());\n changeState(this.unitInfo.getUnitStateAfterProduction());\n \n if (this.producer != null)\n this.producer.changeState(UnitState.HOLD);\n }\n \n }",
"public void resetPlayerWeather ( ) {\n\t\texecute ( handle -> handle.resetPlayerWeather ( ) );\n\t}",
"public void blackout(TimePeriod t) {\n\t\t\n\t}",
"private void turnOffAirCond(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_turnOffAirCond\n\n this.selectedTrain.setAC(0);\n this.operatingLogbook.add(\"Turned off AC.\");\n this.printOperatingLogs();\n }",
"public void setToDefualts(){\n\t\tchangeInPlayerHealth = 0;\n\t\tchangeInPlayerScore = 0;\n\t\tchangInBatteryCharge = 0;\n\t\tpuaseForAnimation = false;\n\t}",
"public void apply() {\r\n\tif (currentEffect != null)\r\n\t currentEffect.removeFrom(kingdom);\r\n\r\n\tif (isVacant())\r\n\t currentEffect = penalty;\r\n\telse\r\n\t currentEffect = bonus;\r\n\r\n\tcurrentEffect.applyTo(kingdom);\r\n }",
"public void powerOff() \n\t{\n\t\tif(active)\n\t\t{\n\t\t\tif (FactoryModPlugin.LEVER_OUTPUT_ENABLED) {\n\t\t\t\tsetActivationLever(false);\n\t\t\t}\n\t\t\t\n\t\t\t//lots of code to make the furnace turn off, without loosing contents.\n\t\t\tFurnace furnace = (Furnace) factoryPowerSourceLocation.getBlock().getState();\n\t\t\tbyte data = furnace.getData().getData();\n\t\t\tItemStack[] oldContents = furnace.getInventory().getContents();\n\t\t\tfurnace.getInventory().clear();\n\t\t\tfactoryPowerSourceLocation.getBlock().setType(Material.FURNACE);\n\t\t\tfurnace = (Furnace) factoryPowerSourceLocation.getBlock().getState();\n\t\t\tfurnace.setRawData(data);\n\t\t\tfurnace.update();\n\t\t\tfurnace.getInventory().setContents(oldContents);\n\t\t\t\n\t\t\t//put active to false\n\t\t\tactive = false;\n\t\t\t//reset the production timer\n\t\t\tcurrentProductionTimer = 0;\n\t\t}\n\t}",
"public void removeMoney(int x)\n\t{\n\t\tsomethingChanged = true;\n\t\tmoney -= x;\n\t}",
"public void fundClosed(int time, int yourRevenue, int partnerRevenue) {\n /* Do nothing */\n }",
"public final void downTime() {\n RxDisposableManager.getInstance().add(getTAG(), Observable.interval(0, 1, TimeUnit.SECONDS).take(61).compose(RxUtil.applyIO()).subscribe(new CouponGetActivity$downTime$sub$1(this)));\n }",
"public void deductLife() {\n\t\t\n\t\t// If player01 is currently active.. \n\t\tif(player01.getIsCurrentlyPlaying()) {\n\t\t\t\n\t\t\t// Deduct a life.\n\t\t\tplayer01.deductlife();\n\t\t\t\n\t\t\t// Display message.\n\t\t\tSystem.out.println(\"Player 01 has lost a life!\");\n\t\t\tSystem.out.println(\"Player 01 Lives Left: \" + player01.getPlayerLives());\n\t\t\t\n\t\t\t// If all player 01's lives are lost..\n\t\t\tif(player01.getPlayerLives() == 0){\n\t\t\t\t\n\t\t\t\t// Invoke\n\t\t\t\tallPlayerLivesAreGone();\n\t\t\t}\n\t\t\t\n\t\t\t// If player02 is currently active.. \n\t\t} else {\n\t\t\t\n\t\t\tplayer02.deductlife();\n\t\t\tSystem.out.println(\"Player 02 has lost a life!\");\n\t\t\tSystem.out.println(\"Player 02 Lives Left: \" + player02.getPlayerLives());\n\t\t\t\n\t\t\tif(player02.getPlayerLives() == 0){\n\t\t\t\tallPlayerLivesAreGone();\n\t\t\t}\n\t\t}\n\t}",
"public void depleteFood(float dt){\n\t\tthis.foodLevel -= dt* this.starvationRate;\n\t\t\n\t}",
"public void dodge() {\n this.dodgeCoolDown = true;\n this.setSpecialState(\"dodge\", 1000); //1sec dodge\n TimedEventQueue.addTask(new TimedTask(this, \"dodgeCoolDownOver\", 4000));\n }",
"public static void teleportAway(ClientContext ctx) {\n Item sceptre = ctx.inventory.select().id(Items.SKULL_SCEPTRE_I_21276).poll();\n\n if (sceptre.valid()) {\n sceptre.interact(\"Invoke\", sceptre.name());\n sleep(3000);\n } else {\n // Teletab\n Item tab = ctx.inventory.select().select(new Filter<Item>() {\n @Override\n public boolean accept(Item item) {\n return item.name().toLowerCase().contains(\"teleport\");\n }\n }).poll();\n\n if (tab.valid()) {\n tab.click();\n } else {\n // Glory Teleport\n ctx.game.tab(Game.Tab.EQUIPMENT);\n Item ammy = ctx.equipment.itemAt(Equipment.Slot.NECK);\n if (ammy.name().toLowerCase().contains(\"glory\")) {\n ammy.interact(\"Edgeville\");\n sleep(4000);\n }\n }\n }\n }",
"public void decrementRechargeTimes();",
"public void rescueMode() {\n // if water level risks reaching M1 or M2 go to emergencyStopMode()\n if (nearMaxRescue() || this.waterLevel <= 0) {\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.EMERGENCY_STOP));\n this.mode = State.EMERGENCY_STOP;\n emergencyStopMode();\n }\n\n // checks to see if water level has been repaired.\n if (extractOnlyMatch(MessageKind.LEVEL_REPAIRED, this.incoming) != null) {\n this.outgoing.send(new Message(MessageKind.LEVEL_REPAIRED_ACKNOWLEDGEMENT));\n System.out.println(this.prevRescueMode);\n this.mode = this.prevRescueMode;\n if (this.mode.equals(State.NORMAL)) {\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.NORMAL));\n this.waterLevel = this.levelMessage.getDoubleParameter();\n return;\n }\n\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.DEGRADED));\n this.waterLevel = this.levelMessage.getDoubleParameter();\n return;\n\n }\n\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.RESCUE));\n int noOfPumps = estimatePumps(this.steamMessage.getDoubleParameter(), this.waterLevel);\n this.waterLevel = this.rescueWaterEstimate;\n turnOnPumps(noOfPumps);\n\n // if transmissionFailure go to emergencyStopMode()\n\n }",
"public void stay() {\n energy -= 0.01;\n if (energy < 0) {\n energy = 0;\n }\n }",
"public void minusShield(int down) {\n\t\tshieldLevel -= down;\n\t}",
"public void raiseFoodFlag(){\n\t\tif(foodFlag != true && amountWorms > 0){\n\t\t\tfoodFlag = true;\n\t\t\tsw.getInstance(this);\n\t\t\tamountWorms--;\n\t\t\tAquaFrame.initWormStatus(amountWorms);\n\t\t}\n\t\telse{\n\t\t\tint num = 0;\n\t\t\tif(amountWorms == 0){\n\t\t\t\tupdate();\n\t\t\t}\n\t\t}\n\t}",
"public void deactivatePowerup()\r\n\t{\r\n\t\thasPowerup = false;\r\n\t\tcurrentPowerup = null;\r\n\t}",
"public void hunterStopCarrying(DPlayer hunter, boolean atWill){\n hunter.getPlayerState().setCarrying(false);\n\n if (!atWill){\n hunterStunned(hunter);\n }\n }",
"@Override\n\t@Transactional(rollbackFor=Exception.class, propagation=Propagation.REQUIRES_NEW)\n\tpublic void BackMoney(DelayTransfer delayTransfer) {\n\t\t\n\t\tif (delayTransfer.getTransactionStatus() != AsnyTransStatusEnum.UN_TRANS.getCode()) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tCard exitOutCard = cardMapper.getCardByCardNumForUpdate(delayTransfer.getOutCardNum());\n\t\tif (null == exitOutCard) {\n\t\t\tthrow new AtmException(\"卡号不存在 转账支出回滚失败\");\n\t\t}\n\t\t\n\t\tint rows = cardMapper.updateBalanceByCardNum(delayTransfer.getInCardNum(), delayTransfer.getAmount());\n\t\tif (1 != rows) {\n\t\t\tthrow new AtmException(\"转账支出回滚失败\");\n\t\t}\n\t\t\n\t\tdelayTransfer.setTransactionStatus(AsnyTransStatusEnum.QUITTRANSFER.getCode());\n\t\trows = delayTransferMapper.updateStatus(delayTransfer);\n\t\tif (1 != rows) {\n\t\t\tthrow new AtmException(\"转账支出回滚失败\");\n\t\t}\n\t\t\n\t\tDetail detail = new Detail();\n\t\tdetail.setAmount(delayTransfer.getAmount());\n\t\tdetail.setCardNum(exitOutCard.getCardNum());\n\t\tdetail.setStatus(StatusEnum.USABLE.getCode());\n\t\tdetail.setOptType(OptType.BACK_MONEY.getCode());\n\t\tdetail.setUserId(exitOutCard.getUserId());\n\t\tdetail.setFlowDesc(\"转账支出回滚\");\n\t\t\n\t\trows = detailMapper.addDetail(detail);\n\t\tif (1 != rows) {\n\t\t\tthrow new AtmException(\"转账支出回滚流水失败\");\n\t\t}\n\t\t\n\t}",
"@EventHandler\n public void thunderChange(ThunderChangeEvent event) {\n if (event.isCancelled()) {\n return;\n }\n MultiverseWorld world = this.plugin.getMVWorldManager().getMVWorld(event.getWorld().getName());\n if (world != null) {\n // If it's going to start raining and we have weather disabled\n event.setCancelled((event.toThunderState() && !world.isWeatherEnabled()));\n }\n }",
"public void resetFuelWarning();",
"@Test\n public void decreaseWithDiscardLessThan4() {\n gm.setPlayerInfo(clientPlayer4);\n gm.setThisPlayerIndex(clientPlayer4.getPlayerIndex());\n for (ResourceType type : ResourceType.values()) {\n assertEquals(0, getAmounts().getOfType(type));\n }\n assertFalse(dc.getMaxDiscard() >= 4);\n dc.increaseAmount(ResourceType.ORE);\n assertEquals(0, getAmounts().getOfType(ResourceType.ORE));\n dc.decreaseAmount(ResourceType.ORE);\n assertEquals(0, getAmounts().getOfType(ResourceType.ORE));\n }",
"public void raise(){\r\n elevatorTalon1.set(basePWM);\r\n elevatorTalon2.set(basePWM * pwmModifier);\r\n }",
"public void refund(Trooper t) {\n if(t.hasTurned()) {\n if(ArmoredTrooper.class.isInstance(t)) {\n noOfCredits = (long) (noOfCredits + (1.25 *\n Translator.armoredTrooperPrice));\n } else if(PitifulTrooper.class.isInstance(t)) {\n noOfCredits = (long) (noOfCredits + (1.25 *\n Translator.pitifullPrice));\n } else if(TeleportTrooper.class.isInstance(t)) {\n noOfCredits = (long) (noOfCredits + (1.25 *\n Translator.teleporterPrice));\n }\n } else {\n if(ArmoredTrooper.class.isInstance(t)) {\n noOfCredits = (long) (noOfCredits + (0.75 *\n Translator.armoredTrooperPrice));\n } else if(PitifulTrooper.class.isInstance(t)) {\n noOfCredits = (long) (noOfCredits + (0.75 *\n Translator.pitifullPrice));\n } else if(TeleportTrooper.class.isInstance(t)) {\n noOfCredits = (long) (noOfCredits + (0.75 *\n Translator.teleporterPrice));\n }\n }\n }",
"private void endFreeze(Player player) {\r\n\t\tFrozenPlayerInfo info = frozenPlayers.remove(player.getUniqueId());\r\n\r\n\t\t// Again, two packets are sent, though we do not modify them this time.\r\n\t\tplayer.setAllowFlight(info.allowFlight);\r\n\t\tplayer.setFlying(info.isFlying);\r\n\t}",
"public void takeBetBack() {\n\t\ttotalMoney += bet;\n\t}",
"public void descend()\n {\n lift.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.FLOAT);\n extend.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.FLOAT);\n\n latch.release();\n\n lift.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n extend.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n intake.deploy();\n }",
"private void subtractPlayerMissile() {\n this.playerMissile -= 1;\n }",
"public void specialEffect() {\n if (getDefense() > 0) {\n setDefense(0);\n setCurrentHealth(currentHealth + 50);\n }\n\n }",
"public void setCombatTask() {\n\t\tif (this.level != null && !this.level.isClientSide) {\n\t\t\tthis.goalSelector.removeGoal(this.aiAttackOnCollide);\n\t\t\tthis.goalSelector.removeGoal(this.aiShotgunAttack);\n\t\t\tItemStack itemstack = this.getItemInHand(ProjectileHelper.getWeaponHoldingHand(this, DeferredRegistryHandler.BLUNDERBUSS.get()));\n\t\t\tif (itemstack.getItem() == DeferredRegistryHandler.BLUNDERBUSS.get()) {\n\t\t\t\tint i = 25;\n\t\t\t\tif (this.level.getDifficulty() != Difficulty.HARD) {\n\t\t\t\t\ti = 45;\n\t\t\t\t}\n\n\t\t\t\tthis.aiShotgunAttack.setAttackCooldown(i);\n\t\t\t\tthis.goalSelector.addGoal(16, this.aiShotgunAttack);\n\t\t\t} else {\n\t\t\t\tthis.goalSelector.addGoal(12, this.aiAttackOnCollide);\n\t\t\t}\n\n\t\t}\n\t}",
"public void rehabilitateSelectedTerritoryArmy(){\n int rehabilitationPrice =getRehabilitationArmyPriceInTerritory(selectedTerritoryByPlayer);\n currentPlayerTurn.decrementFunds(rehabilitationPrice);\n selectedTerritoryByPlayer.rehabilitateConquerArmy();\n eventListener.addEventObject(new PlayerEvent(currentPlayerTurn.getPlayerName(),EventNamesConstants.ArmyRehabilitation));\n }",
"void doNegativeEffect(Skill castSkill, double power, Creature performer, Item target) {\n/* 200 */ performer.getCommunicator().sendNormalServerMessage(\"The \" + target\n/* 201 */ .getName() + \" emits a deep worrying sound of resonance, but stays intact.\", (byte)3);\n/* */ }",
"void cancel(boolean permanent) {\n enabled = false;\n if (permanent && wakeUp != null) {\n wakeUp.cancel(false);\n wakeUp = null;\n }\n }",
"public void resupply()\n {\n fuel = model.maxFuel;\n ammo = model.maxAmmo;\n }",
"@Override\n protected final void onDisconnected() {\n mPilotingItf.cancelSettingsRollbacks()\n .resetLocation()\n .updateCurrentTarget(ReturnHomePilotingItf.Target.TAKE_OFF_POSITION)\n .updateGpsFixedOnTakeOff(false);\n if (!isPersisted()) {\n mPilotingItf.unpublish();\n }\n super.onDisconnected();\n }",
"public void degrade(BankAccount lvl){\n lvl.setState(new Gold());\n }",
"@Override\n\tpublic void disinvite(Party party) throws CTPException {\n\t\t\n\t}",
"private void graduallyChange() {\r\n\t\t\tif(governmentLegitimacy> 0.2) governmentLegitimacy -= 0.01;\r\n\t\t}",
"void decrementTick();",
"@Override\n public void setNotification() {\n if (getTense() == Tense.FUTURE) {\n //Context ctx = SHiTApplication.getContext();\n //SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(ctx);\n\n int leadTimeEventMinutes = SHiTApplication.getPreferenceInt(Constants.Setting.ALERT_LEAD_TIME_EVENT, LEAD_TIME_MISSING);\n\n if (leadTimeEventMinutes != LEAD_TIME_MISSING) {\n if (travelTime > 0) {\n leadTimeEventMinutes += travelTime;\n }\n\n setNotification(Constants.Setting.ALERT_LEAD_TIME_EVENT\n , leadTimeEventMinutes\n , R.string.alert_msg_event\n , getNotificationClickAction()\n , null);\n }\n }\n }",
"public void buyFarm(){\n bought = !bought;\n }",
"@Override\n public void deactivatePowerUp() {\n powerController.updatePowerUpHappening();\n myGame.getStatusDisplay().getMyProgress().updateScoreMultiplier(NORMAL_SCORE_COUNTER);\n }",
"public void degradedMode() {\n\n // if failure of water-level measuring unit got to rescueMode()\n if (waterLevelFailure()) {\n this.outgoing.send(new Message(MessageKind.LEVEL_FAILURE_DETECTION));\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.RESCUE));\n this.mode = State.RESCUE;\n this.prevRescueMode = State.DEGRADED;\n rescueMode();\n return;\n }\n // if water level risks reaching M1 or M2 go to emergencyStopMode()\n if (nearMaxMin()) {\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.EMERGENCY_STOP));\n this.mode = State.EMERGENCY_STOP;\n emergencyStopMode();\n return;\n }\n\n for (int i = 0; i < this.incoming.size(); i++) { // check for fixed messages\n Message msg = this.incoming.read(i);\n if (msg.getKind().equals(MessageKind.PUMP_REPAIRED_n)) {\n int pumpNo = msg.getIntegerParameter();\n this.outgoing.send(new Message(MessageKind.PUMP_REPAIRED_ACKNOWLEDGEMENT_n, pumpNo));\n this.mode = this.prevDegradedMode;\n }\n if (msg.getKind().equals(MessageKind.PUMP_CONTROL_REPAIRED_n)) {\n int pumpNo = msg.getIntegerParameter();\n this.outgoing\n .send(new Message(MessageKind.PUMP_CONTROL_REPAIRED_ACKNOWLEDGEMENT_n, pumpNo));\n this.mode = this.prevDegradedMode;\n\n }\n if (msg.getKind().equals(MessageKind.STEAM_REPAIRED)) {\n this.outgoing.send(new Message(MessageKind.STEAM_REPAIRED_ACKNOWLEDGEMENT));\n this.mode = this.prevDegradedMode;\n }\n }\n\n if (this.mode.equals(State.NORMAL)) {\n this.brokenPumpNo = -1;\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.NORMAL));\n return;\n } else if (this.mode.equals(State.READY)) {\n this.brokenPumpNo = -1;\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.INITIALISATION));\n return;\n } else { // pump water in\n this.waterLevel = this.levelMessage.getDoubleParameter();\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.DEGRADED));\n this.mode = State.DEGRADED;\n int noOfPumps = estimatePumps(this.steamLevel, this.waterLevel);\n turnOnPumps(noOfPumps);\n }\n\n // if transmissionFailure go to emergencyStopMode()\n }",
"private void weakenPlayer(int player, double value) {\n\t\tif (player == LOCAL) {\n\t\t\tif (locStatBonus - value > 0.05) {\n\t\t\t\tlocStatBonus -= value;\n\t\t\t}\n\t\t} else if (player == OPPONENT) {\n\t\t\tif (oppStatBonus - value > 0.05) {\n\t\t\t\toppStatBonus -= value;\n\t\t\t}\n\t\t}\n\t\tweakenPlayerAnimation(player);\n\t}",
"public void payEconomical() {\n if (this.balance >= 2.50) {\n this.balance -= 2.50;\n }\n }",
"void unsetCapitalPayed();",
"@Override\r\n\tpublic void decreaseDomesticTradeResourceAmount(ResourceType resource) {\n\t\t\r\n\t}",
"public void removeTempStatusEffects()\n\t{\n\t\tfor(Pokemon pokemon : getParty())\n\t\t\tif(pokemon != null)\n\t\t\t\tpokemon.removeStatusEffects(false);\n\t}",
"protected void pickupFood() {\r\n\t\tif(this.food > 0){\r\n\t\t\tthis.food--;\r\n\t\t}\r\n\t}",
"public void decay()\n\t{\n\t\tif(object.onDecay())\n\t\t{\n\t\t\tremoveFromRegion();\n\t\t}\n\t}",
"public void deductHealth( int amt) {\n currentHealth = currentHealth - amt;\n }",
"public final void turnOver() {\n this.currentMovementAllowance = this.details.getMaxMovementAllowance();\n this.onTurnOver();\n }",
"public void decrementAmount() {\n this.amount--;\n amountSold++;\n }",
"private AbsTime(boolean t)\n {\n if (!t) {\n itsValue = ASAP_CODE;\n } else {\n itsValue = NEVER_CODE;\n }\n }",
"@Override\n public void tuitionDue()\n {\n // Studies Abroad\n if(isStudyAbroad == true) {\n this.setTuitionDue( Student.UNIVERSITY_FEE + Student.ADDITIONAL_FEE);\n }\n // Full-Time and Credits > 16 and Not Study Abroad\n else if(this.getStatus() == FULL_TIME && this.getCreditHours() > CREDIT_HOURS_MAX && isStudyAbroad == false) {\n this.setTuitionDue(Student.NON_RES_FULL_TIME_TUITION + Student.UNIVERSITY_FEE + Student.ADDITIONAL_FEE +\n Student.NON_RES_PART_TIME_TUITION_RATE * (this.getCreditHours() - CREDIT_HOURS_MAX));\n }\n // Full-Time and Credits Between 12 and 16\n else if(this.getStatus() == FULL_TIME)\n {\n this.setTuitionDue(Student.NON_RES_FULL_TIME_TUITION + Student.UNIVERSITY_FEE + Student.ADDITIONAL_FEE);\n }\n\n double newTuition = (getTuitionDue() - getTotalPayment()) > 0 ? getTuitionDue()-getTotalPayment() : 0;\n this.setTuitionDue(newTuition);\n }",
"public void knockBack(Entity entity, float par2, double par3, double par5, double par6) {\n\t\tif (this.rand.nextDouble() >= this.getEntityAttribute(SharedMonsterAttributes.KNOCKBACK_RESISTANCE).getAttributeValue()) {\n\t\t\tthis.isAirBorne = true;\n\t\t\tfloat f1 = MathHelper.sqrt_double(par3 * par3 + par5 * par5);\n\t\t\tfloat f2 = 0.4F;\n\t\t\tthis.motionX /= 2.0D;\n\t\t\tthis.motionY /= 2.0D;\n\t\t\tthis.motionZ /= 2.0D;\n\t\t\tthis.motionX -= par3 / (double)f1 * (double)f2;\n\t\t\tthis.motionY += (double)f2;\n\t\t\tthis.motionZ -= par5 / (double)f1 * (double)f2;\n\t\t\tif (this.motionY > par6) {\n\t\t\t\tthis.motionY = par6;\n\t\t\t}\n\t\t}\n\t}",
"private void handleSensorDeactivated() {\n if (securityRepository.getAlarmStatus() == AlarmStatus.PENDING_ALARM) {\n setAlarmStatus(AlarmStatus.NO_ALARM);\n }\n// switch (securityRepository.getAlarmStatus()) {\n// case PENDING_ALARM -> setAlarmStatus(AlarmStatus.NO_ALARM);\n// case ALARM -> setAlarmStatus(AlarmStatus.PENDING_ALARM);\n// }\n }",
"@Override\n public void getAttacked(Tower t) {\n if(t.getAttackPower() > this._defencePower){\n int damage = t.getAttackPower() - this._defencePower;\n this._health -= damage;\n _image=t.getAttackImage();\n _BlinkTimer.start();\n }\n\n\n }",
"public void loseMoney(int money) {\n\t\tthis.money = this.money - money;\n\t}",
"private static int playerDamageDealt(int playerAttack, int monsterDefense){\r\n int playerDamageDealt;\r\n playerDamageDealt = (playerAttack - monsterDefense);\r\n return playerDamageDealt;\r\n }",
"void unsetPaymentDelay();",
"public void m12820g() {\n this.f10117d.mo1750d(this.f10114a, m12803a(C1478b.UNMUTE));\n }"
] | [
"0.56732553",
"0.5656096",
"0.55807835",
"0.55327225",
"0.54940265",
"0.5454604",
"0.5445345",
"0.5428469",
"0.5415448",
"0.5396757",
"0.539066",
"0.5384753",
"0.5372698",
"0.5352566",
"0.5326693",
"0.5310642",
"0.5301019",
"0.5259621",
"0.524771",
"0.52285206",
"0.5225769",
"0.52219504",
"0.52185774",
"0.5211729",
"0.5206926",
"0.5196684",
"0.5191243",
"0.5186737",
"0.5177113",
"0.5146285",
"0.51359147",
"0.51346767",
"0.5133681",
"0.5125724",
"0.51064",
"0.50979257",
"0.5094938",
"0.5093317",
"0.509295",
"0.50674003",
"0.5061535",
"0.505228",
"0.50498945",
"0.5043898",
"0.5040327",
"0.5026001",
"0.50197154",
"0.501384",
"0.5013233",
"0.5003338",
"0.49960366",
"0.49886018",
"0.4978963",
"0.49762776",
"0.49722746",
"0.4964563",
"0.4964517",
"0.49455264",
"0.4945196",
"0.4930605",
"0.49285778",
"0.49258658",
"0.4918025",
"0.49176764",
"0.49137366",
"0.49124202",
"0.489974",
"0.4898965",
"0.48986012",
"0.48940927",
"0.4893617",
"0.48914373",
"0.4889786",
"0.48880252",
"0.4884486",
"0.48774263",
"0.4874272",
"0.48683605",
"0.4864328",
"0.48642492",
"0.48617145",
"0.48530066",
"0.4851698",
"0.483713",
"0.4835793",
"0.48341277",
"0.48325866",
"0.48315865",
"0.4820628",
"0.48195657",
"0.4818373",
"0.4817211",
"0.4816",
"0.48146966",
"0.48114482",
"0.48106277",
"0.48043036",
"0.48035792",
"0.48023525",
"0.47982433"
] | 0.49269998 | 61 |
Returns the production of the given type of goods. | public abstract int getProductionOf(GoodsType goodsType); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getNetProductionOf(GoodsType type) {\n update();\n return netProduction.getCount(type);\n }",
"private double generateSellPrice(ShipType type) {\n return type.getPrice();\n }",
"public Salvageable getSalvageable(Material type);",
"public double getSellPrice(ShipType type) {\n return prices.get(type) * SELLPRICEPENALTY;\n }",
"public GoodsType getProducedGoodsType() {\n return produces;\n }",
"Food getByType(String type);",
"private ShopItem ShoppingItem(int type, int money, boolean isBuy) {\n final int RINGMINPRICE = 250;\n final int ITEMMINPRICE = 6;\n String name;\n int price;\n Image icon;\n price = (int) (ITEMMINPRICE * (8.7 + rd.nextDouble()));\n switch (type) {\n case 0:\n name = \"Armour\";\n icon = armourImage;\n break;\n case 1:\n name = \"Helmet\";\n icon = helmetImage;\n break;\n case 2:\n name = \"Potion\";\n icon = potionImage;\n break;\n case 3:\n name = \"Shield\";\n icon = shieldImage;\n break;\n case 4:\n name = \"Stake\";\n icon = stakeImage;\n break;\n case 5:\n name = \"Sword\";\n icon = swordImage;\n break;\n case 6:\n name = \"Staff\";\n icon = staffImage;\n break;\n default:\n name = \"TheOneRing\";\n price = Math.max(RINGMINPRICE, (int) (money * 0.8 + rd.nextDouble() * money * 0.2));\n icon = theOneRingImage;\n }\n if (!isBuy) {\n price *= 0.4;\n }\n return new ShopItem(name, price, icon);\n }",
"public static Product getProduct(PROD_TYPE type, String descr, double price\r\n , DiscountStrategy discount){\r\n if(type==null || descr == null || discount == null){\r\n throw new NullPointerException();\r\n } else if (price < 0){\r\n throw new IllegalArgumentException(PRICE_ERR);\r\n }\r\n switch (type){\r\n case CLOTHING:\r\n lastProdID++;\r\n return new ClothingProduct(lastProdID, descr, price, discount);\r\n default:\r\n return null;\r\n }\r\n \r\n }",
"public Equip getEquip(int type)\r\n {\r\n if (type==Equip.WEAPON)\r\n return weapon;\r\n else if (type == Equip.ARMOR)\r\n return armor;\r\n return null;\r\n }",
"Object getProduct();",
"public Class getType() {\n return SSProduct.class;\n }",
"public Short getGoodsType() {\n return goodsType;\n }",
"public Item getItem(String typeItem){\r\n if(typeItem.equals(\"coeur\")){\r\n Item coeur = new Coeur();\r\n return coeur;\r\n } else if(typeItem.equals(\"potionvie\")){\r\n Item potion = new Potion();\r\n return potion;\r\n } else if(typeItem.equals(\"hexaforce\")){\r\n Item hexa = new Hexaforce();\r\n return hexa;\r\n } else {\r\n return null;\r\n }\r\n }",
"public double getBuyPrice(ShipType type) {\n if (type.getMinTechLevel() > planet.getTechLevel().getValue()) {\n return -1;\n }\n return prices.get(type);\n }",
"public static Product getProduct(PROD_TYPE type, String descr, double price){\r\n if(type==null || descr == null){\r\n throw new NullPointerException();\r\n } else if (price < 0){\r\n throw new IllegalArgumentException(PRICE_ERR);\r\n }\r\n switch (type){\r\n case CLOTHING:\r\n lastProdID++;\r\n return new ClothingProduct(lastProdID, descr, price, new NoDiscount());\r\n default:\r\n return null;\r\n }\r\n \r\n }",
"public ProductType getProduct() {\n return product;\n }",
"public String getType() {\r\n\t\treturn productType;\r\n\t}",
"public static Product createProduct(String type) {\n\n if (type.equals(\"A\")) {\n return new ConctreteProductA();\n }\n\n if (type.equals(\"B\")) {\n return new ConctreteProductB();\n }\n\n throw new UnsupportedOperationException(\"The type: \" + type + \" is incorrect!\");\n }",
"public TypeProduct getTypeProduct() {\r\n\t\treturn typeProduct;\r\n\t}",
"public static Drink makeSale(DrinkTypes type, double cost, String name, SizeTypes sizeType, ArrayList<ToppingsTypes> toppings, int sweetness) {\n\t\tDrink drink = null;\n\t\t\n\t\tswitch(type) {\n\t\tcase Coffee:\n\t\t\tdrink = new Coffee(cost, name, sizeType);\n\t\t\tbreak;\n\t\tcase Tea:\n\t\t\tdrink = new Tea(cost, name, sizeType, sweetness);\n\t\t}\n\n\t\tswitch(sizeType) {\n\t\t\tcase Small:\n\t\t\t\tdrink = new Small(drink);\n\t\t\t\tbreak;\n\t\t\tcase Medium:\n\t\t\t\tdrink = new Medium(drink);\n\t\t\t\tbreak;\n\t\t\tcase Large:\n\t\t\t\tdrink = new Large(drink);\n\t\t\t\tbreak;\n\n\t\t}\n\n\t\tfor(ToppingsTypes t: toppings) {\n\t\t\tswitch(t)\n\t\t\t{\n\t\t\tcase Boba:\n\t\t\t\tdrink = new Boba(drink);\n\t\t\t\tbreak;\n\t\t\tcase ChocolateDrizzle:\n\t\t\t\tdrink = new ChocolateDrizzle(drink);\n\t\t\t\tbreak;\n\t\t\tcase CaramelDrizzle:\n\t\t\t\tdrink = new CaramelDrizzle(drink);\n\t\t\t\tbreak;\n\t\t\tcase LycheeJelly:\n\t\t\t\tdrink = new LycheeJelly(drink);\n\t\t\t\tbreak;\n\t\t\tcase PassFruitJelly:\n\t\t\t\tdrink = new PassFruitJelly(drink);\n\t\t\t\tbreak;\n\t\t\tcase HoneyBoba:\n\t\t\t\tdrink = new HoneyBoba(drink);\n\t\t\t\tbreak;\n\t\t\tcase FreshStrawberries:\n\t\t\t\tdrink = new FreshStrawberries(drink);\n\t\t\t\tbreak;\n\t\t\tcase HalfMilk:\n\t\t\t\tdrink = new HalfMilk(drink);\n\t\t\t\tbreak;\n\t\t\tcase SoyMilk:\n\t\t\t\tdrink = new SoyMilk(drink);\n\t\t\t\tbreak;\n\t\t\tcase WholeMilk:\n\t\t\t\tdrink = new WholeMilk(drink);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn drink;\n\t}",
"public Product createProduct() {\n String code, name;\n int quantity;\n float price;\n String color;\n String producer;\n int productType;\n\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"1. for dairy 2. for color product \");\n productType = scanner.nextInt();\n\n System.out.println(\"Give product Code\");\n code = scanner.next();\n System.out.println(\"Give product Name\");\n name = scanner.next();\n System.out.println(\"Give product Quantity\");\n quantity = scanner.nextInt();\n System.out.println(\"Give product Price\");\n price = scanner.nextFloat();\n\n Product product;\n switch (productType) {\n case 1:\n System.out.println(\"Give producer \");\n producer = scanner.next();\n product = new DairyProduct(code, name, price, quantity, producer);\n return product;\n case 2:\n System.out.println(\"Give color \");\n color = scanner.next();\n product = new ColorProducts(code, name, price, quantity, color);\n return product;\n default: return null;\n }\n }",
"public String getKind_of_product() {\r\n return kind_of_product;\r\n }",
"@Override\n public Double buyDevice(String name, String type) {\n Cash c = null;\n Cheque ch = null;\n Card cd = null;\n \n Date d = new Date();\n \n switch (type) {\n case \"c1\":\n c = new Cash.Builder(d.toString())\n .build();\n break;\n case \"c2\":\n ch = new Cheque.Builder(d.toString())\n .build();\n break;\n case \"c3\":\n cd = new Card.Builder(d.toString())\n .build();\n break;\n }\n \n \n PurchaseVinyl v = new PurchaseVinyl.Builder()\n .setName(\"Let The Good Times Role\")\n .setPrice(3.99)\n .build();\n \n PurchaseVinyl v1 = new PurchaseVinyl.Builder()\n .setName(\"Thanks For The Meomories\")\n .setPrice(3.99)\n .build();\n \n List<PurchaseVinyl> vinylList = new ArrayList();\n vinylList.add(v);\n vinylList.add(v1);\n \n \n ProductPurchase pc = new ProductPurchase.Builder(d)\n .setVinylPurchases(vinylList)\n .setCardPurchases(cd)\n .setCashPurchases(c)\n .setChequePurchases(ch)\n .build();\n \n repo.save(pc);\n id = pc.getID();\n \n ProductPurchase pc2 = repo.findOne(id);\n for(int x = 0; pc2.getVinylPurchases().size() > x; x++){\n if(pc2.getVinylPurchases().get(x).getName().equals(name)){\n return pc2.getVinylPurchases().get(x).getPrice();\n }\n }\n return null; \n }",
"String getProduct();",
"public PURCHASE_TYPE getType(){\n return type;\n }",
"@Override\r\n\tpublic LastOneDayList getElectricity(String type) {\n\t\treturn totalConsumptionDao.getElectricity(type);\r\n\t}",
"public GoodsType getConsumedGoodsType() {\n return consumes;\n }",
"public abstract Product productFactory(String type);",
"public void addIngredient(String type) {\n\t\tBurger fullBurger1 = new Burger(true);\n\t\tBurger fullBurger2 = new Burger(true);\n\n\t\tfullBurger1.removeIngredient(\"Beef\");\n\t\tfullBurger2.removeIngredient(\"Beef\");\n\n\t\tint howManyBeef = this.howMany(\"Beef\");\n\t\tint howManyChicken = this.howMany(\"Chicken\");\n\t\tint howManyVeggie = this.howMany(\"Veggie\");\n\n\t\tif (this.has(\"Beef\")) {\n\t\t\tfor (int i = 0; i < howManyBeef; i++) {\n\t\t\t\tfullBurger1.addPatty();\n\t\t\t\tfullBurger2.addPatty();\n\t\t\t}\n\t\t}\n\t\tif (this.has(\"Chicken\")) {\n\t\t\tfor (int i = 0; i < howManyChicken; i++) {\n\t\t\t\tfullBurger1.addGeneralPatty(\"Chicken\");\n\t\t\t\tfullBurger2.addGeneralPatty(\"Chicken\");\n\t\t\t}\n\t\t}\n\t\tif (this.has(\"Veggie\")) {\n\t\t\tfor (int i = 0; i < howManyVeggie; i++) {\n\t\t\t\tfullBurger1.addGeneralPatty(\"Veggie\");\n\t\t\t\tfullBurger2.addGeneralPatty(\"Veggie\");\n\t\t\t}\n\t\t}\n\t\tmyBurger.push(type);\t\n\t\twhile (myBurger.size() != 0) {\n\t\t\tString top = (String) myBurger.peek();\n\t\t\tfullBurger1.removeIngredient(top);\n\t\t\tthis.removeIngredient(top);\n\t\t}\n\n\t\twhile (fullBurger1.myBurger.size() != 0) {\n\t\t\tString top = (String) fullBurger1.myBurger.peek();\n\t\t\tfullBurger2.removeIngredient(top);\n\t\t\tfullBurger1.removeIngredient(top);\n\t\t}\n\t\tint totalPatties = howManyBeef + howManyChicken + howManyVeggie;\n\t\tmyBurger = fullBurger2.myBurger;\n\t\tpattyCount = pattyCount + totalPatties;\n\t\tif (type.equals(\"Beef\") || type.equals(\"Chicken\") || type.equals(\"Veggie\")) {\n\t\t\tpattyCount++;\n\t\t}\n\t}",
"public T getProduct() {\n return this.product;\n }",
"@GetMapping(\"/type/{type}\")\n public List<ProductDto> getProductsByType(\n @PathVariable(\"type\") String type\n ){\n return productService.getProductsByType(type);\n }",
"private String production() {\r\n\t\tint[] prod=tile.getProductionNeedsMet();\r\n\t\tString out=\"Production Met: \"+prod[0]+\" || Production Not Met: \"+prod[1];\r\n\t\treturn out;\r\n\t}",
"RoomType getCostCategory();",
"public double calculateDamage(int type, double damage, double pierce)\n {\n double damageTaken = 0;\n int critRng;\n int ratio = 1;\n int critChance =1;\n int critDmg = 1;\n if(type == 1)\n {\n damageTaken = ( (damage*pierce*ratio)+((damage*ratio*(1-pierce))/(1+(0.01*(armor)))) );\n }\n else if (type == 2)\n {\n damageTaken = ( (damage*pierce*ratio)+((damage*ratio*(1-pierce))/(1+(0.01*(shield)))) );\n }\n else if (type == 3)\n {\n critRng = (int)(Math.random()*1.01);\n if (critRng<= critChance)\n damageTaken = ( (damage*critDmg*pierce*ratio) + ((damage*critDmg*(1-pierce))/(1+(0.01*(armor)))) );\n else\n damageTaken = ( (damage*pierce*ratio) + ((damage*(1-pierce))/(1+(0.01*(armor)))) );\n }\n else if (type == 4)\n {\n critRng = (int)(Math.random()*1.01);\n if (critRng<= critChance)\n damageTaken = ( ((weaponDmg+damage)*critDmg*pierce) + (((weaponDmg+damage)*critDmg*(1-pierce))/(1+(0.01*(armor)))) );\n else\n damageTaken = ( ((weaponDmg+damage)*pierce) + (((weaponDmg+damage)*(1-pierce))/(1+(0.01*(armor)))) );\n }\n else\n {\n damageTaken = damage;\n }\n return damageTaken;\n }",
"public JavaproductModel getproduct(JavaproductModel oJavaproductModel){\n\n \t/* Create a new hibernate session and begin the transaction*/\n Session hibernateSession = HibernateUtil.getSessionFactory().openSession();\n Transaction hibernateTransaction = hibernateSession.beginTransaction();\n\n /* Retrieve the existing product from the database*/\n oJavaproductModel = (JavaproductModel) hibernateSession.get(JavaproductModel.class, oJavaproductModel.getproductId());\n\n /* Commit and terminate the session*/\n hibernateTransaction.commit();\n hibernateSession.close();\n return oJavaproductModel;\n }",
"public String getGoodsTypeName() {\n return goodsTypeName;\n }",
"public String getProductionType() {\n return (String) getAttributeInternal(PRODUCTIONTYPE);\n }",
"public Pizza orderPizza(String type) {\n //hier wird Factory methode aufgerufen/ Code ändert sich öfters\n Pizza pizza = createPizza(type);\n\n if (pizza != null){\n System.out.printf(\"Making a \" + pizza.getName() + \"---------\");\n pizza.prepare();\n pizza.bake();\n pizza.cut();\n pizza.box();\n }\n\n return pizza;\n }",
"public String getCheese() {\n return this.hold.getType();\n }",
"public String getProductType() {\n\t\treturn productType;\n\t}",
"Message getRevenueForType(String type);",
"public Set<Product> get(ProductType type, ProductState state, int itemId) {\n\t\tif (typeMap.get(type).get(state).containsKey(itemId)) {\n\t\t\treturn typeMap.get(type).get(state).get(itemId);\n\t\t} else {\n\t\t\tSet<Product> set = getProductSet(type, state, itemId);\n\t\t\ttypeMap.get(type).get(state).put(itemId, set);\n\t\t\treturn set;\n\t\t}\n\t}",
"MovementOfGoodsType getMovementOfGoods();",
"public ArrayList<Chair> combinations(ArrayList <Chair> item, String type, int amount) {\n for (int i = 0; i < item.size(); i++)\n {\n Chair temp = item.get(i);\n if (temp.getType() == type)\n myType.add(temp);\n }\n int legs = 0;\n int arms = 0;\n int seat = 0;\n int cushion = 0;\n\n for (int i = 0, i<myType.size(); i++)\n {\n Chair temp = item.get(i);\n if (temp.getLegs() == 'Y')\n legs++;\n if (temp.getArms() == 'Y')\n arms++;\n if (temp.getSeat() == 'Y')\n seat++;\n if (temp.getCushion() == 'Y')\n cushion++;\n }\n\n if (legs < amount || arms < amount || seat < amount || cushion < amount)\n ///call Manufacturing class\n\n else {\n List<String> list = new List <String>();\n for (String id : myType.getID()) //can be replaced with for loop of I did this wrong\n list.add(id);\n\n String[] passID = list.toArray(String[]::new);\n int set = myType.size();\n int maxmimum = 4*amount;\n if (set<maximum)\n maximum = set;\n powerSet(passID, maximum);\n }\n }",
"private int getGoodsCount(GoodsType type) {\n return colony.getGoodsCount(type);\n }",
"public String product() {\n return this.product;\n }",
"public Plant getplant(){\r\n\t\tswitch(type){\r\n\t\tcase single: p = new peashooter(pointer);\r\n\t\t\tbreak;\r\n\t\tcase sunflower: p = new sunflower(pointer);\r\n\t\t\tbreak;\r\n\t\tcase nutwall: p = new nutwall(pointer);\r\n\t\t\tbreak;\r\n\t\tcase cherry: p = new cherry(pointer);\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\tif(p.getCost() > pointer.getSunlight()){\r\n\t\t\tToolkit.getDefaultToolkit().beep();\r\n\t\t\treturn null;\r\n\t\t}else {\r\n\t\t\treturn p;\r\n\t\t}\r\n\t}",
"public String getCartype() {\n return cartype;\n }",
"public String getCartype() {\n return cartype;\n }",
"public static Optional<SpawnEgg> fromType(EntityType<?> type) {\n return EGGSSUP.entrySet().stream().filter(e -> e.getKey().get() == type).findFirst().map(Map.Entry::getValue);\n }",
"public String getTypeOfFood(){\n return typeOfFood;\n }",
"public double getProduction()\n {\n\n return this.production;\n }",
"public Integer getGoodsTypeId() {\n return goodsTypeId;\n }",
"public static String IngredientTypeToString(IngredientType type){\n switch(type){\n case ANIMAL:\n return \"Animal\";\n case VEGETAL:\n return \"Vegetal\";\n case MINERAL:\n return \"Mineral\";\n default:\n return \"Invalido\";\n }\n }",
"public void setType(String type) {\r\n\t\tthis.productType = type;\r\n\t}",
"public GiftCardProductQuery type() {\n startField(\"type\");\n\n return this;\n }",
"public Production get (Symbol name) { return productions.get (name); }",
"public Pizza makePizza(String newPizzaType){\n if(newPizzaType.equals(\"a\")){\r\n return new CheesePizza();\r\n }\r\n else if(newPizzaType.equals(\"b\")){\r\n return new VeggiePizza();\r\n }\r\n else if(newPizzaType.equals(\"c\")){\r\n return new ChickenPizza(); \r\n }\r\n else{ \r\n return null; \r\n }\r\n \r\n }",
"public Pizza createPizza(String type) {\n\t\tPizza pizza = null;\n\t\tif(type.equals(\"cheese\")) {\n\t\t\tpizza = new CheesePizza();\n\t\t}\n\t\telse if(type.equals(\"pepperoni\")) {\n\t\t\tpizza = new PepperoniPizza();\n\t\t}\n\t\treturn pizza;\n\t}",
"@Override\n\tprotected Pizza createPizza(String type) {\n\t\tPizza pizza = null;\n\t\tPizzaIngredientFactory pizzaIngredientFactory = new NYPizzaIngredientFactory();\n\t\tif(type.equals(\"cheese\")){\n\t\t\tpizza = new CheesePizza(pizzaIngredientFactory);\n\t\t\tpizza.setName(\"NY Style Cheese Pizza\");\n\t\t} else if(type.equals(\"veggie\")){\n\t\t\tpizza = new VeggiePizza(pizzaIngredientFactory);\n\t\t\tpizza.setName(\"NY Style Veggie Pizza\");\n\t\t} else if(type.equals(\"clam\")) {\n\t\t\tpizza = new ClamPizza(pizzaIngredientFactory);\n\t\t\tpizza.setName(\"NY Style Clam Pizza\");\n\t\t} return pizza;\n\t}",
"x0401.oecdStandardAuditFileTaxPT1.ProductTypeDocument.ProductType xgetProductType();",
"public BikeType getType(int typeId){\n try(Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(TYPE_BY_ID + typeId);\n ResultSet rs = ps.executeQuery()){\n \n if(rs.next()){\n BikeType type = new BikeType(rs.getString(cTypeName),rs.getDouble(cRentalPrice));\n type.setTypeId(rs.getInt(cTypeId));\n return type;\n }\n\n }catch(Exception e){\n System.out.println(\"Exception: \" + e);\n }\n return null;\n }",
"public static String getTypeDescription() {\n\t\tDecimalFormat df = new DecimalFormat(\"#.00\");\n\t\treturn \"Type: \" + type + \"\\nPrice: $\" + df.format(price) + \"\\nDescription: \" + description + \"\\nHappiness: \" + happiness +\n\t\t\t\t\"\\nHealth: \" + health;\n\t}",
"public String getOrderType(@XPath(value = \"/order:order/order:type\",\n namespaces = @NamespacePrefix(prefix = \"order\", uri = \"http://vpsdemo.no/order/v1\")) String type) {\n \tif (buy.equals(\"buy\")) {\n return buy;\n }\t else if (sell.equals(\"sell\")) {\n return sell;\n } else {\n return unknown;\n }\n }",
"public static Type1 getType1(String type) {\n Type1 typeToAdd = null;\n if (type.equals(\"grass\")) typeToAdd = Type1.Grass;\n if (type.equals(\"water\")) typeToAdd = Type1.Water;\n if (type.equals(\"fire\")) typeToAdd = Type1.Fire;\n if (type.equals(\"poison\")) typeToAdd = Type1.Poison;\n if (type.equals(\"rock\")) typeToAdd = Type1.Rock;\n if (type.equals(\"dark\")) typeToAdd = Type1.Dark;\n if (type.equals(\"psychic\")) typeToAdd = Type1.Psychic;\n if (type.equals(\"ghost\")) typeToAdd = Type1.Ghost;\n if (type.equals(\"fairy\")) typeToAdd = Type1.Fairy;\n if (type.equals(\"dragon\")) typeToAdd = Type1.Dragon;\n if (type.equals(\"flying\")) typeToAdd = Type1.Flying;\n if (type.equals(\"ground\")) typeToAdd = Type1.Ground;\n if (type.startsWith(\"fight\")) typeToAdd = Type1.Fighting;\n if (type.equals(\"electric\")) typeToAdd = Type1.Electric;\n if (type.equals(\"steel\")) typeToAdd = Type1.Steel;\n if (type.equals(\"ice\")) typeToAdd = Type1.Ice;\n if (type.equals(\"bug\")) typeToAdd = Type1.Bug;\n if (type.equals(\"normal\")) typeToAdd = Type1.Normal;\n return typeToAdd;\n }",
"@Override\n\tpublic Goods query(Goods goods) {\n\t\tgood = new Goods();\n\t\tString sql = \"select price,configInfo,picPath from goods_t where type=? and model=?\";\n\t\ttry {\n\t\t\tPreparedStatement pstm = con.prepareStatement(sql);\n\t\t\tpstm.setString(1, goods.getType());\n\t\t\tpstm.setString(2, goods.getModel());\n\n\t\t\tResultSet rs = pstm.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tgood.setPrice(rs.getString(1));\n\t\t\t\tgood.setConfigInfo(rs.getString(2));\n\t\t\t\tgood.setPicPath(rs.getString(3));\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn good;\n\t}",
"public java.lang.String getPrice_type() {\n return price_type;\n }",
"public ProductType getProductType(String productTypeName){ \n\t if (productTypeName == null) { \n\t return null; \n\t } \n\t if (productTypeName.equalsIgnoreCase(\"PHOTOSET\")) { \n\t return new PhotoSet(); \n\t } \n\t else if (productTypeName.equalsIgnoreCase(\"SINGLECD\")) { \n\t return new SingleCD(); \n\t } \n\t else if (productTypeName.equalsIgnoreCase(\"TWOSHOT\")) { \n\t return new TwoShot(); \n\t } \n\t return null; \n\t}",
"io.opencannabis.schema.commerce.CommercialOrder.OrderType getType();",
"TradingProduct getTradingProduct();",
"public TypeCountMap<GoodsType> getProductionMap() {\n update();\n TypeCountMap<GoodsType> result = new TypeCountMap<GoodsType>();\n result.putAll(netProduction);\n return result;\n }",
"public int getConsumptionOf(GoodsType goodsType) {\n int result = 0;\n for (Unit unit : getUnitList()) {\n result += unit.getType().getConsumptionOf(goodsType);\n }\n return Math.max(0, result);\n }",
"public Goods getGoods() {\n\t\treturn goods;\n\t}",
"private Set<Product> getProductSet(ProductType type, ProductState state, int itemId) {\n\t\tif (typeMap.get(type).get(state).containsKey(itemId)) {\n\t\t\treturn typeMap.get(type).get(state).get(itemId);\n\t\t} else {\n\t\t\tif (state == ProductState.PENDING) {\n\t\t\t\tswitch (type) {\n\t\t\t\tcase BUY:\n\t\t\t\t\treturn new TreeSet<>(buyComparator);\n\t\t\t\tcase SELL:\n\t\t\t\t\treturn new TreeSet<>(sellComparator);\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new IllegalStateException();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\treturn new TreeSet<>();\n\t\t\t}\n\t\t}\n\t}",
"public static String getFormalFamilyNameFromType(FamilyType type) {\n switch (type) {\n case ARTIX7:\n return \"Artix7\";\n case ARTIX7L:\n return \"Artix7 Lower Power\";\n case ASPARTAN2E:\n return \"Automotive Spartan2E\";\n case ASPARTAN3:\n return \"Automotive Spartan3\";\n case ASPARTAN3A:\n return \"Automotive Spartan3A\";\n case ASPARTAN3ADSP:\n return \"Automotive Spartan-3A DSP\";\n case ASPARTAN3E:\n return \"Automotive Spartan3E\";\n case ASPARTAN6:\n return \"Automotive Spartan6\";\n case KINTEX7:\n return \"Kintex7\";\n case KINTEX7L:\n return \"Kintex7 Lower Power\";\n case QSPARTAN6:\n return \"Defense-Grade Spartan-6Q\";\n case QSPARTAN6L:\n return \"Defense-Grade Spartan-6Q Lower Power\";\n case QVIRTEX4:\n return \"Defense-Grade Virtex-4Q\";\n case QVIRTEX5:\n return \"Defense-Grade Virtex-5Q\";\n case QVIRTEX6:\n return \"Defense-Grade Virtex-6Q\";\n case QVIRTEX:\n return \"QPro Virtex Hi-Rel\";\n case QRVIRTEX:\n return \"QPro Virtex Rad-Hard\";\n case QVIRTEX2:\n return \"QPro Virtex2 Military\";\n case QRVIRTEX2:\n return \"QPro Virtex2 Rad Tolerant\";\n case QVIRTEX2P:\n return \"QPro Virtex2P Hi-Rel\";\n case QVIRTEXE:\n return \"QPro VirtexE Military\";\n case QRVIRTEX4:\n return \"Space-Grade Virtex-4QV\";\n case SPARTAN2:\n return \"Spartan2\";\n case SPARTAN2E:\n return \"Spartan2E\";\n case SPARTAN3:\n return \"Spartan3\";\n case SPARTAN3A:\n return \"Spartan3A and Spartan3AN\";\n case SPARTAN3ADSP:\n return \"Spartan-3A DSP\";\n case SPARTAN3E:\n return \"Spartan3E\";\n case SPARTAN6:\n return \"Spartan6\";\n case SPARTAN6L:\n return \"Spartan6 Lower Power\";\n case VIRTEX:\n return \"Virtex\";\n case VIRTEX2:\n return \"Virtex2\";\n case VIRTEX2P:\n return \"Virtex2P\";\n case VIRTEX4:\n return \"Virtex4\";\n case VIRTEX5:\n return \"Virtex5\";\n case VIRTEX6:\n return \"Virtex6\";\n case VIRTEX6L:\n return \"Virtex6 Lower Power\";\n case VIRTEX7:\n return \"Virtex7\";\n case VIRTEX7L:\n return \"Virtex7 Lower Power\";\n case VIRTEXE:\n return \"VirtexE\";\n default:\n return null;\n }\n }",
"public String getPredefinedType() {\n return \"purchase\";\n }",
"public int totalCostOfComponentsv2(String component_type) throws InstantiationException, IllegalAccessException {\n\t\tint total=0;\n\n\t\ttry{\n\n\t\t\tClass<?> type = Class.forName(component_type); \n\t\t\tObject o= type.newInstance();\t //creating an object of the required class type to use it in our comparison\n\n\t\t\tfor (Component temp : components){\t\t\t\t \n\t\t\t\tif (temp.getClass().isInstance(o)) {\t //getClass returns the the class type of temp then isinstance compares it with the object type\n\t\t\t\t\ttotal+=temp.getCost();\n\n\t\t\t\t}\n\n\t\t\t}\n\n\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\n\n\t\t}\n\n\t\treturn total;\n\t}",
"public String getFoodType() {\n return \"Carnivore\";\n }",
"public static Product generateProduct()\n {\n Random r = new Random();\n Product p = new Product();\n String [] itemName = {\"Cool Hat\" , \"Cool Watch\" , \"Cool Necklace\", \"Black Lipstick\" , \"Red LipStick\" ,\n \"Black Eyeliner\" , \"Blue Shirt\" , \"Blue Jeans\" , \"Black Dress\" , \"Red Bag\" ,\n \"White Bag\" , \"Yellow Bag\" , \"Cool Flip Flops\", \"Cool Shoes\" , \"Cool Heels\" ,\n \"Cool Blender\" , \"Cool Mixer\" , \"Cool Juicer\" };\n p.productID = 1 + r.nextInt(6);\n\n if( p.productID == 1){\n p.productName = itemName[r.nextInt(3)];\n p.productType = (\"Accessory\");\n p.productSize = 1;\n }\n if( p.productID == 2) {\n p.productName = itemName[3 + r.nextInt(3)];\n p.productType = (\"Beauty\");\n p.productSize = 2;\n }\n if( p.productID == 3) {\n p.productName = itemName[6 + r.nextInt(3)];\n p.productType = (\"Clothes\");\n p.productSize = 2;\n }\n if( p.productID == 4){\n p.productName = itemName[9 + r.nextInt(3)];\n p.productType = (\"Bags\");\n p.productSize = 3;\n }\n if( p.productID == 5){\n p.productName = itemName[12 + r.nextInt(3)];\n p.productType = (\"Shoes\");\n p.productSize = 3;\n }\n if( p.productID == 6) {\n p.productName = itemName[15 + r.nextInt(3)];\n p.productType = (\"Housewares\");\n p.productSize = 5;\n }\n\n p.productSku = 1000000 + r.nextInt(9999999);\n\n\n\n\n return p;\n }",
"public String getTypeOfFood()\n {\n return typeOfFood;\n }",
"boolean hasGoodsType();",
"@RequestMapping(value = \"/signup/getProducts\", method = RequestMethod.POST)\n @ResponseBody\n public SPResponse getProducts(@RequestParam ProductType productType) {\n SPResponse spResponse = new SPResponse();\n \n String property = enviornment.getProperty(\"sp.active.products.\" + productType.toString());\n String[] productsArr = property.split(\",\");\n List<String> productsList = Arrays.asList(productsArr);\n List<Product> products = productRepository.findAllProductsById(productsList);\n if (products != null && products.size() != 0) {\n spResponse.add(\"products\", products);\n } else {\n spResponse.addError(\"Product_Not_Found\", \"No products found for type :\" + productType);\n }\n return spResponse;\n }",
"public Produit getProduit(int theId);",
"String productKind();",
"EDataType getConductance();",
"public String get_type_of_entity(String type_of_profile)\n\t{\n\t\tString type_of_entity=null;\n\t\n\t\t//if(type_of_profile.equals(\"executive_producer\")||type_of_profile.equals(\"line_producer\")||type_of_profile.equals(\"supervising_producer\")||type_of_profile.equals(\"co_producer\")||type_of_profile.equals(\"co_ordinating_producer\")||type_of_profile.equals(\"primary_associate_or_assistant_producer \")||type_of_profile.equals(\"secondary_associate_or_assistant_producer\")||type_of_profile.equals(\"other_associate_or_assistant_producer\")||type_of_profile.equals(\"segment_producer\")||type_of_profile.equals(\"event_producer\")|type_of_profile.equals(\"music_producer\"))\n\t\tif(type_of_profile.contains(\"producer\"))\n\t\t{\n\t\t\ttype_of_entity=\"Producer\";\n\t\t\treturn type_of_entity;\n\t\t}\n\t\t//film_director varchar(10), primary_associate_film_director varchar(10), secondary_associate_film_director varchar(10), other_associate_film_director varchar(10), casting_director varchar(10), primary_associate_casting_director varchar(10),secondary_associate_casting_director varchar(10),other_associate_casting_director varchar(10), music_director varchar(10),primary_associate_music_director varchar(10),secondary_associate_music_director varchar(10), other_associate_music_director varchar(10),\n\t\telse if(type_of_profile.contains(\"director\"))\n\t\t{\n\t\t\ttype_of_entity=\"Director\";\n\t\t\treturn type_of_entity;\n\t\t}\n\t\telse if(type_of_profile.equals(\"Academy\"))\n\t\t{\n\t\t\ttype_of_entity=\"Academy\";\n\t\t\treturn type_of_entity;\n\t\t}\n\t\t// FLAW \n\t\telse if(type_of_profile.equals(\"actor\")||type_of_profile.equals(\"model\")||type_of_profile.equals(\"dancer\")||type_of_profile.equals(\" singer\")||type_of_profile.equals(\" insrumentalist\")||type_of_profile.equals(\"composer\")||type_of_profile.equals(\"music_engineer\")||type_of_profile.equals(\"radio_or_voice_over\")||type_of_profile.equals(\" dj\")||type_of_profile.equals(\"band\")||type_of_profile.equals(\"stand_up_comedian\")||type_of_profile.equals(\"other_type_of_entity\"))\n\t\t{\n\t\t\ttype_of_entity=\"Entertainer\";\n\t\t\treturn type_of_entity;\n\t\t}\n\t\telse\n\t\t//if(type_of_profile.equals(\"Film_crew\"))\n\t\t{\n\t\t\ttype_of_entity=\"Film_crew\";\n\t\t\treturn type_of_entity;\n\t\t}\n\t\t\t\t//return type_of_entity;\n\t}",
"public Skill get(SkillType type) {\r\n\t\treturn this.skills.get(type);\r\n\t}",
"public static Type2 getType2(String type) {\n Type2 typeToAdd = null;\n if (type.equals(\"grass\")) typeToAdd = Type2.Grass;\n if (type.equals(\"water\")) typeToAdd = Type2.Water;\n if (type.equals(\"fire\")) typeToAdd = Type2.Fire;\n if (type.equals(\"poison\")) typeToAdd = Type2.Poison;\n if (type.equals(\"rock\")) typeToAdd = Type2.Rock;\n if (type.equals(\"dark\")) typeToAdd = Type2.Dark;\n if (type.equals(\"psychic\")) typeToAdd = Type2.Psychic;\n if (type.equals(\"ghost\")) typeToAdd = Type2.Ghost;\n if (type.equals(\"fairy\")) typeToAdd = Type2.Fairy;\n if (type.equals(\"dragon\")) typeToAdd = Type2.Dragon;\n if (type.equals(\"flying\")) typeToAdd = Type2.Flying;\n if (type.equals(\"ground\")) typeToAdd = Type2.Ground;\n if (type.startsWith(\"fight\")) typeToAdd = Type2.Fighting;\n if (type.equals(\"electric\")) typeToAdd = Type2.Electric;\n if (type.equals(\"steel\")) typeToAdd = Type2.Steel;\n if (type.equals(\"ice\")) typeToAdd = Type2.Ice;\n if (type.equals(\"bug\")) typeToAdd = Type2.Bug;\n if (type.equals(\"normal\")) typeToAdd = Type2.Normal;\n if (type.equals(\"\")) typeToAdd = Type2.None;\n return typeToAdd;\n }",
"public DiceProductInterface product(DiceProductInterface multiplicand);",
"public String getInfo(int type)\n\t{\n\t\tString[] typeInformations = {\"1. Liste employes\",\"2. Liste benevoles\",\n\t\t\t\t\"3. Liste donateur\",\"4. Moyenne des dons\",\"5. Total des dons\"};\n\t\t\n\t\tswitch(type){\n\t\t//liste d'employes\n\t\t\tcase 1:\n\t\t\t\treturn Gestion.getListeEmploye();\t\n\t\t\tcase 2:\n\t\t//liste des benevoles\t\n\t\t\t\treturn Gestion.getListeBenevoles();\n\t\t\tcase 3:\n\t\t//liste des donateurs\t\t\n\t\t\t\treturn Gestion.getListeDonateur();\t\t\n\t\t//moyennes des dons\n\t\t\tcase 4:\n\t\t\t\treturn Double.toString(Gestion.getMoyenneDons());\n\t\t//total des dons\n\t\t\tcase 5:\n\t\t\t\treturn Double.toString(Gestion.getTotalDons());\t\t\t\t\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t\treturn \"\";\n\t}",
"public void removeIngredient(String type) {\n\t\tMyStack newBurger = new MyStack();\n\t\twhile (myBurger.size() != 0) {\n\t\t\tif (myBurger.peek().equals(type)) {\n\t\t\t\tmyBurger.pop();\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tString ingredient = (String) myBurger.pop();\n\t\t\t\tnewBurger.push(ingredient);\n\t\t\t}\n\t\t}\n\t\twhile (newBurger.size() != 0) {\n\t\t\tString ingredient = (String) newBurger.pop();\n\t\t\tmyBurger.push(ingredient);\n\t\t}\n\t\tif (type.equals(\"Beef\") || type.equals(\"Chicken\") || type.equals(\"Veggie\")) {\n\t\t\tpattyCount--;\n\t\t}\n\t}",
"public int calculatePrice(FruitEnum type, List<Fruit> list){\n if (list.isEmpty()) return 0;\n Fruit fruit = list.get(0);\n //System.out.println(\"Fruit \" + fruit);\n Promotion promotion = fruit.promotion;\n //System.out.println(\"Promotion \" + promotion);\n return promotion.promotionalTotal(list);\n }",
"@Override\r\n public ItemStack getItemStack(PartItemStack type) {\n return new ItemStack(this.item);\r\n }",
"public TransationRecords buyProduct(String species, int number) {\n HashMap<String , List<HashMap<String,String >>> productInfo = new HashMap<>();\n productInfo = productList.getProductInfo();\n if (species.equals(\"CHICKEN\")) {\n for (int i = 0; i < number; i++) {\n Chicken chicken = new Chicken();\n productList.chickenList.add(chicken);\n this.farmOwner.minusMoney(chicken.getBuyValue());\n }\n return new TransationRecords(\"CHICKEN\", TransationRecords.SellOrBuy.BUY,\n number, new Chicken().getBuyValue(), (int) this.farmOwner.getMoney(), productInfo);\n } else if (species.equals(\"DOG\")) {\n for (int i = 0; i < number; i++) {\n Dog dog = new Dog();\n productList.dogList.add(dog);\n this.farmOwner.minusMoney(dog.getBuyValue());\n }\n return new TransationRecords(\"DOG\", TransationRecords.SellOrBuy.BUY,\n number, new Dog().getBuyValue(), (int) this.farmOwner.getMoney(), productInfo);\n } else if (species.equals(\"PERCH\")) {\n for (int i = 0; i < number; i++) {\n Perch perch = new Perch();\n productList.perchList.add(perch);\n this.farmOwner.minusMoney(perch.getBuyValue());\n }\n return new TransationRecords(\"PERCH\", TransationRecords.SellOrBuy.BUY,\n number, new Perch().getBuyValue(), (int) this.farmOwner.getMoney(), productInfo);\n } else if (species.equals(\"APPLE\")) {\n for (int i = 0; i < number; i++) {\n Apple apple = new Apple();\n productList.appleList.add(apple);\n this.farmOwner.minusMoney(apple.getBuyValue());\n }\n return new TransationRecords(\"APPLE\", TransationRecords.SellOrBuy.BUY,\n number, new Apple().getBuyValue(), (int) this.farmOwner.getMoney(), productInfo);\n } else if (species.equals(\"CHERRY\")) {\n for (int i = 0; i < number; i++) {\n Cherry cherry = new Cherry();\n productList.cherryList.add(cherry);\n this.farmOwner.minusMoney(cherry.getBuyValue());\n }\n return new TransationRecords(\"CHERRY\", TransationRecords.SellOrBuy.BUY,\n number, new Cherry().getBuyValue(), (int) this.farmOwner.getMoney(), productInfo);\n } else if (species.equals(\"POTATO\")) {\n for (int i = 0; i < number; i++) {\n Potato potato = new Potato();\n productList.potatoList.add(potato);\n this.farmOwner.minusMoney(potato.getBuyValue());\n }\n return new TransationRecords(\"POTATO\", TransationRecords.SellOrBuy.BUY,\n number, new Potato().getBuyValue(), (int) this.farmOwner.getMoney(), productInfo);\n } else if (species.equals(\"TOMATO\")) {\n for (int i = 0; i < number; i++) {\n Tomato tomato = new Tomato();\n productList.tomatoList.add(tomato);\n this.farmOwner.minusMoney(tomato.getBuyValue());\n }\n return new TransationRecords(\"TOMATO\", TransationRecords.SellOrBuy.BUY,\n number, new Tomato().getBuyValue(), (int) this.farmOwner.getMoney(), productInfo);\n }\n return emptyRecords;\n }",
"public RowSet getProductionTypeVO1() {\n return (RowSet)getAttributeInternal(PRODUCTIONTYPEVO1);\n }",
"x0401.oecdStandardAuditFileTaxPT1.ProductDocument.Product getProduct();",
"public String getProduct()\n {\n return product;\n }",
"static int askProductType() {\n\n int choice; // initialize return variable\n\n choice = Validate.readInt(ASK_PRODUCT_TYPE, 2); // display options to user for products and store result if valid choice\n\n return choice; // return users choice\n }",
"@GetMapping(\"/products\")\n public String products(Model model, @RequestParam(name = \"type\", required = false) String type, HttpServletRequest request) {\n String type1 = type;\n if (type1 == null)\n type1 = \" \";\n String cat = request.getParameter(\"cat\");\n List<Product> list = new ArrayList<>();\n String typep = \"yes\";\n String follow = \"follow\";\n String title = \"Product List\";\n String pcur = request.getParameter(\"pcur\");\n\n if (cat != null) {\n list = productService.getByCategory(Integer.parseInt(cat));\n title = title + \" of \" + list.get(0).getCategory().getName();\n } else {\n list = productService.all();\n }\n int curp = 0;\n if (pcur != null) {\n curp = Integer.parseInt(pcur) - 1;\n }\n int page = list.size() / 8;\n int start = curp * 8, end = curp * 8 + 8;\n list = list.subList(start, end);\n\n model.addAttribute(\"typep\", typep);\n model.addAttribute(\"follow\", follow);\n model.addAttribute(\"title\", title);\n model.addAttribute(\"productlist\", list);\n model.addAttribute(\"page\", page);\n model.addAttribute(\"cat\", cat);\n return \"buyer/products\";\n// return \"buyer/products-test\";\n }",
"public void addProduction() {\n\n money += money_production;\n money += terraforming_rating;\n\n steel += steel_production;\n\n titanium += titanium_production;\n\n plants += plants_production;\n\n heat += energy;\n heat += heat_production;\n\n energy = energy_production;\n }"
] | [
"0.6818445",
"0.614643",
"0.5990897",
"0.59859866",
"0.5819758",
"0.5815037",
"0.5735413",
"0.5729303",
"0.57225996",
"0.57138306",
"0.56664276",
"0.5647266",
"0.5628806",
"0.5628093",
"0.56254905",
"0.56174034",
"0.5587417",
"0.55586964",
"0.5546112",
"0.5526011",
"0.5484923",
"0.547632",
"0.5447146",
"0.54337704",
"0.5429823",
"0.54250574",
"0.53998953",
"0.5391935",
"0.5389596",
"0.53587514",
"0.53022003",
"0.5298142",
"0.5286242",
"0.5265415",
"0.52446634",
"0.52407604",
"0.52331847",
"0.5226882",
"0.5218448",
"0.51850635",
"0.5182157",
"0.5174263",
"0.5164398",
"0.5163312",
"0.51469994",
"0.51425856",
"0.51379126",
"0.51375693",
"0.51375693",
"0.5137213",
"0.5129654",
"0.51282483",
"0.51170045",
"0.5104537",
"0.5092229",
"0.5092059",
"0.5091421",
"0.5076277",
"0.5065555",
"0.5056376",
"0.50548154",
"0.5044462",
"0.5039239",
"0.50372416",
"0.503632",
"0.50242364",
"0.50008124",
"0.49979725",
"0.4993724",
"0.49877465",
"0.4980631",
"0.49774268",
"0.4970914",
"0.4966187",
"0.49643347",
"0.49561068",
"0.4953318",
"0.4951411",
"0.49513918",
"0.49490818",
"0.49474648",
"0.49455646",
"0.49297702",
"0.49292606",
"0.492407",
"0.49239874",
"0.49159223",
"0.49125132",
"0.4911923",
"0.49101833",
"0.4907158",
"0.49039343",
"0.4903067",
"0.4895523",
"0.48894933",
"0.48870704",
"0.4886015",
"0.48851088",
"0.4878231",
"0.48698023"
] | 0.7061541 | 0 |
Returns the number of goods of a given type used by the settlement each turn. | public int getConsumptionOf(GoodsType goodsType) {
int result = 0;
for (Unit unit : getUnitList()) {
result += unit.getType().getConsumptionOf(goodsType);
}
return Math.max(0, result);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int getGoodsCount(GoodsType type) {\n return colony.getGoodsCount(type);\n }",
"public int numberSeatsUsed(FlightEntity flight, int type);",
"@SuppressWarnings(BookFlowConstants.BOXING)\r\n private int getCount(final Collection<String> types, final String type)\r\n {\r\n int paxCount = 0;\r\n for (final String passengerType : types)\r\n {\r\n if (StringUtils.equalsIgnoreCase(passengerType.trim(), type))\r\n {\r\n paxCount++;\r\n }\r\n }\r\n return paxCount;\r\n }",
"public int availableCars(String type) {\r\n\t\tString typeCar = type.trim().toLowerCase();\r\n\t\tint count = 0;\r\n\r\n\t\tif (typeCar.equals(\"small\")) {\r\n\t\t\tfor (InterfaceAbstractCar car : companyCars) {\r\n\t\t\t\tif (car.getType().equals(TypeOfCar.SMALL) && !car.isCarRented()) {\r\n\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else if (typeCar.equals(\"large\")) {\r\n\t\t\tfor (InterfaceAbstractCar car : companyCars) {\r\n\t\t\t\tif (car.getType().equals(TypeOfCar.LARGE) && !car.isCarRented()) {\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthrow new IllegalArgumentException(\r\n\t\t\t\t\t\"Type of car has been entered incorrectly. Needs to be 'small' or 'large'\");\r\n\t\t}\r\n\r\n\t\treturn count;\r\n\t}",
"private int sizeForType(int type) {\n return sizeForTypeHistorical(type);\n\n }",
"public int getUsed(int agentIndex, int type, int day) {\n return usedGoods[agentIndex][day][type];\n }",
"public int getNetProductionOf(GoodsType type) {\n update();\n return netProduction.getCount(type);\n }",
"public static int getCount(char type) {\n if (type == CARD) {\n return globalCardCount;\n } else {\n return globalRiderCount;\n }\n }",
"public long countLotsByEntityType(String type) throws MiddlewareQueryException;",
"public int cantidadCartas(int type);",
"public static Integer getNumberFromType(Type type) {\n\t\tif (type == Type.PURCHASE)\n\t\t\treturn 1;\n\t\telse\n\t\t\treturn 2;\n\t}",
"public static int getSum(String type) {\n\t\tVector<BookInfo> tmp = getAllBook();\n\t\tint result = 0;\n\n\t\tfor (BookInfo b : tmp) {\n\t\t\tif ( b.getBookID().substring(0, 2).equals(type) ) {\n\t\t\t\tresult += 1;\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}",
"@Override\r\n\tpublic int getTotalCount(Class<T> type) {\n\t\treturn (int) super.getSessionFactory().getCurrentSession().createQuery(\"select count(1) as num from \"+\r\n\t\t\t\ttype.getName()+\"\").uniqueResult();\r\n\t}",
"int getNumOfBuyOrders();",
"public int countByType(long typeId);",
"public abstract int getProductionOf(GoodsType goodsType);",
"public int getNumberOf(ResType type) { return resources.get(type); }",
"public boolean getCount(String type){\n if(type.equals(\"Zombie\") && zombieCounter!=0){\n return true;\n } else return type.equals(\"Sandwich\") && sandwichCounter != 0;\n }",
"public Integer getTotalCountForType(DasType type) throws DataSourceException {\n return null;\n }",
"int getTrucksCount();",
"public int totalCostOfComponents(String component_type) {\n\t\tint total=0;\n\t\tint indexofat=0;\n\t\tString toClassName;\n\n\t\tfor (Component temp : components){\n\n\t\t\t/*\n\t\t\t * getting the index of @ char: calling toString method on an object usually\n\t\t\t * returns something similar to this: ClassName@13123133 where numbers\n\t\t\t * after @ refer to the object id.\n\t\t\t */\n\n\t\t\tindexofat = temp.toString().indexOf(\"@\"); \n\t\t\ttoClassName=temp.toString().substring(0, indexofat); //getting rid of the rest of the string\n\t\t\t//there was a simpler method using getClass\n\t\t\t//String toClassName = temp.getClass().getSimpleName(); //getName() or getTypeName() worked too\n\t\t\tif (toClassName.contentEquals(component_type) ) total+=temp.getCost(); //comparing the if the required class should be added to the sum\n\t\t}\n\t\treturn total;\n\n\n\t}",
"public Integer getCount(Class<?> type) {\n return events.containsKey(type) ? events.get(type).size() : 0;\n }",
"public int totalCostOfComponents(String component_type)\n\t{\n\t\tint total = 0;\n\t\tfor(Component comp: configuration.values())\n\t\t{\n\t\t\tif (component_type.equalsIgnoreCase(\"HardDisk\")) {\n\t\t\t if (comp instanceof HardDisk) {\n\t\t\t total += comp.getCost();\n\t\t\t }\n\t\t\t }\n\t\t\t if (component_type.equalsIgnoreCase(\"Processor\")) {\n\t\t\t if (comp instanceof Processor) {\n\t\t\t total += comp.getCost();\n\t\t\t }\n\t\t\t }\n\t\t\t if (component_type.equalsIgnoreCase(\"Display\")) {\n\t\t\t if (comp instanceof Display) {\n\t\t\t total += comp.getCost();\n\t\t\t }\n\t\t\t }\n\t\t}\n\t\treturn total;\n\t}",
"public int getNumOfGoods() {\n return numOfGoods;\n }",
"default long getPartCount(ExecutionContext context, PartType type, Owner layer) {\n return getPartsInDisplayOrder(context, layer)\n .stream()\n .filter(p -> type == null || p.getType() == type)\n .count();\n }",
"public int getNumberGoods() {\n return this.goods.size();\n }",
"private int getPersonTypeCountFromPassengers(final Collection<Passenger> passengers, final PersonType type)\r\n {\r\n final Set<PersonType> adultType = EnumSet.of(type);\r\n return PassengerUtils.getPersonTypeCountFromPassengers(passengers, adultType);\r\n }",
"public int countByProductType(String productType);",
"int getNumOfSellOrders();",
"int getRequiredAmountFor(AResourceType type);",
"public long getCount(MigrationType type);",
"public Integer getCountTyped(Class<?> type) {\n int count = 0;\n for (Map.Entry<Class<?>, List<EventRecording>> recordingEntry : events.entrySet()) {\n if (type.isAssignableFrom(recordingEntry.getKey())) {\n count += recordingEntry.getValue().size();\n }\n }\n return count;\n }",
"public long numberOf (String field, String type) {\n return this.numberOf(new KrillCollection(this), field, type);\n }",
"public static int totalSupply() {\n return totalSupplyGet();\n }",
"public synchronized int addCount(int length, int type) {\n\n if (type == 1 || type == 2) {\n Totalstep.setStep_in_hand(Totalstep.getStep_in_hand() + length);\n } else if (type == 3) {\n\n if (Totalstep.getStep_in_hand() >= Totalstep.getStep_pocket())\n Totalstep.setStep_in_hand(Totalstep.getStep_in_hand() + length);\n else\n Totalstep.setStep_pocket(Totalstep.getStep_pocket() + length);\n\n } else if (type == 4) {\n\n Totalstep.setStep_pocket(Totalstep.getStep_pocket() + length);\n\n } else if (type == 5)\n Totalstep.setStep_in_run(Totalstep.getStep_in_run() + length);\n\n Totalstep.setTotal_step(Totalstep.getTotal_step() + length);\n\n count += length;\n return count;\n\n }",
"public int getConsumptionOf(List<GoodsType> goodsTypes) {\n int result = 0;\n if (goodsTypes != null) {\n for (GoodsType goodsType : goodsTypes) {\n result += getConsumptionOf(goodsType);\n }\n }\n return result;\n }",
"@Override\r\n\tpublic int countCabsOfType(String carType) {\r\n\t\tlong count = cabRepository.countByCarType(carType);\r\n\t\tint cabCount =(int) count;\r\n\t\treturn cabCount;\r\n\t}",
"public double getBuyPrice(ShipType type) {\n if (type.getMinTechLevel() > planet.getTechLevel().getValue()) {\n return -1;\n }\n return prices.get(type);\n }",
"public int numeroTipoOcupado(String tipo) {\n int i = 0;\n for (Map.Entry e : lista.entrySet()) {\n Equipamento eq = (Equipamento) e.getValue();\n if(tipo == eq.getTipo() && eq.getEstado().equals(\"Ocupado\"))\n i++;\n }\n return i;\n }",
"int getPriceCount();",
"int getBuyQuantity();",
"public int giveChange(Coin coinType)\n {\n numberofcoins = 0;\n while(balance> coinType.getValue()-1E-12){\n numberofcoins++;\n balance = balance - coinType.getValue();\n }\n System.out.println(balance);\n System.out.println(numberofcoins);\n return numberofcoins;\n }",
"long countByExample(DashboardGoodsExample example);",
"public int totalCostOfComponentsv2(String component_type) throws InstantiationException, IllegalAccessException {\n\t\tint total=0;\n\n\t\ttry{\n\n\t\t\tClass<?> type = Class.forName(component_type); \n\t\t\tObject o= type.newInstance();\t //creating an object of the required class type to use it in our comparison\n\n\t\t\tfor (Component temp : components){\t\t\t\t \n\t\t\t\tif (temp.getClass().isInstance(o)) {\t //getClass returns the the class type of temp then isinstance compares it with the object type\n\t\t\t\t\ttotal+=temp.getCost();\n\n\t\t\t\t}\n\n\t\t\t}\n\n\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\n\n\t\t}\n\n\t\treturn total;\n\t}",
"int getReservePokemonCount();",
"public int getTotalSupply() {\n if (this.totalSupply == -1) {\n int tempTotalSupply = 0;\n for (G good : this.goods) {\n tempTotalSupply += good.getSupply();\n }\n this.totalSupply = tempTotalSupply;\n }\n return this.totalSupply;\n }",
"public MigrationTypeCount getMigrationTypeCount(MigrationType type);",
"public void setType(SupplyType type) \r\n {\r\n if (type==SupplyType.COUNT&&amount%1.0!=0)\r\n {\r\n throw new IllegalArgumentException(\"Countable units must be of\" +\r\n \t\t\" an integer quantity\");\r\n }\r\n this.type = type;\r\n }",
"public int totalOrdersTaken();",
"int getDeliveriesCount();",
"public static String calcType(ArrayList<Lap> laptimes, Type type) {\n\t\tint typeCount = 0;\n\t\tfor (Lap lap : laptimes) {\n\t\t\tif (lap.getType() == type) {\n\t\t\t\ttypeCount++;\n\t\t\t}\n\t\t}\n\t\treturn Integer.toString(typeCount);\n\t}",
"public Short getGoodsType() {\n return goodsType;\n }",
"private int getType(String type) {\n\t\tint i=0;\n\t\tif(type.equals(\"rxpck\"))\n\t\t\t i=3;\n\t\telse if(type.equals(\"txpck\"))\n\t\t\t\ti=4;\n\t\telse if(type.equals(\"rxkB\"))\n\t\t\t\ti=5; \n\t\telse if(type.equals(\"txkB\"))\n\t\t\t\ti=6;\n\t\telse if(type.equals(\"rxcmp\"))\n\t\t\t\ti=7;\n\t\telse if(type.equals(\"txcmp\"))\n\t\t\t\ti=8;\n\t\telse if(type.equals(\"rxmsct\"))\n\t\t\t i=9;\n\t\treturn i;\n\t}",
"public int getWalletTypeCount() {\n return walletType_.size();\n }",
"public void incrementNumberOfDefeats(TypeOfGames type) {\n statistics.get(type).incrementNumberOfDefeats();\n }",
"public int inventorySize (TheGroceryStore g);",
"public int numeroTipo(String tipo) {\n int i = 0;\n for (Map.Entry e : lista.entrySet()) {\n Equipamento eq = (Equipamento) e.getValue();\n if(tipo == eq.getTipo())\n i++;\n }\n return i;\n }",
"public long numberOf (String type) {\n return this.numberOf(\"tokens\", type);\n }",
"@Override\r\n\tpublic int selectBannerCount(int type) {\n\t\treturn bannerDao.selectBannerCount(type);\r\n\t}",
"int getPurchasableOffersCount();",
"int getTransactionsCount();",
"int getNumberOfArtillery();",
"int getFundsCount();",
"int getFundsCount();",
"int getTruckstatusCount();",
"@GetMapping(\"/class/{type}\")\n\t@ResponseBody\n\tpublic long totcountByCategorie(@PathVariable(\"type\")String type) {\n\t\t\n\t\treturn projectservice.totcountByCategorie(type);\n\t}",
"int getAcksCount();",
"int getAcksCount();",
"int countByExample(UserPonumberGoodsExample example);",
"int countByExample(PaymentTradeExample example);",
"public void incrementNumberOfWins(TypeOfGames type) {\n statistics.get(type).incrementNumberOfWins();\n }",
"public int getTotalCoins() {\r\n\t\treturn goods.get(Resource.COIN);\r\n\t}",
"public int calculatePrice(FruitEnum type, List<Fruit> list){\n if (list.isEmpty()) return 0;\n Fruit fruit = list.get(0);\n //System.out.println(\"Fruit \" + fruit);\n Promotion promotion = fruit.promotion;\n //System.out.println(\"Promotion \" + promotion);\n return promotion.promotionalTotal(list);\n }",
"public int randomizedNumberOfLocksByChestType(Random random, TreasureChestType type) {\n\t\t// determine the number of locks to add\n\t\tint numLocks = RandomHelper.randomInt(random, 1, type.getMaxLocks());\t\t\n\t\tTreasure.logger.debug(\"# of locks to use: {})\", numLocks);\n\t\t\n\t\treturn numLocks;\n\t}",
"int getPickupsCount();",
"@java.lang.Override\n public int getWalletTypeCount() {\n return walletType_.size();\n }",
"private int getNumberOfMachineUnits() {\r\n\t\tint machineUnitsCount = 0;\r\n\r\n\t\tfor (UnitType unitType : RepairableUnitTypes) {\r\n\t\t\tmachineUnitsCount += this.informationStorage.getCurrentGameInformation().getCurrentUnitCounts()\r\n\t\t\t\t\t.getOrDefault(unitType, 0);\r\n\t\t}\r\n\t\treturn machineUnitsCount;\r\n\t}",
"public int totalAllocatedOrders();",
"private Long determineCapacity(Volume volume, Volume.PersonalityTypes type, Long capacityToUseInCalculation) {\n long capacity = 0L;\n\n StorageSystem storageSystem = _dbClient.queryObject(StorageSystem.class, volume.getStorageController());\n\n if (type == Volume.PersonalityTypes.SOURCE) {\n capacity = capacityCalculatorFactory.getCapacityCalculator(storageSystem.getSystemType()).calculateAllocatedCapacity(\n capacityToUseInCalculation);\n } else if (type == Volume.PersonalityTypes.TARGET) {\n capacity = capacityCalculatorFactory.getCapacityCalculator(storageSystem.getSystemType()).calculateAllocatedCapacity(\n capacityToUseInCalculation + 5242880L);\n }\n\n return capacity;\n }",
"public int getTotRuptures();",
"public int getCoinsNum();",
"public static void addToCount(char Type) {\n if (Type == CARD) {\n globalCardCount++;\n } else if (Type == RIDER) {\n globalRiderCount++;\n }\n }",
"public Integer getBuyCount() {\n return buyCount;\n }",
"long countByExample(SupplyNeedExample example);",
"int getActAmountCount();",
"private static int getNumLiveUnits(ArrayList<Unit> party){\n\t\tint count=0;\n\t\tfor(Unit u:party){\n\t\t\tif(!u.getPokemon().isFainted())\n\t\t\t\tcount++;\n\t\t}\n\t\treturn count;\n\t}",
"int getReaultCount();",
"public Double calculateTotal(String type, Double price, Double numberOfCoins, Double fees) {\n\t\tif (type == \"Kauf\") {\n\t\t\treturn (price * numberOfCoins) + fees;\n\t\t} else {\n\t\t\treturn ((price * numberOfCoins) + fees) * -1;\n\t\t}\n\t}",
"public void incrementNumberGames(TypeOfGames type) {\n statistics.get(type).incrementNumberGames();\n }",
"private static int getSize(int type) {\n switch (type) {\n case 0:\n return 65535;\n case 1:\n return 78513;\n case 2:\n return 101597;//getModelCount();\n case 3:\n return 3696;\n case 4:\n return 4193;\n case 5:\n return 6827;\n case 6:\n return 8487;\n case 7:\n return 645;//midiIndices.length;\n /*case 8:\n return 0;//getAnimCount();\n case 9:\n return 0;//getMapAmount();\n case 10:\n return 34026;\n case 11:\n return 3159;\n case 12:\n return 1956;*/\n }\n return 0;\n }",
"public long countLotsByEntityTypeAndEntityId(String type, Integer entityId) throws MiddlewareQueryException;",
"@Override\n\tpublic int numUses() {\n\t\treturn this.use;\n\t}",
"public int countElectronicsByMaker(String maker)\n { \n \tint count = 0;\n \tfor( Gizmo g : purchases )\n \t{\n \t\tif( g.getMaker().equals( maker ) && g.isElectronic()==true )\n \t\t\tcount = count + 1; //or count++\n \t}\n \treturn count; \t\n }",
"long countByExample(cskaoyan_mall_order_goodsExample example);",
"int countByExample(PaymentTradeExampleExtended example);",
"public static int size_receivets() {\n return (32 / 8);\n }",
"int getQuantite();",
"int getQuantite();",
"public int getCapacity( Resource.Type type );",
"public void countCoins() {\r\n\t\tthis.coinCount = 0;\r\n\t\tfor (int x = 0; x < WIDTH; x++) {\r\n\t\t\tfor (int y = 0; y < HEIGHT; y++) {\r\n\t\t\t\tif (this.accessType(x, y) == 'C')\r\n\t\t\t\t\tthis.coinCount++;\r\n\t\t\t}\r\n\t\t}\r\n\t}"
] | [
"0.8073928",
"0.7068639",
"0.6642843",
"0.6636602",
"0.6535373",
"0.65104234",
"0.64347166",
"0.6407017",
"0.63997996",
"0.6379779",
"0.63688993",
"0.6336564",
"0.6299976",
"0.6209367",
"0.617198",
"0.6128459",
"0.612088",
"0.6114059",
"0.610018",
"0.6099765",
"0.60742843",
"0.60732496",
"0.6068707",
"0.6026015",
"0.59597856",
"0.59425294",
"0.5939157",
"0.5918404",
"0.59005517",
"0.5899332",
"0.58913857",
"0.5891096",
"0.5862938",
"0.586154",
"0.58284307",
"0.5819985",
"0.58144546",
"0.5811386",
"0.5771291",
"0.57611436",
"0.57303756",
"0.5702899",
"0.5694363",
"0.5678056",
"0.56736404",
"0.56612384",
"0.5650301",
"0.56465197",
"0.56360596",
"0.56287754",
"0.56267834",
"0.5624555",
"0.5624256",
"0.56239504",
"0.5618649",
"0.56121707",
"0.5611153",
"0.55969286",
"0.55883634",
"0.55867606",
"0.5586431",
"0.5582579",
"0.55767745",
"0.55767745",
"0.55755997",
"0.5541618",
"0.5539235",
"0.5539235",
"0.5538141",
"0.55210364",
"0.5507611",
"0.5503264",
"0.5493722",
"0.5486211",
"0.5476741",
"0.5474002",
"0.5467333",
"0.54666203",
"0.5457329",
"0.545381",
"0.54521054",
"0.5446281",
"0.54423606",
"0.54352576",
"0.54294944",
"0.54233044",
"0.5422289",
"0.5400914",
"0.5398918",
"0.5396618",
"0.5394406",
"0.53745437",
"0.53695196",
"0.5367001",
"0.5366554",
"0.5360464",
"0.5359489",
"0.5359489",
"0.53528965",
"0.5343574"
] | 0.6227407 | 13 |
Returns the number of goods of all given types used by the settlement each turn. | public int getConsumptionOf(List<GoodsType> goodsTypes) {
int result = 0;
if (goodsTypes != null) {
for (GoodsType goodsType : goodsTypes) {
result += getConsumptionOf(goodsType);
}
}
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int getGoodsCount(GoodsType type) {\n return colony.getGoodsCount(type);\n }",
"@SuppressWarnings(BookFlowConstants.BOXING)\r\n private int getCount(final Collection<String> types, final String type)\r\n {\r\n int paxCount = 0;\r\n for (final String passengerType : types)\r\n {\r\n if (StringUtils.equalsIgnoreCase(passengerType.trim(), type))\r\n {\r\n paxCount++;\r\n }\r\n }\r\n return paxCount;\r\n }",
"public int availableCars(String type) {\r\n\t\tString typeCar = type.trim().toLowerCase();\r\n\t\tint count = 0;\r\n\r\n\t\tif (typeCar.equals(\"small\")) {\r\n\t\t\tfor (InterfaceAbstractCar car : companyCars) {\r\n\t\t\t\tif (car.getType().equals(TypeOfCar.SMALL) && !car.isCarRented()) {\r\n\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else if (typeCar.equals(\"large\")) {\r\n\t\t\tfor (InterfaceAbstractCar car : companyCars) {\r\n\t\t\t\tif (car.getType().equals(TypeOfCar.LARGE) && !car.isCarRented()) {\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthrow new IllegalArgumentException(\r\n\t\t\t\t\t\"Type of car has been entered incorrectly. Needs to be 'small' or 'large'\");\r\n\t\t}\r\n\r\n\t\treturn count;\r\n\t}",
"public int numberSeatsUsed(FlightEntity flight, int type);",
"public long countLotsByEntityType(String type) throws MiddlewareQueryException;",
"public int countByType(long typeId);",
"int getTrucksCount();",
"int getNumOfBuyOrders();",
"@Override\r\n\tpublic int getTotalCount(Class<T> type) {\n\t\treturn (int) super.getSessionFactory().getCurrentSession().createQuery(\"select count(1) as num from \"+\r\n\t\t\t\ttype.getName()+\"\").uniqueResult();\r\n\t}",
"public int getConsumptionOf(GoodsType goodsType) {\n int result = 0;\n for (Unit unit : getUnitList()) {\n result += unit.getType().getConsumptionOf(goodsType);\n }\n return Math.max(0, result);\n }",
"public int cantidadCartas(int type);",
"private int sizeForType(int type) {\n return sizeForTypeHistorical(type);\n\n }",
"public int countByProductType(String productType);",
"int getNumOfSellOrders();",
"public Integer getCountTyped(Class<?> type) {\n int count = 0;\n for (Map.Entry<Class<?>, List<EventRecording>> recordingEntry : events.entrySet()) {\n if (type.isAssignableFrom(recordingEntry.getKey())) {\n count += recordingEntry.getValue().size();\n }\n }\n return count;\n }",
"public static int getSum(String type) {\n\t\tVector<BookInfo> tmp = getAllBook();\n\t\tint result = 0;\n\n\t\tfor (BookInfo b : tmp) {\n\t\t\tif ( b.getBookID().substring(0, 2).equals(type) ) {\n\t\t\t\tresult += 1;\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}",
"public boolean getCount(String type){\n if(type.equals(\"Zombie\") && zombieCounter!=0){\n return true;\n } else return type.equals(\"Sandwich\") && sandwichCounter != 0;\n }",
"public static int getCount(char type) {\n if (type == CARD) {\n return globalCardCount;\n } else {\n return globalRiderCount;\n }\n }",
"private int getPersonTypeCountFromPassengers(final Collection<Passenger> passengers, final PersonType type)\r\n {\r\n final Set<PersonType> adultType = EnumSet.of(type);\r\n return PassengerUtils.getPersonTypeCountFromPassengers(passengers, adultType);\r\n }",
"int getUserTypesCount();",
"public int getNumberGoods() {\n return this.goods.size();\n }",
"public abstract int getProductionOf(GoodsType goodsType);",
"int getFundsCount();",
"int getFundsCount();",
"public static int numTypes(){\n byte[] types = genAllTypes();\n return types.length;\n }",
"public Integer getTotalCountForType(DasType type) throws DataSourceException {\n return null;\n }",
"default long getPartCount(ExecutionContext context, PartType type, Owner layer) {\n return getPartsInDisplayOrder(context, layer)\n .stream()\n .filter(p -> type == null || p.getType() == type)\n .count();\n }",
"public int getUsed(int agentIndex, int type, int day) {\n return usedGoods[agentIndex][day][type];\n }",
"public int getNumberOf(ResType type) { return resources.get(type); }",
"int getDeliveriesCount();",
"public int totalCostOfComponents(String component_type)\n\t{\n\t\tint total = 0;\n\t\tfor(Component comp: configuration.values())\n\t\t{\n\t\t\tif (component_type.equalsIgnoreCase(\"HardDisk\")) {\n\t\t\t if (comp instanceof HardDisk) {\n\t\t\t total += comp.getCost();\n\t\t\t }\n\t\t\t }\n\t\t\t if (component_type.equalsIgnoreCase(\"Processor\")) {\n\t\t\t if (comp instanceof Processor) {\n\t\t\t total += comp.getCost();\n\t\t\t }\n\t\t\t }\n\t\t\t if (component_type.equalsIgnoreCase(\"Display\")) {\n\t\t\t if (comp instanceof Display) {\n\t\t\t total += comp.getCost();\n\t\t\t }\n\t\t\t }\n\t\t}\n\t\treturn total;\n\t}",
"int getTotalBotCount() {\n int t = 0;\n\n for (Integer i : m_botTypes.values())\n t += i;\n\n return t;\n }",
"long countByExample(DashboardGoodsExample example);",
"public long getCount(MigrationType type);",
"int getPriceCount();",
"@java.lang.Override\n public int getWalletTypeCount() {\n return walletType_.size();\n }",
"public int getWalletTypeCount() {\n return walletType_.size();\n }",
"public Integer getCount(Class<?> type) {\n return events.containsKey(type) ? events.get(type).size() : 0;\n }",
"public int totalCostOfComponents(String component_type) {\n\t\tint total=0;\n\t\tint indexofat=0;\n\t\tString toClassName;\n\n\t\tfor (Component temp : components){\n\n\t\t\t/*\n\t\t\t * getting the index of @ char: calling toString method on an object usually\n\t\t\t * returns something similar to this: ClassName@13123133 where numbers\n\t\t\t * after @ refer to the object id.\n\t\t\t */\n\n\t\t\tindexofat = temp.toString().indexOf(\"@\"); \n\t\t\ttoClassName=temp.toString().substring(0, indexofat); //getting rid of the rest of the string\n\t\t\t//there was a simpler method using getClass\n\t\t\t//String toClassName = temp.getClass().getSimpleName(); //getName() or getTypeName() worked too\n\t\t\tif (toClassName.contentEquals(component_type) ) total+=temp.getCost(); //comparing the if the required class should be added to the sum\n\t\t}\n\t\treturn total;\n\n\n\t}",
"public int getNumOfGoods() {\n return numOfGoods;\n }",
"int getTransactionsCount();",
"int getPurchasableOffersCount();",
"public int getNetProductionOf(GoodsType type) {\n update();\n return netProduction.getCount(type);\n }",
"private int getNumberOfMachineUnits() {\r\n\t\tint machineUnitsCount = 0;\r\n\r\n\t\tfor (UnitType unitType : RepairableUnitTypes) {\r\n\t\t\tmachineUnitsCount += this.informationStorage.getCurrentGameInformation().getCurrentUnitCounts()\r\n\t\t\t\t\t.getOrDefault(unitType, 0);\r\n\t\t}\r\n\t\treturn machineUnitsCount;\r\n\t}",
"int getPickupsCount();",
"public static int size_receivets() {\n return (32 / 8);\n }",
"int getTruckstatusCount();",
"int getServicesCount();",
"int getServicesCount();",
"int countByExample(UserPonumberGoodsExample example);",
"public int size(){\n\t\treturn types.size();\n\t}",
"int getEducationsCount();",
"private static int getNumLiveUnits(ArrayList<Unit> party){\n\t\tint count=0;\n\t\tfor(Unit u:party){\n\t\t\tif(!u.getPokemon().isFainted())\n\t\t\t\tcount++;\n\t\t}\n\t\treturn count;\n\t}",
"public String getCount() {\r\n \t\r\n \tBoolean anyAges = Boolean.FALSE;\r\n \tBoolean anyAssayTypes = Boolean.FALSE;\r\n \tint count = 0;\r\n \t\r\n \tfor (String age: ages) {\r\n \t\tif (age.endsWith(\"ANY\")) {\r\n \t\t\tanyAges = Boolean.TRUE;\r\n \t\t}\r\n \t}\r\n \t\r\n \tfor (String type: assayTypes) {\r\n \t\tif (type.equals(\"ANY\")) {\r\n \t\t\tanyAssayTypes = Boolean.TRUE;\r\n \t\t}\r\n \t}\r\n \t\r\n \t// No Restrictions on Ages or AssayTypes, count everything\r\n \tif (anyAssayTypes && anyAges) {\r\n \tcount = record.getPairs().size(); \t\t\r\n \t}\r\n \t\r\n \t// There are restrictions on ages only, iterate and count appropriately.\r\n \t\r\n \telse if (anyAssayTypes) {\r\n \t\tfor (GxdLitAssayTypeAgePair pair: record.getPairs()) {\r\n \t\t\tfor (String age: ages) {\r\n \t\t\t\tif (pair.getAge().equals(age)) {\r\n \t\t\t\t\tcount ++;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \t\r\n \t// There are restrictions on assayTypes only, iterate and count appropriately.\r\n \t\r\n \telse if (anyAges) {\r\n \t\tfor (GxdLitAssayTypeAgePair pair: record.getPairs()) {\r\n \t\t\tfor (String type: assayTypes) {\r\n \t\t\t\tif (pair.getAssayType().equals(type)) {\r\n \t\t\t\t\tcount ++;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \t\r\n \telse {\r\n \t\tfor (GxdLitAssayTypeAgePair pair: record.getPairs()) {\r\n \t\t\tfor (String type: assayTypes) {\r\n \t\t\t\tfor (String age: ages) {\r\n \t\t\t\t\tif (pair.getAssayType().equals(type) && pair.getAge().equals(age)) {\r\n \t\t\t\t\t\tcount ++;\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n\r\n \treturn \"\" + count;\r\n \t\r\n }",
"int getActAmountCount();",
"int getReservePokemonCount();",
"int getAcksCount();",
"int getAcksCount();",
"public long countLotsByEntityTypeAndEntityId(String type, Integer entityId) throws MiddlewareQueryException;",
"public synchronized int addCount(int length, int type) {\n\n if (type == 1 || type == 2) {\n Totalstep.setStep_in_hand(Totalstep.getStep_in_hand() + length);\n } else if (type == 3) {\n\n if (Totalstep.getStep_in_hand() >= Totalstep.getStep_pocket())\n Totalstep.setStep_in_hand(Totalstep.getStep_in_hand() + length);\n else\n Totalstep.setStep_pocket(Totalstep.getStep_pocket() + length);\n\n } else if (type == 4) {\n\n Totalstep.setStep_pocket(Totalstep.getStep_pocket() + length);\n\n } else if (type == 5)\n Totalstep.setStep_in_run(Totalstep.getStep_in_run() + length);\n\n Totalstep.setTotal_step(Totalstep.getTotal_step() + length);\n\n count += length;\n return count;\n\n }",
"public static String calcType(ArrayList<Lap> laptimes, Type type) {\n\t\tint typeCount = 0;\n\t\tfor (Lap lap : laptimes) {\n\t\t\tif (lap.getType() == type) {\n\t\t\t\ttypeCount++;\n\t\t\t}\n\t\t}\n\t\treturn Integer.toString(typeCount);\n\t}",
"int countByExample(PaymentTradeExample example);",
"int getTransitFlightsCount();",
"@Override\r\n\tpublic int countCabsOfType(String carType) {\r\n\t\tlong count = cabRepository.countByCarType(carType);\r\n\t\tint cabCount =(int) count;\r\n\t\treturn cabCount;\r\n\t}",
"public int countElectronicsByMaker(String maker)\n { \n \tint count = 0;\n \tfor( Gizmo g : purchases )\n \t{\n \t\tif( g.getMaker().equals( maker ) && g.isElectronic()==true )\n \t\t\tcount = count + 1; //or count++\n \t}\n \treturn count; \t\n }",
"private int calculateTotalHeads() { //kept a separate method with a specific purpose instead of writing code in main\n\t\t//no need to static method, althouth static won't hurt in such a small code\n\t\tint headsCount = 0;\n\t\tfor (int currentCoinNo = 1; currentCoinNo <= noCoins; currentCoinNo++) { \n\t\t\tif(isHead(currentCoinNo)) {\n\t\t\t\theadsCount++;\n\t\t\t}\n\t\t}\n\t\treturn headsCount;\n\t}",
"public int totalOrdersTaken();",
"long countByExample(cskaoyan_mall_order_goodsExample example);",
"long countByExample(SupplyNeedExample example);",
"long getRecipesCount();",
"private int getNumberOfBoxesOfAllShips() {\r\n int count = 30;\r\n return count;\r\n }",
"int getNumberOfBots( String className ) {\n Integer number = m_botTypes.get( className );\n\n if( number == null ) {\n return 0;\n } else {\n return number.intValue();\n }\n }",
"int getCountOfAllBooks();",
"private static void calculateTotalHitsRequired()\n {\n totalHitsRequired = 0;\n \n // add all the ship lengths together to get\n // the total number of hits required\n for (int length : SHIP_LENGTHS)\n {\n totalHitsRequired += length;\n }\n }",
"@GetMapping(\"/class/{type}\")\n\t@ResponseBody\n\tpublic long totcountByCategorie(@PathVariable(\"type\")String type) {\n\t\t\n\t\treturn projectservice.totcountByCategorie(type);\n\t}",
"protected long doGetNumberOfSupertypes(Collection<? extends Topic> types, boolean all) {\r\n\t\treturn getParentIndex().getSupertypes(types, all).size();\r\n\t}",
"public long numberOf (String type) {\n return this.numberOf(\"tokens\", type);\n }",
"public int totalAllocatedOrders();",
"public MigrationTypeCount getMigrationTypeCount(MigrationType type);",
"public void countCoins() {\r\n\t\tthis.coinCount = 0;\r\n\t\tfor (int x = 0; x < WIDTH; x++) {\r\n\t\t\tfor (int y = 0; y < HEIGHT; y++) {\r\n\t\t\t\tif (this.accessType(x, y) == 'C')\r\n\t\t\t\t\tthis.coinCount++;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static int totalSupply() {\n return totalSupplyGet();\n }",
"public int numeroTipoOcupado(String tipo) {\n int i = 0;\n for (Map.Entry e : lista.entrySet()) {\n Equipamento eq = (Equipamento) e.getValue();\n if(tipo == eq.getTipo() && eq.getEstado().equals(\"Ocupado\"))\n i++;\n }\n return i;\n }",
"int countByExample(PaymentTradeExampleExtended example);",
"long getTotalProductsCount();",
"int getQuestCount();",
"int getNumberOfArtillery();",
"public void count() {\n\t\talgae = -1;\n\t\tcrab = -1;\n\t\tbigFish = -1;\n\t\tfor(GameObjects o: objects) {\n\t\t\tswitch(o.toString()) {\n\t\t\tcase \"algae\":\n\t\t\t\talgae +=1;\n\t\t\t\tbreak;\n\t\t\tcase \"crab\":\n\t\t\t\tcrab +=1;\n\t\t\t\tbreak;\n\t\t\tcase \"big fish\":\n\t\t\t\tbigFish +=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"protected final static int getPurchases(final Profile prf) {\n return Coltil.size(prf.availableClothings) + Coltil.size(prf.availableHats)\r\n \t\t+ Coltil.size(prf.availableJumpModes) + Coltil.size(prf.availableAssists)\r\n \t\t+ Coltil.size(prf.availableSpecialAnimals) + Coltil.size(prf.availableBirds) - 1;\r\n }",
"public ArrayList<Chair> combinations(ArrayList <Chair> item, String type, int amount) {\n for (int i = 0; i < item.size(); i++)\n {\n Chair temp = item.get(i);\n if (temp.getType() == type)\n myType.add(temp);\n }\n int legs = 0;\n int arms = 0;\n int seat = 0;\n int cushion = 0;\n\n for (int i = 0, i<myType.size(); i++)\n {\n Chair temp = item.get(i);\n if (temp.getLegs() == 'Y')\n legs++;\n if (temp.getArms() == 'Y')\n arms++;\n if (temp.getSeat() == 'Y')\n seat++;\n if (temp.getCushion() == 'Y')\n cushion++;\n }\n\n if (legs < amount || arms < amount || seat < amount || cushion < amount)\n ///call Manufacturing class\n\n else {\n List<String> list = new List <String>();\n for (String id : myType.getID()) //can be replaced with for loop of I did this wrong\n list.add(id);\n\n String[] passID = list.toArray(String[]::new);\n int set = myType.size();\n int maxmimum = 4*amount;\n if (set<maximum)\n maximum = set;\n powerSet(passID, maximum);\n }\n }",
"public long numberOf (String field, String type) {\n return this.numberOf(new KrillCollection(this), field, type);\n }",
"default int countItems(ItemStack... filters) {\n return countItems(StackFilters.anyOf(filters));\n }",
"public int randomizedNumberOfLocksByChestType(Random random, TreasureChestType type) {\n\t\t// determine the number of locks to add\n\t\tint numLocks = RandomHelper.randomInt(random, 1, type.getMaxLocks());\t\t\n\t\tTreasure.logger.debug(\"# of locks to use: {})\", numLocks);\n\t\t\n\t\treturn numLocks;\n\t}",
"public void availableTrains(int type, String source, String destination) {\n\n\t\tint i = 0, temp = 0;\n\n\t\tif (type == 1) {\n\n\t\t\tIterator<PassengerTrain> itr = TrainDetails.passengerList\n\t\t\t\t\t.iterator();// For passenger train\n\n\t\t\twhile (itr.hasNext()) {\n\t\t\t\tPassengerTrain passenger = itr.next();\n\n\t\t\t\tif (source.equalsIgnoreCase(passenger.getFromPlace())\n\t\t\t\t\t\t&& destination.equalsIgnoreCase(passenger.getToPlace())) {\n\t\t\t\t\ttemp = temp + 1;\n\t\t\t\t\tSystem.out.println(temp);\n\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"TRAINID\t\tSOURCE \t\tDESTINATION\tDURATION\tSEATS\t PRICE\");\n\t\t\t\t\t\ti++;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(passenger.getTrainId() + \"\t\t \"\n\t\t\t\t\t\t\t+ passenger.getFromPlace() + \"\t\t \"\n\t\t\t\t\t\t\t+ passenger.getToPlace() + \" \t\t\"\n\t\t\t\t\t\t\t+ passenger.getDuration() + \" \t\t\"\n\t\t\t\t\t\t\t+ passenger.getSeats() + \" \t\t\"\n\t\t\t\t\t\t\t+ passenger.getPrice());\n\n\t\t\t\t}\n\n\t\t\t\tif (temp == 0) {\n\t\t\t\t\tSystem.out.println(\"No such trains.Try Another\");\n\t\t\t\t\tTrainMenu menu1 = new TrainMenu();\n\t\t\t\t\tmenu1.menu();\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\telse {// For goods train\n\t\t\tIterator<GoodsTrain> itr = TrainDetails.goodsList.iterator();\n\t\t\twhile (itr.hasNext()) {\n\t\t\t\tGoodsTrain goods = itr.next();\n\t\t\t\tif (source.equalsIgnoreCase(goods.getFromPlace())\n\t\t\t\t\t\t&& destination.equalsIgnoreCase(goods.getToPlace())) {\n\t\t\t\t\ttemp = temp + 1;\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"Train Number \tSOURCE \t\tDESTINATION\t\tTIME\t\tWEIGHT\t\tPRICE\");\n\t\t\t\t\t\ti++;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(goods.getTrainId() + \"\t\t \"\n\t\t\t\t\t\t\t+ goods.getFromPlace() + \"\t\t \" + goods.getToPlace()\n\t\t\t\t\t\t\t+ \" \t\t\" + goods.getDuration() + \" \t\t\"\n\t\t\t\t\t\t\t+ goods.getWeight() + \" \t\t\" + goods.getPrice());\n\n\t\t\t\t}\n\n\t\t\t\tif (temp == 0) {\n\t\t\t\t\tSystem.out.println(\"No such trains.Try another\");\n\t\t\t\t\tTrainMenu menu1 = new TrainMenu();\n\t\t\t\t\tmenu1.menu();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public int countAll();",
"public int countAll();",
"public int countAll();",
"public int countAll();",
"public int countAll();",
"public int countAll();",
"public int countAll();"
] | [
"0.7510643",
"0.7255232",
"0.66344327",
"0.64692974",
"0.63577086",
"0.6274225",
"0.62550443",
"0.6188397",
"0.6081321",
"0.60587186",
"0.60543215",
"0.6039382",
"0.5952471",
"0.58854747",
"0.5881135",
"0.5845717",
"0.5824069",
"0.5821524",
"0.58213943",
"0.57911533",
"0.5765573",
"0.57630116",
"0.5760515",
"0.5760515",
"0.5760082",
"0.57516897",
"0.5745995",
"0.57204354",
"0.5713672",
"0.571355",
"0.5700544",
"0.56995136",
"0.5685958",
"0.5685575",
"0.56666833",
"0.5662445",
"0.56501776",
"0.5648983",
"0.5637865",
"0.5631772",
"0.5630509",
"0.55924225",
"0.55780643",
"0.5558353",
"0.5551651",
"0.5541549",
"0.5540045",
"0.5530282",
"0.5530282",
"0.55282485",
"0.55158746",
"0.5513809",
"0.55071044",
"0.54964566",
"0.54855955",
"0.5484054",
"0.54816604",
"0.54816604",
"0.5456065",
"0.5446096",
"0.54425055",
"0.5433883",
"0.54315513",
"0.54311115",
"0.54133385",
"0.540842",
"0.5405324",
"0.5389406",
"0.5385891",
"0.53767306",
"0.53761435",
"0.5373199",
"0.5364977",
"0.5358753",
"0.53454864",
"0.5338866",
"0.53348416",
"0.5334726",
"0.53342557",
"0.53306824",
"0.53133935",
"0.5310951",
"0.5310435",
"0.5306031",
"0.5288928",
"0.52881587",
"0.5285308",
"0.5281919",
"0.52790576",
"0.52730536",
"0.5272366",
"0.52706176",
"0.5261184",
"0.5259448",
"0.5259448",
"0.5259448",
"0.5259448",
"0.5259448",
"0.5259448",
"0.5259448"
] | 0.66388303 | 2 |
Gives the food needed to keep all units alive in this Settlement. | public int getFoodConsumption() {
return getConsumptionOf(getSpecification().getFoodGoodsTypeList());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void pickupFood() {\r\n\t\tif(this.food > 0){\r\n\t\t\tthis.food--;\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic double foodConsumption() {\n\t\treturn 0;\r\n\t}",
"public List<Food> getAvailableFood() {\n return availableFood;\n }",
"private void findFood() {\n\t\tAgentSpace agentSpace = Blackboard.inst().getSpace(AgentSpace.class, _obj.getName());\n\t\tMap<String,FoodEntry> map = agentSpace.getScentMemories().getFirst();\n\t\tif (map == null || map.size() == 0) { \n\t\t\tlogger.error(\"Should not happen\");\n\t\t\treturn;\n\t\t}\n\n\t\t_food = null;\n\t\tfloat distance = 0;\n\t\t\n\t\tfor (FoodEntry entry : map.values()) { \n\t\t\tfloat d = _obj.getPPosition().sub(entry.obj.getPPosition()).length();\n\t\t\tif (_food == null || d < distance) { \n\t\t\t\t_food = entry.obj;\n\t\t\t\tdistance = d;\n\t\t\t}\n\t\t}\n\t}",
"protected void dropFood() {\r\n\t\tthis.food++;\r\n\t}",
"public double getFoodQuantity() {\r\n\t\treturn fruitQuantity + meatQuantity;\r\n\t}",
"public void foodLocated() {\n ArrayList<Creature> creatures = world.getCreatureList();\n for (Creature c : creatures) {\n if (c.creatureLocation().equals(predatorLocation())) {\n //System.out.println(\"Eating Creature: \" + c.creatureLocation());\n c.removed();\n eaten++;\n }\n }\n for (int j = 0; j < world.getCreatureList().size(); j++) {\n if (!world.getCreatureList().get(j).isSpawned()) {\n world.despawnCreature(world.getCreatureList().get(j));\n }\n }\n }",
"public boolean hasFood() {\r\n\t\treturn this.food > 0;\r\n\t}",
"public void getFood()\r\n\t{\r\n\t\tsetRabbitWeight(getRabbitWeight() + 2);\r\n\t}",
"public int foodCount() {\r\n\t\treturn this.food;\r\n\t}",
"public void diplayAvailableFood() {\n\t\tfor (int i = 0; i < food.size(); i++) {\n\t\t\tSystem.out.print(food.get(i).name + \" \");\n\t\t}\n\t}",
"public void wearOutfit() {\r\n for (int index = 0; index < mTops.size(); index++) {\r\n mTops.get(index).setWorn(true);\r\n }\r\n for (int index = 0; index < mBottoms.size(); index++) {\r\n mBottoms.get(index).setWorn(true);\r\n }\r\n if (mShoes != null) {\r\n mShoes.setWorn(true);\r\n }\r\n for (int index = 0; index < mAccessories.size(); index++) {\r\n mAccessories.get(index).setWorn(true);\r\n }\r\n if (mHat != null) {\r\n mHat.setWorn(true);\r\n }\r\n }",
"double checkout() {\n\t\tdouble total = 0;\n\t\tfor (Fruit item : fruitList){\n\t\t\ttotal += item.getPrice();\t\n\t\t}\t\n\t\t\n\t\t// Apply offers and calculate total\n\t\tdouble discountGetOneFree = Offer.getOfferBuyOneGetOneFree(getFruitNameList(), new Apple() );\n\t\tdiscountGetOneFree += Offer.getOfferBuyOneGetOneFree(getFruitNameList(), new Banana() );\n\t\tdouble discountThreeForTwo = Offer.getOfferThreeForTwo(getFruitNameList(), new Orange() );\n\t\tdiscountThreeForTwo += Offer.getOfferThreeForTwo(getFruitNameList(), new Melon() );\t\t\n\t\tdouble discountCheapestForFree = Offer.cheapestFruitForFree(getFruitList());\n\t\ttotal += - discountGetOneFree - discountThreeForTwo - discountCheapestForFree;\n\t\t\n\t\tDecimalFormat df = new DecimalFormat(\"#,##0.00\");\n\t\t// Print out the total cost and saving\n\t\tSystem.out.println(String.format(\"£ %s Total cost\", df.format(total)));\n\t\tif (discountGetOneFree > 0)\n\t\t\tSystem.out.println(String.format(\"£ %s Promotional Saving *** Buy One Get One Free ***\", df.format(discountGetOneFree)));\n\t\tif (discountThreeForTwo > 0)\n\t\t\tSystem.out.println(String.format(\"£ %s Promotional Saving *** 3 for the price of 2 ***\", df.format(discountThreeForTwo)));\n\t\tif (discountCheapestForFree > 0)\n\t\t\tSystem.out.println(String.format(\"£ %s Promotional Saving *** Cheapest for free ***\", df.format(discountCheapestForFree)));\n\t\t\t\t\t\n\t\treturn total;\t\t\n\t}",
"public int getFood(){\r\n\t\treturn food;\r\n\t}",
"public double getCalories() {\n\t\tdouble mealCalories = 0;\n\t\tfor (String foodName : meal) {\n\t\t\tdouble calories = foodDetail.get(foodName).getCalories();\n\t\t\tdouble portion = foodPortion.get(foodName);\n\t\t\tmealCalories += calories * portion;\n\t\t}\n\t\treturn mealCalories;\n\t}",
"public boolean isFood() {\n\t\treturn food > 0;\n\t}",
"public int getFood() {\n\t\treturn food;\n\t}",
"private void harvest() {\n\t\t// if VERY far from flower, it must have died. start scouting\n\t\tif(grid.getDistance(grid.getLocation(targetFlower),grid.getLocation(this)) > 200) {\n\t\t\tstate = \"SCOUTING\";\n\t\t}\n\t\t// if crop storage is full, return to hive with information\n\t\telse if(food >= maxCrop) {\n\t\t\tif(targetFlower != null) {\n\t\t\t\tlastFlowerNectar = targetFlower.food;\n\t\t\t}\n\t\t\tstate = \"RETURNING\";\n\t\t}\n\t\t// if daylight is diminishing, return to hive\n\t\telse if(clock.time > (endForagingTime + 1.0)){\n\t\t\tlastFlowerNectar = 0;\n\t\t\tstate = \"RETURNING\";\n\t\t}\n\t\t// if flower loses all nectar, start scouting for new flower\n\t\telse if(targetFlower.food <= 0){\n\t\t\tstate = \"AIMLESSSCOUTING\";\n\t\t\ttempTime = clock.time;\n\t\t}\n\t\t// semi-random decision to scout for new flower if current flower has low food\n\t\telse if(RandomHelper.nextIntFromTo(0,(int)(maxFlowerNectar/4)) > targetFlower.food &&\n\t\t\t\tRandomHelper.nextDoubleFromTo(0,1) < forageNoise){\n\t\t\tstate = \"AIMLESSSCOUTING\";\n\t\t\ttempTime = clock.time;\n\t\t}\n\t\t// otherwise continue harvesting current flower\n\t\telse{\n\t\t\thover(grid.getLocation(targetFlower));\n\t\t\ttargetFlower.food -= foragingRate;\n\t\t\tfood += foragingRate;\n\t\t\tfood -= lowMetabolicRate;\n\t\t}\n\t}",
"private void eatCookedMeal(double eatingTime) {\n\t\t// Obtain the dry mass of the dessert\n\t\tdouble dryMass = cookedMeal.getDryMass();\n\t\t// Proportion of meal being eaten over this time period.\n\t\tdouble proportion = person.getEatingSpeed() * eatingTime;\n\n\t\tif (cumulativeProportion > dryMass) {\n\t\t\tdouble excess = cumulativeProportion - dryMass;\n\t\t\tcumulativeProportion = cumulativeProportion - excess;\n\t\t\tproportion = proportion - excess;\n\t\t}\n\n\t\tif (proportion > MIN) {\n\t\t\t// Add to cumulativeProportion\n\t\t\tcumulativeProportion += proportion;\n\t\t\t// Food amount eaten over this period of time.\n\t\t\tdouble hungerRelieved = RATIO * proportion / dryMass;\n\t\t\t\t\t\n//\t\t\tlogger.info(person + \" ate '\" + cookedMeal.getName()\n//\t\t\t\t\t+ \" currentHunger \" + Math.round(currentHunger*100.0)/100.0\n//\t\t\t\t\t+ \" hungerRelieved \" + Math.round(hungerRelieved*100.0)/100.0\n//\t\t\t\t\t+ \" proportion \" + Math.round(proportion*1000.0)/1000.0\n//\t\t\t\t\t+ \" EatingSpeed \" + Math.round(person.getEatingSpeed()*1000.0)/1000.0\n//\t\t\t\t\t+ \" foodConsumptionRate \" + Math.round(foodConsumptionRate*1000.0)/1000.0);\n\t\t\t\n\t\t\t// Change the hunger level after eating\n\t\t\treduceHunger(hungerRelieved);\n\t\n\t\t\t// Reduce person's stress over time from eating a cooked meal.\n\t\t\t// This is in addition to normal stress reduction from eating task.\n\t\t\tdouble stressModifier = STRESS_MODIFIER * (cookedMeal.getQuality() + 1D);\n\t\t\tdouble newStress = condition.getStress() + (stressModifier * eatingTime);\n\t\t\tcondition.setStress(newStress);\n\t\n\t\t\t// Add caloric energy from meal.\n\t\t\tdouble caloricEnergyFoodAmount = proportion / dryMass * PhysicalCondition.FOOD_COMPOSITION_ENERGY_RATIO;\n\t\t\tcondition.addEnergy(caloricEnergyFoodAmount);\n\t\t}\n\t}",
"private static boolean isAllItemsAreNotSoldOut(List<Chef> foodItemList) {\n boolean result = false;\n for (int i = 0; i < foodItemList.size(); i++) {\n for (int j = 0; j < foodItemList.get(i).getFoodItemList().size(); j++) {\n if (foodItemList.get(i).getFoodItemList().get(j).getAvailQty() == 0 || !foodItemList.get(i).getFoodItemList().get(j).getAvailable()) {\n result = true;\n }\n }\n }\n return result;\n }",
"public int getFoodCount()\r\n\t{\r\n\t\treturn foodCount;\r\n\t}",
"public void depleteFood(float dt){\n\t\tthis.foodLevel -= dt* this.starvationRate;\n\t\t\n\t}",
"public int sumCalories() {\n int calories = 0;\n\n for (Food f : units) {\n calories += f.getCalories();\n }\n\n return calories;\n }",
"public int getPoundsOfFoodNeeded() {\n\t\treturn this.poundsOfFoodNeeded;\n\t}",
"public void stay() {\n energy -= 0.01;\n if (energy < 0) {\n energy = 0;\n }\n }",
"public double getFat() {\n\t\tdouble mealFat = 0;\n\t\tfor (String foodName : meal) {\n\t\t\tdouble fat = foodDetail.get(foodName).getFat();\n\t\t\tdouble portion = foodPortion.get(foodName);\n\t\t\tmealFat += fat * portion;\n\t\t}\n\t\treturn mealFat;\n\t}",
"public void itemsSold() {\n quanitySnacks--;\n }",
"@Override\n public void run() {\n int slotsUsed = 0;\n int potentialBananas = 0;\n RSItem[] items = Inventory.getAll();\n for (RSItem item : items) {\n // If this isn't a bone count it\n if (item.getID() < 6904 || item.getID() > 6907) {\n slotsUsed++;\n }\n else {\n // Item id bone amount\n // 6904 1\n // 6905 2\n // 6906 3\n // 6907 4\n potentialBananas += 1 + item.getID() - 6904;\n }\n }\n \n int slotsAvailable = 28 - slotsUsed;\n\n RSItem[] food = Inventory.find(1963);\n\n // If have bananas/peaches, deposit them, else collect bones\n if (food.length > 0) {\n // Heal and then deposit\n float eatHealth = m_settings.m_eatHealth * Skills.getActualLevel(SKILLS.HITPOINTS);\n float eatTo = m_settings.m_eatTo * Skills.getActualLevel(SKILLS.HITPOINTS);\n \n if (food.length > 0 && Skills.getCurrentLevel(SKILLS.HITPOINTS) < eatHealth) {\n // Eat\n while (food.length > 0 && Skills.getCurrentLevel(SKILLS.HITPOINTS) < eatTo) {\n food[0].click(\"Eat\");\n m_script.sleep(300, 600);\n food = Inventory.find(1963);\n }\n }\n else {\n // Deposit\n RSObject[] objs = Objects.findNearest(50, \"Food chute\");\n if (objs.length > 0) {\n while (!objs[0].isOnScreen()) {\n Walking.blindWalkTo(objs[0]);\n m_script.sleep(250);\n }\n objs[0].click(\"Deposit\");\n m_script.sleep(1200);\n }\n }\n }\n else {\n // If we have more than a full load of bananas worth of bones, cast bones to peaches\n if (potentialBananas >= slotsAvailable) {\n // Cast bones to peaches\n Magic.selectSpell(\"Bones to Bananas\");\n }\n else {\n // Collect bananas\n RSObject[] bonePiles = Objects.findNearest(10725, 10726, 10727, 10728);\n if (bonePiles.length > 0) {\n while (!bonePiles[0].isOnScreen()) {\n Walking.blindWalkTo(bonePiles[0]);\n m_script.sleep(250);\n }\n bonePiles[0].click(\"Grab\");\n m_script.sleep(150);\n }\n }\n }\n }",
"public FoodGroup() {\n\t\tmeal = new ArrayList<String>();\n\t\tfoodDetail = new HashMap<String,Food>();\n\t\tfoodPortion = new HashMap<String,Double>();\n\t}",
"public Food(String foodName) {\n this.foodName = foodName;\n this.calories = Optional.empty();\n }",
"public void calculateCost() {\n \tdouble costToShipPack;\n \tint numOfPacks = 1;\n \t\n \tfor(Package p: this.packages) {\n \t\tcostToShipPack = 3 + (p.calcVolume() - 1);\n \t\tthis.totalAmounts.put(\"Package \"+numOfPacks, costToShipPack);\n \t\tnumOfPacks++;\n \t}\n \t\n }",
"public boolean isFood(){\n\t\treturn foodFlag;\n\t}",
"private void storeTrip(Player p){\r\n\t\tSystem.out.println(\"Welcome to the store!\");\r\n\t\tSystem.out.println(\"Just a reminder, you have $\" + p.getMoney() + \" to spend!\");\r\n\t\tSystem.out.println(\"Please Select An Option: \");\r\n\t\tSystem.out.println(\"1. Buy Food\");\r\n\t\tSystem.out.println(\"2. Buy Toys\");\r\n\t\tSystem.out.println(\"3. Leave the store\");\r\n\t\tArrayList<Toy> storetoys = store.getToys();\r\n\t\tArrayList<Food> storefood = store.getFoods();\r\n\t\tint[] toyamounts = store.getToyamounts();\r\n\t\tint[] foodamounts = store.getFoodamounts();\r\n\t\tint buyoption; //The buying option\r\n\t\tint c; //Counter\r\n\r\n\t\tint selectedoption = getNumber(1, 3);\r\n\t\tswitch(selectedoption){\r\n\t\t//Buy food\r\n\t\tcase 1:\r\n\t\t\tc = 1;\r\n\t\t\tfor(Food f : storefood){\r\n\t\t\t\tSystem.out.println(c + \". \" + f.getName() + \"\\nPrice: $\" + f.getValue() + \" Stock: \" + foodamounts[c-1]);\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tc++;\r\n\t\t\t}\r\n\t\t\tbuyoption = getNumber(1, storefood.size());\r\n\t\t\tFood selectedfood = storefood.get(buyoption -1);\r\n\t\t\tif(p.getMoney() > selectedfood.getValue() && foodamounts[buyoption-1] > 0){\r\n\t\t\t\tp.setMoney(p.getMoney() - selectedfood.getValue());\r\n\t\t\t\tfoodamounts[buyoption -1]--; //Take one away, as it has been sold.\r\n\t\t\t\tp.addFood(selectedfood);\r\n\t\t\t\tstore.setFoodamounts(foodamounts);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\t\t//Buy toys\r\n\t\tcase 2:\r\n\t\t\tc = 1;\r\n\t\t\tfor(Toy t : storetoys){\r\n\t\t\t\tSystem.out.println(c + \". \" + t.getName() + \"\\nPrice: $\" + t.getPrice() + \" Stock: \" + toyamounts[c-1]);\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tc++;\r\n\t\t\t}\r\n\t\t\tbuyoption = getNumber(1, storetoys.size());\r\n\t\t\tToy selectedtoy = storetoys.get(buyoption -1);\r\n\t\t\tif(p.getMoney() > selectedtoy.getPrice() && toyamounts[buyoption-1] > 0){\r\n\t\t\t\tp.setMoney(p.getMoney() - selectedtoy.getPrice());\r\n\t\t\t\ttoyamounts[buyoption -1]--; //Take one away, as it has been sold.\r\n\t\t\t\tp.addToy(selectedtoy);\r\n\t\t\t\tstore.setToyamounts(toyamounts);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"\\n\\n\\n\\n\\n\\nError. Either the store was out of stock for the selected product or the player was out of money.\");\r\n\t\t\t}\r\n\t\tcase 3:\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"ERROR\");\r\n\t\t}\r\n\t}",
"@SuppressWarnings(\"RedundantCast\")\n private static double calculateFoodPotential(AltoClef mod) {\n double potentialFood = 0;\n for (ItemStack food : mod.getItemStorage().getItemStacksPlayerInventory(true)) {\n potentialFood += getFoodPotential(food);\n }\n int potentialBread = (int) (mod.getItemStorage().getItemCount(Items.WHEAT) / 3) + mod.getItemStorage().getItemCount(Items.HAY_BLOCK) * 3;\n potentialFood += Objects.requireNonNull(Items.BREAD.getFoodComponent()).getHunger() * potentialBread;\n // Check smelting\n ScreenHandler screen = mod.getPlayer().currentScreenHandler;\n if (screen instanceof SmokerScreenHandler) {\n potentialFood += getFoodPotential(StorageHelper.getItemStackInSlot(SmokerSlot.INPUT_SLOT_MATERIALS));\n potentialFood += getFoodPotential(StorageHelper.getItemStackInSlot(SmokerSlot.OUTPUT_SLOT));\n }\n return potentialFood;\n }",
"private int currentCapacity(){\n int total = 0;\n \n for(int i = Elevator.MIN_FLOOR; i <= Elevator.MAX_FLOOR; i++){\n total += destinedPassengers[i];\n }\n \n return total;\n }",
"public int spawn() {\n int totalNumOfFryBorn = 0;\n Iterator<Guppy> it = guppiesInPool.iterator();\n ArrayList<Guppy> currentBabies = new ArrayList<>();\n\n while (it.hasNext()) {\n Guppy mother = it.next();\n ArrayList<Guppy> newBabies = mother.spawn();\n if (newBabies != null) {\n totalNumOfFryBorn += newBabies.size();\n currentBabies.addAll(newBabies);\n }\n }\n guppiesInPool.addAll(currentBabies);\n return totalNumOfFryBorn;\n }",
"@Override\r\n public Food createFood(List<Coordinate> obstacles) {\r\n Random random = new Random();\r\n double num = random.nextDouble();\r\n\r\n if (num <= MushroomPowerUp.rarity) {\r\n return new MushroomPowerUp(randomCoordinates(obstacles));\r\n }\r\n if (num <= DoubleScorePowerUp.rarity + MushroomPowerUp.rarity) {\r\n return new DoubleScorePowerUp(randomCoordinates(obstacles));\r\n }\r\n return new AppleFactory().createFood();\r\n }",
"public List<Food> getFoods() {\n return FoodListManager.convertListToFoods(foodEntries);\n }",
"void cook(Food food) {\n //cook in pressure cooker\n }",
"public Food()\n {\n x = (int) Math.floor(Math.random() * RANGEX)*20;\n y = (int) Math.floor(Math.random() * RANGEY)*20;\n isEaten = false;\n }",
"public static void main(String[] args) {\n\r\n Ingredient ingredient=new Ingredient();\r\n\r\n Food pasta=new Pasta();\r\n String pastaItems=ingredient.getPastaItems();\r\n pasta.prepareFood(pastaItems);\r\n System.out.println(pasta.deliverFood());\r\n\r\n\r\n System.out.println(\"------------FACADE---------------\");\r\n\r\n System.out.println(Waiter.deliveryFood(FoodType.PASTA));\r\n\r\n\r\n\r\n\r\n\r\n\r\n }",
"public int adjustForCrowding() {\n int deadGuppyCount = 0;\n\n Collections.sort(this.guppiesInPool, new Comparator<Guppy>() {\n @Override\n public int compare(Guppy g1, Guppy g2) {\n return Double.compare(g1.getHealthCoefficient(), g2.getHealthCoefficient());\n }\n });\n\n Guppy weakestGuppy;\n Iterator<Guppy> it = guppiesInPool.iterator();\n double volumeNeeded = this.getGuppyVolumeRequirementInLitres();\n\n while (it.hasNext() && volumeNeeded > this.getVolumeLitres()) {\n weakestGuppy = it.next();\n volumeNeeded -= (weakestGuppy.getVolumeNeeded() / ML_TO_L_CONVERSION);\n\n weakestGuppy.setIsAlive(false);\n\n\n deadGuppyCount++;\n\n }\n return deadGuppyCount;\n }",
"public FinalMysteryItem() {\n int randomIndex = new Random().nextInt(7);\n item = new Item(listOfPossibleNames[randomIndex], PRICE_TO_BUY);\n }",
"public static int getSupplyFree() {\n return getSupplyTotal() - getSupplyUsed();\n }",
"public void raiseFoodFlag(){\n\t\tif(foodFlag != true && amountWorms > 0){\n\t\t\tfoodFlag = true;\n\t\t\tsw.getInstance(this);\n\t\t\tamountWorms--;\n\t\t\tAquaFrame.initWormStatus(amountWorms);\n\t\t}\n\t\telse{\n\t\t\tint num = 0;\n\t\t\tif(amountWorms == 0){\n\t\t\t\tupdate();\n\t\t\t}\n\t\t}\n\t}",
"public void eat() {\n int index;\n Cell selectedCell;\n if (getFoodArray() != null) {\n \n if (getFoodCount() > 0) {\n dayCountDown = getMaxHunger();\n index = RandomGenerator.nextNumber(getFoodCount());\n selectedCell = getFoodArray().get(index);\n \n if (getLocation().hasNotMove()) {\n new Holdable(getLocation()).init();\n this.setCell(selectedCell);\n \n getLocation().setMoved(false);\n }\n } else if (getLocation().getEmptyCount() != 0) {\n index = RandomGenerator.nextNumber(getLocation()\n .getEmptyCount());\n selectedCell = getLocation().getEmptyArray().get(index);\n \n if (getLocation().hasNotMove()) {\n dayCountDown--;\n new Holdable(getLocation()).init();\n this.setCell(selectedCell);\n \n \n getLocation().setMoved(false);\n }\n } else {\n dayCountDown--;\n getLocation().setMoved(false);\n }\n }\n \n }",
"public ch.ivyteam.ivy.scripting.objects.List<online.food.ordering.Food> getFoods()\n {\n return foods;\n }",
"public Integer getFoodAmount() {\n return foodAmount;\n }",
"public List<Establishment> establishmentCanTrade() {\n List<Establishment> can_take = new ArrayList<> ();\n for(int i = 0; i < Establishments.size(); i++) {\n Establishment check = Establishments.get(i);\n if(check.getName().equals(\"Wheat Field\") || check.getName().equals(\"Bakery\")) {\n if (check.getAvailable() > 1) {\n can_take.add(check);\n }\n } else if(!check.getColor().equals(Card.Color.PURPLE)) {\n can_take.add(check);\n }\n }\n return can_take;\n }",
"public void consumeFuel(double amount);",
"public Food(String name, int caloriesPerServing) {\n this.name = name;\n this.caloriesPerServing = caloriesPerServing;\n this.amount = 1;\n }",
"private void returnToHive() {\n\t\tGridPoint hiveLoc = grid.getLocation(hive);\n\t\t// if bee is inside hive\n\t\tif(grid.getDistance(grid.getLocation(this), hiveLoc) < 10) {\n\t\t\t// decide whether or not to dance (biased by nectar of last resource)\n\t\t\tif((RandomHelper.nextIntFromTo((int)(maxFlowerNectar/3), \n\t\t\t (int)(maxFlowerNectar/danceProbability)) < lastFlowerNectar)\n\t\t\t && waggle && targetFlower != null){\n\t\t\t\tdanceDuration = lastFlowerNectar/5;\n\t\t\t\thive.dancingBees.add(this);\n\t\t\t\tstate = \"DANCING\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\tstate = \"SLEEPING\";\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\t// otherwise continue toward hive\n\t\t\tmoveTowards(hiveLoc, 5);\n\t\t\tfood -= highMetabolicRate;\n\t\t}\n\t}",
"public ArrayList<Food> getFoods()\n {\n return foods;\n }",
"public List<Food> getAllFood() {\n\t\t\n\t\treturn foodDao.getAllFood();\n\t\t\n\t}",
"public void clear() {\n for (int i = 0; i < if_you_items.length; i++) {\n if_you_items[i].setEnabled(true);\n }\n for (int i = 0; i < then_we_items.length; i++) {\n then_we_items[i].setEnabled(true);\n }\n non_promised_ministries.clear();\n non_promised_ministries.addAll(all_ministries);\n // if not at war, can't ask/offer peace\n if (game.getDiplomacy().getDiplomaticState(game.getTurn(), faction) != C.DS_WAR) {\n if_you_items[IfYouWill.PEACE.ordinal()].setEnabled(false);\n then_we_items[ThenWeWill.PEACE.ordinal()].setEnabled(false);\n }\n if (faction > C.HOUSE5) { // non-house\n non_promised_ministries.clear();\n if_you_items[IfYouWill.TECH.ordinal()].setEnabled(false);\n then_we_items[ThenWeWill.TECH.ordinal()].setEnabled(false);\n if_you_items[IfYouWill.VOTES.ordinal()].setEnabled(false);\n then_we_items[ThenWeWill.VOTES.ordinal()].setEnabled(false);\n return;\n }\n // search for promised votes and ministries in pending contracts of sender\n for (Contract con : game.getDiplomacy().getSentContracts()) {\n for (Term term : con.getTerms()) {\n if (term.getDonor() == game.getTurn()) {\n switch (term.getType()) {\n case VOTES:\n System.out.println(\"DBG no votes\");\n then_we_items[ThenWeWill.VOTES.ordinal()].setEnabled(false);\n break;\n case MINISTRY:\n non_promised_ministries.remove(new Integer(term.getAmount()));\n break;\n case MONEY:\n break;\n case STATE:\n break;\n case TECH:\n break;\n default:\n throw new AssertionError();\n }\n }\n if (term.getDonor() == faction) {\n switch (term.getType()) {\n case VOTES:\n System.out.println(\"DBG no votes\");\n if_you_items[IfYouWill.VOTES.ordinal()].setEnabled(false);\n break;\n case MINISTRY:\n non_promised_ministries.remove(new Integer(term.getAmount()));\n break;\n case MONEY:\n break;\n case STATE:\n break;\n case TECH:\n break;\n default:\n throw new AssertionError();\n }\n }\n }\n }\n // search for promised votes and ministries for sender and for receiver\n // those that are made with sender\n if (game.getRegency().getVotes()[game.getTurn()][Regency.CANDIDATE_IDX] > -1\n || game.getRegency().getVotes()[faction][Regency.CANDIDATE_IDX] == game.getTurn()) {\n then_we_items[ThenWeWill.VOTES.ordinal()].setEnabled(false);\n if_you_items[IfYouWill.VOTES.ordinal()].setEnabled(false);\n }\n int[] promises = game.getDiplomacy().getMinistryPromises(game.getTurn());\n for (int i = 0; i < promises.length; i++) {\n if (promises[i] > -1) {\n non_promised_ministries.remove(new Integer(promises[i]));\n }\n }\n promises = game.getDiplomacy().getMinistryPromises(faction);\n for (int i = 0; i < promises.length; i++) {\n if (promises[i] == game.getTurn()) {\n non_promised_ministries.remove(new Integer(promises[i]));\n }\n }\n if (non_promised_ministries.isEmpty()) {\n then_we_items[ThenWeWill.MINISTRY.ordinal()].setEnabled(false);\n if_you_items[IfYouWill.MINISTRY.ordinal()].setEnabled(false);\n }\n }",
"public ArrayList<Food> getFood()\n\t{\n\t\treturn food;\n\t}",
"@Test\r\n public void testPurChaseBeverageWithNotEnoughInventory() {\r\n coffeeMaker.addRecipe(recipe2); // add mocha which use 20 chocolate while we only have 15 chocolate\r\n assertEquals(75, coffeeMaker.makeCoffee(0, 75)); // not enough recipe\r\n }",
"public List<InteractionResponse> togglePower() \n\t{\n\t\tList<InteractionResponse> response=new ArrayList<InteractionResponse>();\n\t\t//if the factory is turned off\n\t\tif (!active)\n\t\t{\n\t\t\t//if the factory isn't broken or the current recipe can repair it\n\t\t\tif(!isBroken()||isRepairing())\n\t\t\t{\n\t\t\t\t//is there fuel enough for at least once energy cycle?\n\t\t\t\tif (isFuelAvailable())\n\t\t\t\t{\n\t\t\t\t\t//are there enough materials for the current recipe in the chest?\n\t\t\t\t\tif (checkHasMaterials())\n\t\t\t\t\t{\n\t\t\t\t\t\t//turn the factory on\n\t\t\t\t\t\tpowerOn();\n\t\t\t\t\t\t//return a success message\n\t\t\t\t\t\tresponse.add(new InteractionResponse(InteractionResult.SUCCESS, \"Factory activated!\"));\n\t\t\t\t\t\treturn response;\n\t\t\t\t\t}\n\t\t\t\t\t//there are not enough materials for the recipe!\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t//return a failure message, containing which materials are needed for the recipe\n\t\t\t\t\t\t//[Requires the following: Amount Name, Amount Name.]\n\t\t\t\t\t\t//[Requires one of the following: Amount Name, Amount Name.]\n\t\t\t\t\t\t\n\t\t\t\t\t\tItemList<NamedItemStack> needAll=new ItemList<NamedItemStack>();\n\t\t\t\t\t\tItemList<NamedItemStack> allInputs = getAllInputs();\n\t\t\t\t\t\tneedAll.addAll(allInputs.getDifference(getInventory()));\n\t\t\t\t\t\tif(!needAll.isEmpty())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tresponse.add(new InteractionResponse(InteractionResult.FAILURE,\"You need all of the following: \"+needAll.toString()+\".\"));\n\t\t\t\t\t\t} else if (allInputs == null || allInputs.isEmpty()) {\n\t\t\t\t\t\t\tlog.warning(\"getAllInputs() returned null or empty; recipe is returning no expectation of input!\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn response;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//if there isn't enough fuel for at least one energy cycle\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t//return a error message\n\t\t\t\t\tint multiplesRequired=(int)Math.ceil(getProductionTime()/(double)getEnergyTime());\n\t\t\t\t\tresponse.add(new InteractionResponse(InteractionResult.FAILURE, \"Factory is missing fuel! (\"+getFuel().getMultiple(multiplesRequired).toString()+\")\"));\n\t\t\t\t\treturn response;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tresponse.add(new InteractionResponse(InteractionResult.FAILURE, \"Factory is in disrepair!\"));\n\t\t\t\treturn response;\n\t\t\t}\t\t\t\n\t\t}\n\t\t//if the factory is on already\n\t\telse\n\t\t{\n\t\t\t//turn the factory off\n\t\t\tpowerOff();\n\t\t\t//return success message\n\t\t\tresponse.add(new InteractionResponse(InteractionResult.FAILURE, \"Factory has been deactivated!\"));\n\t\t\treturn response;\n\t\t}\n\t}",
"public double getCarbs() {\n\t\tdouble mealCarbs = 0;\n\t\tfor (String foodName : meal) {\n\t\t\tdouble carbs = foodDetail.get(foodName).getCarbs();\n\t\t\tdouble portion = foodPortion.get(foodName);\n\t\t\tmealCarbs += carbs * portion;\n\t\t}\n\t\treturn mealCarbs;\n\t}",
"private int getNumberOfFreeChairs() {\n return this.numberOfChairs - waitingStudents.size();\n }",
"private void updateCurrentCalories() {\n currentCalories = 0;\n currentFats = 0;\n currentCarbs = 0;\n currentProteins = 0;\n for (Food food : foodListView.getItems()) {\n currentCalories += food.getCalories();\n currentFats += food.getFat().getAmount();\n currentCarbs += food.getCarbs().getAmount();\n currentProteins += food.getProtein().getAmount();\n }\n }",
"@Test\n public void notSell() {\n Game game = Game.getInstance();\n Player player = new Player(\"ED\", 4, 4, 4,\n 4, SolarSystems.GHAVI);\n game.setPlayer(player);\n game.getPlayer().getShip().getShipCargo().add(new CargoItem(2, Goods.Water));\n game.getPlayer().getShip().getShipCargo().add(new CargoItem(1, Goods.Food));\n game.getPlayer().getShip().getShipCargo().add(new CargoItem(0, Goods.Furs));\n CargoItem good = game.getPlayer().getShip().getShipCargo().get(2);\n \n int oldCredits = game.getPlayer().getCredits();\n good.getGood().sell(good.getGood(), 1);\n \n CargoItem water = game.getPlayer().getShip().getShipCargo().get(0);\n CargoItem food = game.getPlayer().getShip().getShipCargo().get(1);\n water.setQuantity(2);\n food.setQuantity(1);\n good.setQuantity(0);\n //int P = good.getGood().getPrice(1);\n int curr = game.getPlayer().getCredits();\n //boolean qn = water.getQuantity() == 2 && food.getQuantity() == 1 && good.getQuantity() == 0;\n boolean check = water.getQuantity() == 2;\n System.out.print(curr);\n assertEquals(curr, oldCredits);\n }",
"public int getCount() {\n\t\t\treturn foods.size();\n\t\t}",
"@Override\n public int requestAvailableCapacity() {\n int total = facility.getCapacity();\n for (Facility facility : facilities) {\n total += facility.getCapacity();\n }\n return total;\n }",
"public List<Food> findAllfood() {\n\t\treturn foodDao.findAllfood();\r\n\t}",
"public boolean isFull() {\n return numOfGoods == cargoSpace;\n }",
"public void eat(FoodList foods, AntList ants) {\n\t\tif (!dead){\n\t\tfor (int i = 0; i < foods.getQuantity(); i++) {\n\t\t\tif (Math.abs(foods.getFood(i).getX() - x) < 2\n\t\t\t\t\t&& Math.abs(foods.getFood(i).getY() - y) < 2\n\t\t\t\t\t&& !foods.getFood(i).isEaten()) {\n\t\t\t\tAntList.born(ants);\n\t\t\t\tfoods.getFood(i).eaten(foods);\n\t\t\t}\n\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic float desireability() {\n\t\tAgentSpace agentSpace = Blackboard.inst().getSpace(AgentSpace.class, _obj.getName());\n\t\tMap<String,FoodEntry> map = agentSpace.getScentMemories().getFirst();\n\t\tif (map == null || map.size() == 0) { \n\t\t\t// we don't smell anything\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\tAgentSpace space = Blackboard.inst().getSpace(AgentSpace.class, _obj.getName());\n\t\tBoundedEntry bounded = space.getBounded(Variable.energy);\n\t\tfloat pct = bounded.getValue() / bounded.getMax();\n\t\treturn 1 - (pct*pct);\n\t}",
"private void computeCoffeeMaker(){\n HashMap<String,String> notAvailableBeverages = coffeeMakerService.getNotAvailableBeverages();\n ArrayList<String> beverageNames = coffeeMakerService.getBeveragesName();\n for (String beverage: beverageNames) {\n if(notAvailableBeverages.containsKey(beverage)){\n System.out.println(notAvailableBeverages.get(beverage));\n }else{\n if(coffeeMakerService.canPrepareBeverage(beverage)){\n coffeeMakerService.prepareBeverage(beverage);\n System.out.println(beverage+\" is prepared\");\n }else{\n System.out.println(coffeeMakerService.getReasonForNotPreparation(beverage));\n }\n }\n }\n }",
"public void feed(int foodAmount) {\n energyLevel += foodAmount;\n \n // cap energy level when reaches max\n if(energyLevel > MAX_ENERGY) {\n energyLevel = MAX_ENERGY;\n }\n }",
"public Map<Integer, Integer> readCapacity() {\n int shelfId;\n int i;\n int amount;\n int countshelf = 0;\n\n for (shelfId = 1; shelfId < inventory.size(); shelfId++) {\n amount = 0;\n for (i = 0; i < inventory.size(); i++) {\n Map<String, Object> Item = new HashMap<>();\n Item = inventory.get(i);\n String x = Item.get(\"Shelf#\").toString();\n int y = Integer.parseInt(x);\n if (shelfId == y) {\n amount += Integer.parseInt(Item.get(\"Amount\").toString());\n }\n }\n if (amount != 0) {\n countshelf += 1;\n shelf.put(countshelf, ShelfCapacity - amount);\n }\n }\n\n //System.out.println(shelf);\n return shelf;\n }",
"private int getTotalPrice() {\n int unitPrice = 0;\n if (((CheckBox) findViewById(R.id.whipped_cream_checkbox)).isChecked()) {\n unitPrice += Constants.PRICE_TOPPING_WHIPPED_CREAM;\n }\n\n if (((CheckBox) findViewById(R.id.chocolate_checkbox)).isChecked()) {\n unitPrice += Constants.PRICE_TOPPING_CHOCOLATE;\n }\n\n unitPrice += Constants.PRICE_PER_COFFEE;\n return getNumberOfCoffees() * unitPrice;\n }",
"@Test\n\tpublic void bakersDozenInitiallyHoldTest() {\n\t\tBakersDozen obj = new BakersDozen();\n\t\t// Assert homeCell pile1 initially holds 0 cards\n\t\tassertEquals(0, obj.getHomeCellPile(1).getSize());\n\t\t// Assert homeCell pile2 initially holds 0 cards\n\t\tassertEquals(0, obj.getHomeCellPile(2).getSize());\n\t\t// Assert homeCell pile3 initially holds 0 cards\n\t\tassertEquals(0, obj.getHomeCellPile(3).getSize());\n\t\t// Assert homeCell pile4 initially holds 0 cards\n\t\t\n\t}",
"public FoodItem getFooditem() {\n return fooditem;\n }",
"public void withdrawAll() {\r\n for (int i = 0; i < container.capacity(); i++) {\r\n Item item = container.get(i);\r\n if (item == null) {\r\n continue;\r\n }\r\n int amount = owner.getInventory().getMaximumAdd(item);\r\n if (item.getCount() > amount) {\r\n item = new Item(item.getId(), amount);\r\n container.remove(item, false);\r\n owner.getInventory().add(item, false);\r\n } else {\r\n container.replace(null, i, false);\r\n owner.getInventory().add(item, false);\r\n }\r\n }\r\n container.update();\r\n owner.getInventory().update();\r\n }",
"private boolean eatPreservedFood(double eatingTime) {\n\t\tboolean result = true;\n\n\t\t// Proportion of food being eaten over this time period.\n\t\tdouble proportion = person.getEatingSpeed() * eatingTime;\n\n\t\tif (cumulativeProportion > foodConsumptionRate) {\n\t\t\tdouble excess = cumulativeProportion - foodConsumptionRate;\n\t\t\tcumulativeProportion = cumulativeProportion - excess;\n\t\t\tproportion = proportion - excess;\n\t\t}\n\t\t\n//\t\tlogger.info(person + \" proportion: \" + proportion);\n\t\tif (proportion > MIN) {\n\n\t\t\tUnit container = person.getContainerUnit();\n\t\t\tif (person.isInside()) {\n\t\t\t\tInventory inv = container.getInventory();\n\t\n\t\t\t\t// Take preserved food from inventory if it is available.\n\t\t\t\tboolean haveFood = Storage.retrieveAnResource(proportion, ResourceUtil.foodID, inv, true);\n\t\t\t\t\n\t\t\t\tif (haveFood) {\n\t\t\t\t\t// Add to cumulativeProportion\n\t\t\t\t\tcumulativeProportion += proportion;\n\t\t\t\t\t\n\t\t\t\t\tLogConsolidated.log(Level.INFO, 1000, sourceName,\n\t\t\t\t\t\t\t\"[\" + person.getLocationTag().getLocale() + \"] \" + person \n\t\t\t\t\t\t\t+ \" just ate \" + Math.round(proportion*1000.0)/1000.0 + \" kg of preserved food.\");\n\t\t\t\t\t\n\t\t\t\t\t// Food amount eaten over this period of time.\n\t\t\t\t\tdouble hungerRelieved = RATIO * proportion / foodConsumptionRate;\n//\t\t\t\t\tlogger.info(person + \"::eatPreservedFood()\"\n//\t\t\t\t\t\t\t+ \" currentHunger \" + Math.round(currentHunger*100.0)/100.0\n//\t\t\t\t\t\t\t+ \" hungerRelieved \" + Math.round(hungerRelieved*100.0)/100.0\n//\t\t\t\t\t\t\t+ \" proportion \" + Math.round(proportion*1000.0)/1000.0\n//\t\t\t\t\t\t\t+ \" EatingSpeed \" + Math.round(person.getEatingSpeed()*1000.0)/1000.0\n//\t\t\t\t\t\t\t+ \" foodConsumptionRate \" + Math.round(foodConsumptionRate*1000.0)/1000.0);\n\t\t\t\t\t\n\t\t\t\t\t// Consume preserved food after eating\n\t\t\t\t\treduceHunger(hungerRelieved);\n\t\n\t\t\t\t\t// Add caloric energy from the prserved food.\n\t\t\t\t\tdouble caloricEnergyFoodAmount = proportion / foodConsumptionRate * PhysicalCondition.FOOD_COMPOSITION_ENERGY_RATIO;\n\t\t\t\t\tcondition.addEnergy(caloricEnergyFoodAmount);\n\t\n\t\t\t\t} else {\n\t\t\t\t\t// Not enough food available to eat.\n\t\t\t\t\tresult = false;\n\t\t\t\t\t// Need endTask() below to quit EatDrink\n\t\t\t\t\tendTask();\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t// Person is not inside a container unit, so end task.\n\t\t\tresult = false;\n\t\t\t// Need endTask() below to quit EatDrink\n\t\t\tendTask();\n\t\t}\n\n\t\tif (totalEatingTime > getDuration())\n\t\t\tendTask();\n\t\t\n\t\treturn result;\n\t}",
"public void getKilledProduct() \n {\n try{\n Player.getInstance().getInventory().add(new CowMeat());\n } catch (IllegalAccessException e) {\n //Do nothing\n }\n }",
"public List<Ingredient> goShopping(final List<Ingredient> ingredients) {\n // get available ingredients\n stock = Market.buyIngredients(ingredients);\n // check possible orders and adjust each status\n route.stream().forEach(location -> location.getPreOrders().forEach(preOrder -> {\n if (isPossible(preOrder)) {\n // remove items from stock and set status\n removeFromStock(preOrder.getItems());\n preOrder.setStatus(Order.Status.CONFIRMED);\n } else {\n preOrder.setStatus(Order.Status.NOT_POSSIBLE);\n }\n }));\n // update reservationsMenu\n reservationMenu.clear();\n preOrderMenu.forEach(dish -> {\n if (isPossible(dish)) {\n reservationMenu.add(dish);\n }\n });\n moveToNextLocation();\n return stock;\n }",
"private double eatingPreservedFoodPhase(double time) {\n\t\tdouble remainingTime = 0D;\n\t\tdouble eatingTime = time;\n\t\n\t\tint rand = RandomUtil.getRandomInt(3);\n\t\t\n\t\tif (rand == 3) {\n\t\t\t// try out dessert instead of eating preserved food\n\t\t\tsetPhase(PICK_UP_DESSERT);\n\t\t\tremainingTime = time * .75;\n\t\t}\n\t\telse {\n\t\t\t\n\t\t\tboolean enoughFood = eatPreservedFood(eatingTime);\n\t\n\t\t\t// If not enough preserved food available, change to dessert phase.\n\t\t\tif (!enoughFood) {\n\t\t\t\tsetPhase(PICK_UP_DESSERT);\n\t\t\t\tremainingTime = time * .5;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// Report eating preserved food.\n\t\t\t\tsetDescription(Msg.getString(\"Task.description.eatDrink.preserved\")); //$NON-NLS-1$\n\t\t\t\t\n\t\t\t\tif ((totalEatingTime + eatingTime) >= eatingDuration) {\n\t\t\t\t\teatingTime = eatingDuration - totalEatingTime;\n\t\t\t\t}\n\n\t\t\t\tif (cumulativeProportion > foodConsumptionRate) {\n\t\t\t\t\tendTask();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (eatingTime < time) {\n\t\t\t\t\tremainingTime = time - eatingTime;\n\t\t\t\t}\n\n\t\t\t\ttotalEatingTime += eatingTime;\n\n\t\t\t\tif (totalEatingTime > getDuration())\n\t\t\t\t\tendTask();\n\t\t\t\t\t\t\n\t\t\t\tconsumeWater(false);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn remainingTime;\n\t}",
"private void eat() {\r\n\t\tthis.energy = this.baseEnergy;\r\n\t\tArrayList<Block> foodNeighbors = (ArrayList<Block>)this.getBlock().getAdjacent(prey, \"2457\");\r\n\t\twhile (foodNeighbors.size() > 0) {\r\n\t\t\tint randomNeighbor = r.nextInt(foodNeighbors.size());\r\n\t\t\tBlock b = this.getBlock();\r\n\t\t\tBlock t = foodNeighbors.get(randomNeighbor);\r\n\t\t\tif (!t.getNextCell().getNextState().equals(predator)) {\r\n\t\t\t\tmoveCell(this, b, t, new WaTorCell(this.getBlock(), new WaTorState(State.EMPTY_STATE),\r\n\t\t\t\t\t\tthis.ageToReproduce, this.baseEnergy));\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tfoodNeighbors.remove(t);\r\n\t\t}\r\n\t\tcellPreyRules(new WaTorState(WaTorState.WATOR_PREDATOR));\r\n\t}",
"float calFuelConsumption(float distance, float numLiters);",
"double getTodaysExpenditureAmount() {\n Long time = new Date().getTime();\n Date date = new Date(time - time % (DAY_DURATION));\n return getExpenditureAmount(date.getTime(), date.getTime() + (DAY_DURATION));\n }",
"public void buyLife() {\n this.lives++;\n livesWereBought++;\n\n }",
"public List<Treasure> giveInventory() {\r\n return treasures;\r\n }",
"@Override\r\n\tpublic double findHappiness(ArrayList<Gift> gifts) {\n\t\tdouble total_price = 0;\r\n\t\tdouble luxury_value = 0;\r\n\t\tfor(Gift gift : gifts) {\r\n\t\t\ttotal_price += gift.getPrice();\r\n\t\t\tif(gift.getType() == 1)\r\n\t\t\t\tluxury_value += gift.getValue();\r\n\t\t}\r\n\t\tdouble ans = Math.log(total_price - (double)this.getMaintenance() + 2*luxury_value);\r\n\t\treturn ans;\r\n\t}",
"public int houseCost() {\n\t\treturn houses;\n\t}",
"private static List<StaffNotification> getStaffToNotify(FoodOrder foodOrder) {\n EntityManager entityManager = DatabaseManager.getInstance().getEntityManager();\n List<StaffNotification> staffNotifications = null;\n OrderStatus orderStatus = foodOrder.getStatus();\n // If the order has just been cooked we want the relevant waiter.\n if (orderStatus == OrderStatus.COOKING) {\n\n staffNotifications = entityManager\n .createQuery(\"from StaffNotification staffNotification \"\n + \"where staffNotification.staff.department = :department\", StaffNotification.class)\n .setParameter(\"department\", Department.KITCHEN).getResultList();\n } else if (orderStatus == OrderStatus.READY_TO_DELIVER | orderStatus == OrderStatus\n .READY_TO_CONFIRM) {\n // get a list of waiters on a table.\n staffNotifications = entityManager\n .createQuery(\"from StaffNotification staffNotification\"\n + \" where staffNotification.staff.department = :department and staffNotification.staff.employeeNumber = :serverNumber\",\n StaffNotification.class).setParameter(\"department\", Department.WAITER)\n .setParameter(\"serverNumber\",\n foodOrder.getTransaction().getRestaurantTableStaff().getStaff().getEmployeeNumber())\n .getResultList();\n // If the order has just been confirmed we want to tell the kitchen.\n }\n entityManager.close();\n\n return staffNotifications;\n }",
"public void sellHouse(){\n if(numberHouses != 0){\n owner.addMoney(costs[1]/2);\n numberHouses--;\n }\n }",
"public int getDeliveriesCount() {\n return deliveries_.size();\n }",
"int getDeliveriesCount();",
"public void totalDaysNutrition(){\n\n //if no meals are set clear the daily nutritional information\n if (breakfastCombo.getSelectionModel().isEmpty() && lunchCombo.getSelectionModel().isEmpty() &&\n dinnerCombo.getSelectionModel().isEmpty()){\n clearTotalNutrition();\n return;\n }\n\n double totalCalories = 0;\n double totalSugar = 0;\n double totalProtein = 0;\n double totalFibre = 0;\n double totalCarbs = 0;\n double totalFat = 0;\n\n //get breakfast nutritional information\n //if there is a selection priorities over saved meal\n if (!breakfastCombo.getSelectionModel().isEmpty()){\n Recipe breakfast = breakfastCombo.getSelectionModel().getSelectedItem();\n totalCalories = breakfast.getTotalCalories();\n totalCarbs = breakfast.getTotalCarbs();\n totalSugar = breakfast.getTotalSugar();\n totalProtein = breakfast.getTotalProtein();\n totalFibre = breakfast.getTotalFibre();\n totalFat = breakfast.getTotalFat();\n }\n\n //get lunch nutritional information\n //if there is a selection priorities over saved meal\n if (!lunchCombo.getSelectionModel().isEmpty()){\n Recipe lunch = lunchCombo.getSelectionModel().getSelectedItem();\n totalCalories += lunch.getTotalCalories();\n totalCarbs += lunch.getTotalCarbs();\n totalSugar += lunch.getTotalSugar();\n totalProtein += lunch.getTotalProtein();\n totalFibre += lunch.getTotalFibre();\n totalFat += lunch.getTotalFat();\n }\n\n //get dinner nutritional information\n //if there is a selection priorities over saved meal\n if (!dinnerCombo.getSelectionModel().isEmpty()){\n Recipe dinner = dinnerCombo.getSelectionModel().getSelectedItem();\n totalCalories += dinner.getTotalCalories();\n totalCarbs += dinner.getTotalCarbs();\n totalSugar += dinner.getTotalSugar();\n totalProtein += dinner.getTotalProtein();\n totalFibre += dinner.getTotalFibre();\n totalFat += dinner.getTotalFat();\n }\n\n //round the totals\n int calories = (int) Math.round(totalCalories);\n int sugar = (int) Math.round(totalSugar);\n int protein = (int) Math.round(totalProtein);\n int fibre = (int) Math.round(totalFibre);\n int carbs = (int) Math.round(totalCarbs);\n int fat = (int) Math.round(totalFat);\n\n //format information into strings\n String lineOne = \"Calories \" + calories + \"KCal\\t Sugar \" + sugar + \" g\\t\\t Protein \" + protein + \" g\";\n String lineTwo = \"Fibre \" + fibre + \" g\\t\\t\\t Carbs \" + carbs + \" g\\t\\t Fat \" + fat + \" g\";\n\n //format and display the information in labels\n setUpNutritionLabel(totalNutritionOne, plannerColor, lineOne);\n setUpNutritionLabel(totalNutritionTwo, plannerColor, lineTwo);\n\n }",
"public double calcEnergyToBeBought(double neededEnergy) {\n double energyLossIncluded = neededEnergy/cableEnergyLoss; //Here the amount of energy lost is calculated, see cable.getCost() and http://large.stanford.edu/courses/2010/ph240/harting1/\n return energyOffer.getEnergy() <= energyLossIncluded ? (energyOffer.getEnergy()) : energyLossIncluded;\n }",
"public TypicalDay() {\n\t\tnbDeliveries = 0;\n\t\twareHouse = -1;\n\t}",
"public final void cook(){\n\t\t\n\t\tprepare();\n\t\t\n\t\tif(customerWantsMeat()){\t\t\n\t\t\taddMeat();\t\t\n\t\t}\n\t\t\n\t\tif(customerWantsVegetables()){\t\n\t\t\taddVegetables();\t\t\t\n\t\t}\n\t\n\t\tsaveToPlate();\n\t\t\n\t}",
"private void consumeResources(){\n\n Main.gang.setFood(Main.gang.getFood() - (Main.gang.getGangMembers().size() * Main.gang.getFoodIntake()));\n Main.gang.setWater(Main.gang.getWater() - (Main.gang.getGangMembers().size() * Main.gang.getFoodIntake()));\n }",
"public void addFood(Food food, double serving) {\n\t\t\n\t\tString foodName = food.getName();\n\t\t\n\t\tif (foodDetail.containsKey(foodName)) {\n\t\t\tif (foodPortion.get(foodName) + serving==0) {\n\t\t\t\tfoodPortion.remove(foodName);\n\t\t\t\tfoodDetail.remove(foodName);\n\t\t\t\tmeal.remove(foodName);\n\t\t\t} else {\n\t\t\t\tfoodPortion.put(foodName, foodPortion.get(foodName) + serving);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tmeal.add(foodName);\n\t\t\tfoodDetail.put(foodName, food);\n\t\t\tfoodPortion.put(foodName, serving);\n\t\t}\n\t}",
"public Food(String foodName, double calories) {\n this.foodName = foodName;\n this.calories = Optional.of(calories);\n }",
"public FoodList() {\n this.foodEntries = new ArrayList<>();\n }",
"public boolean isAllBurntUp() {\n return (flammableItemCount == itemsOnFire);\n }",
"public static long getKeepalives() {\n return keepalives;\n }"
] | [
"0.628253",
"0.59958637",
"0.5967298",
"0.58936507",
"0.5826284",
"0.58008033",
"0.56535405",
"0.5631056",
"0.5625391",
"0.5560684",
"0.54444647",
"0.5441716",
"0.53903925",
"0.5372863",
"0.5365444",
"0.5359018",
"0.5349804",
"0.53428173",
"0.53056735",
"0.52844375",
"0.52843744",
"0.528106",
"0.5263322",
"0.5255428",
"0.52537376",
"0.52401096",
"0.5236023",
"0.5228242",
"0.522216",
"0.5220751",
"0.51930547",
"0.5182101",
"0.51762885",
"0.51721674",
"0.51617926",
"0.51523834",
"0.5148089",
"0.5146472",
"0.51382715",
"0.5138184",
"0.51296425",
"0.51247454",
"0.5123553",
"0.51221627",
"0.51158434",
"0.5104352",
"0.50991166",
"0.5091116",
"0.5089645",
"0.50885105",
"0.5083177",
"0.50766534",
"0.5074672",
"0.5074539",
"0.5069575",
"0.5067156",
"0.50518924",
"0.50511605",
"0.50479555",
"0.5047562",
"0.50384563",
"0.5033588",
"0.5026513",
"0.50241685",
"0.50098133",
"0.5007524",
"0.50059795",
"0.5005286",
"0.49803627",
"0.4973438",
"0.49664184",
"0.49548197",
"0.49427378",
"0.4937554",
"0.49245194",
"0.4923619",
"0.49166393",
"0.4913177",
"0.49113816",
"0.49073526",
"0.4904804",
"0.4904673",
"0.48909026",
"0.48906362",
"0.48866782",
"0.4880741",
"0.48779342",
"0.48747426",
"0.48743016",
"0.48741642",
"0.48695973",
"0.48671687",
"0.48648718",
"0.48608395",
"0.48582",
"0.48579666",
"0.4856452",
"0.48501503",
"0.48479113",
"0.48468333"
] | 0.5353291 | 16 |
Return true if this Colony could build at least one item of the given EquipmentType. | public boolean canBuildEquipment(EquipmentType equipmentType) {
for (AbstractGoods requiredGoods : equipmentType.getGoodsRequired()) {
if (getGoodsCount(requiredGoods.getType()) < requiredGoods.getAmount()) {
return false;
}
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean canProvideEquipment(EquipmentType equipmentType) {\n for (AbstractGoods goods : equipmentType.getGoodsRequired()) {\n int available = getGoodsCount(goods.getType());\n \n int breedingNumber = goods.getType().getBreedingNumber();\n if (breedingNumber != GoodsType.INFINITY) {\n available -= breedingNumber;\n }\n \n if (available < goods.getAmount()) return false;\n }\n return true;\n }",
"public boolean canProvideEquipment(List<EquipmentType> equipment) {\n for (EquipmentType e : equipment) {\n if (!canProvideEquipment(e)) return false;\n }\n return true;\n }",
"public static boolean hasBuildingsToProduce(UnitType unitType) {\n\n // Need to have every prerequisite building\n for (Integer unitTypeID : unitType.getRequiredUnits().keySet()) {\n UnitType requiredUnitType = UnitType.getByID(unitTypeID);\n \n// if (requiredUnitType.isLarva()) {\n// continue;\n// }\n// System.out.println(\"=req: \" + requiredUnitType);\n if (!requiredUnitType.isBuilding()) {\n// System.out.println(\" continue\");\n continue;\n }\n \n int requiredAmount = unitType.getRequiredUnits().get(unitTypeID);\n int weHaveAmount = requiredUnitType.isLarva() ? \n SelectUnits.ourLarva().count() : SelectUnits.our().ofType(requiredUnitType).count();\n// System.out.println(requiredUnitType + \" x\" + requiredAmount);\n// System.out.println(\" and we have: \" + weHaveAmount);\n if (weHaveAmount < requiredAmount) {\n return false;\n }\n }\n return true;\n }",
"public static boolean hasTechAndBuildingsToProduce(UnitType unitType) {\n return hasTechToProduce(unitType) && hasBuildingsToProduce(unitType);\n }",
"public static boolean canAfford(UnitType unitType) {\n return hasMinerals(unitType.getMineralPrice()) && hasGas(unitType.getGasPrice());\n }",
"public static boolean hasTechToProduce(UnitType unitType) {\n\n // Needs to have tech\n TechType techType = TechType.TechTypes.getTechType(unitType.getRequiredTechID());\n if (techType != null && techType != TechType.TechTypes.None && !AtlantisTech.isResearched(techType)) {\n return false;\n }\n\n return true;\n }",
"public boolean canAdd(UnitType unitType) {\n return workPlaces > 0\n && unitType.hasSkill()\n && unitType.getSkill() >= minSkill\n && unitType.getSkill() <= maxSkill;\n }",
"public boolean canBuild(Vertex vertex, int type) {\n \t\tif (type == Vertex.TOWN && towns >= MAX_TOWNS)\n \t\t\treturn false;\n \t\telse if (type == Vertex.CITY && cities >= MAX_CITIES)\n \t\t\treturn false;\n \n \t\treturn vertex.canBuild(this, type, board.isSetupPhase());\n \t}",
"private static boolean checkColonyForTools(AIUnit aiUnit, Colony colony) {\n return colony != null\n && !colony.isDisposed()\n && colony.getOwner() == aiUnit.getUnit().getOwner()\n && colony.canProvideEquipment(Unit.Role.PIONEER\n .getRoleEquipment(colony.getSpecification()));\n }",
"public boolean isIndustrial() {\n return getStructureType() == EquipmentType.T_STRUCTURE_INDUSTRIAL;\n }",
"public boolean isFullySupplied()\n {\n boolean isFull = !model.needsFuel() || (model.maxFuel == fuel);\n isFull &= (model.maxAmmo == ammo);\n return isFull;\n }",
"public boolean canReproduce() {\r\n ArrayList<Cell> neighbours = getNeighbours(FIRSTLAYER);\r\n\r\n int numOfSameT = 0;\r\n int numOfEmpty = 0;\r\n int numOfFoodC = 0;\r\n\r\n for (Cell cell : neighbours) {\r\n if (isSameType(cell.getInhabit())) {\r\n numOfSameT++;\r\n } else if (cell.getInhabit() == null && isTerrainAccessiable(cell)) {\r\n numOfEmpty++;\r\n } else if (isEdible(cell.getInhabit())) {\r\n numOfFoodC++;\r\n }\r\n }\r\n\r\n return (numOfSameT >= numOfSameTypeNeighbourToReproduce() \r\n && numOfEmpty >= numOfEmptyToReproduce()\r\n && numOfFoodC >= numOfFoodCellToReproduce());\r\n }",
"public boolean canBuild(int numToBuild) \n\t{\n\t\t return (numBuildings+numToBuild) <= MAX_NUM_UNITS;\n\t}",
"private boolean canBuy(BuildingType x) {\r\n return gameDetails.buildingsStats.get(x).price <= myself.energy;\r\n }",
"public boolean buildBuilding(String buildingType) {\n\t\tString type = buildingType.toLowerCase();\n\t\tthis.gc.placeBuilding(type);\n\n\t\tboolean placementSuccesfull = this.gc.isPlacementSuccesfull();\n\n\t\treturn placementSuccesfull;\n\n\t}",
"boolean isItEmpty(){\n\t\t\tif (this.items.isEmpty() && (this.receptacle.isEmpty() || findSpecialtyContainers())){//if there's nothing in there.\n\t\t\t\tSystem.out.println(\"\\nThere's nothing here to do anything with.\");\n\t\t\t\treturn true;}\n\t\t\treturn false;\n\t\t}",
"public boolean hasVehicleType() {\n return vehicleTypeBuilder_ != null || vehicleType_ != null;\n }",
"@Override\n public boolean isChameleonShieldActive() {\n if (!isShutDown()) {\n for (Mounted m : getMisc()) {\n EquipmentType type = m.getType();\n if (type.hasFlag(MiscType.F_CHAMELEON_SHIELD) && m.curMode().equals(\"On\") && m.isReady()) {\n return true;\n }\n }\n }\n return false;\n }",
"public boolean isFull(){\n\t\tfor(int i = 0; i < INVENTORY_SLOTS; i++){\n\t\t\tif(inventoryItems[i] == null){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public boolean canCombine(ILootProperty loot);",
"private boolean isValid(){\n\n Set<ResourceSingle> checkSet = new HashSet<>();\n return shelves.stream()\n .map(Shelf::getCurrentType)\n .filter(Objects::nonNull)\n .allMatch(checkSet::add);\n }",
"boolean hasGoodsType();",
"private boolean isBuilt() {\n\t\t\tif (name == null) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tfor (WeaponFlavor flavor: WeaponFlavor.values()) {\n\t\t\t\tif (flavors.get(flavor) == null) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}",
"public boolean needsRepair() {\n if (id == 5509) {\n return false;\n }\n return inventory.contains(id + 1);\n }",
"public boolean isValid() {\n return super.isValid()\n && getUnit().isPerson()\n && checkTileImprovementPlan(tileImprovementPlan)\n && (hasTools() || checkColonyForTools(getAIUnit(), colonyWithTools));\n }",
"boolean isSetInstallmentType();",
"@Override\n public boolean isValid() {\n return (27 - Inventory.getAll().length <= Inventory.find(\"Soft clay\").length)\n || (Inventory.find(\"Soft clay\").length < 1 || Inventory\n .find(\"Astral rune\").length < 1)\n && !Banking.isBankScreenOpen()\n && GlassBlower.antiban.canInteractObject();\n }",
"public boolean hasBoots(Boot.BootType bootType){\n\t\t//Loop through the items in this inventory.\n \tfor (Collectable item : items)\n \t{\n \t\t//If the item is a boot and is the type we're looking for,\n \t\t//return true\n \t\tif (item instanceof Boot) {\n \t\t\tBoot boot = (Boot) item;\n \t\t\tif(boot.getBootType() == bootType) {\n \t\t\t\treturn true;\n \t\t\t}\n \t\t}\n \t}\n \treturn false;\n }",
"public boolean airportIsBuilt() {\n\t\tif(projectsAvailable.isEmpty() && projectsActive.isEmpty()) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}",
"private boolean checkValidity() {\n \n switch (referenceTypeChosen) {\n \n case AIRBUSPN_TYPEARTICLE:\n \n AirbusPN lAirbusPN = null;\n if (!StringUtil.isEmptyOrNull(selectedReferenceName)) {\n lAirbusPN =\n articleBean.findAirbusPNByName(selectedReferenceName);\n // check the Airbus PN existence\n if (lAirbusPN == null) {\n \n // reset the Article Type since Airbus PN is not found\n selectedTypeArticle = null;\n \n Utils.addFacesMessage(\n NavigationConstants.OBSO_MGMT_ERROR_ID,\n MessageBundle\n .getMessage(Constants.AIRBUS_PN_NOT_FOUND));\n return false;\n }\n }\n \n // search corresponding Article Types...\n if (lAirbusPN != null) {\n List<TypeArticle> lAirbusPNTypeArticles =\n articleBean.findAllTypeArticleForPN(lAirbusPN);\n if (lAirbusPNTypeArticles != null) {\n if (lAirbusPNTypeArticles.size() == 1) {\n // if only one Article Type is found, select it\n selectedTypeArticle = lAirbusPNTypeArticles.get(0);\n }\n else if (lAirbusPNTypeArticles.size() == 0) {\n // reset the Article Type since no one has been found\n selectedTypeArticle = null;\n }\n else {\n if (selectedTypeArticle != null\n && !lAirbusPNTypeArticles\n .contains(selectedTypeArticle)) {\n // reset the Article Type since it is no more\n // contained by the available Article Types for the\n // Airbus PN\n selectedTypeArticle = null;\n }\n }\n }\n else {\n // reset the Article Type since no one has been found\n selectedTypeArticle = null;\n }\n }\n \n // if at least one reference is empty, no check can be performed\n if (lAirbusPN == null || selectedTypeArticle == null) {\n return true;\n }\n \n // check that the Airbus PN and the Type Article are not already\n // obsolescence managed\n ObsolescenceReference lAirbusObsolescenceReference =\n new ObsolescenceReference(lAirbusPN, selectedTypeArticle);\n if (obsoBean\n .isReferenceAlreadyManagedIntoObso(lAirbusObsolescenceReference)) {\n \n Utils.addFacesMessage(\n NavigationConstants.OBSO_MGMT_ERROR_ID,\n MessageBundle\n .getMessage(Constants.OBSO_REFERENCE_ALREADY_MANAGED_INTO_OBSOLESCENCE));\n return false;\n }\n \n // check that no article is already obsolescence managed with its\n // manufacturer PN\n if (!obsoBean.isObsoCreationValidForExistingPN(lAirbusPN,\n selectedTypeArticle)) {\n \n Utils.addFacesMessage(\n NavigationConstants.OBSO_MGMT_ERROR_ID,\n MessageBundle\n .getMessage(Constants.OBSO_ALREADY_AIRBUSPN_MANAGED_CONFLICT_ERROR));\n return false;\n }\n \n return true;\n \n case MANUFACTURERPN_TYPEARTICLE:\n \n ManufacturerPN lManufacturerPN = null;\n if (!StringUtil.isEmptyOrNull(selectedReferenceName)) {\n lManufacturerPN =\n articleBean\n .findManufacturerPNByName(selectedReferenceName);\n // check the Manufacturer PN existence\n if (lManufacturerPN == null) {\n \n // reset the Article Type since Manufacturer PN is not found\n selectedTypeArticle = null;\n \n Utils.addFacesMessage(\n NavigationConstants.OBSO_MGMT_ERROR_ID,\n MessageBundle\n .getMessage(Constants.MANUFACTURER_PN_NOT_FOUND));\n return false;\n }\n }\n \n // search corresponding Article Types...\n if (lManufacturerPN != null) {\n List<TypeArticle> lManufacturerPNTypeArticles =\n articleBean.findAllTypeArticleForPN(lManufacturerPN);\n if (lManufacturerPNTypeArticles != null) {\n if (lManufacturerPNTypeArticles.size() == 1) {\n // if only one Type Article is found, select it\n selectedTypeArticle =\n lManufacturerPNTypeArticles.get(0);\n }\n else if (lManufacturerPNTypeArticles.size() == 0) {\n // reset the Article Type since no one has been found\n selectedTypeArticle = null;\n }\n else {\n if (selectedTypeArticle != null\n && !lManufacturerPNTypeArticles\n .contains(selectedTypeArticle)) {\n // reset the Article Type since it is no more\n // contained by the available Article Types for the\n // Manufacturer PN\n selectedTypeArticle = null;\n }\n }\n }\n else {\n // reset the Article Type since no one has been found\n selectedTypeArticle = null;\n }\n }\n \n // if at least one reference is empty, no check can be performed\n if (lManufacturerPN == null || selectedTypeArticle == null) {\n return true;\n }\n \n ObsolescenceReference lManufacturerObsolescenceReference =\n new ObsolescenceReference(lManufacturerPN,\n selectedTypeArticle);\n // check that the Manufacturer PN and the Type Article are not\n // already obsolescence managed\n if (obsoBean\n .isReferenceAlreadyManagedIntoObso(lManufacturerObsolescenceReference)) {\n \n Utils.addFacesMessage(\n NavigationConstants.OBSO_MGMT_ERROR_ID,\n MessageBundle\n .getMessage(Constants.OBSO_REFERENCE_ALREADY_MANAGED_INTO_OBSOLESCENCE));\n return false;\n }\n \n // check that no article is already obsolescence managed with its\n // Airbus PN\n if (!obsoBean.isObsoCreationValidForExistingPN(lManufacturerPN,\n selectedTypeArticle)) {\n \n Utils.addFacesMessage(\n NavigationConstants.OBSO_MGMT_ERROR_ID,\n MessageBundle\n .getMessage(Constants.OBSO_ALREADY_MANUFACTURERPN_MANAGED_CONFLICT_ERROR));\n return false;\n }\n \n return true;\n \n case SOFTWARE:\n \n Software lSoftware = null;\n if (!StringUtil.isEmptyOrNull(selectedReferenceName)) {\n lSoftware = softBean.findByCompleteName(selectedReferenceName);\n // check the software existence\n if (lSoftware == null) {\n \n Utils.addFacesMessage(\n NavigationConstants.OBSO_MGMT_ERROR_ID,\n MessageBundle\n .getMessage(MessageConstants.SOFTWARE_COMPLETENAME_INCORRECT));\n return false;\n }\n }\n \n // if the reference is empty, no check can be performed\n if (lSoftware == null) {\n return true;\n }\n \n ObsolescenceReference lSoftwareObsolescenceReference =\n new ObsolescenceReference(lSoftware);\n // check that the software is not already obsolescence managed\n if (obsoBean\n .isReferenceAlreadyManagedIntoObso(lSoftwareObsolescenceReference)) {\n \n Utils.addFacesMessage(\n NavigationConstants.OBSO_MGMT_ERROR_ID,\n MessageBundle\n .getMessage(Constants.OBSO_REFERENCE_ALREADY_MANAGED_INTO_OBSOLESCENCE));\n return false;\n }\n \n return true;\n \n case TYPEPC:\n TypePC lTypePC = null;\n if (!StringUtil.isEmptyOrNull(selectedReferenceName)) {\n lTypePC = articleBean.findTypePCByName(selectedReferenceName);\n // check the PC Type existence\n if (lTypePC == null) {\n \n Utils.addFacesMessage(\n NavigationConstants.OBSO_MGMT_ERROR_ID,\n MessageBundle\n .getMessage(Constants.PC_TYPE_NOT_FOUND));\n return false;\n }\n }\n \n // if the reference is empty, no check can be performed\n if (lTypePC == null) {\n return true;\n }\n \n ObsolescenceReference lTypePCObsolescenceReference =\n new ObsolescenceReference(lTypePC);\n // check that the PC Type is not already obsolescence managed\n if (obsoBean\n .isReferenceAlreadyManagedIntoObso(lTypePCObsolescenceReference)) {\n \n Utils.addFacesMessage(\n NavigationConstants.OBSO_MGMT_ERROR_ID,\n MessageBundle\n .getMessage(Constants.OBSO_REFERENCE_ALREADY_MANAGED_INTO_OBSOLESCENCE));\n \n return false;\n }\n \n return true;\n \n default:\n return false;\n }\n }",
"public boolean hasProduct() {\n return productBuilder_ != null || product_ != null;\n }",
"private boolean isAvailable() {\n\t\tfor (int i = 0; i < lawsuitsAsClaimant.size(); i++) {\n\t\t\tif (lawsuitsAsClaimant.get(i).isActive()){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Check lawsuits as Defendant\n\t\tfor (int i = 0; i < lawsuitsAsDefendant.size(); i++) {\n\t\t\tif (lawsuitsAsDefendant.get(i).isActive()){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public boolean hasCompositeStructure() {\n return (getStructureType() == EquipmentType.T_STRUCTURE_COMPOSITE);\n }",
"public boolean verifyRoom() throws NotEnoughDoorsException {\n if (getDoors().get(\"N\") == null && getDoors().get(\"W\") == null\n && getDoors().get(\"S\") == null && getDoors().get(\"E\") == null) {\n throw new NotEnoughDoorsException();\n }\n\n for (String key: getDoors().keySet()) {\n Door doorHolder = getDoors().get(key);\n if (doorHolder != null) {\n if (doorHolder.getConnectedRooms().size() < 2 || doorHolder.getOtherRoom(this) == null) {\n return false;\n }\n }\n }\n\n for (Item singleItem: roomItems) {\n int itemX = (int) singleItem.getXyLocation().getX();\n int itemY = (int) singleItem.getXyLocation().getY();\n if (itemX >= getWidth() - 1 || itemX <= 0) {\n return false;\n }\n if (itemY >= getHeight() - 1 || itemY <= 0) {\n return false;\n }\n }\n\n if (isPlayerInRoom()) {\n int playerX = (int) getPlayer().getXyLocation().getX();\n int playerY = (int) getPlayer().getXyLocation().getY();\n if (playerX >= getWidth() - 1 || playerX <= 0) {\n return false;\n }\n if (playerY >= getHeight() - 1 || playerY <= 0) {\n return false;\n }\n }\n\n return true;\n }",
"default boolean canFit(ItemStack stack) {\n return !InvTools.isEmpty(stack) && stream().anyMatch(inv -> {\n InventoryManipulator im = InventoryManipulator.get(inv);\n return im.canAddStack(stack);\n });\n }",
"public boolean canBePromotedTo(ItemType type) {\n return this.isTypeOf(type);\n }",
"public boolean isEmpty() {\n\t\treturn Arrays.stream(inventory.getContents())\n\t\t\t\t.noneMatch(ItemStackUtils::isValid);\n\t}",
"public boolean hasChameleonShield() {\n for (Mounted mEquip : getMisc()) {\n MiscType mtype = (MiscType) mEquip.getType();\n if (mtype.hasFlag(MiscType.F_CHAMELEON_SHIELD)) {\n // The Mek has Chameleon Light Polarization Field\n return true;\n }\n }\n return false;\n }",
"boolean containsRequirementFor(AResourceType type);",
"public boolean isSalvageable(Material type);",
"public boolean isSetFacilityType()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(FACILITYTYPE$4) != 0;\n }\n }",
"public boolean checkInventory(int serialNum, int qty){\n \n //create a boolean var and set to false- change to true only if there is enough of requested inventory\n boolean enoughInventory = false;\n \n //loop through all Inventory\n for(int i=0; i<this.items.size(); i++){\n //check if inventoryItem has matching serialNumber with specified serialNum\n if(this.items.get(i).getSerialNum()==serialNum){\n //if serial numbers match, check if inventoryItem has enough in stock for requested order\n if(this.items.get(i).getQty() >= qty){\n enoughInventory = true; //if quantity in inventory is greater than or equal to requested quantity there is enough\n }\n }\n }\n \n //return enoughInventory- will be false if no serial number matched or if there was not enough for requested qty\n return enoughInventory;\n \n }",
"public boolean needsRepairing() {\n boolean returner = false;\n for (Pouch pouch : pouchesUsed) {\n returner = returner || pouch.needsRepair();\n }\n return returner;\n }",
"public boolean checkBuildings(){\n\t\tfor(Structure building : this.buildings){\n\t\t\tif(!building.isDestroyed()){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean hasMoreCombination() {\n\t\treturn cursor < combos.length;\n\t}",
"public boolean canProvidePower(PowerTypes type);",
"public boolean isInterestedInAllItems();",
"public boolean isFull() {\n int size = 0;\n for (int i = 0; i < items.length; i++) {\n if (items[i] != null) {\n size++;\n }\n }\n return size == items.length;\n }",
"boolean isApplicableForAllAssetTypes();",
"public Boolean isFull() {\n\t\tif (this.mVehicles.size() == this.mCapacity)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"public boolean isAListEmpty(){\r\n\t\tif((programChairs.size() > 0) && (committeeMembers.size() > 0)){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public boolean checkList(int[] array) {\n\t\t\t\r\n\t\t\tint i = 0;\r\n\t\t\tboolean flag = true;\r\n\t\t\t\r\n\t\t\twhile(i < array.length) { //Looping by room types\r\n\t\t\t\tif (array[i] <= RoomList.getQuantity(i+1)) flag = true; //If there are enough rooms, flag = true\r\n\t\t\t\telse { //else flag = false and return\r\n\t\t\t\t\tflag = false;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\treturn flag;\r\n\t\t}",
"public boolean isSetContructionType()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(CONTRUCTIONTYPE$24) != null;\r\n }\r\n }",
"public abstract boolean isTypeOf(ItemType type);",
"public Boolean canAddItem(ItemStack item, Player player){\n\t\tint freeSpace = 0;\n\t\tfor(ItemStack i : player.getInventory() ){\n\t\t\tif(i == null){\n\t\t\t\tfreeSpace += item.getType().getMaxStackSize();\n\t\t\t} else if (i.getType() == item.getType() ){\n\t\t\t\tfreeSpace += (i.getType().getMaxStackSize() - i.getAmount());\n\t\t\t}\n\t\t}\n\t\tdebugOut(\"Item has: \"+item.getAmount()+\" and freeSpace is: \"+freeSpace);\n\t\tif(item.getAmount() > freeSpace){\n\t\t\tdebugOut(\"There is not enough freeSpace in the inventory\");\n\t\t\treturn false;\n\t\t}else{\n\t\t\tdebugOut(\"There is enough freeSpace in the inventory\");\n\t\t\treturn true;\n\t\t}\n\t}",
"public boolean canBuildNextStage() {\r\n\t\tSystem.out.print(\"Checking if \" + stages[stagesCompleted]\r\n\t\t\t\t+ \" can be built:\");\r\n\t\tSimpleResList costSRL = SimpleResList\r\n\t\t\t\t.buildCostList(stages[stagesCompleted]);\r\n\t\tSystem.out\r\n\t\t\t\t.println((canBuildStage(stages[stagesCompleted], costSRL) ? \" true \"\r\n\t\t\t\t\t\t: \" false \"));\r\n\t\t// TODO needs code to see if there is enough money to buy the goods from\r\n\t\t// the neighbors(if they have the goods).....look buildCommandOptions\r\n\t\treturn canBuildStage(stages[stagesCompleted], costSRL); // this is only\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// checking to\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// see if this\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// board can\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// afford it\r\n\t}",
"public boolean isAny() {\n return m_item.getSchemaComponent().type() == SchemaBase.ANY_TYPE;\n }",
"public boolean isFuelAvailable()\n\t{\n\t\tInventory inv = getPowerSourceInventory();\n\t\tif (inv == null) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn getFuel().allIn(inv);\n\t\t}\n\t}",
"public static boolean contaisEnchantments(ItemStack item) {\n if(item != null) {\n for(Enchantment en : item.getEnchantments().keySet()) {\n if(item.containsEnchantment(en)) {\n return true;\n }\n }\n }\n return false;\n }",
"boolean isApplicableForAssetType(final AssetType assetType);",
"public static boolean inventoryIsFull() {\n\t\treturn Inventory.getCount() == 28;\n\t}",
"public boolean canContainItem(String item) {\n boolean badRequirementSet;\n for(List<String> requirementSet : listOfRequirementSets) {\n if(requirementSet.contains(item)) {\n continue; // This requirement set doesn't work; try another one.\n }\n if(item.equals(\"Ankh Jewel\")) {\n badRequirementSet = false;\n for(String requirement : requirementSet) {\n if(requirement.contains(\"Amphisbaena Defeated\") || requirement.contains(\"Sakit Defeated\")\n || requirement.contains(\"Ellmac Defeated\") || requirement.contains(\"Bahamut Defeated\")\n || requirement.contains(\"Viy Defeated\") || requirement.contains(\"Baphomet Defeated\")\n || requirement.contains(\"Palenque Defeated\") || requirement.contains(\"Tiamat Defeated\")) {\n badRequirementSet = true;\n break;\n }\n }\n if(badRequirementSet) {\n continue; // Minimize Ankh Jewel lock.\n }\n }\n return true;\n }\n return false;\n }",
"public boolean showAllOccupationTypes() {\n return occupationTypes.contains(OccupationType.TOIMINNANOHJAAJA);\n }",
"public Boolean checkIfValidBuild(){\r\n int buildValue = 0;\r\n for (Card card: userChosenCards){\r\n buildValue += card.getNumValue();\r\n }\r\n\r\n buildValue += card.getNumValue();\r\n\r\n switch (option){\r\n case 1:\r\n if(userChosenCards.size() == 0){\r\n Toast.makeText(ChooseTableCardActivity.this,\r\n \"Invalid Build - Cannot create a build with just one card\",\r\n Toast.LENGTH_LONG).show();\r\n return false;\r\n }\r\n\r\n return player.checkBuildValueInHand(player.getPlayerHandVec(), buildValue);\r\n case 2:\r\n if (buildValue == round.getBuilds().get(player.getId()).getNumValue()){\r\n return true;\r\n }\r\n return false;\r\n }\r\n return false;\r\n }",
"public boolean isFull() \n\t{\n\t\tif (this.numIngredients==ingredients.length())\n\t\t\treturn true;\n\t\t\n\t\telse\n\t\t\treturn false;\n\t}",
"@java.lang.Override\n public boolean hasInventoryItemData() {\n return inventoryItemCase_ == 3;\n }",
"private boolean ifFull() {\n return items.length == size;\n }",
"public boolean isInventoryFull()\n\t{\n\t\tif (myWorker.getLoadInInventory() >= getMyPlayer().getPlayerInfo()\n\t\t\t\t.getMaxCarryingLoadByWorker())\n\t\t\treturn true;\n\t\treturn false;\n\t}",
"boolean antecedentsContain(LayerType type) {\n if (this.antecedents.size() == 0)\n return false;\n\n boolean antecendentsContainType = false;\n\n for (LayerType t: this.antecedents)\n if (t == type)\n antecendentsContainType = true;\n\n return antecendentsContainType;\n }",
"public boolean esCompuesto() {\n\t\treturn !this.atributos.isEmpty();\n\t}",
"public boolean isFullyCovered() {\n for (boolean i:mCovered) {\n if (!i) return false;\n }\n return true;\n }",
"public boolean isSetExtendable()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(EXTENDABLE$22) != null;\r\n }\r\n }",
"public boolean hayEnemigos() {\n\t\tif (ListaDeOleadasPorNivel.isEmpty())\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}",
"public boolean hasComponent(Class<? extends Component> componentType);",
"public boolean isEmpty(){\n\t\treturn isPassable&&!containsItems()&&!containsMonster()&&tileItems.noGold();\r\n\t}",
"public boolean checkItem () {\r\n\t\tfor (Entity e : getLocation().getWorld().getEntities())\r\n\t\t{\r\n\t\t\tdouble x = e.getLocation().getX();\r\n\t\t\tdouble z = e.getLocation().getZ();\r\n\t\t\tdouble yDiff = getSpawnLocation().getY() - e.getLocation().getY();\r\n \r\n\t\t\tif (yDiff < 0)\r\n\t\t\t\tyDiff *= -1;\r\n\r\n\t\t\tif (x == getSpawnLocation().getX() && yDiff <= 1.5 && z == getSpawnLocation().getZ()) {\r\n \r\n ShowCaseStandalone.slog(Level.FINEST, \"Potential hit on checkItem()\");\r\n\t\t\t\ttry {\r\n\t\t\t\t\tItem itemE = (Item)e;\r\n\t\t\t\t\tif (ItemStackHandler.itemsEqual(itemE.getItemStack(), getItemStack(), true)) {\r\n ShowCaseStandalone.slog(Level.FINEST, \"Existing stack: \" + itemE.getItemStack().toString());\r\n itemE.getItemStack().setAmount(1); //Removes duped items, which can occur.\r\n\t\t\t\t\t\tthis.item = itemE;\r\n\t\t\t\t\t\tscs.log(Level.FINER, \"Attaching to existing item.\");\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception ex) {}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean isFull() {\n return numOfGoods == cargoSpace;\n }",
"private boolean canSelectCurWorldType() {\n WorldType worldtype = WorldType.WORLD_TYPES[this.selectedIndex];\n if (worldtype != null && worldtype.canBeCreated()) {\n return worldtype == WorldType.DEBUG_ALL_BLOCK_STATES ? hasShiftDown() : true;\n } else {\n return false;\n }\n }",
"public boolean canBuild(Player player, Location location) {\n\t\tif (mayor.equals(player.getUniqueId()) || councils.containsKey(player.getUniqueId())) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tPlot plot = getPlotHere(location);\n\t\t\treturn plot != null && plot.canBuild(player, location);\n\t\t}\n\t}",
"private boolean validaCompra() {\n\n List<Purchase> purchasesList = billingClient.queryPurchases(INAPP).getPurchasesList();\n if (purchasesList != null && !purchasesList.isEmpty()) {\n for (Purchase purchase : purchasesList) {\n if (purchase.getSku().equals(skuId)) {\n return true;\n }\n }\n }\n return false;\n\n }",
"default boolean isEmpty() {\n\t\treturn this.getContents().values().stream().allMatch(ItemStack::isEmpty);\n\t}",
"public boolean isSomethingBuyable(GameClient game){\n for(Level l : Level.values()){\n for(ColorDevCard c : ColorDevCard.values()){\n try {\n NumberOfResources cost = dashBoard[l.ordinal()][c.ordinal()].getCost();\n cost = cost.safe_sub(game.getMe().getDiscounted());\n game.getMe().getDepots().getResources().sub(cost);\n return true;\n } catch (OutOfResourcesException | NullPointerException ignored) {}\n }\n }\n return false;\n }",
"private boolean hasAnyWeatherType(Thing thing, List<WeatherType> weatherTypes) {\n if (weatherTypes == null || weatherTypes.size() == 0) {\n return true;\n }\n\n for (String type : thing.getWeatherType()) {\n for (WeatherType weatherType : weatherTypes) {\n if (weatherType.getType().equals(type)) {\n return true;\n }\n }\n }\n return false;\n }",
"public boolean hasBuildPermission(Player player, Block block) {\n if (bypassBuildPermissions) return true;\n if (player != null && player.hasPermission(\"magic.bypass_build\")) return true;\n if (hasBypassPermission(player)) return true;\n\n boolean allowed = true;\n for (BlockBuildManager manager : blockBuildManagers) {\n if (!manager.hasBuildPermission(player, block)) {\n allowed = false;\n break;\n }\n }\n return allowed;\n }",
"@java.lang.Override\n public boolean hasVehicleType() {\n return vehicleType_ != null;\n }",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();"
] | [
"0.69180244",
"0.6495542",
"0.64788157",
"0.6393052",
"0.63117146",
"0.6062522",
"0.58066285",
"0.5752179",
"0.5741363",
"0.5636493",
"0.55167395",
"0.5476476",
"0.54711205",
"0.5465039",
"0.5434419",
"0.5422653",
"0.5415306",
"0.54086185",
"0.5405269",
"0.5404619",
"0.53966504",
"0.53841573",
"0.5368817",
"0.53490293",
"0.53166217",
"0.5303543",
"0.52980703",
"0.5295599",
"0.5295594",
"0.52792144",
"0.52599037",
"0.52463245",
"0.5239963",
"0.52315533",
"0.5218607",
"0.5213472",
"0.51928204",
"0.5179062",
"0.5176321",
"0.516374",
"0.51609474",
"0.5140462",
"0.51364917",
"0.5133377",
"0.51321495",
"0.5120962",
"0.5097",
"0.50954753",
"0.50772685",
"0.50726545",
"0.5064897",
"0.5058897",
"0.50551367",
"0.50524676",
"0.50499",
"0.5033635",
"0.5016306",
"0.50161237",
"0.500493",
"0.500342",
"0.4998247",
"0.49883",
"0.49877617",
"0.49852967",
"0.4983479",
"0.49817768",
"0.49795476",
"0.49758285",
"0.49756357",
"0.49725387",
"0.49724242",
"0.49703643",
"0.49626154",
"0.49601325",
"0.49579987",
"0.49554354",
"0.49490136",
"0.49482113",
"0.49427837",
"0.4938302",
"0.49372873",
"0.4930339",
"0.49293923",
"0.49225825",
"0.49132708",
"0.49115393",
"0.49115393",
"0.49115393",
"0.49115393",
"0.49115393",
"0.49115393",
"0.49115393",
"0.49115393",
"0.49115393",
"0.49115393",
"0.49115393",
"0.49115393",
"0.49115393",
"0.49115393",
"0.49115393"
] | 0.7761379 | 0 |
Determines if this settlement can build the given type of equipment. Unlike canBuildEquipment, this takes goods "reserved" for other purposes into account (e.g. breeding). | public boolean canProvideEquipment(EquipmentType equipmentType) {
for (AbstractGoods goods : equipmentType.getGoodsRequired()) {
int available = getGoodsCount(goods.getType());
int breedingNumber = goods.getType().getBreedingNumber();
if (breedingNumber != GoodsType.INFINITY) {
available -= breedingNumber;
}
if (available < goods.getAmount()) return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean canBuildEquipment(EquipmentType equipmentType) {\n for (AbstractGoods requiredGoods : equipmentType.getGoodsRequired()) {\n if (getGoodsCount(requiredGoods.getType()) < requiredGoods.getAmount()) {\n return false;\n }\n }\n return true;\n }",
"public boolean canBuild(Vertex vertex, int type) {\n \t\tif (type == Vertex.TOWN && towns >= MAX_TOWNS)\n \t\t\treturn false;\n \t\telse if (type == Vertex.CITY && cities >= MAX_CITIES)\n \t\t\treturn false;\n \n \t\treturn vertex.canBuild(this, type, board.isSetupPhase());\n \t}",
"public boolean canProvideEquipment(List<EquipmentType> equipment) {\n for (EquipmentType e : equipment) {\n if (!canProvideEquipment(e)) return false;\n }\n return true;\n }",
"public static boolean hasTechAndBuildingsToProduce(UnitType unitType) {\n return hasTechToProduce(unitType) && hasBuildingsToProduce(unitType);\n }",
"public static boolean canAfford(UnitType unitType) {\n return hasMinerals(unitType.getMineralPrice()) && hasGas(unitType.getGasPrice());\n }",
"public boolean canProvidePower(PowerTypes type);",
"public boolean canAdd(UnitType unitType) {\n return workPlaces > 0\n && unitType.hasSkill()\n && unitType.getSkill() >= minSkill\n && unitType.getSkill() <= maxSkill;\n }",
"public static boolean hasTechToProduce(UnitType unitType) {\n\n // Needs to have tech\n TechType techType = TechType.TechTypes.getTechType(unitType.getRequiredTechID());\n if (techType != null && techType != TechType.TechTypes.None && !AtlantisTech.isResearched(techType)) {\n return false;\n }\n\n return true;\n }",
"public static boolean hasBuildingsToProduce(UnitType unitType) {\n\n // Need to have every prerequisite building\n for (Integer unitTypeID : unitType.getRequiredUnits().keySet()) {\n UnitType requiredUnitType = UnitType.getByID(unitTypeID);\n \n// if (requiredUnitType.isLarva()) {\n// continue;\n// }\n// System.out.println(\"=req: \" + requiredUnitType);\n if (!requiredUnitType.isBuilding()) {\n// System.out.println(\" continue\");\n continue;\n }\n \n int requiredAmount = unitType.getRequiredUnits().get(unitTypeID);\n int weHaveAmount = requiredUnitType.isLarva() ? \n SelectUnits.ourLarva().count() : SelectUnits.our().ofType(requiredUnitType).count();\n// System.out.println(requiredUnitType + \" x\" + requiredAmount);\n// System.out.println(\" and we have: \" + weHaveAmount);\n if (weHaveAmount < requiredAmount) {\n return false;\n }\n }\n return true;\n }",
"public boolean buildBuilding(String buildingType) {\n\t\tString type = buildingType.toLowerCase();\n\t\tthis.gc.placeBuilding(type);\n\n\t\tboolean placementSuccesfull = this.gc.isPlacementSuccesfull();\n\n\t\treturn placementSuccesfull;\n\n\t}",
"private boolean canBuy(BuildingType x) {\r\n return gameDetails.buildingsStats.get(x).price <= myself.energy;\r\n }",
"public boolean canBuild(int numToBuild) \n\t{\n\t\t return (numBuildings+numToBuild) <= MAX_NUM_UNITS;\n\t}",
"private boolean buildEntity() {\r\n\t\t/****************** Tower Creation ******************/\r\n\t\tif (this.type.contains(\"tower\")) {\r\n\t\t\tif (this.type.equals(\"tower0\")) {\r\n\t\t\t\t// Basic starting tower\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.speed = 2;\r\n\t\t\t\tthis.health = 500;\r\n\t\t\t\tthis.attack = 0;\r\n\t\t\t\tthis.price = 110;\r\n\t\t\t\tthis.frames = 1;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower1\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.health = 90;\r\n\t\t\t\tthis.attack = 30;\r\n\t\t\t\tthis.price = 50;\r\n\t\t\t\tthis.frames = 5;\r\n\t\t\t\tthis.weaponFrames = 1;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower2\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.health = 160;\r\n\t\t\t\tthis.attack = 25;\r\n\t\t\t\tthis.price = 210;\r\n\t\t\t\tthis.frames = 6;\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.weaponFrames = 8;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower3\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.health = 245;\r\n\t\t\t\tthis.attack = 25;\r\n\t\t\t\tthis.price = 245;\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.frames = 9;\r\n\t\t\t\tthis.weaponFrames =1;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower4\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.health = 200;\r\n\t\t\t\tthis.attack = 3000;\r\n\t\t\t\tthis.price = 500;\r\n\t\t\t\tthis.frames = 9;\r\n\t\t\t\tthis.weaponFrames = 8;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower5\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.weaponFrames = 3;\r\n\t\t\t\tthis.health = 100;\r\n\t\t\t\tthis.attack = 25;\r\n\t\t\t\tthis.price = 90;\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.frames = 7;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/****************** Enemy Creation ******************/\r\n\t\tif (this.type.contains(\"zombie\")) {\r\n\t\t\tif (this.type.equals(\"zombie0\")) {\r\n\t\t\t\tthis.base = \"zombie\";\r\n\t\t\t\tthis.health = 150;\r\n\t\t\t\tthis.attack = 5;\r\n\t\t\t\tthis.speed = 75;\r\n\t\t\t\tthis.deathFrames = 9;\r\n\t\t\t\tthis.walkFrames = 9;\r\n\t\t\t\tthis.attackFrames =7;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"zombie1\")) {\r\n\t\t\t\tthis.base = \"zombie\";\r\n\t\t\t\tthis.health = 500;\r\n\t\t\t\tthis.attack = 5;\r\n\t\t\t\tthis.speed = 50;\r\n\t\t\t\tthis.deathFrames = 5;\r\n\t\t\t\tthis.walkFrames = 6;\r\n\t\t\t\tthis.attackFrames =8;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"zombie2\")) {\r\n\t\t\t\tthis.base = \"zombie\";\r\n\t\t\t\tthis.health = 250;\r\n\t\t\t\tthis.attack = 5;\r\n\t\t\t\tthis.speed = 50;\r\n\t\t\t\tthis.deathFrames = 5;\r\n\t\t\t\tthis.walkFrames = 6;\r\n\t\t\t\tthis.attackFrames =7;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"zombie3\")) {\r\n\t\t\t\tthis.base = \"zombie\";\r\n\t\t\t\tthis.health = 100;\r\n\t\t\t\tthis.attack = 25;\r\n\t\t\t\tthis.speed = 25;\r\n\t\t\t\tthis.deathFrames = 5;\r\n\t\t\t\tthis.walkFrames = 8;\r\n\t\t\t\tthis.attackFrames =7;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/****************** Object Creation ******************/\r\n\t\tif (this.type.contains(\"object\")) {\r\n\t\t\tif (this.type.equals(\"object0\")) {\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object1\")) {\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object2\")) {\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object3\")) {\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object4\")) {\r\n\t\t\t\t// Jail building\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object5\")) {\r\n\t\t\t\t// Inn building\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object6\")) {\r\n\t\t\t\t// Bar building\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object7\")) {\r\n\t\t\t\t// Watchtower building\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object8\")) {\r\n\t\t\t\t// Plus path\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object9\")) {\r\n\t\t\t\t// NS Path\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object10\")) {\r\n\t\t\t\t// EW Path\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object11\")) {\r\n\t\t\t\t// Cobble Ground\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object12\")) {\r\n\t\t\t\t// Tombstone with dirt\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object13\")) {\r\n\t\t\t\t// Tombstone\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object14\")) {\r\n\t\t\t\t// Wood grave marker\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t/****************** Out of Creation ******************/\r\n\t\t// Check if a type was created and return results\r\n\t\tif (this.base != null) {\r\n\t\t\t// Successful creation\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\t// Unsuccessful creation\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"boolean isSupportedType(String type) {\n // No bigBed support yet (but it's coming).\n if (type.startsWith(\"bigBed\")) {\n return false;\n }\n \n // No bigWig support yet (but it's coming).\n if (type.startsWith(\"bigWig\")) {\n return false;\n }\n \n // Actual data is contained in an external file, but the file is identified by a number, not a path.\n if (type.startsWith(\"wigMaf\")) {\n return false;\n }\n \n // We can probably the support BAM, but not implemented yet.\n if (type.equals(\"bam\")) {\n return false;\n }\n \n // Not one of our rejected types.\n return true;\n }",
"boolean canBuildBlock(Tile t);",
"public abstract @NotNull String getEquipmentType();",
"private List<UnitGroup<AirUnit>> getSupportingUnitsForMissionType(AIActionType type, UnitGroup<AirUnit> missionGroup, List<UnitGroup<AirUnit>> units) {\n List<UnitGroup<AirUnit>> supportUnits = new ArrayList<>();\n boolean isHelicopter = missionGroup.getNumberOfUnits() != 0 && missionGroup.getGroupUnits().get(0).getAircraftType().isHelicopter();\n switch (type) {\n // Try to find 2-4 supporting units (ie. other CAP flights, Escort, etc)\n case ATTACK_AIRBASE_STRUCTURE:\n case ATTACK_AIR_DEFENCE:\n case ATTACK_GROUND_UNIT:\n supportUnits = findSupportingUnitsForGroundAttack(missionGroup, isHelicopter, units);\n break;\n // Check the type of flight, and add CAP/CAS as needed\n case DEFEND_AIRBASE_STRUCTURE:\n case DEFEND_AIR_DEFENCE:\n case DEFEND_GROUND_UNIT:\n supportUnits = findSupportingUnitsForGroundDefence(missionGroup, isHelicopter, units);\n break;\n // Check the size of flight, ensure 2 planes\n case INTERCEPT_FLIGHT:\n supportUnits = findSupportingUnitsForIntercept(missionGroup, isHelicopter, units);\n break;\n // Always ensure an Escort of 2 planes\n case TRANSPORT_AIR_DEFENCE:\n case TRANSPORT_GROUND_UNIT:\n supportUnits = findSupportingUnitsForEscort(missionGroup, isHelicopter, units);\n break;\n // Get the maximum number of escorts we can\n case STRATEGIC_BOMBING:\n supportUnits = findSupportingUnitsForStrategicBombing(missionGroup, isHelicopter, units);\n break;\n // Goes alone\n case RECON:\n break;\n }\n return supportUnits;\n }",
"protected boolean isApplicableType(Datatype type) {\n\t\treturn true;\n\t}",
"public boolean isSalvageable(Material type);",
"boolean canBuildDome(Tile t);",
"boolean containsRequirementFor(AResourceType type);",
"protected boolean isEquipmentValid(String equipment) {\n String[] equipArray = equipment.split(\" \");\n for (String plane : equipArray) {\n if (!(plane.length() == 3 && plane.matches(\"[0-9A-Z]+\"))) {\n return false;\n }\n }\n return true;\n }",
"boolean isApplicableForAssetType(final AssetType assetType);",
"private void validateInventoryType(final boolean mineral, final InventoryType inventoryType) {\n\t\tif (inventoryType.isMineral() != mineral) {\n\t\t\tthrow new IllegalArgumentException(String.format(\"The type with id %d is a %s but needed a %s\", inventoryType.getTypeID(),\n\t\t\t\t\tmineral ? \"component\" : \"mineral\", mineral ? \"mineral\" : \"component\"));\n\t\t}\n\t}",
"public boolean isBuildable() {\r\n return buildable;\r\n }",
"public boolean isIndustrial() {\n return getStructureType() == EquipmentType.T_STRUCTURE_INDUSTRIAL;\n }",
"public boolean canBuild(Player player) {\n\t\treturn canBuild(player.getUsername());\n\t}",
"public boolean build(Vertex vertex, int type) {\n \t\tif (vertex == null || !canBuild(vertex, type))\n \t\t\treturn false;\n \n \t\tboolean setup = board.isSetupPhase();\n \n \t\t// check resources based on type we want to build\n \t\tif (type == Vertex.TOWN) {\n \t\t\tif (!setup && !affordTown())\n \t\t\t\treturn false;\n \t\t} else if (type == Vertex.CITY) {\n \t\t\tif (!setup && !affordCity())\n \t\t\t\treturn false;\n \t\t} else {\n \t\t\t// invalid type\n \t\t\treturn false;\n \t\t}\n \n \t\tif (!vertex.build(this, type, setup))\n \t\t\treturn false;\n \n \t\t// deduct resources based on type\n \t\tif (vertex.getBuilding() == Vertex.TOWN) {\n \t\t\tif (!setup) {\n \t\t\t\tuseResources(Type.BRICK, 1);\n \t\t\t\tuseResources(Type.LUMBER, 1);\n \t\t\t\tuseResources(Type.GRAIN, 1);\n \t\t\t\tuseResources(Type.WOOL, 1);\n \t\t\t}\n \t\t\ttowns += 1;\n \t\t\tsettlements.add(vertex);\n \t\t\tboard.checkLongestRoad();\n \t\t} else {\n \t\t\tif (!setup) {\n \t\t\t\tuseResources(Type.GRAIN, 2);\n \t\t\t\tuseResources(Type.ORE, 3);\n \t\t\t}\n \t\t\ttowns -= 1;\n \t\t\tcities += 1;\n \t\t}\n \n \t\t// collect resources for second town during setup\n \t\tif (board.isSetupPhase2()) {\n \t\t\tfor (int i = 0; i < 3; i++) {\n \t\t\t\tHexagon hexagon = vertex.getHexagon(i);\n \t\t\t\tif (hexagon != null && hexagon.getType() != Type.DESERT)\n \t\t\t\t\taddResources(hexagon.getType(), 1);\n \t\t\t}\n \t\t}\n \n \t\tlastTown = vertex;\n \n \t\tappendAction(type == Vertex.TOWN ? R.string.player_town\n \t\t\t\t: R.string.player_city);\n \n \t\treturn true;\n \t}",
"private boolean canSelectCurWorldType() {\n WorldType worldtype = WorldType.WORLD_TYPES[this.selectedIndex];\n if (worldtype != null && worldtype.canBeCreated()) {\n return worldtype == WorldType.DEBUG_ALL_BLOCK_STATES ? hasShiftDown() : true;\n } else {\n return false;\n }\n }",
"protected boolean isCanCheckDurability(Action action, Material heldItemType) {\n boolean canRun = false;\n if ((heldItemType.toString().contains(\"_HOE\")\n || heldItemType.toString().contains(\"_SPADE\"))\n && action == Action.RIGHT_CLICK_BLOCK) {\n canRun = true;\n } else if ((heldItemType.toString().contains(\"_AXE\")\n //Pickaxe\n || heldItemType.toString().contains(\"_PICKAXE\")\n\n //Hoe\n || heldItemType.toString().contains(\"_HOE\")\n\n //Spade\n || heldItemType.toString().contains(\"_SPADE\")\n\n //Sword\n || heldItemType.toString().contains(\"_SWORD\")) && (action == Action.LEFT_CLICK_BLOCK)) {\n canRun = true;\n }\n return canRun;\n }",
"public boolean canRelayPower(PowerTypes type);",
"public boolean isWood() {\n return this.type == Type.WOOD;\n }",
"@Override\n public boolean isChameleonShieldActive() {\n if (!isShutDown()) {\n for (Mounted m : getMisc()) {\n EquipmentType type = m.getType();\n if (type.hasFlag(MiscType.F_CHAMELEON_SHIELD) && m.curMode().equals(\"On\") && m.isReady()) {\n return true;\n }\n }\n }\n return false;\n }",
"private boolean checkValidity() {\n \n switch (referenceTypeChosen) {\n \n case AIRBUSPN_TYPEARTICLE:\n \n AirbusPN lAirbusPN = null;\n if (!StringUtil.isEmptyOrNull(selectedReferenceName)) {\n lAirbusPN =\n articleBean.findAirbusPNByName(selectedReferenceName);\n // check the Airbus PN existence\n if (lAirbusPN == null) {\n \n // reset the Article Type since Airbus PN is not found\n selectedTypeArticle = null;\n \n Utils.addFacesMessage(\n NavigationConstants.OBSO_MGMT_ERROR_ID,\n MessageBundle\n .getMessage(Constants.AIRBUS_PN_NOT_FOUND));\n return false;\n }\n }\n \n // search corresponding Article Types...\n if (lAirbusPN != null) {\n List<TypeArticle> lAirbusPNTypeArticles =\n articleBean.findAllTypeArticleForPN(lAirbusPN);\n if (lAirbusPNTypeArticles != null) {\n if (lAirbusPNTypeArticles.size() == 1) {\n // if only one Article Type is found, select it\n selectedTypeArticle = lAirbusPNTypeArticles.get(0);\n }\n else if (lAirbusPNTypeArticles.size() == 0) {\n // reset the Article Type since no one has been found\n selectedTypeArticle = null;\n }\n else {\n if (selectedTypeArticle != null\n && !lAirbusPNTypeArticles\n .contains(selectedTypeArticle)) {\n // reset the Article Type since it is no more\n // contained by the available Article Types for the\n // Airbus PN\n selectedTypeArticle = null;\n }\n }\n }\n else {\n // reset the Article Type since no one has been found\n selectedTypeArticle = null;\n }\n }\n \n // if at least one reference is empty, no check can be performed\n if (lAirbusPN == null || selectedTypeArticle == null) {\n return true;\n }\n \n // check that the Airbus PN and the Type Article are not already\n // obsolescence managed\n ObsolescenceReference lAirbusObsolescenceReference =\n new ObsolescenceReference(lAirbusPN, selectedTypeArticle);\n if (obsoBean\n .isReferenceAlreadyManagedIntoObso(lAirbusObsolescenceReference)) {\n \n Utils.addFacesMessage(\n NavigationConstants.OBSO_MGMT_ERROR_ID,\n MessageBundle\n .getMessage(Constants.OBSO_REFERENCE_ALREADY_MANAGED_INTO_OBSOLESCENCE));\n return false;\n }\n \n // check that no article is already obsolescence managed with its\n // manufacturer PN\n if (!obsoBean.isObsoCreationValidForExistingPN(lAirbusPN,\n selectedTypeArticle)) {\n \n Utils.addFacesMessage(\n NavigationConstants.OBSO_MGMT_ERROR_ID,\n MessageBundle\n .getMessage(Constants.OBSO_ALREADY_AIRBUSPN_MANAGED_CONFLICT_ERROR));\n return false;\n }\n \n return true;\n \n case MANUFACTURERPN_TYPEARTICLE:\n \n ManufacturerPN lManufacturerPN = null;\n if (!StringUtil.isEmptyOrNull(selectedReferenceName)) {\n lManufacturerPN =\n articleBean\n .findManufacturerPNByName(selectedReferenceName);\n // check the Manufacturer PN existence\n if (lManufacturerPN == null) {\n \n // reset the Article Type since Manufacturer PN is not found\n selectedTypeArticle = null;\n \n Utils.addFacesMessage(\n NavigationConstants.OBSO_MGMT_ERROR_ID,\n MessageBundle\n .getMessage(Constants.MANUFACTURER_PN_NOT_FOUND));\n return false;\n }\n }\n \n // search corresponding Article Types...\n if (lManufacturerPN != null) {\n List<TypeArticle> lManufacturerPNTypeArticles =\n articleBean.findAllTypeArticleForPN(lManufacturerPN);\n if (lManufacturerPNTypeArticles != null) {\n if (lManufacturerPNTypeArticles.size() == 1) {\n // if only one Type Article is found, select it\n selectedTypeArticle =\n lManufacturerPNTypeArticles.get(0);\n }\n else if (lManufacturerPNTypeArticles.size() == 0) {\n // reset the Article Type since no one has been found\n selectedTypeArticle = null;\n }\n else {\n if (selectedTypeArticle != null\n && !lManufacturerPNTypeArticles\n .contains(selectedTypeArticle)) {\n // reset the Article Type since it is no more\n // contained by the available Article Types for the\n // Manufacturer PN\n selectedTypeArticle = null;\n }\n }\n }\n else {\n // reset the Article Type since no one has been found\n selectedTypeArticle = null;\n }\n }\n \n // if at least one reference is empty, no check can be performed\n if (lManufacturerPN == null || selectedTypeArticle == null) {\n return true;\n }\n \n ObsolescenceReference lManufacturerObsolescenceReference =\n new ObsolescenceReference(lManufacturerPN,\n selectedTypeArticle);\n // check that the Manufacturer PN and the Type Article are not\n // already obsolescence managed\n if (obsoBean\n .isReferenceAlreadyManagedIntoObso(lManufacturerObsolescenceReference)) {\n \n Utils.addFacesMessage(\n NavigationConstants.OBSO_MGMT_ERROR_ID,\n MessageBundle\n .getMessage(Constants.OBSO_REFERENCE_ALREADY_MANAGED_INTO_OBSOLESCENCE));\n return false;\n }\n \n // check that no article is already obsolescence managed with its\n // Airbus PN\n if (!obsoBean.isObsoCreationValidForExistingPN(lManufacturerPN,\n selectedTypeArticle)) {\n \n Utils.addFacesMessage(\n NavigationConstants.OBSO_MGMT_ERROR_ID,\n MessageBundle\n .getMessage(Constants.OBSO_ALREADY_MANUFACTURERPN_MANAGED_CONFLICT_ERROR));\n return false;\n }\n \n return true;\n \n case SOFTWARE:\n \n Software lSoftware = null;\n if (!StringUtil.isEmptyOrNull(selectedReferenceName)) {\n lSoftware = softBean.findByCompleteName(selectedReferenceName);\n // check the software existence\n if (lSoftware == null) {\n \n Utils.addFacesMessage(\n NavigationConstants.OBSO_MGMT_ERROR_ID,\n MessageBundle\n .getMessage(MessageConstants.SOFTWARE_COMPLETENAME_INCORRECT));\n return false;\n }\n }\n \n // if the reference is empty, no check can be performed\n if (lSoftware == null) {\n return true;\n }\n \n ObsolescenceReference lSoftwareObsolescenceReference =\n new ObsolescenceReference(lSoftware);\n // check that the software is not already obsolescence managed\n if (obsoBean\n .isReferenceAlreadyManagedIntoObso(lSoftwareObsolescenceReference)) {\n \n Utils.addFacesMessage(\n NavigationConstants.OBSO_MGMT_ERROR_ID,\n MessageBundle\n .getMessage(Constants.OBSO_REFERENCE_ALREADY_MANAGED_INTO_OBSOLESCENCE));\n return false;\n }\n \n return true;\n \n case TYPEPC:\n TypePC lTypePC = null;\n if (!StringUtil.isEmptyOrNull(selectedReferenceName)) {\n lTypePC = articleBean.findTypePCByName(selectedReferenceName);\n // check the PC Type existence\n if (lTypePC == null) {\n \n Utils.addFacesMessage(\n NavigationConstants.OBSO_MGMT_ERROR_ID,\n MessageBundle\n .getMessage(Constants.PC_TYPE_NOT_FOUND));\n return false;\n }\n }\n \n // if the reference is empty, no check can be performed\n if (lTypePC == null) {\n return true;\n }\n \n ObsolescenceReference lTypePCObsolescenceReference =\n new ObsolescenceReference(lTypePC);\n // check that the PC Type is not already obsolescence managed\n if (obsoBean\n .isReferenceAlreadyManagedIntoObso(lTypePCObsolescenceReference)) {\n \n Utils.addFacesMessage(\n NavigationConstants.OBSO_MGMT_ERROR_ID,\n MessageBundle\n .getMessage(Constants.OBSO_REFERENCE_ALREADY_MANAGED_INTO_OBSOLESCENCE));\n \n return false;\n }\n \n return true;\n \n default:\n return false;\n }\n }",
"boolean isSatisfiableFor(AResourceType type, int amount) ;",
"@Override\n public boolean isApplicable(@SuppressWarnings(\"rawtypes\") Class<? extends AbstractProject> jobType) {\n return true;\n }",
"public boolean hasBuildPermission(Player player, Block block) {\n if (bypassBuildPermissions) return true;\n if (player != null && player.hasPermission(\"magic.bypass_build\")) return true;\n if (hasBypassPermission(player)) return true;\n\n boolean allowed = true;\n for (BlockBuildManager manager : blockBuildManagers) {\n if (!manager.hasBuildPermission(player, block)) {\n allowed = false;\n break;\n }\n }\n return allowed;\n }",
"public abstract boolean isUsable();",
"public void setSoftwareType(Type type) {\r\n this.softwareType = type;\r\n }",
"@Override\n public boolean canBuild(User user, AbilityDescription abilityDescription, Location location) {\n try {\n TownyWorld world = com.palmergames.bukkit.towny.TownyUniverse.getInstance().getWorldMap().get(user.getWorld().getName());\n\n if (world != null && !world.isUsingTowny()) {\n // Exit early if this world isn't being protected by Towny.\n return true;\n }\n } catch (Exception e) {\n //\n }\n\n if (user instanceof com.plushnode.atlacore.platform.Player) {\n return canPlayerBuild(user, location);\n }\n\n return canEntityBuild(user, location);\n }",
"boolean CanBuyRoad();",
"public boolean isBuyable();",
"public boolean airportIsBuilt() {\n\t\tif(projectsAvailable.isEmpty() && projectsActive.isEmpty()) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean canBePromotedTo(ItemType type) {\n return this.isTypeOf(type);\n }",
"boolean hasMachineType();",
"boolean isApplicableForAllAssetTypes();",
"private boolean validateType(int type)\n {\n return PSSecurityProvider.isSupportedType(type);\n }",
"private boolean weekendTypeUsed(WeekendType type, ShiftSchedulingProblem problem) {\r\n\t\tfor (Contract contract: problem.contracts()) {\r\n\t\t\tif (contract.getWeekendType() == type) {\r\n\t\t\t\tfor (Employee employee: problem.employees()) {\r\n\t\t\t\t\tif (employee.getContract() == contract)\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Override\n public boolean isValid() {\n return (27 - Inventory.getAll().length <= Inventory.find(\"Soft clay\").length)\n || (Inventory.find(\"Soft clay\").length < 1 || Inventory\n .find(\"Astral rune\").length < 1)\n && !Banking.isBankScreenOpen()\n && GlassBlower.antiban.canInteractObject();\n }",
"private boolean canEquip(Item item,String target){\n\n\t\tif (! (item instanceof Equippable))return false;\n\t\tEquippable toEquip = (Equippable)item;\n\t\tswitch(toEquip.getEquipType()){\n\t\tcase HEAD:\n\t\t\tif (target.startsWith(\"EquipPos\"+EquipType.HEAD)) return true;\n\t\t\tbreak;\n\t\tcase CHEST:\n\t\t\tif (target.startsWith(\"EquipPos\"+EquipType.CHEST)) return true;\n\t\t\tbreak;\n\t\tcase WEAPON:\n\t\t\tif (target.startsWith(\"EquipPos\"+EquipType.WEAPON)) return true;\n\t\t\tbreak;\n\t\tcase LEGS:\n\t\t\tif (target.startsWith(\"EquipPos\"+EquipType.LEGS)) return true;\n\t\t\tbreak;\n\t\tcase NECK:\n\t\t\tif (target.startsWith(\"EquipPos\"+EquipType.NECK)) return true;\n\t\t\tbreak;\n\t\tcase BELT:\n\t\t\tif (target.startsWith(\"EquipPos\"+EquipType.BELT)) return true;\n\t\t\tbreak;\n\t\tcase BOOTS:\n\t\t\tif (target.startsWith(\"EquipPos\"+EquipType.BOOTS)) return true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean canBuildNextStage() {\r\n\t\tSystem.out.print(\"Checking if \" + stages[stagesCompleted]\r\n\t\t\t\t+ \" can be built:\");\r\n\t\tSimpleResList costSRL = SimpleResList\r\n\t\t\t\t.buildCostList(stages[stagesCompleted]);\r\n\t\tSystem.out\r\n\t\t\t\t.println((canBuildStage(stages[stagesCompleted], costSRL) ? \" true \"\r\n\t\t\t\t\t\t: \" false \"));\r\n\t\t// TODO needs code to see if there is enough money to buy the goods from\r\n\t\t// the neighbors(if they have the goods).....look buildCommandOptions\r\n\t\treturn canBuildStage(stages[stagesCompleted], costSRL); // this is only\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// checking to\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// see if this\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// board can\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// afford it\r\n\t}",
"public boolean isShield() {\n return type.equalsIgnoreCase(\"shield\");\n }",
"public boolean testConstructiontype(EIfcdoorstyle type) throws SdaiException;",
"public boolean needsAllocation(TypeReference type) {\n if (type == null) {\n throw new IllegalArgumentException(\"The argument type may not be null\");\n }\n\n if (seenTypes.containsKey(type)) {\n if (seenTypes.get(type).size() > 1) { // TODO INCORRECT may all be UNALLOCATED\n return false;\n } else {\n return (seenTypes.get(type).get(0).status == ValueStatus.UNALLOCATED);\n }\n } else {\n return true;\n }\n }",
"public boolean isValid() {\n return super.isValid()\n && getUnit().isPerson()\n && checkTileImprovementPlan(tileImprovementPlan)\n && (hasTools() || checkColonyForTools(getAIUnit(), colonyWithTools));\n }",
"public boolean canEncodeImage(ImageTypeSpecifier type)\n throws IllegalArgumentException\n {\n return true;\n }",
"boolean hasGoodsType();",
"public boolean checkSE(String myType, String theirType){\n\n if(theirType.equals(\"Fire\")){\n if(myType.equals(\"Water\")||myType.equals(\"Ground\")||myType.equals(\"Rock\")){\n return true;\n }\n }else if(theirType.equals(\"Water\")){\n if(myType.equals(\"Grass\")||myType.equals(\"Electric\")){\n return true;\n }\n\n }else if(theirType.equals(\"Psychic\")){\n if(myType.equals(\"Bug\")||myType.equals(\"Ghost\")||myType.equals(\"Dark\")){\n return true;\n }\n\n }else if(theirType.equals(\"Bug\")){\n if(myType.equals(\"Fire\")||myType.equals(\"Flying\")||myType.equals(\"Rock\")){\n return true;\n }\n }else if(theirType.equals(\"Electric\")){\n if(myType.equals(\"Ground\")){\n return true;\n }\n\n }else if(theirType.equals(\"Ghost\")){\n if(myType.equals(\"Ghost\")||myType.equals(\"Dark\")){\n return true;\n }\n\n }else if(theirType.equals(\"Dark\")){\n if(myType.equals(\"Fighting\")||myType.equals(\"Bug\")||myType.equals(\"Fairy\")){\n return true;\n }\n\n }\n else if(theirType.equals(\"Grass\")){\n if(myType.equals(\"Fire\")||myType.equals(\"Ice\")||myType.equals(\"Poison\")||myType.equals(\"Flying\")||myType.equals(\"Bug\")){\n return true;\n }\n }\n return false;\n\n }",
"public final boolean canUse(){\n\t\tmaintain();\n\t\t//check if grown if not try to grow\n\t\tif(grown){\t\n\t\t\tif(host.getStrength()>USE_COST){\n\t\t\t\thost.expend(USE_COST);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thost.expend(host.getStrength());\n\t\t\t}\n\t\t}\n\t\telse{\t\t\t\n\t\t\tcanGrow(host, this);\n\t\t}\t\n\t\treturn false;\n\t}",
"public void setTypeRoom(String accommodationType) {\n\t\tthis.accommodationType = accommodationType;\n\t}",
"public static boolean isEquipmentDowntime(MachineDowntimeBean machineReqBean) {\n\t\tboolean isEquipment = false;\n\t\tif (null != machineReqBean.getMachineId()\n\t\t\t\t&& null != machineReqBean.getEquipmentId()) {\n\t\t\tif (null == machineReqBean.getMediaId()\n\t\t\t\t\t|| machineReqBean.getMediaId().isEmpty()) {\n\t\t\t\tisEquipment = true;\n\t\t\t} else {\n\t\t\t\tisEquipment = false;\n\t\t\t}\n\t\t}\n\t\treturn isEquipment;\n\n\t}",
"private void isAbleToBuild() throws RemoteException {\n int gebouwdeGebouwen = speler.getGebouwdeGebouwen();\n int bouwLimiet = speler.getKarakter().getBouwLimiet();\n if (gebouwdeGebouwen >= bouwLimiet) {\n bouwbutton.setDisable(true); // Disable button\n }\n }",
"private static boolean checkColonyForTools(AIUnit aiUnit, Colony colony) {\n return colony != null\n && !colony.isDisposed()\n && colony.getOwner() == aiUnit.getUnit().getOwner()\n && colony.canProvideEquipment(Unit.Role.PIONEER\n .getRoleEquipment(colony.getSpecification()));\n }",
"public boolean canDoBuyCity(){\n\t\t if(resourceCardHand.canDoPayForCity() == false || playerPieces.hasAvailableCity() == false) {\n\t\t\t return false;\n\t\t }\n\t\t // If the player does not have a valid place to put a city on the map, we won't let the player buy a city\n\t\t if(playerPieces.canPlaceACityOnTheMap() == false) {\n\t\t\t return false;\n\t\t }\n\t\t return true;\n\t }",
"boolean CanBuyCity();",
"private boolean canAddSupport() {\n\n return uiStateManager.getState().equals(GameUIState.WAVE_IN_PROGRESS)\n || uiStateManager.getState().equals(GameUIState.STANDBY);\n }",
"public boolean hasChameleonShield() {\n for (Mounted mEquip : getMisc()) {\n MiscType mtype = (MiscType) mEquip.getType();\n if (mtype.hasFlag(MiscType.F_CHAMELEON_SHIELD)) {\n // The Mek has Chameleon Light Polarization Field\n return true;\n }\n }\n return false;\n }",
"public boolean isBreakable(byte a_type)\n {\n if(a_type == 16)\n return true;\n return false;\n }",
"boolean isSetInstallmentType();",
"protected boolean canAccept(RequiredSpecs specs){\r\n\t\tif(getMemory() > specs.getMemory() && getCpu() > specs.getCpu()){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean canRun(NodeType type) {\n return childNodeTypes.contains(type);\n }",
"public final boolean inUse()\n{\n\tif (_buildTime > 0)\n\t{\n\t\treturn false;\n\t}\n\treturn (_base.getAvailableQuarters() - _rules.getPersonnel() < _base.getUsedQuarters() ||\n\t\t\t_base.getAvailableStores() - _rules.getStorage() < _base.getUsedStores() ||\n\t\t\t_base.getAvailableLaboratories() - _rules.getLaboratories() < _base.getUsedLaboratories() ||\n\t\t\t_base.getAvailableWorkshops() - _rules.getWorkshops() < _base.getUsedWorkshops() ||\n\t\t\t_base.getAvailableHangars() - _rules.getCrafts() < _base.getUsedHangars());\n}",
"public Boolean checkIfValidBuild(){\r\n int buildValue = 0;\r\n for (Card card: userChosenCards){\r\n buildValue += card.getNumValue();\r\n }\r\n\r\n buildValue += card.getNumValue();\r\n\r\n switch (option){\r\n case 1:\r\n if(userChosenCards.size() == 0){\r\n Toast.makeText(ChooseTableCardActivity.this,\r\n \"Invalid Build - Cannot create a build with just one card\",\r\n Toast.LENGTH_LONG).show();\r\n return false;\r\n }\r\n\r\n return player.checkBuildValueInHand(player.getPlayerHandVec(), buildValue);\r\n case 2:\r\n if (buildValue == round.getBuilds().get(player.getId()).getNumValue()){\r\n return true;\r\n }\r\n return false;\r\n }\r\n return false;\r\n }",
"public Room(String roomType) {\n\t\tthis.type = roomType;\n\t\tif (roomType.equals(\"double\")) {\n\t\t\tprice = 90.0;\n\t\t}\n\t\telse if (roomType.equals(\"queen\")) {\n\t\t\tprice = 110.0;\n\t\t}\n\t\telse if(roomType.equals(\"king\")) {\n\t\t\tprice = 150.0;\n\t\t}\n\t\telse {\n\t\t\tthrow new IllegalArgumentException(\"Please input one of the following room types: double, queen, or king\");\n\t\t}\n\t\tavailability = true;\n\t}",
"public boolean testPredefinedtype(EIfccablecarrierfitting type) throws SdaiException;",
"public boolean isValidType() {\n return this.type == RADIUS_ATTR_USERNAME ||\n this.type == RADIUS_ATTR_NAS_IP ||\n this.type == RADIUS_ATTR_NAS_PORT ||\n this.type == RADIUS_ATTR_VENDOR_SPECIFIC ||\n this.type == RADIUS_ATTR_CALLING_STATION_ID ||\n this.type == RADIUS_ATTR_NAS_ID ||\n this.type == RADIUS_ATTR_ACCT_SESSION_ID ||\n this.type == RADIUS_ATTR_NAS_PORT_TYPE ||\n this.type == RADIUS_ATTR_EAP_MESSAGE ||\n this.type == RADIUS_ATTR_MESSAGE_AUTH ||\n this.type == RADIUS_ATTR_NAS_PORT_ID;\n }",
"public boolean canBuild(Location location, Player player) {\n if (!location.getWorld().getEnvironment().equals(Environment.NORMAL)) {\n // If theyre not in the overworld, they cant build\n return false;\n } else if (landIsClaimed(location)) {\n if(isOwner(location,player)) {\n return true;\n } else if(landPermissionCode(location).equals(\"p\")) {\n return true;\n } else if(landPermissionCode(location).equals(\"c\")) {\n String owner_uuid=REDIS.get(\"chunk\" + location.getChunk().getX() + \",\" + location.getChunk().getZ() + \"owner\");\n String owner_clan=REDIS.get(\"clan:\"+owner_uuid);\n String player_clan=REDIS.get(\"clan:\"+player.getUniqueId().toString());\n if(owner_clan.equals(player_clan)) {\n return true;\n } else {\n return false;\n }\n } else {\n return false;\n }\n } else {\n return true;\n }\n }",
"public boolean hasVehicleType() {\n return vehicleTypeBuilder_ != null || vehicleType_ != null;\n }",
"private boolean isBuilt() {\n\t\t\tif (name == null) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tfor (WeaponFlavor flavor: WeaponFlavor.values()) {\n\t\t\t\tif (flavors.get(flavor) == null) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}",
"private boolean buildStreetIsAllowed() {\r\n\t\tif (clickedRoad.getEnd() == lastSettlementNode\r\n\t\t\t\t|| clickedRoad.getStart() == lastSettlementNode) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"boolean CanBuySettlement();",
"public static boolean isUsableType(byte t) {\n switch (t) {\n case UNKNOWN: return false ;\n case NULL: return false ;\n case ERROR: return false ;\n default :return true ;\n }\n }",
"public boolean canReceiveItem(Player character) {\n boolean canPick = true;\n Item item = character.items.get(character.getItemOwned2().getName());\n double totalWeight = items.getTotalWeight() + item.getWeight();\n if(totalWeight > maxWeight) {\n canPick = false;\n }\n return canPick; \n }",
"@Basic(optional = false)\r\n @Valid\r\n @Column(name = \"SOFTWARE_TYPE\")\r\n @Enumerated(EnumType.STRING)\r\n public Type getSoftwareType() {\r\n return softwareType;\r\n }",
"private boolean isAvailable() {\n\t\tfor (int i = 0; i < lawsuitsAsClaimant.size(); i++) {\n\t\t\tif (lawsuitsAsClaimant.get(i).isActive()){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Check lawsuits as Defendant\n\t\tfor (int i = 0; i < lawsuitsAsDefendant.size(); i++) {\n\t\t\tif (lawsuitsAsDefendant.get(i).isActive()){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public boolean isWool() {\n return this.type == Type.WOOL;\n }",
"public boolean canBuild(Player player, Location location) {\n\t\tif (mayor.equals(player.getUniqueId()) || councils.containsKey(player.getUniqueId())) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tPlot plot = getPlotHere(location);\n\t\t\treturn plot != null && plot.canBuild(player, location);\n\t\t}\n\t}",
"@Override\n\t\tpublic boolean isApplicable(Class<? extends Job> jobType) {\n return Jenkins.getInstance().getAuthorizationStrategy() instanceof ProjectMatrixAuthorizationStrategy;\n\t\t}",
"public void buyEquipment(Equipment equipmentForSale, Store store) {\n\t\tif (game.checkEquipmentFull()) {\n\t\t\tSystem.out.println(\"You can't add more equipment to your ship\");\n\t\t\tgame.goToStore();\n\t\t}\n\t\telse {\n\t\t\tboolean state = false;\n\t\t\twhile(state==false) \n\t\t\t{\n\t\t\t\tSystem.out.println(\"This store sell \"+ equipmentForSale.getName());\n\t\t\t\tSystem.out.println(\"Price: \"+equipmentForSale.getSellingPrice());\n\t\t\t\tArrayList<Equipment> equipments = game.getSelectedShip().getEquipment();\n\t\t\t\tif(equipments.contains(equipmentForSale)) \n\t\t\t\t{\n\t\t\t\t\tstate = true;\n\t\t\t\t\tSystem.out.println(\"You can't add this equipment since you already have it set in your ship!\");\n\t\t\t\t\tgame.goToStore();\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Do you want to buy this equipment?\");\n\t\t\t\t\tSystem.out.println(\"(1) Yes\");\n\t\t\t\t\tSystem.out.println(\"(2) No\");\n\t\t\t\t\tint selectedAction = scanner.nextInt();\n\t\t\t\t\tif (selectedAction == 1 || selectedAction == 2) \n\t\t\t\t\t{\n\t\t\t\t\t\tstate = true;\n\t\t\t\t\t\tif (selectedAction == 1) {\n\t\t\t\t\t\t\tint equipmentPrice = equipmentForSale.getSellingPrice();\n\t\t\t\t\t\t\tif (game.checkEnoughMoney(equipmentPrice)) {\n\t\t\t\t\t\t\t\tgame.buyEquipment(equipmentForSale);\n\t\t\t\t\t\t\t\tSystem.out.println(\"The equipment has been added to your ship!\");\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tSystem.out.println(\"Sorry your money is not enought to buy this equipment\");\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\tgame.goToStore();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"Please input 1 or 2\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"public boolean hasSeat(Airplanes airplanes, int seatType) {\n \t for (Flight f: this.mLegs) {\n \t\t int capacity = airplanes.seatsCapacity(f.airplane(), seatType);\n \t\t if (!f.canReserve(seatType, capacity)) {\n \t\t\t return false;\n \t\t }\n \t }\n \t return true;\n }",
"public boolean canProtectPieces() {\r\n\t\treturn (cityCards.stream().anyMatch(c -> (c.isSmallGods() && !c.isDisabled())\r\n\t\t\t\t&& money >= PROTECTION_COST)); \r\n\t}",
"public boolean isAssignable(Class<?> type);",
"public boolean canReproduce() {\r\n ArrayList<Cell> neighbours = getNeighbours(FIRSTLAYER);\r\n\r\n int numOfSameT = 0;\r\n int numOfEmpty = 0;\r\n int numOfFoodC = 0;\r\n\r\n for (Cell cell : neighbours) {\r\n if (isSameType(cell.getInhabit())) {\r\n numOfSameT++;\r\n } else if (cell.getInhabit() == null && isTerrainAccessiable(cell)) {\r\n numOfEmpty++;\r\n } else if (isEdible(cell.getInhabit())) {\r\n numOfFoodC++;\r\n }\r\n }\r\n\r\n return (numOfSameT >= numOfSameTypeNeighbourToReproduce() \r\n && numOfEmpty >= numOfEmptyToReproduce()\r\n && numOfFoodC >= numOfFoodCellToReproduce());\r\n }",
"@objid (\"617db225-55b6-11e2-877f-002564c97630\")\n @Override\n public boolean canCreate(Class<? extends MObject> type) {\n return false;\n }",
"public boolean isAllowedWeapon(Material mat)\r\n\t{\treturn this.allowedWeapons.contains(mat);\t}",
"public boolean canDoBuyRoad(){\n\t\t // If the player doesn't have resources for a road, or has already played all his roads, he can't buy another\n\t\t if(resourceCardHand.canDoPayForRoad() == false || playerPieces.hasAvailableRoad() == false) {\n\t\t\t return false;\n\t\t }\n\t\t if(playerPieces.getNumberOfRoads() > 13){\n\t\t\t return true;\n\t\t }\n\t\t // If the player has no legal place to put a road on the map, he shouldn't be allowed to buy one.\n\t\t if(playerPieces.canPlaceARoadOnTheMap() == false) {\n\t\t\t return false;\n\t\t }\n\t\t return true;\n\t }",
"public boolean hasArmedMASCAndSuperCharger() {\n boolean hasMASC = false;\n boolean hasSuperCharger = false;\n for (Mounted m : getEquipment()) {\n if (!m.isDestroyed() && !m.isBreached() && (m.getType() instanceof MiscType) && m.getType().hasFlag(MiscType.F_MASC) && m.curMode().equals(\"Armed\") && m.getType().hasSubType(MiscType.S_SUPERCHARGER)) {\n hasSuperCharger = true;\n }\n if (!m.isDestroyed() && !m.isBreached() && (m.getType() instanceof MiscType) && m.getType().hasFlag(MiscType.F_MASC) && m.curMode().equals(\"Armed\") && !m.getType().hasSubType(MiscType.S_SUPERCHARGER)) {\n hasMASC = true;\n }\n }\n return hasMASC && hasSuperCharger;\n }",
"private static boolean checkType(String type) {\n ParameterHelpers.checkParameter(type, \"type\");\n\n if (type.equals(TYPE_REGISTERED)) {\n return true;\n } else if (type.equals(TYPE_UNREGISTERED)) {\n return false;\n } else {\n throw new IllegalArgumentException(\"type must be 'Registered' or 'Unregistered'\");\n }\n }",
"private boolean buildStreetIsAllowed(Road road) {\r\n\t\tif (!client.isBeginning()\r\n\t\t\t\t&& road.isBuildable(island, client.getSettler().getID())\r\n\t\t\t\t&& road.getOwner() == Constants.NOBODY) {\r\n\t\t\treturn true;\r\n\t\t} else if (((client.isBeginning() && road.getEnd() == getLastSettlementNode()) || (client\r\n\t\t\t\t.isBeginning() && road.getStart() == getLastSettlementNode()))\r\n\t\t\t\t&& road.getOwner() == Constants.NOBODY) {\r\n\t\t\treturn true;\r\n\t\t} else\r\n\t\t\treturn false;\r\n\t}",
"public void ReuseMethodsforDPRcheckavailabitlity(String Enterrooms, String roomtype) throws IOException, InterruptedException, ParseException\r\n\t{\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\tarrival_date();\r\n\t\t\tdeparture_date();\r\n\t\t\tpopup_ok();\r\n\t\t\tRooms_and_Guests();\r\n\t\t\tselect_Rooms(Enterrooms);\r\n\t\t\tClick_SpecialRate();\r\n\t\t\tSpecialRateplan_Validation();\r\n\t\t\tClick_Done();\r\n\t\t\tclick_CheckavailabitlityButton();\r\n\t\t\troom_type(roomtype);\r\n\t\t\tBookRoom();\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tSeleniumRepo.driver.navigate().refresh();\r\n\t\t\tarrival_date();\r\n\t\t\tdeparture_date();\r\n\t\t\tpopup_ok();\r\n\t\t\tRooms_and_Guests();\r\n\t\t\tselect_Rooms(Enterrooms);\r\n\t\t\tClick_SpecialRate();\r\n\t\t\tSpecialRateplan_Validation();\r\n\t\t\tClick_Done();\r\n\t\t\tclick_CheckavailabitlityButton();\r\n\t\t\troom_type(roomtype);\r\n\t\t\tBookRoom();\r\n\r\n\t\t}\r\n\t\t\r\n\t}"
] | [
"0.7366263",
"0.6233333",
"0.6171512",
"0.58911425",
"0.58313537",
"0.58009344",
"0.5713563",
"0.56979",
"0.56370616",
"0.5580236",
"0.5571665",
"0.5460705",
"0.5358265",
"0.52647257",
"0.51785606",
"0.5160746",
"0.5117253",
"0.5108831",
"0.49983355",
"0.4997783",
"0.4984069",
"0.49458322",
"0.49313673",
"0.48999426",
"0.4875144",
"0.48702446",
"0.48642102",
"0.4859184",
"0.48253173",
"0.48142916",
"0.4812952",
"0.48061782",
"0.47983634",
"0.47400004",
"0.47140855",
"0.4706127",
"0.46949327",
"0.46920356",
"0.46884486",
"0.46787167",
"0.46745768",
"0.46717116",
"0.46459422",
"0.46452954",
"0.46367106",
"0.46216583",
"0.46063197",
"0.45841113",
"0.4574733",
"0.4574045",
"0.457071",
"0.4570126",
"0.45625094",
"0.45611787",
"0.45566982",
"0.4554441",
"0.45530933",
"0.45530358",
"0.45493382",
"0.45325482",
"0.45251635",
"0.45187205",
"0.45099282",
"0.4505616",
"0.44911557",
"0.4490835",
"0.44823924",
"0.44735697",
"0.44684076",
"0.44680184",
"0.44613558",
"0.44598657",
"0.44572437",
"0.44564185",
"0.44558993",
"0.44539487",
"0.44493493",
"0.44450402",
"0.44374803",
"0.44168726",
"0.44153407",
"0.441345",
"0.4411392",
"0.44070548",
"0.43948102",
"0.43942448",
"0.43923786",
"0.4383166",
"0.43732312",
"0.4365959",
"0.43532312",
"0.43498755",
"0.43486717",
"0.4344229",
"0.43377593",
"0.43300572",
"0.43177688",
"0.43135482",
"0.430687",
"0.4296354"
] | 0.64798856 | 1 |
Return true if this Settlement could provide at least one item of all the given EquipmentTypes. This is designed specifically to mesh with getRoleEquipment(). | public boolean canProvideEquipment(List<EquipmentType> equipment) {
for (EquipmentType e : equipment) {
if (!canProvideEquipment(e)) return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean canProvideEquipment(EquipmentType equipmentType) {\n for (AbstractGoods goods : equipmentType.getGoodsRequired()) {\n int available = getGoodsCount(goods.getType());\n \n int breedingNumber = goods.getType().getBreedingNumber();\n if (breedingNumber != GoodsType.INFINITY) {\n available -= breedingNumber;\n }\n \n if (available < goods.getAmount()) return false;\n }\n return true;\n }",
"public boolean canBuildEquipment(EquipmentType equipmentType) {\n for (AbstractGoods requiredGoods : equipmentType.getGoodsRequired()) {\n if (getGoodsCount(requiredGoods.getType()) < requiredGoods.getAmount()) {\n return false;\n }\n }\n return true;\n }",
"private boolean isAvailable() {\n\t\tfor (int i = 0; i < lawsuitsAsClaimant.size(); i++) {\n\t\t\tif (lawsuitsAsClaimant.get(i).isActive()){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Check lawsuits as Defendant\n\t\tfor (int i = 0; i < lawsuitsAsDefendant.size(); i++) {\n\t\t\tif (lawsuitsAsDefendant.get(i).isActive()){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public boolean isInterestedInAllItems();",
"public boolean isOneOf( Set<Type> types ) {\n return types.contains(type);\n }",
"default boolean contains(ItemStack... items) {\n return contains(StackFilters.anyOf(items));\n\n }",
"public boolean containsAll(Collection<? extends Type> items);",
"public boolean isIndustrial() {\n return getStructureType() == EquipmentType.T_STRUCTURE_INDUSTRIAL;\n }",
"boolean isApplicableForAllAssetTypes();",
"public boolean showAllOccupationTypes() {\n return occupationTypes.contains(OccupationType.TOIMINNANOHJAAJA);\n }",
"default boolean willAcceptAny(List<ItemStack> stacks) {\n return stacks.stream().anyMatch(this::willAccept);\n }",
"public static boolean canAfford(UnitType unitType) {\n return hasMinerals(unitType.getMineralPrice()) && hasGas(unitType.getGasPrice());\n }",
"private boolean isValid(){\n\n Set<ResourceSingle> checkSet = new HashSet<>();\n return shelves.stream()\n .map(Shelf::getCurrentType)\n .filter(Objects::nonNull)\n .allMatch(checkSet::add);\n }",
"private boolean hasAnyWeatherType(Thing thing, List<WeatherType> weatherTypes) {\n if (weatherTypes == null || weatherTypes.size() == 0) {\n return true;\n }\n\n for (String type : thing.getWeatherType()) {\n for (WeatherType weatherType : weatherTypes) {\n if (weatherType.getType().equals(type)) {\n return true;\n }\n }\n }\n return false;\n }",
"default boolean canFit(ItemStack stack) {\n return !InvTools.isEmpty(stack) && stream().anyMatch(inv -> {\n InventoryManipulator im = InventoryManipulator.get(inv);\n return im.canAddStack(stack);\n });\n }",
"private static boolean isAllItemsAreNotSoldOut(List<Chef> foodItemList) {\n boolean result = false;\n for (int i = 0; i < foodItemList.size(); i++) {\n for (int j = 0; j < foodItemList.get(i).getFoodItemList().size(); j++) {\n if (foodItemList.get(i).getFoodItemList().get(j).getAvailQty() == 0 || !foodItemList.get(i).getFoodItemList().get(j).getAvailable()) {\n result = true;\n }\n }\n }\n return result;\n }",
"public boolean isSetWarrantytypes() {\n return this.warrantytypes != null;\n }",
"boolean containsRequirementFor(AResourceType type);",
"boolean hasGoodsType();",
"public boolean isFullySupplied()\n {\n boolean isFull = !model.needsFuel() || (model.maxFuel == fuel);\n isFull &= (model.maxAmmo == ammo);\n return isFull;\n }",
"public boolean isSetTypes() {\n return this.types != null;\n }",
"private boolean isAllCardsPicked(){\n\t\t\n\t\tboolean isCardsPicked = true;\n\t\tfor ( int i = 0; i < pickedCards.length; i++ ){\n\t\t\tif(!pickedCards[i]) {\n\t\t\t\tisCardsPicked = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn isCardsPicked;\n\t}",
"private boolean isAllCardsPicked(){\n\t\t\n\t\tboolean isCardsPicked = true;\n\t\tfor ( int i = 0; i < pickedCards.length; i++ ){\n\t\t\tif(!pickedCards[i]) {\n\t\t\t\tisCardsPicked = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn isCardsPicked;\n\t}",
"private boolean isAllIngredientOk(ArrayList<Boolean> listOfBool) {\n if (listOfBool.isEmpty() || listOfBool.contains(false))\n return false;\n return true;\n }",
"public static boolean hasTechAndBuildingsToProduce(UnitType unitType) {\n return hasTechToProduce(unitType) && hasBuildingsToProduce(unitType);\n }",
"@Override\n\t\tpublic boolean areAllItemsEnabled() {\n\t\t\treturn true;\n\t\t}",
"boolean isSetInstallmentType();",
"public boolean isSetItems() {\n return this.items != null;\n }",
"public static boolean hasBuildingsToProduce(UnitType unitType) {\n\n // Need to have every prerequisite building\n for (Integer unitTypeID : unitType.getRequiredUnits().keySet()) {\n UnitType requiredUnitType = UnitType.getByID(unitTypeID);\n \n// if (requiredUnitType.isLarva()) {\n// continue;\n// }\n// System.out.println(\"=req: \" + requiredUnitType);\n if (!requiredUnitType.isBuilding()) {\n// System.out.println(\" continue\");\n continue;\n }\n \n int requiredAmount = unitType.getRequiredUnits().get(unitTypeID);\n int weHaveAmount = requiredUnitType.isLarva() ? \n SelectUnits.ourLarva().count() : SelectUnits.our().ofType(requiredUnitType).count();\n// System.out.println(requiredUnitType + \" x\" + requiredAmount);\n// System.out.println(\" and we have: \" + weHaveAmount);\n if (weHaveAmount < requiredAmount) {\n return false;\n }\n }\n return true;\n }",
"public boolean hasIndustrialTSM() {\n for (Mounted m : getEquipment()) {\n if ((m.getType() instanceof MiscType) && m.getType().hasFlag(MiscType.F_INDUSTRIAL_TSM)) {\n return true;\n }\n }\n return false;\n }",
"@Override\n public boolean isEmpty() {\n return super.isEmpty() && ElementUtil.isEmpty(subsidyCode, programCode, prescriberTypes, notes, cautionaryNotes,\n restriction, commonwealthExManufacturerPrice, manufacturerExManufacturerPrice);\n }",
"public boolean contains(VehicleType t){\n\t\tfor(int i = 0; i < types.size(); i++){\n\t\t\tif(types.get(i).getVehicleType().equals(t.getVehicleType())){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isAny() {\n return m_item.getSchemaComponent().type() == SchemaBase.ANY_TYPE;\n }",
"public final boolean has(Player player, Collection<ItemStack> items)\n\t{\n\t\treturn InventoryHelper.findMissing(player, items).size() == 0;\n\t}",
"public boolean isAllowedWeapon(Material mat)\r\n\t{\treturn this.allowedWeapons.contains(mat);\t}",
"public static boolean hasTechToProduce(UnitType unitType) {\n\n // Needs to have tech\n TechType techType = TechType.TechTypes.getTechType(unitType.getRequiredTechID());\n if (techType != null && techType != TechType.TechTypes.None && !AtlantisTech.isResearched(techType)) {\n return false;\n }\n\n return true;\n }",
"public boolean hasBoots(Boot.BootType bootType){\n\t\t//Loop through the items in this inventory.\n \tfor (Collectable item : items)\n \t{\n \t\t//If the item is a boot and is the type we're looking for,\n \t\t//return true\n \t\tif (item instanceof Boot) {\n \t\t\tBoot boot = (Boot) item;\n \t\t\tif(boot.getBootType() == bootType) {\n \t\t\t\treturn true;\n \t\t\t}\n \t\t}\n \t}\n \treturn false;\n }",
"public boolean isFull(){\n\t\tfor(int i = 0; i < INVENTORY_SLOTS; i++){\n\t\t\tif(inventoryItems[i] == null){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"boolean hasManufacturer();",
"public boolean isSatisfied() {\n\t\tif (!booksToReturn.isEmpty()) {\n\t\t\treturn false;\n\t\t}\n\t\t// sprawdzenie czy wszystko z listy jest\n\t\t// przygotowywanie drugiej listy\n\t\tList<Integer> checkList = new ArrayList<Integer>();\n\t\tcheckList.addAll(wishList);\n\n\t\t// jesli ksiazka jest w plecaku to powinna byc na liscie\n\t\tfor (Book book : lendBooks) {\n\t\t\tif (checkList.contains((Integer) book.getIsbn())) {\n\t\t\t\tcheckList.remove((Integer) book.getIsbn());\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t// jeski na liscie jest coc czego nie ma w plecaku\n\t\treturn checkList.isEmpty();\n\t}",
"default boolean isEmpty() {\n\t\treturn this.getContents().values().stream().allMatch(ItemStack::isEmpty);\n\t}",
"private boolean checkMultipleUnitEdit() {\r\n\t\tboolean flag=false;\r\n\t\tfor(UIUnitType model:uiUnitType.getUnitValueList()){\r\n\t\t\tif(model.isInputDisplayItem()){\r\n\t\t\t\tflag=true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn flag;\r\n\t}",
"public boolean isSetAccountabilities() {\n return this.accountabilities != null;\n }",
"public boolean areAllAtLeast(int level) {\r\n for (int i = 0; i < SKILL_NAME.length; i++) {\r\n if (!ENABLED_SKILLS[i]) {\r\n continue;\r\n }\r\n // TODO CONSTRUCTION\r\n if (Objects.equals(SKILL_NAME[i], \"Construction\")) {\r\n continue;\r\n }\r\n if (getStaticLevel(i) < level) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }",
"@java.lang.Override\n public boolean hasInventoryItemData() {\n return inventoryItemCase_ == 3;\n }",
"public boolean isEmpty() {\r\n\t\treturn allCardsAreNull(set1) && allCardsAreNull(set2a)\r\n\t\t\t\t&& allCardsAreNull(set2b) && allCardsAreNull(set3a)\r\n\t\t\t\t&& allCardsAreNull(set3b);\r\n\t}",
"public boolean isEmpty() {\n\t\treturn Arrays.stream(inventory.getContents())\n\t\t\t\t.noneMatch(ItemStackUtils::isValid);\n\t}",
"@java.lang.Override\n public boolean hasInventoryItemData() {\n return inventoryItemCase_ == 3;\n }",
"private boolean contains(Collection<ResourceType> resourceTypes, ResourceType resourceType) {\n for (ResourceType rt : resourceTypes) {\n if (resourceType.getName().equals(rt.getName()))\n return true;\n }\n return false;\n }",
"boolean isSatisfiableFor(AResourceType type, int amount) ;",
"boolean anyGranted(String roles);",
"default boolean canEquip(@Nonnull ItemStack stack)\n {\n return stack.getCapability(ExtensionSlotItemCapability.INSTANCE, null)\n .map((extItem) -> IExtensionSlot.isAcceptableSlot(this, stack, extItem) && extItem.canEquip(stack, this)).orElse(false);\n }",
"public boolean isAListEmpty(){\r\n\t\tif((programChairs.size() > 0) && (committeeMembers.size() > 0)){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public boolean checkIsEmpty() {\n return isEmpty(minimumInstances) && isEmpty(maximumInstances) && isEmpty(dependentProfiles);\n }",
"static boolean anyObjectTypes(Object[] ptypes) {\n for (Object ptype : ptypes) {\n if (isObjectType(ptype)) {\n return true;\n }\n }\n return false;\n }",
"public boolean isFuelAvailable()\n\t{\n\t\tInventory inv = getPowerSourceInventory();\n\t\tif (inv == null) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn getFuel().allIn(inv);\n\t\t}\n\t}",
"boolean hasArmor();",
"public synchronized boolean isEmpty(){\n boolean isEmpty = true;\n for(ShoppingCartItem item : getItems()){\n if(item!=null)\n isEmpty=false;\n }\n return isEmpty;\n }",
"public boolean isAllowedArmor(Material mat)\r\n\t{\treturn this.allowedArmor.contains(mat);\t}",
"boolean isItEmpty(){\n\t\t\tif (this.items.isEmpty() && (this.receptacle.isEmpty() || findSpecialtyContainers())){//if there's nothing in there.\n\t\t\t\tSystem.out.println(\"\\nThere's nothing here to do anything with.\");\n\t\t\t\treturn true;}\n\t\t\treturn false;\n\t\t}",
"public boolean canContainItem(String item) {\n boolean badRequirementSet;\n for(List<String> requirementSet : listOfRequirementSets) {\n if(requirementSet.contains(item)) {\n continue; // This requirement set doesn't work; try another one.\n }\n if(item.equals(\"Ankh Jewel\")) {\n badRequirementSet = false;\n for(String requirement : requirementSet) {\n if(requirement.contains(\"Amphisbaena Defeated\") || requirement.contains(\"Sakit Defeated\")\n || requirement.contains(\"Ellmac Defeated\") || requirement.contains(\"Bahamut Defeated\")\n || requirement.contains(\"Viy Defeated\") || requirement.contains(\"Baphomet Defeated\")\n || requirement.contains(\"Palenque Defeated\") || requirement.contains(\"Tiamat Defeated\")) {\n badRequirementSet = true;\n break;\n }\n }\n if(badRequirementSet) {\n continue; // Minimize Ankh Jewel lock.\n }\n }\n return true;\n }\n return false;\n }",
"public boolean getCanPickupItems ( ) {\n\t\treturn extract ( handle -> handle.getCanPickupItems ( ) );\n\t}",
"public boolean needsRepair() {\n if (id == 5509) {\n return false;\n }\n return inventory.contains(id + 1);\n }",
"public static boolean contaisEnchantments(ItemStack item) {\n if(item != null) {\n for(Enchantment en : item.getEnchantments().keySet()) {\n if(item.containsEnchantment(en)) {\n return true;\n }\n }\n }\n return false;\n }",
"private boolean isWaterSupported(List<ClassDSLInformation> exannos) {\n\tfor (ClassDSLInformation annos : exannos) {\n\t if (!annos.isWaterSupported()) {\n\t\treturn false;\n\t }\n\t}\n\treturn true;\n }",
"public boolean containsAll(Collection<? extends T> items) {\n\n\t\tIterator<? extends T> itr = items.iterator();\n\n\t\twhile (itr.hasNext()) {\n\t\t\tif (!this.contains(itr.next())) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}",
"public boolean canAdd(UnitType unitType) {\n return workPlaces > 0\n && unitType.hasSkill()\n && unitType.getSkill() >= minSkill\n && unitType.getSkill() <= maxSkill;\n }",
"public boolean isEmpty(){\n\t\treturn isPassable&&!containsItems()&&!containsMonster()&&tileItems.noGold();\r\n\t}",
"private boolean allMUsSet() {\n\t\tVector meaningUnits = Model.getIllocutionUnitRoots().getMeaningUnits();\n\t\tfor (int i = 0; i < meaningUnits.size(); i++) {\n\t\t\tMeaningUnit mu = (MeaningUnit) meaningUnits.get(i);\n\t\t\tVector sememeGroups = mu.getSememeGroups();\n\t\t\tif (sememeGroups.isEmpty()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"static boolean any(EnumSet<Trait> traits, Trait... args)\n {\n return Arrays.stream(args).anyMatch(traits::contains);\n }",
"public boolean checkInventory(int serialNum, int qty){\n \n //create a boolean var and set to false- change to true only if there is enough of requested inventory\n boolean enoughInventory = false;\n \n //loop through all Inventory\n for(int i=0; i<this.items.size(); i++){\n //check if inventoryItem has matching serialNumber with specified serialNum\n if(this.items.get(i).getSerialNum()==serialNum){\n //if serial numbers match, check if inventoryItem has enough in stock for requested order\n if(this.items.get(i).getQty() >= qty){\n enoughInventory = true; //if quantity in inventory is greater than or equal to requested quantity there is enough\n }\n }\n }\n \n //return enoughInventory- will be false if no serial number matched or if there was not enough for requested qty\n return enoughInventory;\n \n }",
"protected boolean capacitiesCanMatch(Map<URI, StorageSystem> volumeStorageSystems) {\n String systemToCompare = null;\n for (Map.Entry<URI, StorageSystem> entry : volumeStorageSystems.entrySet()) {\n _log.info(\"Request requires provisioning on storage array of type: \" + entry.getValue().getSystemType());\n if (NullColumnValueGetter.isNullValue(systemToCompare)) {\n systemToCompare = entry.getValue().getSystemType();\n continue;\n }\n if (!capacityCalculatorFactory.getCapacityCalculator(systemToCompare).capacitiesCanMatch(entry.getValue().getSystemType())) {\n _log.info(\"Determined that the capacity for all volumes being provisioned cannot match.\");\n return false;\n }\n }\n _log.info(\"Determined that the capacity for all volumes being provisioned can match.\");\n return true;\n }",
"public boolean isApplicable(ActionSchema a) {\n return this.getFluents().containsAll(a.getPrecondition());\n }",
"public boolean isSetMemberTypes()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(MEMBERTYPES$2) != null;\n }\n }",
"boolean isSetCombine();",
"@Override\n public boolean isChameleonShieldActive() {\n if (!isShutDown()) {\n for (Mounted m : getMisc()) {\n EquipmentType type = m.getType();\n if (type.hasFlag(MiscType.F_CHAMELEON_SHIELD) && m.curMode().equals(\"On\") && m.isReady()) {\n return true;\n }\n }\n }\n return false;\n }",
"@Override\n public boolean hasRentabilityValues() {\n return (pensionParameters.getRentRisk() != null &&\n pensionParameters.getRentCons() != null &&\n pensionParameters.getRentMod() != null);\n }",
"public boolean contains(Software item){\n return products.contains (item);\n }",
"@Override\r\n\tpublic boolean isAllHit() {\r\n\t\treturn priorityElements.isEmpty();\r\n\t}",
"boolean hasAll();",
"boolean hasAll();",
"public boolean canProvidePower(PowerTypes type);",
"private boolean alreadyHasWeapon(Actor actor) {\n\t\tboolean hasWeapon = false;\n\t\t\n\t\tList<Item> inventory = actor.getInventory();\n\t\t\n\t\tfor (int x = 0; x < inventory.size(); x++) {\n\t\t\tif (inventory.get(x) instanceof Weapon) {\n\t\t\t\thasWeapon = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn hasWeapon;\n\t}",
"static boolean anyObjectTypes(List<?> ptypes) {\n for (Object ptype : ptypes) {\n if (isObjectType(ptype)) {\n return true;\n }\n }\n return false;\n }",
"@Override\n public boolean equipped() {\n\treturn this.equipped;\n }",
"public boolean isSet() {\r\n\t\tboolean isSet = false;\r\n\r\n\t\tif (this.time != null && this.id != null && this.price != null && this.quantity != null && this.type != null) {\r\n\t\t\tisSet = true;\r\n\r\n\t\t}\r\n\r\n\t\treturn isSet;\r\n\t}",
"public boolean isSatisfied(Set<String> enabledFeatures) {\n for (Set<String> filter : filters) {\n boolean filterSatisfied = false;\n for (String filterCondition : filter) {\n if (enabledFeatures.contains(filterCondition)) {\n filterSatisfied = true;\n break;\n }\n }\n if (!filterSatisfied)\n return false;\n }\n return true;\n }",
"public abstract boolean isTypeOf(ItemType type);",
"default boolean canUnequip(@Nonnull ItemStack stack)\n {\n return stack.getCapability(ExtensionSlotItemCapability.INSTANCE, null)\n .map((extItem) -> extItem.canUnequip(stack, this) && EnchantmentHelper.getEnchantmentLevel(Enchantments.BINDING_CURSE, stack) <= 0).orElse(true);\n }",
"public boolean isAnyAllowed() {\n return _types.size() == 0 || hasType(JSONSchemaTypes.ANY.getClass());\n }",
"public boolean isSetAntEfficiency() {\n return ((this.antEfficiency != null) && (!this.antEfficiency.isEmpty()));\n }",
"public boolean hasWeapon() { \n\t\tif (weaponHeld == null)\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}",
"private boolean checkStock(){\n int i;\n int inventorySize = inventory.size();\n int count = 0;\n for(i = 0; i < inventorySize; i++){\n count = count + inventory.get(i).getStock();\n\n }\n //System.out.println(\"Count was: \" + count);\n if(count < 1){\n return false;\n }else{\n return true;\n }\n }",
"boolean antecedentsContain(LayerType type) {\n if (this.antecedents.size() == 0)\n return false;\n\n boolean antecendentsContainType = false;\n\n for (LayerType t: this.antecedents)\n if (t == type)\n antecendentsContainType = true;\n\n return antecendentsContainType;\n }",
"public static boolean inventoryIsEmpty() {\n\t\treturn Inventory.getCount() == 0;\n\t}",
"@Override\n public boolean check(RealPlayer realPlayer) {\n for (Map.Entry<Resource, Integer> entry : productionPowerInput.entrySet()) {\n if (entry.getValue() > realPlayer.getPersonalBoard().getSpecificResourceCount(entry.getKey().getResourceType()))\n return false;\n }\n return true;\n }",
"public boolean isEmpty() {\n return attestationsByValidatorCount.isEmpty();\n }",
"@Override\n public boolean isValid() {\n return (27 - Inventory.getAll().length <= Inventory.find(\"Soft clay\").length)\n || (Inventory.find(\"Soft clay\").length < 1 || Inventory\n .find(\"Astral rune\").length < 1)\n && !Banking.isBankScreenOpen()\n && GlassBlower.antiban.canInteractObject();\n }",
"public boolean isNotOneOf( Set<Type> types ) {\n return !types.contains(type);\n }",
"public boolean isSalvageable(Material type);"
] | [
"0.6679168",
"0.6582021",
"0.6051764",
"0.599195",
"0.5969245",
"0.59418565",
"0.5884433",
"0.5863795",
"0.57739407",
"0.57219243",
"0.5686139",
"0.56834143",
"0.56832194",
"0.56710744",
"0.5568906",
"0.554333",
"0.5519092",
"0.54957765",
"0.5404363",
"0.53820235",
"0.53773683",
"0.53639096",
"0.53639096",
"0.5359228",
"0.535556",
"0.5348482",
"0.5330465",
"0.5314547",
"0.5301883",
"0.52829033",
"0.52812314",
"0.5280214",
"0.5278248",
"0.5270948",
"0.52647835",
"0.52627206",
"0.52501667",
"0.52422976",
"0.5219381",
"0.5204164",
"0.5183729",
"0.51826876",
"0.5181097",
"0.51799893",
"0.5172513",
"0.5167546",
"0.514867",
"0.5144646",
"0.51392806",
"0.51380056",
"0.5134823",
"0.51341724",
"0.51262486",
"0.5121441",
"0.51159626",
"0.51117784",
"0.51048666",
"0.5104559",
"0.5094331",
"0.5089722",
"0.5073699",
"0.5068451",
"0.5067351",
"0.50621206",
"0.5055508",
"0.5054916",
"0.5037445",
"0.5032525",
"0.50263",
"0.502564",
"0.5017685",
"0.5012501",
"0.5003952",
"0.50026727",
"0.5001082",
"0.4991113",
"0.49805865",
"0.49725455",
"0.49713787",
"0.49698153",
"0.49698153",
"0.49620095",
"0.4961281",
"0.49604273",
"0.49603721",
"0.49564072",
"0.495266",
"0.4948511",
"0.49464226",
"0.49409845",
"0.49323022",
"0.49292007",
"0.4925622",
"0.49200207",
"0.49157426",
"0.49115825",
"0.49084324",
"0.49083635",
"0.49080893",
"0.49070257"
] | 0.70929945 | 0 |
Write the attributes of this object to a stream. | @Override
protected void writeAttributes(XMLStreamWriter out)
throws XMLStreamException {
super.writeAttributes(out);
out.writeAttribute("name", getName());
out.writeAttribute("owner", owner.getId());
out.writeAttribute("tile", tile.getId());
out.writeAttribute("settlementType", getType().getId());
// TODO: Not owner, it is subject to PlayerExploredTile handling.
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void writeObject(OutputStream stream, Object object, int format) throws IOException;",
"private void writeObject(\n \t\t ObjectOutputStream aOutputStream\n\t\t ) throws IOException {\n\t\t //perform the default serialization for all non-transient, non-static fields\n \t\t aOutputStream.defaultWriteObject();\n \t}",
"public abstract <T> SerializationStream writeObject(T t);",
"private void writeObject(ObjectOutputStream stream) throws IOException {\r\n\t\tstream.defaultWriteObject();\r\n\t\tif (sprite != null) {\r\n\t\t\tstream.writeBoolean(true);\r\n\t\t\tstream.writeObject(sprite.getName());\r\n\t\t\tstream.writeFloat(sprite.getSpritespeed());\r\n\t\t\tstream.writeFloat(sprite.getMovingspeed());\r\n\t\t\tstream.writeInt(sprite.getDirection());\r\n\t\t} else {\r\n\t\t\tstream.writeBoolean(false);\r\n\t\t}\r\n\t}",
"void writeObject(OutputSerializer out) throws java.io.IOException;",
"@Override\n\tpublic void writeAttributes(XMLStreamWriter writer) throws XMLStreamException {\n\t\t\n\t}",
"private void writeObject(\n ObjectOutputStream aOutputStream\n ) throws IOException {\n //perform the default serialization for all non-transient, non-static fields\n aOutputStream.defaultWriteObject();\n }",
"public void save(DataOutput stream)\n throws IOException\n {\n stream.write(getBytes());\n }",
"private void writeObject(ObjectOutputStream _stream)\n/* 428: */ throws IOException\n/* 429: */ {\n/* 430:503 */ _stream.defaultWriteObject();\n/* 431:504 */ writeCustomData(_stream);\n/* 432: */ }",
"private void writeObject(ObjectOutputStream s) throws IOException {\n\t\ts.defaultWriteObject();\n\t\t// Write in size\n\t\tModel delegate = getDelegate();\n\t\ts.writeInt(delegate.size());\n\t\t// Write in all elements\n\t\tfor (Statement st : delegate) {\n\t\t\tResource subj = st.getSubject();\n\t\t\tURI pred = st.getPredicate();\n\t\t\tValue obj = st.getObject();\n\t\t\tResource ctx = st.getContext();\n\t\t\ts.writeObject(new ContextStatementImpl(subj, pred, obj, ctx));\n\t\t}\n\t}",
"public void serialize() {\n FileOutputStream fileOutput = null;\n ObjectOutputStream outStream = null;\n // attempts to write the object to a file\n try {\n clearFile();\n fileOutput = new FileOutputStream(data);\n outStream = new ObjectOutputStream(fileOutput);\n outStream.writeObject(this);\n } catch (Exception e) {\n } finally {\n try {\n if (outStream != null)\n outStream.close();\n } catch (Exception e) {\n }\n }\n }",
"@Override\n\tpublic void serialize(DataOutputStream stream) throws IOException {\n\t\tsuper.serialize(stream);\n\t\tstream.writeInt(getState());\n\t}",
"@Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(name);\n dest.writeString(namespace);\n dest.writeString(via);\n dest.writeInt(attributes.size());\n for (Attribute attribute: attributes) {\n dest.writeString(attribute.getName());\n dest.writeString(attribute.getNamespace());\n dest.writeString(attribute.getValue());\n }\n dest.writeString(xml);\n }",
"public void writeObject ();",
"@Override\n protected void writeAttributes(XMLStreamWriter out)\n throws XMLStreamException {\n super.writeAttributes(out);\n\n if (upgradesFrom != null) {\n out.writeAttribute(\"upgradesFrom\", upgradesFrom.getId());\n }\n out.writeAttribute(\"workplaces\", Integer.toString(workPlaces));\n out.writeAttribute(\"basicProduction\", Integer.toString(basicProduction));\n if (minSkill > UNDEFINED) {\n out.writeAttribute(\"minSkill\", Integer.toString(minSkill));\n }\n if (maxSkill < INFINITY) {\n out.writeAttribute(\"maxSkill\", Integer.toString(maxSkill));\n }\n if (upkeep > 0) {\n out.writeAttribute(\"upkeep\", Integer.toString(upkeep));\n }\n if (priority != Consumer.BUILDING_PRIORITY) {\n out.writeAttribute(\"priority\", Integer.toString(priority));\n }\n if (consumes != null) {\n out.writeAttribute(\"consumes\", consumes.getId());\n }\n if (produces != null) {\n out.writeAttribute(\"produces\", produces.getId());\n }\n }",
"void serializeContents(OutputStream stream, TargetType o) throws IOException {\n val writeVersion = this.versions[getWriteVersion()];\n stream.write(writeVersion.getVersion());\n stream.write(writeVersion.getRevisions().size());\n\n // Write each Revision for this Version, in turn.\n for (val r : writeVersion.getRevisions()) {\n stream.write(r.getRevision());\n try (val revisionOutput = RevisionDataOutputStream.wrap(stream)) {\n r.getWriter().accept(o, revisionOutput);\n }\n }\n }",
"public void writeObject(Object obj) throws IOException;",
"private void writeObject(ObjectOutputStream stream) throws IOException {\r\n\t\tstream.defaultWriteObject();\r\n\t\tGZIPOutputStream gzos = new GZIPOutputStream(stream);\r\n\t\tObjectOutputStream oos = new ObjectOutputStream(gzos);\r\n\t\toos.writeObject(map);\r\n\t\toos.writeObject(visibility);\r\n\t\toos.writeObject(occupied);\r\n\t\toos.writeObject(danger);\r\n\t\toos.writeObject(attacking);\r\n\t\toos.writeObject(fade);\r\n\t\toos.writeObject(cost);\r\n\t\toos.writeObject(difficulty);\r\n\t\toos.flush();\r\n\t\tgzos.finish();\r\n\t}",
"void serialize(Object obj, OutputStream stream) throws IOException;",
"@Override\n\tprotected void write(ObjectOutput out) throws IOException {\n\t\t\n\t}",
"@Override\n public void write() {\n\n }",
"private void writeObject(java.io.ObjectOutputStream s)\r\n throws java.io.IOException {\r\n // Write out any hidden serialization magic\r\n s.defaultWriteObject();\r\n\r\n // Write out size\r\n s.writeInt(size);\r\n\r\n // Write out all elements in the proper order.\r\n for (Entry e = header.next; e != header; e = e.next)\r\n s.writeObject(e.element);\r\n }",
"String objectWrite();",
"private void writeObject ( ObjectOutputStream out ) throws IOException {\n ObjectOutputStream.PutField fields = out.putFields();\n fields.put(\"_user\", _user);\n out.writeFields();\n }",
"public void saveToStream(OutputStream stream, Model model);",
"private ObjectOutputStream getOutputStream() {\n\t\t// retornamos el stream de salida\n\t\treturn this.outputStream;\n\t}",
"public void writeObject( Container.ContainerOutputStream cos ) throws SerializationException;",
"private void writeObject(ObjectOutputStream s) throws IOException\t\n\t{\n\t\ts.writeInt(score);\t\n\t\ts.writeDouble(this.centre.getX());\t\n\t\ts.writeDouble(this.centre.getY());\t\n\t\ts.writeObject(rectangle.getFill().toString());\t\n//\t\tSystem.out.println(\"something\");\t\n\t}",
"public OutputStream getStream()\r\n {\r\n return mStream;\r\n }",
"private void writeObject(\n ObjectOutputStream aOutputStream\n ) throws IOException {\n aOutputStream.defaultWriteObject();\n }",
"private void writeObject(java.io.ObjectOutputStream s)\r\n throws java.io.IOException {\r\n // Write out any hidden serialization magic\r\n s.defaultWriteObject();\r\n\r\n // Write out HashMap capacity and load factor\r\n // s.writeInt(map.capacity());\r\n // s.writeFloat(map.loadFactor());\r\n\r\n // Write out size\r\n s.writeInt(this.map.size());\r\n\r\n // Write out all elements in the proper order.\r\n for (Iterator<E> i = this.map.values().iterator(); i.hasNext();)\r\n s.writeObject(i.next());\r\n }",
"@Override\n public void encode(DataOutputStream ostream) throws IOException {\n\n ostream.writeInt(this.location.getWorldMapID());\n ostream.writeInt(this.location.getTownMapID());\n ostream.writeInt(this.location.getBuildingID());\n ostream.writeInt(this.location.getInteriorMapID());\n ostream.writeInt(this.location.getRoomID());\n ostream.writeInt(this.location.getTileMapID());\n\n ostream.writeInt(this.roomLinkIDs.length);\n\n for (int i = 0; i < this.roomLinkIDs.length; i++) {\n ostream.writeInt(this.roomLinkIDs[i]);\n ostream.writeBoolean(this.isOpened[i]);\n }\n }",
"OutputStream serialize(OutputStream toSerialize);",
"public abstract void serialize(OutputStream stream, T object) throws IOException;",
"OutputStream getOutputStream();",
"public void writeObject (ObjectOutputStream out)\n throws IOException\n {\n out.defaultWriteObject();\n\n PropertySpaceHelper.writeProperties(this, out);\n }",
"@Override\r\n\tpublic void write() {\n\t\t\r\n\t}",
"@Override\n\tpublic void write(OutStream outStream) {\n\t}",
"public void writeTo(OutputStream arg0) throws IOException {\n\t\t\r\n\t}",
"public OutputStream getOutputStream();",
"private void writeObjectToStream(ByteArrayOutputStream baos) throws IOException {\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(baos);\n\t\t\toos.writeObject(this.category);\n\t\t\toos.writeObject(this.entityId.toString());\n\t\t\toos.writeObject(this.entityType);\n\t\t\toos.writeObject(this.entityLink);\n\t\t\toos.writeObject(this.severity);\n\t\t\toos.writeObject(this.validationRule.toString());\n\t\t\toos.writeObject(this.violationDetails.toString());\n\t\t\toos.writeObject(this.violationType);\n\t\t\toos.close();\n\t\t}",
"public void writeObject(ZObjectOutputStream out) throws IOException {\n }",
"public LoggedDataOutputStream getOutputStream() {\n return outputStream;\n }",
"void writeBody(ObjectOutputStream stream) throws IOException {\n stream.writeObject(body);\n }",
"void write(StreamOption streamOpt);",
"private void writeObject(ObjectOutputStream stream) throws IOException {\n/* 188 */ stream.defaultWriteObject();\n/* 189 */ stream.writeInt(this.store.size());\n/* 190 */ Set keys = this.store.keySet();\n/* 191 */ Iterator iterator = keys.iterator();\n/* 192 */ while (iterator.hasNext()) {\n/* 193 */ Comparable key = (Comparable)iterator.next();\n/* 194 */ stream.writeObject(key);\n/* 195 */ Stroke stroke = getStroke(key);\n/* 196 */ SerialUtilities.writeStroke(stroke, stream);\n/* */ } \n/* */ }",
"private void writeObject(java.io.ObjectOutputStream s)\n throws java.lang.ClassNotFoundException,\n\t java.io.IOException\n {\n s.defaultWriteObject();\n }",
"protected void writeWrite ()\n {\n stream.println (\" public void _write (org.omg.CORBA.portable.OutputStream o)\");\n stream.println (\" {\");\n if (entry instanceof ValueBoxEntry)\n {\n TypedefEntry member = ((InterfaceState) ((ValueBoxEntry) entry).state ().elementAt (0)).entry;\n SymtabEntry mType = member.type ();\n if (mType instanceof StringEntry)\n stream.println (\" o.write_string (value);\");\n\n else if (mType instanceof PrimitiveEntry)\n {\n String name = entry.name ();\n stream.println (\" \" + name + \" vb = new \" + name + \" (value);\");\n stream.println (\" \" + helperClass + \".write (o, vb);\");\n }\n\n else\n stream.println (\" \" + helperClass + \".write (o, value);\");\n }\n else\n stream.println (\" \" + helperClass + \".write (o, value);\");\n stream.println (\" }\");\n stream.println ();\n }",
"@Override\n @SuppressWarnings(\"unchecked\")\n public void serialize(OutputStream stream, BaseType o) throws IOException {\n Class c = o.getClass();\n val si = this.serializersByType.get(c);\n ensureCondition(si != null, \"No serializer found for %s.\", c.getName());\n si.serializer.beforeSerialization(o);\n\n // Encode the Serialization Format Version.\n stream.write(SERIALIZER_VERSION);\n\n // Encode the Object type; this will be used upon deserialization.\n stream.write(si.id);\n\n // Write contents.\n si.serializer.serializeContents(stream, o);\n }",
"@Override\n\t\tprotected void writeStreamHeader() throws IOException {\n\t\t}",
"private void writeProperties() {\n propsMutex.writeAccess(new Runnable() {\n public void run() {\n OutputStream out = null;\n FileLock lock = null;\n try {\n FileObject pFile = file.getPrimaryFile();\n FileObject myFile = FileUtil.findBrother(pFile, extension);\n if (myFile == null) {\n myFile = FileUtil.createData(pFile.getParent(), pFile.getName() + \".\" + extension);\n }\n lock = myFile.lock();\n out = new BufferedOutputStream(myFile.getOutputStream(lock));\n props.store(out, \"\");\n out.flush();\n lastLoaded = myFile.lastModified();\n logger.log(Level.FINE, \"Written AssetData properties for {0}\", file);\n } catch (IOException e) {\n Exceptions.printStackTrace(e);\n } finally {\n if (out != null) {\n try {\n out.close();\n } catch (IOException ex) {\n Exceptions.printStackTrace(ex);\n }\n }\n if (lock != null) {\n lock.releaseLock();\n }\n }\n }\n });\n }",
"private void writeObject(final ObjectOutputStream oos) throws IOException {\n oos.defaultWriteObject();\n StyleContext.writeAttributeSet(oos, styles);\n }",
"private void writeObject(ObjectOutputStream out) throws IOException\r\n\t{\r\n\t\tthis.serialize(out);\r\n\t}",
"public OutputStream getOutputStream() {\n return this.outputStream;\n }",
"public void toString(Writer stream) throws IOException {\n stream.write('\"');\n if (this.m_content != null) stream.write(escape(this.m_content));\n stream.write('\"');\n }",
"OutputStream getOutputStream()\n {\n return outputStream;\n }",
"public ObjectOutputStream getOos(){\n return this.oos;\n }",
"DataStreamAttributes createDataStreamAttributes();",
"public void writeObject(RandomAccessFile arq) throws IOException{\n byte[] dados = this.getByteArray();\n arq.writeChar(' ');\n arq.writeShort(dados.length);\n arq.write(dados);\n }",
"private void setOutputStream(final ObjectOutputStream stream) throws IOException {\n\t\t// almacenamos el stream de salida\n\t\tthis.outputStream = stream;\n\t\t// limpiamos el stream\n\t\tthis.getOutputStream().flush();\n\t}",
"private void writeObject(java.io.ObjectOutputStream s)\n throws java.lang.ClassNotFoundException,\n java.io.IOException\n {\n s.defaultWriteObject();\n }",
"private void writeObject(final ObjectOutputStream out) throws IOException {\n try {\n if (location == null) location = IOHelper.serializeData(object);\n IOHelper.writeData(location, new StreamOutputDestination(out));\n } catch (final IOException e) {\n throw e;\n } catch (final Exception e) {\n throw new IOException(e);\n }\n }",
"private void writeObject( final ObjectOutputStream oos ) \n\t\tthrows IOException {\n\t\t\n\t\tObjectOutputStream.PutField fields = oos.putFields();\n\t\tfields.put(\"streetNumbers\", streetNumbers);\n\t\tfields.put(\"city\", city);\n\t\tfields.put(\"state\", state);\n\t\tfields.put(\"postalCode\", postalCode);\n\t\tfields.put(\"hashCode\", hashCode);\n\t\toos.writeFields();\n\t}",
"private void writeObject (ObjectOutputStream out) throws IOException {\n\t\tout.writeInt (CURRENT_SERIAL_VERSION);\n\t\tout.writeObject(inputPipe);\n\t\tout.writeObject(outputPipe);\n\t\tout.writeObject(sumLatticeFactory);\n\t\tout.writeObject(maxLatticeFactory);\n\t}",
"public void _write(org.omg.CORBA.portable.OutputStream ostream)\r\n {\r\n PropositionHelper.write(ostream,value);\r\n }",
"public void write(CCompatibleOutputStream os) throws Exception {\n header.write(os);\n super.write(os);\n }",
"public void setOutputStream(DataOutputStream dos) {\n this.careuOutputStream= dos;\n }",
"private void writeObject(final java.io.ObjectOutputStream out) throws java.io.IOException {\n\t\t/*\n\t\t * out.writeInt(0); // Version of the stream. // Version 0 outstuff...\n\t\t * out.writeObject(states); out.writeObject(initialState);\n\t\t * out.writeObject(finalStates); out.writeObject(transitions); if (this\n\t\t * instanceof TuringMachine) { out.writeInt(((TuringMachine)\n\t\t * this).tapes); } out.writeObject(\"SENT\"); // The sentinel object.\n\t\t */\n\t}",
"@Override\n protected void writeAttributes(XMLStreamWriter out)\n throws XMLStreamException {\n super.writeAttributes(out);\n \n out.writeAttribute(\"nextID\", Integer.toString(nextID));\n }",
"public ServletOutputStream getOutputStream() {\n return sosi;\n }",
"private void writeObject(ObjectOutputStream out) throws IOException{\n out.defaultWriteObject();\n // writeUTF <--> readUTF, will write length;\n // writeChars <--> readChar, will not write length, you should know the length before read.\n out.writeUTF(company);\n // out.writeChars(company);\n out.writeUTF(encryptor.xor(password));\n }",
"public <T> SerializationStream writeValue(T value){\n return writeObject(value);\n }",
"@Override\n protected void writeStreamHeader() throws IOException {\n // metodo honek ez du ezer egiten\n }",
"public boolean writeAttributeFile();",
"public ObjectOutputStream getOos() {\n return oos;\n }",
"OutputStream getOutputStream() throws IOException;",
"@Override\n public void write() throws IOException\n {\n super.write();//Chamada para metodo da superclasse ajusta ponteiro para \n //gravacao sequencial apos posicao do ultimo registro\n //gravado\n writeString(id, TOPIC_ID_STRLENGTH);\n writeString(title, TITLE_STRLENGTH);\n writeShort(rank);\n }",
"public void writeTo(Object obj, String mimeType, OutputStream os)\n\t throws IOException;",
"public final OutputStream getOutputStream() {\n return outputStream;\n }",
"public static void writeObject() {\r\n ChunkedCharBuffer buf = new ChunkedCharBuffer();\r\n for (Map.Entry<String, CronJob> entry : getInstance().events.entrySet()) {\r\n CronJob event = entry.getValue();\r\n buf.append(entry.getKey());\r\n buf.append(\"|\");\r\n buf.append(String.valueOf(event.getInterval()));\r\n buf.append(\"|\");\r\n buf.append(String.valueOf(event.getStartTime().getTime()));\r\n buf.append(\"|\");\r\n buf.append(event.getCommandString());\r\n buf.append(\"|\");\r\n buf.append(event.getUser());\r\n buf.append(\"|\");\r\n buf.append(event.getUserService());\r\n buf.append(\"\\n\");\r\n }\r\n if (buf.size() > 0) {\r\n try {\r\n OutputStreamWriter out = new OutputStreamWriter(new BufferedOutputStream(new FileOutputStream(FILE, false)));\r\n buf.writeTo(out);\r\n out.flush();\r\n out.close();\r\n } catch (Exception e) {\r\n LoggingService.getInstance().serverLog(\"Error writing statistics: \" + e);\r\n }\r\n }\r\n }",
"public OutputStream getOutputStream() {\n return outStream;\n }",
"public OutputStream getOutputStream() {\n\t\treturn toMonet;\n\t}",
"protected void writeRepositoryInstruction() throws IOException {\n openTag(\"set-life-cycle-attributes\");\n endUnaryTag();\n Iterator j = attributeList.keySet().iterator();\n Map attributes;\n String field, value, name;\n IntralinkOrigin o;\n while (j.hasNext()) {\n o = (IntralinkOrigin)j.next();\n attributes = (Map)attributeList.get(o);\n value = null;\n field = null;\n Iterator i = attributes.keySet().iterator(); \n openTag(\"metadata\");\n writeParameter(\"name\", o.getName());\n writeParameter(\"branch\", o.getBranch());\n writeParameter(\"revision\", o.getRevision());\n writeParameter(\"version\", o.getVersion());\n while (i.hasNext()) {\n field = i.next().toString();\n if (!attributes.containsKey(field)) continue;\n value = attributes.get(field).toString();\n writeParameter(field, value);\n }\n closeTag();\n }\n closeTag(\"set-life-cycle-attributes\");\n }",
"public void writeToStream(DataOutputStream ostream) throws IOException{\r\n Iterator fieldIterator = headerFields.entrySet().iterator();\r\n while (fieldIterator.hasNext()){\r\n Map.Entry entry = (Map.Entry)fieldIterator.next();\r\n ostream.write((entry.getKey() + \": \" + entry.getValue() + \"\\r\\n\").getBytes());\r\n }\r\n ostream.write(\"\\r\\n\".getBytes());\r\n if(messageBody != null)\r\n ostream.write(messageBody);\r\n ostream.flush();\r\n }",
"private void writeObject(ObjectOutputStream out) throws IOException {\n\tout.defaultWriteObject();\n\tservID.writeBytes(out);\n }",
"private void saveAttributes() {\n o_width = width;\n o_height = height;\n o_fps = fps;\n o_bps = bps;\n o_totalFrames = totalFrames;\n }",
"ObjectOutputStream newObjectOutputStream(OutputStream out) throws Exception;",
"@Override\n\tpublic void writeToParcel(Parcel dest, int flags) {\n\t\tdest.writeLong(this.Guid);\n\t\tdest.writeDouble(this.Latitude);\n\t\tdest.writeDouble(this.Longitude);\n\t\tdest.writeDouble(this.Altitude);\n\t\tdest.writeDouble(this.Accuracy);\n\t\tdest.writeString(this.getCreateTimeStr());\n\t\tdest.writeFloat(this.Speed);\n\t\tdest.writeFloat(this.Bearing);\n\t\tdest.writeString(this.Province);\n\t\tdest.writeString(this.City);\n\t\tdest.writeString(this.District);\n\t\tdest.writeString(this.Street);\n\t\tdest.writeString(this.StreetNum);\n\t\tdest.writeString(this.Address);\n\t}",
"public OutputStream getOutputStream() {\n\t\treturn outputStream;\n\t}",
"public ObjectOutputStream getOOS(){\r\n return oos;\r\n }",
"public void save(OutputStream os) throws IOException;",
"@Override\r\n\tpublic void writeObject(Object obj) throws IOException {\n\t\t\r\n\t\tif (obj instanceof HandShake ) {\r\n\t\t\t((HandShake) obj).write(this);\r\n\t\t} else if (obj instanceof Message){\r\n\t\t\t((Message) obj).write(this);\r\n\t\t} else {\r\n\t\t\tthrow new UnsupportedOperationException(\" Message is not supported to write \");\r\n\t\t}\r\n\t}",
"public void write(OutputStream out) throws IOException {\n\t\tMap<String, Object> map = properties.getMap(false, false,\n\t\t\t\tObservableProperties.DEFAULT);\n\t\tProperties properties = new Properties();\n\n\t\t// convert everything to a String:\n\t\tfor (String key : map.keySet()) {\n\t\t\tproperties.put(key, map.get(key).toString());\n\t\t}\n\n\t\tproperties.put(VERSION.toString(), version.toString());\n\t\tproperties.storeToXML(out, \"\");\n\t}",
"public void streamOutput(String type,Object currentObj);",
"private void writeProperty(Content content) throws Exception {\n\t\tNodeAttributes attributes = content.getAttributes();\n\t\tFileOutputStream out = new FileOutputStream(open());\n\t\tif (attributes != null)\n\t\t\tout.write(attributes.toString().getBytes());\n\t\tout.flush();\n\t\tout.close();\n\t}",
"public MyHTTPOutputStream(OutputStream os) {\n\t\tsuper(os);\n\t\tthis.myRequest = \"\";\n\t\tthis.myReply = \"\";\n\t}",
"void serialize(@NotNull OutputStream out) throws IOException;",
"@Override\n\tpublic void write(DataOutput out) throws IOException {\n\t\tid.write(out);\n\t\ttag.write(out);\n\t}",
"public OutputStream getOutputStream() throws IOException;",
"@Override\r\n\tpublic void write(CEntity entity) {\n\t\tentity.write(writer);\t\t\r\n\t}"
] | [
"0.640425",
"0.61439884",
"0.60899377",
"0.60443175",
"0.5999136",
"0.59885156",
"0.5970895",
"0.59568226",
"0.5931245",
"0.5919474",
"0.5887288",
"0.58854675",
"0.58738923",
"0.5867575",
"0.58334637",
"0.5825374",
"0.5759711",
"0.574564",
"0.5739065",
"0.57359",
"0.57017356",
"0.5688449",
"0.56809187",
"0.56538236",
"0.5650871",
"0.5649885",
"0.5638643",
"0.56102425",
"0.55919194",
"0.5581937",
"0.5579277",
"0.55461186",
"0.5535602",
"0.55321854",
"0.5514905",
"0.5507442",
"0.55066496",
"0.550476",
"0.54926056",
"0.5476571",
"0.5456237",
"0.54477423",
"0.54435056",
"0.54411525",
"0.54400945",
"0.54363704",
"0.543167",
"0.54023254",
"0.5402262",
"0.539753",
"0.5391661",
"0.53824496",
"0.53771126",
"0.5371174",
"0.53671765",
"0.5359685",
"0.53507966",
"0.5346182",
"0.53442705",
"0.53349066",
"0.5334336",
"0.5332246",
"0.53173053",
"0.5308091",
"0.5306421",
"0.5303759",
"0.52904725",
"0.52824265",
"0.5268574",
"0.5260091",
"0.5259293",
"0.5258768",
"0.52521753",
"0.52492195",
"0.52376366",
"0.52350765",
"0.52342385",
"0.52326596",
"0.52296615",
"0.5222476",
"0.52081406",
"0.5206614",
"0.5203593",
"0.5196867",
"0.5189789",
"0.5184307",
"0.5174802",
"0.5174099",
"0.51717347",
"0.5164717",
"0.5158711",
"0.51541895",
"0.514913",
"0.5143404",
"0.51412094",
"0.5132845",
"0.5120685",
"0.5116224",
"0.511533",
"0.511232"
] | 0.5987392 | 6 |
Reads the attributes of this object from an XML stream. | @Override
protected void readAttributes(XMLStreamReader in)
throws XMLStreamException {
super.readAttributes(in);
setName(in.getAttributeValue(null, "name"));
owner = getFreeColGameObject(in, "owner", Player.class);
tile = getFreeColGameObject(in, "tile", Tile.class);
// @compat 0.9.x
String typeStr = in.getAttributeValue(null, "settlementType");
SettlementType settlementType;
if (typeStr == null) {
String capital = in.getAttributeValue(null, "isCapital");
settlementType = owner.getNationType()
.getSettlementType("true".equals(capital));
// end compatibility code
} else {
settlementType = owner.getNationType().getSettlementType(typeStr);
}
setType(settlementType);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void readFromXMLImpl(XMLStreamReader in) throws XMLStreamException {\n super.readAttributes(in);\n \n // Remove this when the 0.9.x save hack (in Game.java) is gone.\n ownerId = in.getAttributeValue(null, \"owner\");\n \n messageType = Enum.valueOf(MessageType.class, getAttribute(in, \"messageType\", MessageType.DEFAULT.toString()));\n beenDisplayed = Boolean.parseBoolean(in.getAttributeValue(null, \"hasBeenDisplayed\"));\n sourceId = in.getAttributeValue(null, \"source\");\n displayId = in.getAttributeValue(null, \"display\");\n \n super.readChildren(in);\n }",
"public void readFromXML(XMLStreamReader in) throws XMLStreamException {\n readFromXMLImpl(in);\n }",
"private void readAttributes() throws IOException, ClassFormatException {\n final int attributes_count = dataInputStream.readUnsignedShort();\n attributes = new Attribute[attributes_count];\n for (int i = 0; i < attributes_count; i++) {\n attributes[i] = Attribute.readAttribute(dataInputStream, constant_pool);\n }\n }",
"public void readFromParcel(Parcel source) {\n name = source.readString();\n namespace = source.readString();\n via = source.readString();\n int attributeCount = source.readInt();\n if (attributeCount > 0) {\n attributes = new ArrayList<Attribute>(attributeCount + 1);\n for (int i = 0; i < attributeCount; i++) {\n Attribute attribute = new Attribute(\n source.readString(),\n source.readString(),\n source.readString());\n attributes.add(attribute);\n }\n } else {\n attributes = new ArrayList<Attribute>(0);\n }\n xml = source.readString();\n }",
"public void _read(org.omg.CORBA.portable.InputStream istream)\r\n {\r\n value = PropositionHelper.read(istream);\r\n }",
"public final void readFromXMLImpl(XMLStreamReader in)\n throws XMLStreamException {\n //setId(in.getAttributeValue(null, ID_ATTRIBUTE_TAG));\n\n String advantages = getAttribute(in, \"nationalAdvantages\",\n \"selectable\").toUpperCase(Locale.US);\n nationalAdvantages = Enum.valueOf(Advantages.class, advantages);\n\n while (in.nextTag() != XMLStreamConstants.END_ELEMENT) {\n if (in.getLocalName().equals(\"Nations\")) {\n nations.clear();\n while (in.nextTag() != XMLStreamConstants.END_ELEMENT) {\n if (in.getLocalName().equals(\"Nation\")) {\n String nationId = in.getAttributeValue(null, ID_ATTRIBUTE_TAG);\n Nation nation = specification.getNation(nationId);\n NationState state = Enum.valueOf(NationState.class,\n in.getAttributeValue(null, \"state\"));\n nations.put(nation, state);\n }\n in.nextTag();\n }\n }\n }\n }",
"public XGMMLReader(InputStream is) {\n \t\tthis.networkStream = is;\n \t\tinitialize();\n \t}",
"private void readObject(ObjectInputStream inStream) \r\n\t\t\tthrows IOException, ClassNotFoundException {\r\n\t\tmPublicKey = (String)inStream.readObject();\r\n\t\tmIssuer = (String)inStream.readObject();\r\n\t\tmSubject = (String)inStream.readObject();\r\n\t}",
"@Override\n\tpublic void read(InStream inStream) {\n\t}",
"public void readObject (ObjectInputStream ins)\n throws IOException, ClassNotFoundException\n {\n ins.defaultReadObject();\n\n PropertySpaceHelper.readProperties(this, ins);\n }",
"private void readObject( final ObjectInputStream ois ) \n\t\tthrows ClassNotFoundException, IOException {\n\t\tObjectInputStream.GetField fields = ois.readFields();\n\t\tstreetNumbers = (String) fields.get(\"streetNumbers\", NA );\n\t\tcity = (String) fields.get(\"city\", NA);\n\t\tstate = (StateCode) fields.get(\"state\", StateCode.NY);\n\t\tpostalCode = (String) fields.get(\"postalCode\", NA);\n\t\thashCode = fields.get(\"hashCode\", 0);\n\t}",
"@Override\n\tpublic void parse(InputStream iStream) throws LearningpodException {\n\t\tXStream xs = new XStream();\t\t\n\t\txs.autodetectAnnotations(true);\n\t\txs.ignoreUnknownElements();\n\t\t// set aliases\t\n\t\txs.alias(\"learningpod\",ExplanationBean.class);\n\t\texplanation = (ExplanationBean)xs.fromXML(iStream);\n\t\t\n\t}",
"public Asn1Object read() throws IOException {\n\n\t\t\tint tag = this.in.read();\n\n\t\t\tif (tag == -1) {\n\t\t\t\tthrow new IllegalStateException(\"Invalid DER: stream too short, missing tag\");\n\t\t\t}\n\n\t\t\tint length = getLength();\n\n\t\t\tif (tag == BIT_STRING) {\n\t\t\t\t// Not sure what to do with this one.\n\t\t\t\tint padBits = this.in.read();\n\t\t\t\tlength--;\n\t\t\t}\n\n\t\t\tbyte[] value = new byte[length];\n\t\t\tint n = this.in.read(value);\n\t\t\tif (n < length) {\n\t\t\t\tthrow new IllegalStateException(\"Invalid DER: stream too short, missing value\");\n\t\t\t}\n\n\t\t\treturn new Asn1Object(tag, length, value);\n\t\t}",
"private void readObject(final ObjectInputStream stream) throws IOException, ClassNotFoundException {\n stream.defaultReadObject();\n answerMarks_.clear();\n }",
"public void fromXml(InputStream is) throws Exception {\r\n\t\tJAXBContext jc = JAXBContext.newInstance(TaskTypes.class);\r\n\t\tUnmarshaller u = jc.createUnmarshaller();\r\n\t\tTaskTypes tt = (TaskTypes) u.unmarshal(is);\r\n\t\tthis.taskTypes = tt.taskTypes;\r\n\t}",
"DataObject loadObject(XMLStreamReader reader) throws XMLStreamException, IllegalStateException;",
"private static Document parseXML(InputStream stream) throws Exception {\n DocumentBuilderFactory objDocumentBuilderFactory = null;\n DocumentBuilder objDocumentBuilder = null;\n Document doc = null;\n try {\n objDocumentBuilderFactory = DocumentBuilderFactory.newInstance();\n objDocumentBuilder = objDocumentBuilderFactory.newDocumentBuilder();\n doc = objDocumentBuilder.parse(stream);\n } catch (Exception ex) {\n throw ex;\n }\n return doc;\n }",
"public static FactAttributes parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception {\r\n FactAttributes object =\r\n new FactAttributes();\r\n\r\n int event;\r\n java.lang.String nillableValue = null;\r\n java.lang.String prefix = \"\";\r\n java.lang.String namespaceuri = \"\";\r\n try {\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n\r\n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"type\") != null) {\r\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\");\r\n if (fullTypeName != null) {\r\n java.lang.String nsPrefix = null;\r\n if (fullTypeName.indexOf(\":\") > -1) {\r\n nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(\":\"));\r\n }\r\n nsPrefix = nsPrefix == null ? \"\" : nsPrefix;\r\n\r\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\") + 1);\r\n\r\n if (!\"FactAttributes\".equals(type)) {\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\r\n return (FactAttributes) ExtensionMapper.getTypeObject(\r\n nsUri, type, reader);\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n // Note all attributes that were handled. Used to differ normal attributes\r\n // from anyAttributes.\r\n java.util.List handledAttributes = new java.util.ArrayList();\r\n\r\n\r\n reader.next();\r\n\r\n java.util.ArrayList list1 = new java.util.ArrayList();\r\n\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\r\n\r\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\", \"attribute\").equals(reader.getName())) {\r\n\r\n\r\n // Process the array and step past its final element's end.\r\n\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\r\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\r\n list1.add(null);\r\n reader.next();\r\n } else {\r\n list1.add(FactAttribute.Factory.parse(reader));\r\n }\r\n //loop until we find a start element that is not part of this array\r\n boolean loopDone1 = false;\r\n while (!loopDone1) {\r\n // We should be at the end element, but make sure\r\n while (!reader.isEndElement())\r\n reader.next();\r\n // Step out of this element\r\n reader.next();\r\n // Step to next element event.\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n if (reader.isEndElement()) {\r\n //two continuous end elements means we are exiting the xml structure\r\n loopDone1 = true;\r\n } else {\r\n if (new javax.xml.namespace.QName(\"\", \"attribute\").equals(reader.getName())) {\r\n\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\r\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\r\n list1.add(null);\r\n reader.next();\r\n } else {\r\n list1.add(FactAttribute.Factory.parse(reader));\r\n }\r\n } else {\r\n loopDone1 = true;\r\n }\r\n }\r\n }\r\n // call the converter utility to convert and set the array\r\n\r\n object.setAttribute((FactAttribute[])\r\n org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(\r\n FactAttribute.class,\r\n list1));\r\n\r\n } // End of if for expected property start element\r\n\r\n else {\r\n\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if (reader.isStartElement())\r\n // A start element we are not expecting indicates a trailing invalid property\r\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\r\n\r\n\r\n } catch (javax.xml.stream.XMLStreamException e) {\r\n throw new java.lang.Exception(e);\r\n }\r\n\r\n return object;\r\n }",
"private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException {\n\t\tname = in.readUTF();\n\t\tdesc = (String[]) in.readObject();\n\t\tmembers = (Members) in .readObject();\n\t\tbanlist = (List<UUID>) in .readObject();\n\t\tterritoryIds = (List<String>) in .readObject();\n\t\tinvite = in.readBoolean();\n\t}",
"public void readxml() throws JAXBException, FileNotFoundException {\n Player loadplayer = xml_methods.load();\n logger.info(\"player name: \" + loadplayer.getName());\n if (!item.isEmpty()) {\n logger.trace(loadplayer.getitem(0).getName());\n }\n tfName.setText(loadplayer.getName());\n isset = true;\n player = loadplayer;\n\n }",
"private void readObject(\n\t\tObjectInputStream aInputStream\n \t\t) throws ClassNotFoundException, IOException {\n \t\taInputStream.defaultReadObject();\n \t}",
"XMLStreamReader createXMLStreamReader(DataObject sdo);",
"private void readObject(final ObjectInputStream ois)\n throws IOException, ClassNotFoundException {\n\n ois.defaultReadObject();\n initTransientFields();\n StyleContext.readAttributeSet(ois, styles);\n }",
"public static void deserialize(InputStream aStream, CAS aCAS, boolean aLenient)\n throws SAXException, IOException {\n deserialize(new InputSource(aStream), aCAS, aLenient);\n }",
"public void getXmlFromStream (BufferedReader reader){\n\n String tmpDate = null;\n String strDate = null;\n Date date = null;\n\n try{\n XmlPullParserFactory factory = XmlPullParserFactory.newInstance();\n XmlPullParser xpp = factory.newPullParser();\n\n // point the parser to our file.\n xpp.setInput(reader);\n // get initial eventType\n int eventType = xpp.getEventType();\n\n // process tag while not reaching the end of document\n while(eventType != XmlPullParser.END_DOCUMENT) {\n switch(eventType) {\n // at start of document: START_DOCUMENT\n case XmlPullParser.START_DOCUMENT:\n //study = new Study();\n break;\n\n // at start of a tag: START_TAG\n case XmlPullParser.START_TAG:\n // get tag name\n String tagName = xpp.getName();\n\n // if <Cube>, get attribute: 'currency'\n if(tagName.equalsIgnoreCase(KEY_CUBE)) {\n if(strDate == null){\n strDate = xpp.getAttributeValue(null, KEY_DATE);\n }\n\n String currency = xpp.getAttributeValue(null, KEY_CURRENCY);\n String rate = xpp.getAttributeValue(null, KEY_RATE);\n if(currency != null) {\n\n // Create new object\n date = createDate(strDate); // Create date\n double doubleRate = Double.parseDouble(rate); // Convert string to double\n cubes.add(new CubeXML(new Date(),currency, doubleRate)); // Create object and store in list\n }\n }\n break;\n }\n // jump to next event\n eventType = xpp.next();\n }\n\n // Add euro\n cubes.add(new CubeXML(date, \"Euro\",1));\n\n } catch (XmlPullParserException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"public void initialize(final InputStream stream) throws IOException\n {\n // load up the properties\n final Properties props = new Properties();\n props.load(stream);\n initialize(props);\n }",
"public void read(final InputStream stream)\r\n throws IOException, DataFormatException {\r\n decoder.read(stream);\r\n }",
"public void parse(InputStream in) throws XmlPullParserException, IOException {\n try {\n XmlPullParser parser = Xml.newPullParser();\n\n parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, false);\n parser.setInput(in, null);\n readFeed(parser);\n\n } finally {\n in.close();\n }\n }",
"public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\r\n throws org.apache.axis2.databinding.ADBException {\r\n\r\n\r\n java.util.ArrayList elementList = new java.util.ArrayList();\r\n java.util.ArrayList attribList = new java.util.ArrayList();\r\n\r\n if (localAttributeTracker) {\r\n if (localAttribute != null) {\r\n for (int i = 0; i < localAttribute.length; i++) {\r\n\r\n if (localAttribute[i] != null) {\r\n elementList.add(new javax.xml.namespace.QName(\"\",\r\n \"attribute\"));\r\n elementList.add(localAttribute[i]);\r\n } else {\r\n\r\n elementList.add(new javax.xml.namespace.QName(\"\",\r\n \"attribute\"));\r\n elementList.add(null);\r\n\r\n }\r\n\r\n }\r\n } else {\r\n\r\n elementList.add(new javax.xml.namespace.QName(\"\",\r\n \"attribute\"));\r\n elementList.add(localAttribute);\r\n\r\n }\r\n\r\n }\r\n\r\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\r\n\r\n\r\n }",
"public void _read(org.omg.CORBA.portable.InputStream istream)\r\n {\r\n value = NiveauEtudeHelper.read(istream);\r\n }",
"private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException\r\n\t{\r\n\t\tthis.deserialize(in);\r\n\t}",
"private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {\r\n\t\tstream.defaultReadObject();\r\n\t\tif (stream.readBoolean()) {\r\n\t\t\tsprite = Database.instance().getSprites().get((String) (stream.readObject()))\r\n\t\t\t\t\t.createSprite(stream.readFloat(), stream.readFloat());\r\n\t\t\tsprite.setDirection(stream.readInt());\r\n\t\t}\r\n\t}",
"private void readObject(ObjectInputStream _stream)\n/* 435: */ throws IOException, ClassNotFoundException\n/* 436: */ {\n/* 437:508 */ _stream.defaultReadObject();\n/* 438:509 */ this._origin_VA.restoreOwner(this);\n/* 439:510 */ //finishReadObject_xjal(_stream, TileGIS.class);\n/* 440: */ }",
"public void readFromStream(DataInputStream istream) throws IOException{\r\n headerFields = new HashMap();\r\n messageBody = null;\r\n String line;\r\n while(!(line = readLine(istream)).equals(\"\")){\r\n String fieldName = line.substring(0,line.indexOf(\":\"));\r\n String fieldValue = line.substring(line.indexOf(\" \")+1,line.length());\r\n setHeaderField(fieldName, fieldValue);\r\n //System.out.println(fieldName + \": \" +fieldValue);\r\n }\r\n readBody(istream);\r\n }",
"void read(XmlPullParser xmlPullParser) throws IOException, XmlPullParserException;",
"public static XmlStream stream(InputStream is) throws Exception {\n return XmlStreamSpec.with(is).stream();\n }",
"public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\r\n throws org.apache.axis2.databinding.ADBException{\r\n\r\n\r\n \r\n java.util.ArrayList elementList = new java.util.ArrayList();\r\n java.util.ArrayList attribList = new java.util.ArrayList();\r\n\r\n \r\n\r\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\r\n \r\n \r\n\r\n }",
"private void readObject(\n ObjectInputStream aInputStream\n ) throws ClassNotFoundException, IOException {\n aInputStream.defaultReadObject();\n\n }",
"InputStream deserialize(InputStream toDeserialize);",
"private void readObject(\n ObjectInputStream aInputStream\n ) throws ClassNotFoundException, IOException {\n aInputStream.defaultReadObject();\n }",
"@Override\n protected void readAttributes(XMLStreamReader in)\n throws XMLStreamException {\n super.readAttributes(in);\n\n String extendString = in.getAttributeValue(null, \"extends\");\n BuildingType parent = (extendString == null) ? this :\n getSpecification().getBuildingType(extendString);\n String upgradeString = in.getAttributeValue(null, \"upgradesFrom\");\n if (upgradeString == null) {\n level = 1;\n } else {\n upgradesFrom = getSpecification().getBuildingType(upgradeString);\n upgradesFrom.upgradesTo = this;\n level = upgradesFrom.level + 1;\n }\n setPopulationRequired(getAttribute(in, \"required-population\", parent.getPopulationRequired()));\n\n workPlaces = getAttribute(in, \"workplaces\", parent.workPlaces);\n basicProduction = getAttribute(in, \"basicProduction\", parent.basicProduction);\n\n consumes = getSpecification().getType(in, \"consumes\", GoodsType.class, parent.consumes);\n produces = getSpecification().getType(in, \"produces\", GoodsType.class, parent.produces);\n\n if (produces != null && basicProduction > 0) {\n productionModifier = new Modifier(produces.getId(), this, basicProduction,\n Modifier.Type.ADDITIVE);\n }\n\n minSkill = getAttribute(in, \"minSkill\", parent.minSkill);\n maxSkill = getAttribute(in, \"maxSkill\", parent.maxSkill);\n\n priority = getAttribute(in, \"priority\", parent.priority);\n upkeep = getAttribute(in, \"upkeep\", parent.upkeep);\n\n if (parent != this) {\n getFeatureContainer().add(parent.getFeatureContainer());\n if (parent.isAbstractType()) {\n getFeatureContainer().replaceSource(parent, this);\n }\n }\n }",
"public static Staff readFromXml() throws JAXBException {\n JAXBContext jaxbContext = JAXBContext.newInstance(Staff.class);\n Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();\n return (Staff)jaxbUnmarshaller.unmarshal(new File(\"test.xml\"));\n }",
"public static FactAttribute parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception {\r\n FactAttribute object =\r\n new FactAttribute();\r\n\r\n int event;\r\n java.lang.String nillableValue = null;\r\n java.lang.String prefix = \"\";\r\n java.lang.String namespaceuri = \"\";\r\n try {\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n\r\n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"type\") != null) {\r\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\");\r\n if (fullTypeName != null) {\r\n java.lang.String nsPrefix = null;\r\n if (fullTypeName.indexOf(\":\") > -1) {\r\n nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(\":\"));\r\n }\r\n nsPrefix = nsPrefix == null ? \"\" : nsPrefix;\r\n\r\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\") + 1);\r\n\r\n if (!\"FactAttribute\".equals(type)) {\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\r\n return (FactAttribute) ExtensionMapper.getTypeObject(\r\n nsUri, type, reader);\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n // Note all attributes that were handled. Used to differ normal attributes\r\n // from anyAttributes.\r\n java.util.List handledAttributes = new java.util.ArrayList();\r\n\r\n\r\n reader.next();\r\n\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\r\n\r\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\", \"attributeKey\").equals(reader.getName())) {\r\n\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\r\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)) {\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setAttributeKey(\r\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\r\n\r\n } else {\r\n\r\n\r\n reader.getElementText(); // throw away text nodes if any.\r\n }\r\n\r\n reader.next();\r\n\r\n } // End of if for expected property start element\r\n\r\n else {\r\n\r\n }\r\n\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\r\n\r\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\", \"attributeValue\").equals(reader.getName())) {\r\n\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\r\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)) {\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setAttributeValue(\r\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\r\n\r\n } else {\r\n\r\n\r\n reader.getElementText(); // throw away text nodes if any.\r\n }\r\n\r\n reader.next();\r\n\r\n } // End of if for expected property start element\r\n\r\n else {\r\n\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if (reader.isStartElement())\r\n // A start element we are not expecting indicates a trailing invalid property\r\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\r\n\r\n\r\n } catch (javax.xml.stream.XMLStreamException e) {\r\n throw new java.lang.Exception(e);\r\n }\r\n\r\n return object;\r\n }",
"private void readFromXMLFile(XMLStreamReader reader) throws XMLStreamException {\n while (reader.hasNext())\n {\n int eventType= reader.next();\n switch (eventType){\n case XMLStreamReader.START_ELEMENT:\n String elemName=reader.getLocalName();\n if (elemName.equals(\"student\"))\n {\n try {\n super.save(readStudent(reader));\n } catch (ValidatorException e) {\n e.printStackTrace();\n }\n }\n }\n }\n }",
"public void loadFromStream(InputStream is) throws IOException {\n\t\tfor (int i = 0; i <= mem.length; i++) {\n\t\t\tint data = is.read();\n\t\t\tif (data == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tmem[i] = data;\n\t\t}\n\t\tif (is.read() != -1) {\n\t\t\tlogger.log(Level.WARNING, \"Truncating boot.rom to \" + mem.length);\n\t\t}\n\t}",
"public SCMLProject load(InputStream stream)\n\t{\n\t\tXmlReader reader = new XmlReader();\n\t\treturn load(reader.parse(stream));\n\t}",
"protected void readFromXMLImpl(XMLStreamReader in)\n throws XMLStreamException {\n aiObjects.clear();\n \n if (!in.getLocalName().equals(getXMLElementTagName())) {\n logger.warning(\"Expected element name, got: \" + in.getLocalName());\n }\n final String nextIDStr = in.getAttributeValue(null, \"nextID\");\n if (nextIDStr != null) {\n nextID = Integer.parseInt(nextIDStr);\n }\n \n String lastTag = \"\";\n while (in.nextTag() != XMLStreamConstants.END_ELEMENT) {\n final String tagName = in.getLocalName();\n final String oid = in.getAttributeValue(null, ID_ATTRIBUTE);\n try {\n if (oid != null && aiObjects.containsKey(oid)) {\n getAIObject(oid).readFromXML(in);\n } else if (tagName.equals(AIUnit.getXMLElementTagName())) {\n new AIUnit(this, in);\n } else if (tagName.equals(AIPlayer.getXMLElementTagName())) {\n Player p = (Player) getGame().getFreeColGameObject(oid);\n if (p != null) {\n if (p.isIndian()) {\n new NativeAIPlayer(this, in);\n } else if (p.isREF()) {\n new REFAIPlayer(this, in);\n } else if (p.isEuropean()) {\n new EuropeanAIPlayer(this, in);\n } else {\n logger.warning(\"Bogus AIPlayer: \" + p);\n in.nextTag();\n }\n }\n } else if (tagName.equals(\"colonialAIPlayer\")) {\n // TODO: remove 0.10.1 compatibility code\n new EuropeanAIPlayer(this, in);\n // end TODO\n } else if (tagName.equals(AIColony.getXMLElementTagName())) {\n new AIColony(this, in);\n } else if (tagName.equals(AIGoods.getXMLElementTagName())) {\n new AIGoods(this, in);\n } else if (tagName.equals(WorkerWish.getXMLElementTagName())) {\n new WorkerWish(this, in);\n } else if (tagName.equals(GoodsWish.getXMLElementTagName())) {\n new GoodsWish(this, in);\n } else if (tagName.equals(TileImprovementPlan.getXMLElementTagName())) {\n new TileImprovementPlan(this, in);\n } else {\n logger.warning(\"Unknown AI-object read: \" + tagName + \"(\" + lastTag + \")\");\n }\n lastTag = in.getLocalName();\n } catch (Exception e) {\n StringWriter sw = new StringWriter();\n e.printStackTrace(new PrintWriter(sw));\n logger.warning(\"Exception while reading an AIObject(\" + tagName\n + \", \" + oid + \"): \" + sw.toString());\n while (!in.getLocalName().equals(tagName) && !in.getLocalName().equals(getXMLElementTagName())) {\n in.nextTag();\n }\n if (!in.getLocalName().equals(getXMLElementTagName())) {\n in.nextTag();\n }\n }\n }\n \n if (!in.getLocalName().equals(getXMLElementTagName())) {\n logger.warning(\"Expected element name (2), got: \" + in.getLocalName());\n }\n \n // This should not be necessary - but just in case:\n findNewObjects(false);\n }",
"private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {\n\t\tois.defaultReadObject(); // Calling the default deserialization logic\n\n\t}",
"protected void readFromXMLImpl(XMLStreamReader in) throws XMLStreamException {\n String id = in.getAttributeValue(null, \"id\");\n String acc = in.getAttributeValue(null, \"accelerator\");\n\n if (id == null){\n // Old syntax\n id = in.getLocalName();\n }\n\n if (!acc.equals(\"\")) {\n putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(acc));\n } else {\n putValue(ACCELERATOR_KEY, null);\n }\n in.nextTag();\n }",
"public void deserialize(InputStream stream, ReaderType target) throws IOException {\n processHeader(stream);\n deserializeContents(stream, target);\n }",
"public void readXML(org.dom4j.Element el) throws Exception {\n String name,value;\n org.dom4j.Element node=el;\n\n if (el.attribute(\"port\") != null)\n setPort(org.jbrain.xml.binding._TypeConverter.parseInteger(el.attribute(\"port\").getText(), sObjName, \"Port\"));\n }",
"public void readXML(org.dom4j.Element el) throws Exception {\n String name,value;\n org.dom4j.Element node=el;\n\n if (el.attribute(\"type\") != null)\n setType(el.attribute(\"type\").getText());\n if (el.attribute(\"action\") != null)\n setAction(ActionList.valueOf(el.attribute(\"action\").getText()));\n if (el.attribute(\"direction\") != null)\n setDirection(DirectionList.valueOf(el.attribute(\"direction\").getText()));\n if (el.attribute(\"content\") != null)\n setContent(el.attribute(\"content\").getText());\n if (el.attribute(\"iterations\") != null)\n setIterations(org.jbrain.xml.binding._TypeConverter.parseInteger(el.attribute(\"iterations\").getText(), sObjName, \"Iterations\"));\n if (el.attribute(\"asynchronous\") != null)\n setAsynchronous(org.jbrain.xml.binding._TypeConverter.parseBoolean(el.attribute(\"asynchronous\").getText(), sObjName, \"Asynchronous\"));\n }",
"public void deserialize(final InputStream stream) throws IOException {\r\n Collection<? extends String> empty = Collections.emptySet();\r\n deserialize(stream, empty);\r\n }",
"public void initializeXmlParser(InputStream in) throws XmlPullParserException, IOException {\n\n try {\n\t\t\tXmlPullParser parser = Xml.newPullParser();\n\t\t\tparser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, false);\n\t\t\tparser.setInput(in, null);\n\t\t\tparser.nextTag();\n\t\t\treadAndApplyTags(parser);\n\t\t} finally {\n\t\t\tin.close();\n\t\t}\n\t}",
"public void parse(InputStream inputStream) {\n try {\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder db = dbf.newDocumentBuilder();\n Document doc = db.parse(inputStream);\n System.out.println(doc.getElementsByTagName(\"label\").item(0).getTextContent());\n System.out.println(doc.getElementsByTagName(\"username\").item(0).getTextContent());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void _read( org.omg.CORBA.portable.InputStream is )\r\n {\r\n super._read( is );\r\n try\r\n {\r\n m_params = ParameterSequenceHelper.read(is);\r\n\t m_default = is.read_string( );\r\n }\r\n catch( Throwable _input_read_exception_ )\r\n {\r\n throw new RuntimeException(\r\n \"Error reading input stream for '\"\r\n + \"net.osm.factory.FactoryValue', due to: \" \r\n + _input_read_exception_.toString() );\r\n }\r\n }",
"@Override\n\t\tpublic List<Person> parse(InputStream xml) throws Exception {\n\t\t\tList<Person> list = new ArrayList<Person>();\n\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory\n\t\t\t\t\t.newInstance();\n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder();\n\t\t\tDocument doc = builder.parse(xml);\n\t\t\tElement rootElement = doc.getDocumentElement();\n\t\t\tNodeList nodes = rootElement.getElementsByTagName(\"person\");\n\t\t\tfor (int i = 0; i < nodes.getLength(); i++) {\n\t\t\t\tPerson p = new Person();\n\t\t\t\tNode node = nodes.item(i);\n\t\t\t\tNodeList properties = node.getChildNodes();\n\t\t\t\tfor (int j = 0; j < properties.getLength(); j++) {\n\t\t\t\t\tNode property = properties.item(j);\n\t\t\t\t\tString nodeName = property.getNodeName();\n\t\t\t\t\tif (nodeName.equals(\"id\")) {\n\t\t\t\t\t\tint id = Integer.parseInt(property.getFirstChild()\n\t\t\t\t\t\t\t\t.getNodeValue());\n\t\t\t\t\t\tp.setId(id);\n\t\t\t\t\t} else if (nodeName.equals(\"name\")) {\n\t\t\t\t\t\tString name = property.getFirstChild().getNodeValue();\n\t\t\t\t\t\tp.setName(name);\n\t\t\t\t\t} else if (nodeName.equals(\"age\")) {\n\t\t\t\t\t\tint age = Integer.parseInt(property.getFirstChild()\n\t\t\t\t\t\t\t\t.getNodeValue());\n\t\t\t\t\t\tp.setAge(age);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlist.add(p);\n\t\t\t}\n\t\t\treturn list;\n\t\t}",
"public void read() throws IOException {\n \t\ttry {\n \t\t\tthis.readXGMML();\n \t\t} catch (JAXBException e) {\n \t\t\tif (taskMonitor != null) {\n \t\t\t\ttaskMonitor.setException(e, e.getMessage());\n \t\t\t}\n \t\t}\n \t}",
"public static Fact parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception {\r\n Fact object =\r\n new Fact();\r\n\r\n int event;\r\n java.lang.String nillableValue = null;\r\n java.lang.String prefix = \"\";\r\n java.lang.String namespaceuri = \"\";\r\n try {\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n\r\n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"type\") != null) {\r\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\");\r\n if (fullTypeName != null) {\r\n java.lang.String nsPrefix = null;\r\n if (fullTypeName.indexOf(\":\") > -1) {\r\n nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(\":\"));\r\n }\r\n nsPrefix = nsPrefix == null ? \"\" : nsPrefix;\r\n\r\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\") + 1);\r\n\r\n if (!\"Fact\".equals(type)) {\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\r\n return (Fact) ExtensionMapper.getTypeObject(\r\n nsUri, type, reader);\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n // Note all attributes that were handled. Used to differ normal attributes\r\n // from anyAttributes.\r\n java.util.List handledAttributes = new java.util.ArrayList();\r\n\r\n\r\n reader.next();\r\n\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\r\n\r\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\", \"attributes\").equals(reader.getName())) {\r\n\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\r\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\r\n object.setAttributes(null);\r\n reader.next();\r\n\r\n reader.next();\r\n\r\n } else {\r\n\r\n object.setAttributes(FactAttributes.Factory.parse(reader));\r\n\r\n reader.next();\r\n }\r\n } // End of if for expected property start element\r\n\r\n else {\r\n\r\n }\r\n\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\r\n\r\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\", \"identifier\").equals(reader.getName())) {\r\n\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\r\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\r\n object.setIdentifier(null);\r\n reader.next();\r\n\r\n reader.next();\r\n\r\n } else {\r\n\r\n object.setIdentifier(FactIdentifier.Factory.parse(reader));\r\n\r\n reader.next();\r\n }\r\n } // End of if for expected property start element\r\n\r\n else {\r\n\r\n }\r\n\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\r\n\r\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\", \"name\").equals(reader.getName())) {\r\n\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\r\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)) {\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setName(\r\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\r\n\r\n } else {\r\n\r\n\r\n reader.getElementText(); // throw away text nodes if any.\r\n }\r\n\r\n reader.next();\r\n\r\n } // End of if for expected property start element\r\n\r\n else {\r\n\r\n }\r\n\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\r\n\r\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\", \"source\").equals(reader.getName())) {\r\n\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\r\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)) {\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setSource(\r\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\r\n\r\n } else {\r\n\r\n\r\n reader.getElementText(); // throw away text nodes if any.\r\n }\r\n\r\n reader.next();\r\n\r\n } // End of if for expected property start element\r\n\r\n else {\r\n\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if (reader.isStartElement())\r\n // A start element we are not expecting indicates a trailing invalid property\r\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\r\n\r\n\r\n } catch (javax.xml.stream.XMLStreamException e) {\r\n throw new java.lang.Exception(e);\r\n }\r\n\r\n return object;\r\n }",
"public void xmlInputStream() {\n inputStream = context.getResources().openRawResource(R.raw.flowers_xml);\n //stringInputStream = convertInputStreamToString(inputStream);\n //System.out.println(\"------------ InputStream ------------\\n\" + stringInputStream);\n //------------------------------------------------------------------------------------------\n }",
"public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\r\n throws org.apache.axis2.databinding.ADBException {\r\n\r\n\r\n java.util.ArrayList elementList = new java.util.ArrayList();\r\n java.util.ArrayList attribList = new java.util.ArrayList();\r\n\r\n\r\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\r\n\r\n\r\n }",
"public void _read(org.omg.CORBA.portable.InputStream istream)\n {\n value = autorisationCollabInterditeHelper.read(istream);\n }",
"public void readXML(Reader inReader)\n\t{\n\t\tXmlUtil util = new XmlUtil();\n\t\tElement root = util.getXml(inReader, \"UTF-8\");\n\t\tpopulate(root);\n\t}",
"protected void load(DataInputStream is)\n throws ClassNotFoundException, IOException,\n InstantiationException, IllegalAccessException {\n\n super.load(is);\n StartingFunds = (float)is.readInt();\n NumTestTraders = is.readInt();\n NumSteps = is.readInt();\n }",
"private void readObject(ObjectInputStream os) throws IOException, ClassNotFoundException {\n \t// rebuild this object\n \tos.defaultReadObject();\n \tthis.stat = new EdgeStat(this.edgeId);\n \tthis.curPackets = new ArrayList<ITransmissible>();\n }",
"public InvCatalogImpl readXML(InputStream docIs, URI uri) {\n\n // get ready for XML parsing\n warnMessages.setLength(0);\n errMessages.setLength(0);\n fatalMessages.setLength(0);\n\n org.jdom2.Document jdomDoc;\n try {\n jdomDoc = saxBuilder.build(docIs);\n } catch (Exception e) {\n InvCatalogImpl cat = new InvCatalogImpl(uri.toString(), null, uri);\n cat.appendErrorMessage(\"**Fatal: InvCatalogFactory.readXML failed\" + \"\\n Exception= \" + e.getClass().getName()\n + \" \" + e.getMessage() + \"\\n fatalMessages= \" + fatalMessages.toString() + \"\\n errMessages= \"\n + errMessages.toString() + \"\\n warnMessages= \" + warnMessages.toString() + \"\\n\", true);\n return cat;\n }\n\n if (fatalMessages.length() > 0) {\n InvCatalogImpl cat = new InvCatalogImpl(uri.toString(), null, uri);\n cat.appendErrorMessage(\n \"**Fatal: InvCatalogFactory.readXML XML Fatal error(s) =\\n\" + fatalMessages.toString() + \"\\n\", true);\n return cat;\n }\n\n return readXML(jdomDoc, uri);\n }",
"public void read(){\n assert(inputStream.hasNext());\n\n while(inputStream.hasNextLine()){\n String line = inputStream.nextLine();\n String[] fields = line.split(\";\");\n\n //If Line is address line\n if(fields.length >= 4){\n Address adr = new Address(fields[0], fields[1], fields[2], fields[3]);\n if(fields.length == 5){\n parseGroups(fields[4], adr);\n }\n inputAddressList.add(adr);\n }\n\n //If Line is Group Line\n else if(fields.length <=3){\n Group group = new Group(fields[0], Integer.parseInt(fields[1]));\n if(fields.length == 3){\n parseGroups(fields[2], group);\n }\n inputGroupList.add(group);\n }\n }\n compose();\n assert(invariant());\n }",
"private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {\r\n\t\tstream.defaultReadObject();\r\n\t\tGZIPInputStream gzis = new GZIPInputStream(stream, 1024 * 1024);\r\n\t\tObjectInputStream ois = new ObjectInputStream(gzis);\r\n\t\tmap = (MapClip) ois.readObject();\r\n\t\tvisibility = (IntGrid) ois.readObject();\r\n\t\toccupied = (IntGrid) ois.readObject();\r\n\t\tdanger = (IntGrid) ois.readObject();\r\n\t\tattacking = (IntGrid) ois.readObject();\r\n\t\tfade = (IntGrid) ois.readObject();\r\n\t\tcost = (IntGrid) ois.readObject();\r\n\t\tdifficulty = (IntGrid) ois.readObject();\r\n\t}",
"@Override\n protected void readChildren(XMLStreamReader in) throws XMLStreamException {\n while (in.nextTag() != XMLStreamConstants.END_ELEMENT) {\n readChild(in);\n }\n }",
"public void readFields(DataInput in) throws IOException {\n\t\trating = in.readInt();\n\t\tproductTitle = in.readUTF();\n\t}",
"TargetType deserializeContents(InputStream stream) throws IOException {\n ReaderType builder = newBuilder();\n super.deserializeContents(stream, builder);\n return builder.build();\n }",
"@Override\n protected Object readResponse(XmlRpcStreamRequestConfig pConfig, InputStream pStream) throws XmlRpcException {\n final StringBuffer sb = new StringBuffer();\n\n try {\n final BufferedReader reader = new BufferedReader(new InputStreamReader(pStream));\n String line = reader.readLine();\n while (line != null) {\n sb.append(line);\n line = reader.readLine();\n }\n }\n catch (final IOException e) {\n LOG.error(\"Fail to dump\", e);\n }\n\n LOG.debug(\"Receive response=\\n{}\", XmlPrettyFormatter.toPrettyString(sb.toString()));\n\n final ByteArrayInputStream bais = new ByteArrayInputStream(sb.toString().getBytes());\n return super.readResponse(pConfig, bais);\n }",
"public void readData(InputStream inStream);",
"public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"PatientID\"));\n \n if (localPatientID != null){\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPatientID));\n } else {\n throw new org.apache.axis2.databinding.ADBException(\"PatientID cannot be null!!\");\n }\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"CaseID\"));\n \n if (localCaseID != null){\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCaseID));\n } else {\n throw new org.apache.axis2.databinding.ADBException(\"CaseID cannot be null!!\");\n }\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"ExaminationType\"));\n \n \n if (localExaminationType==null){\n throw new org.apache.axis2.databinding.ADBException(\"ExaminationType cannot be null!!\");\n }\n elementList.add(localExaminationType);\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }",
"public static ExaminationType_type1 parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n ExaminationType_type1 object = null;\n // initialize a hash map to keep values\n java.util.Map attributeMap = new java.util.HashMap();\n java.util.List extraAttributeList = new java.util.ArrayList<org.apache.axiom.om.OMAttribute>();\n \n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n while(!reader.isEndElement()) {\n if (reader.isStartElement() || reader.hasText()){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"ExaminationType_type0\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n if (content.indexOf(\":\") > 0) {\n // this seems to be a Qname so find the namespace and send\n prefix = content.substring(0, content.indexOf(\":\"));\n namespaceuri = reader.getNamespaceURI(prefix);\n object = ExaminationType_type1.Factory.fromString(content,namespaceuri);\n } else {\n // this seems to be not a qname send and empty namespace incase of it is\n // check is done in fromString method\n object = ExaminationType_type1.Factory.fromString(content,\"\");\n }\n \n \n } else {\n reader.next();\n } \n } // end of while loop\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }",
"public static ExaminationType_type0 parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n ExaminationType_type0 object = null;\n // initialize a hash map to keep values\n java.util.Map attributeMap = new java.util.HashMap();\n java.util.List extraAttributeList = new java.util.ArrayList<org.apache.axiom.om.OMAttribute>();\n \n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n while(!reader.isEndElement()) {\n if (reader.isStartElement() || reader.hasText()){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"ExaminationType_type0\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n if (content.indexOf(\":\") > 0) {\n // this seems to be a Qname so find the namespace and send\n prefix = content.substring(0, content.indexOf(\":\"));\n namespaceuri = reader.getNamespaceURI(prefix);\n object = ExaminationType_type0.Factory.fromString(content,namespaceuri);\n } else {\n // this seems to be not a qname send and empty namespace incase of it is\n // check is done in fromString method\n object = ExaminationType_type0.Factory.fromString(content,\"\");\n }\n \n \n } else {\n reader.next();\n } \n } // end of while loop\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }",
"public ClassFile(DataInput stream)\n throws IOException\n {\n load(stream);\n }",
"public void readElement(XMLExtendedStreamReader reader, List<ModelNode> list)\n throws XMLStreamException {\n xmlDescription.parse(reader, PathAddress.EMPTY_ADDRESS, list);\n }",
"private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {\n/* 486 */ stream.defaultReadObject();\n/* 487 */ this.errorIndicatorPaint = SerialUtilities.readPaint(stream);\n/* 488 */ this.errorIndicatorStroke = SerialUtilities.readStroke(stream);\n/* */ }",
"@Override\n public T readData(InputStream in) throws IOException\n {\n String doc = _read(in, \"UTF-8\");\n return _deserializer.deserialize(doc, _itemClass);\n }",
"SAPL parse(InputStream saplInputStream);",
"@Override\n public ArrayList<SCANAttributesXML> getAttributes() {\n return mesoCfgXML.getAttributesData();\n }",
"public TargetType deserialize(InputStream stream) throws IOException {\n ReaderType builder = newBuilder();\n deserialize(stream, builder);\n return builder.build();\n }",
"@Override\n\tprotected void readDataStream(DataInputStream dataInStream) throws IOException {\n\t\tid = dataInStream.readLong();\n\t\tsuper.read(dataInStream);\n\t}",
"public abstract T readFromXml(XmlPullParser parser, int version, Context context)\n throws IOException, XmlPullParserException;",
"public void readExternal(ObjectInput in) throws IOException, FileNotFoundException, ClassNotFoundException{\n\t\tSystem.out.println(\"Inside readExternal()\");\n\t\tthis.age = in.readInt();\n\t\tthis.name = (String) in.readObject();\n\t\tthis.address = (String) in.readObject();\n\t\tthis.job = (String) in.readObject();\n\t}",
"protected abstract DBObject parse(InputStream is) throws DeserializationException;",
"public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"requestXml\"));\n \n \n elementList.add(localRequestXml==null?null:\n localRequestXml);\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }",
"public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"requestXml\"));\n \n \n elementList.add(localRequestXml==null?null:\n localRequestXml);\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }",
"public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"requestXml\"));\n \n \n elementList.add(localRequestXml==null?null:\n localRequestXml);\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }",
"public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"requestXml\"));\n \n \n elementList.add(localRequestXml==null?null:\n localRequestXml);\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }",
"public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"requestXml\"));\n \n \n elementList.add(localRequestXml==null?null:\n localRequestXml);\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }",
"public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"requestXml\"));\n \n \n elementList.add(localRequestXml==null?null:\n localRequestXml);\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }",
"public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"requestXml\"));\n \n \n elementList.add(localRequestXml==null?null:\n localRequestXml);\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }",
"public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"requestXml\"));\n \n \n elementList.add(localRequestXml==null?null:\n localRequestXml);\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }",
"public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"requestXml\"));\n \n \n elementList.add(localRequestXml==null?null:\n localRequestXml);\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }",
"public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"requestXml\"));\n \n \n elementList.add(localRequestXml==null?null:\n localRequestXml);\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }",
"public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"\",\n \"requestXml\"));\n \n \n elementList.add(localRequestXml==null?null:\n localRequestXml);\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }",
"public void parse(InputStream stream, HandlerBase handler, String systemId)\n throws SAXException, IOException {\n if (stream == null) {\n throw new IllegalArgumentException(\"stream must not be null\");\n }\n InputSource source = new InputSource(stream);\n if (systemId != null) {\n source.setSystemId(systemId);\n }\n parse(source, handler);\n }",
"private void parse() throws XMLStreamException {\n while (reader.hasNext()) {\n if (reader.next() == START_ELEMENT) {\n handleElement();\n }\n }\n }"
] | [
"0.6152226",
"0.5904284",
"0.5766346",
"0.5758683",
"0.55893403",
"0.53797585",
"0.53188044",
"0.52594256",
"0.5241908",
"0.5208643",
"0.5205043",
"0.5183871",
"0.517196",
"0.5159378",
"0.5149252",
"0.51341176",
"0.5105189",
"0.50837415",
"0.50824136",
"0.5046331",
"0.50110567",
"0.50064963",
"0.498446",
"0.49705774",
"0.4967062",
"0.49654016",
"0.4960796",
"0.49569744",
"0.4956346",
"0.49521762",
"0.49244934",
"0.49220598",
"0.49125263",
"0.48967728",
"0.48905867",
"0.4887532",
"0.48803452",
"0.48695704",
"0.4869472",
"0.4858981",
"0.4858139",
"0.48581108",
"0.4845277",
"0.4839277",
"0.483148",
"0.48293677",
"0.48285356",
"0.48258156",
"0.48249835",
"0.48242256",
"0.48175317",
"0.48077825",
"0.48057827",
"0.4800148",
"0.4792301",
"0.4790255",
"0.47745377",
"0.47736117",
"0.47676614",
"0.47604284",
"0.47586465",
"0.47546598",
"0.4744837",
"0.47407693",
"0.47388592",
"0.47385985",
"0.47296157",
"0.47261232",
"0.4708346",
"0.4707383",
"0.47025216",
"0.4696034",
"0.46942338",
"0.46936145",
"0.46912375",
"0.4677293",
"0.466986",
"0.46694714",
"0.46677917",
"0.46672866",
"0.46652454",
"0.46642625",
"0.46609175",
"0.4656058",
"0.46560165",
"0.46553522",
"0.4655086",
"0.46532485",
"0.46532485",
"0.46532485",
"0.46532485",
"0.46532485",
"0.46532485",
"0.46532485",
"0.46532485",
"0.46532485",
"0.46532485",
"0.46532485",
"0.46499744",
"0.46443096"
] | 0.59730947 | 1 |
TODO Autogenerated method stub | public static void main(String[] args) {
FileUTL fUtl = new FileUTL();
String fileAddres = "C:\\Users\\lenovo\\Desktop\\医嘱和对应路径信息\\";
String filename = fileAddres+"12个病人的医嘱信息-utf8.csv";
String splitSign = ",";
String dateSign = "/";
fUtl.readFile(filename, splitSign, dateSign);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
no leading and trailing whitespaces | @Test
public void parse_validArgs_returnsFindActivityTagCommand() {
FindActivityTagCommand expectedFindActivityTagCommand =
new FindActivityTagCommand(new ActivityTagContainsPredicate(Arrays.asList("Cheese", "Japan")));
assertParseSuccess(parser, "Cheese Japan", expectedFindActivityTagCommand);
// multiple whitespaces between keywords
assertParseSuccess(parser, " \n Cheese \n \t Japan \t", expectedFindActivityTagCommand);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void skipBlankSpaces() {\n while (currentIndex < this.data.length) {\n if (!Character.isWhitespace(data[currentIndex])) {\n break;\n }\n currentIndex++;\n }\n }",
"Rule WhiteSpace() {\n return ZeroOrMore(AnyOf(\" \\n\\r\\t\\f\"));\n }",
"private void skipSpaces() {\r\n\t\twhile (currentIndex < expression.length && (expression[currentIndex] == ' ' || expression[currentIndex] == '\\t'\r\n\t\t\t\t|| expression[currentIndex] == '\\n' || expression[currentIndex] == '\\r')) {\r\n\t\t\tcurrentIndex++;\r\n\t\t}\r\n\t}",
"private void skipBlankSpaces() {\n\t\twhile(currentIndex < data.length) {\n\t\t\tchar c = data[currentIndex];\n\t\t\tif(c == ' ' || c == '\\t' || c =='\\n' || c == '\\r') {\n\t\t\t\tcurrentIndex++;\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"private void skipWhitespace() {\n while (currentPos < endPos && filterString.charAt(currentPos) == ' ') {\n currentPos++;\n }\n }",
"private void skipWhitespaces() {\n\t\twhile(currentIndex < data.length) {\n\t\t\tif (isWhitespace(data[currentIndex])) {\n\t\t\t\tcurrentIndex++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tbreak;\t\n\t\t}\n\t}",
"private void skipWhitespaces() {\n\t\twhile(currentIndex < data.length) {\n\t\t\tif (isWhitespace(data[currentIndex])) {\n\t\t\t\tcurrentIndex++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tbreak;\t\n\t\t}\n\t}",
"private void trimWhitespaces() {\n \n while(currentIndex < dataLength && Character.isWhitespace( data[currentIndex] )) {\n ++currentIndex;\n }\n }",
"private void skipWhitespaces() {\n\t\twhile (currentIndex < data.length) {\n\t\t\tchar ch = data[currentIndex];\n\t\t\tif (Character.isWhitespace(ch)) {\n\t\t\t\t++currentIndex;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}",
"public boolean skipWhitespace()\r\n {\r\n String str = feed.findWithinHorizon( WHITESPACE_PATTERN, 0 );\r\n \r\n if( str == null )\r\n return false;\r\n else\r\n return true;\r\n }",
"char skipSpaces () {\n char c = getChar ();\n while (c == ' ' || c == '\\t' || c == '\\n' || c == '\\r') {\n if (c == '\\n') { m_nbLines++; }\n c = getNextChar ();\n }\n return c;\n }",
"public boolean getTrimSpaces();",
"private boolean getReplaceNonBreakingSpace() {\n return false;\n }",
"private boolean skipSpaceChars() {\r\n \t\tint ch;\r\n \t\twhile ((ch = readCharBackward()) != -1) {\r\n \t\t\tif (!Character.isSpaceChar(ch)) {\r\n \t\t\t\treleaseChar();\r\n \t\t\t\tbreak;\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn true;\r\n \t}",
"public void skipWhitespace() {\n while (this.index < this.input.length() && Character.isWhitespace(this.input.charAt(this.index)))\n this.index++;\n }",
"private int skipWhitespace() {\n int prev = '\\n';\n while (position < length) {\n int c = data.charAt(position);\n switch (c) {\n case '\\t': case ' ':\n prev = c;\n position++;\n break;\n case '\\n':\n // handle \\r\\n\n if (prev != '\\r') {\n lineNumber++;\n }\n prev = c;\n position++;\n break;\n case '\\r':\n prev = c;\n position++;\n lineNumber++;\n break;\n default:\n return prev;\n }\n }\n return prev;\n }",
"private boolean isNoSpace(final String message) {\n\t\treturn message.contains(\"0 space\"); //$NON-NLS-1$\n\t}",
"private String removeLeadingWhitespace(String input) {\n for (int index = 0; index < input.length(); index++) {\n if (!Character.isWhitespace(input.charAt(index))) {\n return input.substring(index);\n }\n }\n return input;\n }",
"private static String _stripWhitespace(String str)\n {\n if (str == null)\n return null;\n\n int length = str.length();\n int startIndex = 0;\n\n while (startIndex < length)\n {\n if (Character.isWhitespace(str.charAt(startIndex)))\n startIndex++;\n else\n break;\n }\n\n int endIndex = length;\n while (endIndex > 0)\n {\n if (Character.isWhitespace(str.charAt(endIndex - 1)))\n endIndex--;\n else\n break;\n }\n\n if ((startIndex == 0) && (endIndex == length))\n return str;\n\n return str.substring(startIndex, endIndex);\n }",
"private static boolean noWhiteSpace(String password) {\n\t\tint whitespaces = 0;\n\t\tfor (int i = 0; i < password.length(); i++) {\n\t\t char c = password.charAt(i);\n\t\t if ( Character.isWhitespace(c) ) {\n\t\t \t whitespaces++;\n\t\t }\n\t\t}\n\t\tif (whitespaces >= 1) {\n\t\t\tSystem.out.println(\"no whitespaces!\");\n\t\t\treturn false;\n\t\t} else return true;\n\t}",
"String trimLeft( String txt ){\r\n // trim\r\n int start = 0;\r\n WHITESPACE: for( int i=0; i < txt.length(); i++ ){\r\n char ch = txt.charAt(i);\r\n if( Character.isWhitespace(ch)){\r\n continue;\r\n }\r\n else {\r\n start = i;\r\n break WHITESPACE;\r\n }\r\n }\r\n return txt.substring(start); \r\n }",
"protected void skipWhitespace(CharArrayBuffer buffer, ParserCursor cursor) {\n/* 453 */ int pos = cursor.getPos();\n/* 454 */ int indexTo = cursor.getUpperBound();\n/* 455 */ while (pos < indexTo && HTTP.isWhitespace(buffer.charAt(pos)))\n/* */ {\n/* 457 */ pos++;\n/* */ }\n/* 459 */ cursor.updatePos(pos);\n/* */ }",
"public void ignorableWhitespace(char[] ch, int start, int length) { }",
"private void skipWhiteSpace() throws ScanErrorException\n {\n while (isWhiteSpace(currentChar))\n eat(currentChar);\n }",
"public boolean isWhiteSpace() {\n return node.getNodeType() == Node.TEXT_NODE && node.getTextContent().trim().length() == 0;\n }",
"private boolean startsWithSpace(String str) {\r\n\t\treturn str.length() != 0 && str.charAt(0) == ' ';\r\n\t}",
"static public final boolean ccIsAllNoneSpace(String pxLine){\n return VcStringUtility.ccNulloutString(pxLine)\n .matches(\"^\\\\S+$\");\n }",
"private static boolean isBlank(CharSequence str) {\n int strLen;\n if (str == null || (strLen = str.length()) == 0) {\n return true;\n }\n for (int i = 0; i < strLen; i++) {\n if ((Character.isWhitespace(str.charAt(i)) == false)) {\n return false;\n }\n }\n return true;\n }",
"private boolean startsWithWhite(String str) {\r\n if ((str != null) &&\r\n (str.length() > 0) &&\r\n isWhitespace( str.charAt(0))) {\r\n return true;\r\n }\r\n return false;\r\n }",
"void unsetLeading();",
"private boolean isBlank() {\n\t\tchar currentChar = data[index];\n\t\tif (currentChar == '\\r' || currentChar == '\\n' || currentChar == '\\t' || currentChar == ' ') {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"private boolean spaces() {\r\n return OPT(GO() && space() && spaces());\r\n }",
"@Test\n\tpublic void testTrimmingWhiteSpaces() {\n\t\t// Setup\n\t\tString file = \" file.name \";\n\n\t\t// Exercise\n\t\tLine line = new Line(\"5\", \"5\", file);\n\n\t\t// Verify\n\t\tassertEquals(\"file.name\", line.toString());\n\t}",
"private boolean makeSpaceBefore(boolean addSpace){\n int index = ts.index();\n try {\n while(true) {\n if (!ts.movePrevious()){\n return false;\n }\n if (ts.token().id() == NEW_LINE){\n DiffResult diff = diffs.getDiffs(ts, 0);\n if (diff == null || diff.replace == null || diff.replace.hasNewLine()){\n return false;\n }\n } else if (ts.token().id() == PREPROCESSOR_DIRECTIVE){\n return false;\n } else if (ts.token().id() != WHITESPACE){\n replaceSegment(addSpace, index);\n return true;\n }\n }\n } finally {\n ts.moveIndex(index);\n ts.moveNext();\n }\n }",
"private boolean isAllWhitespace(Object obj) {\r\n String str = null;\r\n\r\n if (obj instanceof String) {\r\n str = (String) obj;\r\n }\r\n else if (obj instanceof Text) {\r\n str = ((Text) obj).getText();\r\n }\r\n else {\r\n return false;\r\n }\r\n\r\n for (int i = 0; i < str.length(); i++) {\r\n if ( !isWhitespace( str.charAt( i)))\r\n return false;\r\n }\r\n return true;\r\n }",
"private int skipTrialingWhite( List content, int start) {\r\n int size = content.size();\r\n if (start > size) {\r\n start = size;\r\n }\r\n\r\n int index = start;\r\n if (currentFormat.trimAllWhite\r\n || currentFormat.textNormalize\r\n || currentFormat.textTrim) {\r\n while( index >= 0) {\r\n if ( !isAllWhitespace( content.get(index - 1)))\r\n break;\r\n --index;\r\n }\r\n }\r\n return index;\r\n }",
"private boolean isWhitespace(char c) {\r\n if (c==' ' || c=='\\n' || c=='\\t' || c=='\\r' ){\r\n return true;\r\n }\r\n return false;\r\n }",
"static String trimStart(String s) {\n StringBuilder sb = new StringBuilder(s);\n while(sb.length() > 0 && (sb.charAt(0) == '\\u005cr'\n || sb.charAt(0) == '\\u005cn'\n || sb.charAt(0) == '\\u005ct'\n || sb.charAt(0) == ' ')) {\n sb.deleteCharAt(0);\n }\n return sb.toString();\n }",
"private boolean isWhitespace(char c) {\n\t\treturn c == ' ' || c == '\\n' || c == '\\r' || c == '\\t';\n\t}",
"private boolean isWhitespace(char c) {\n\t\treturn c == ' ' || c == '\\n' || c == '\\r' || c == '\\t';\n\t}",
"private boolean space() {\r\n return CHAR(' ');\r\n }",
"private boolean isWhitespaceText(String text) {\n \n \t\tif (text == null || text.length() == 0)\n \t\t\treturn false;\n \n \t\tString[] delimiters= fDocument.getLegalLineDelimiters();\n \t\tint index= TextUtilities.startsWith(delimiters, text);\n \t\tif (index > -1) {\n \t\t\tchar c;\n \t\t\tint length= text.length();\n \t\t\tfor (int i= delimiters[index].length(); i < length; i++) {\n \t\t\t\tc= text.charAt(i);\n \t\t\t\tif (c != ' ' && c != '\\t')\n \t\t\t\t\treturn false;\n \t\t\t}\n \t\t\treturn true;\n \t\t}\n \n \t\treturn false;\n \t}",
"public XMLString fixWhiteSpace(boolean trimHead, boolean trimTail, boolean doublePunctuationSpaces) {\n/* 92 */ return new XMLStringDefault(this.m_str.trim());\n/* */ }",
"private static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\t' || c == '\\n' || c == '\\f' || c == '\\r';\n }",
"@Test\n public void shouldRetainDigitsAndWhiteSpace() {\n Assert.assertThat(\"match any digits\",CharMatcher.DIGIT.or(CharMatcher.WHITESPACE)\n .retainFrom(\"123TT T4\"),is(\"123 4\"));\n }",
"@Test\n\tpublic void testJustEmptyChars() {\n\t\tSmartScriptLexer lexer = new SmartScriptLexer(\" \\r\\n\\t \");\n\t\t\n\t\tSmartScriptToken expected = new SmartScriptToken(SmartScriptTokenType.TEXT, \" \\r\\n\\t \");\n\t\tassertEquals(lexer.nextToken().getType(), SmartScriptTokenType.TEXT);\n\t\tassertEquals(lexer.getToken().getValue(), expected.getValue());\n\t}",
"@Test\n\tpublic void testEmptyString() {\n\t\tString s = \" \\t \";\n\t\tassertTrue(\"Empty string with tab\", StringUtil.isEmpty(s));\n\t}",
"private int skipLeadingWhite( List content, int start) {\r\n if (start < 0) {\r\n start = 0;\r\n }\r\n\r\n int index = start;\r\n int size = content.size();\r\n if (currentFormat.trimAllWhite\r\n || currentFormat.textNormalize\r\n || currentFormat.textTrim) {\r\n while( index < size) {\r\n if ( !isAllWhitespace( content.get(index))) {\r\n return index;\r\n }\r\n index++;\r\n }\r\n }\r\n return index;\r\n }",
"@Test\n\tpublic void nonEmptyString() {\n\t\tString s = \" H \";\n\t\tassertFalse(\"Non empty string\", StringUtil.isEmpty(s));\n\t}",
"public boolean supportsTrimChar() {\n return false;\n }",
"private static void assertEqualsIgnoringWhitespace(final String expected, final String actual){\n // assertEquals(expected.replaceAll(\"^ +\", \"\"), actual.replaceAll(\"^ +\", \"\"));\n assertEquals(expected.replaceAll(\"\\\\s+\", \"\"), actual.replaceAll(\"\\\\s+\", \"\"));\n }",
"@Test\n public void testWhitespace() throws TokenizerException {\n assertTokenizes(\" \", new Token[0]);\n }",
"private static String trimWhiteSpace(String sentence) {\n\t\tsentence = sentence.replaceAll(\"[^a-zA-Z]\", \" \");\n//\t\tsentence = sentence.replaceAll(\"\\n\", \" \");\n//\t\tsentence = sentence.replaceAll(\"\\t\", \" \");\n// sentence = sentence.replaceAll(\"\\\\.\", \" \");\n// sentence = sentence.replaceAll(\",\", \" \");\n \n//\t\tint length;\n//\t\tdo {\n//\t\t\tlength = sentence.length();\n//\t\t\tsentence = sentence.replaceAll(\" \", \" \");\n//\n//\t\t} while (sentence.length() < length);\n\t\treturn sentence;\n\t}",
"private void removeWhitespace() {\n /*\n * Get rid of comments.\n * Regex breakdown:\n * //.* : Some string that starts with \"//\"\n */\n instruction = instruction.replaceAll(\"//.*\", \"\");\n\n /*\n * Now replace all whitespace with a single space\n * Regex breakdown:\n * \\s+ : Find all whitespace that appear in a chunk\n */\n instruction = instruction.replaceAll(\"\\\\s+\", \" \");\n\n // Get rid of leading/trailing whitespace (if there is any whitespace at\n // the start/end of a line, it will be converted into one space character\n // as a result of the previous line)\n /*\n * Regex breakdown:\n * ^ : At the start of the line...\n * \\s+ : Match whitespace that occurs in a glob\n */\n instruction = instruction.replaceAll(\"^\\\\s+\", \"\");\n /*\n * Regex breakdown:\n * \\s+ : Match whitespace that occurs in a glob\n * $ : At the end of the line\n */\n instruction = instruction.replaceAll(\"\\\\s+$\", \"\");\n }",
"static void trimNL(String s) {\n StringBuilder sb = new StringBuilder(s);\n while(sb.length() > 0 && (sb.charAt(sb.length() - 1) == '\\u005cr' || sb.charAt(sb.length() - 1) == '\\u005cn'))\n sb.deleteCharAt(sb.length() - 1);\n }",
"private static boolean isBlank(String str)\r\n/* 254: */ {\r\n/* 255: */ int length;\r\n/* 256:300 */ if ((str == null) || ((length = str.length()) == 0)) {\r\n/* 257:301 */ return true;\r\n/* 258: */ }\r\n/* 259: */ int length;\r\n/* 260:302 */ for (int i = length - 1; i >= 0; i--) {\r\n/* 261:303 */ if (!Character.isWhitespace(str.charAt(i))) {\r\n/* 262:304 */ return false;\r\n/* 263: */ }\r\n/* 264: */ }\r\n/* 265:306 */ return true;\r\n/* 266: */ }",
"private static boolean isWhiteSpace(final String strval)\n\t{\n\t\tif (null != strval)\n\t\t{\n\t\t\tfinal int n = strval.length();\n\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t{\n\t\t\t\tfinal char ch = strval.charAt(i);\n\n\t\t\t\t// The follwing pattern is denormalized for speed.\n\t\t\t\tif ((ch == 0x20) || (ch == 0x09) || (ch == 0xD) || (ch == 0xA))\n\t\t\t\t{\n\t\t\t\t\t// Try the next one, all must be whiteSpace.\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}",
"private void skipEmptyLines() throws IOException {\n for (;;) {\n if (nextChar != ';') {\n do {\n readNextChar();\n } while (isWhitespace(nextChar));\n if (nextChar != ';') return;\n }\n do {\n readNextChar();\n if (nextChar == -1) return;\n } while (nextChar != '\\n');\n }\n }",
"@Test\n public void testSafeTrimToNull() {\n assertNull(Strings.safeTrimToNull(\" \\n\\t \\n\"));\n assertNull(Strings.safeTrimToNull(null));\n assertEquals(\"hello there!\", Strings.safeTrimToNull(\" hello there! \\n\"));\n }",
"public boolean leadingSign(){\n return ! trailingSign;\n }",
"static void trimNL() {\n if(outputBuffer.length() > 0 && outputBuffer.charAt(outputBuffer.length() - 1) == '\\u005cn')\n outputBuffer.deleteCharAt(outputBuffer.length() - 1);\n if(outputBuffer.length() > 0 && outputBuffer.charAt(outputBuffer.length() - 1) == '\\u005cr')\n outputBuffer.deleteCharAt(outputBuffer.length() - 1);\n }",
"static boolean isBlank(Token t) {\n return t.getText().isBlank(); // trim().length() == 0\n }",
"public String removeComplexWhiteSpaces(@NotNull String rawText) {\n return rawText.replaceAll(\"(\\\\s)?\\n\\n(\\\\s)?\", \"\\n\").trim();\n }",
"protected static String trimWhitespace(String s) {\n int len = s.length();\n StringBuffer buf = new StringBuffer(len);\n for (int ii = 0; ii < len; ii++) {\n char c = s.charAt(ii);\n if (!Character.isWhitespace(c)) {\n buf.append(c);\n }\n }\n return buf.toString();\n }",
"@Test\n public void testSafeTrim() {\n assertEquals(\"\", Strings.safeTrim(null));\n assertEquals(\"\", Strings.safeTrim(\" \\t\\n\"));\n assertEquals(\"hello there!\", Strings.safeTrim(\" hello there! \\n\"));\n }",
"private static String trim(String s) {\n return s.replace(\" \", \"\");\n }",
"@Test\n\tpublic void nonEmptyMultiLine() {\n\t\tString s = \" \\n\" + \"Nothing\";\n\t\tassertFalse(\"Non empty string\", StringUtil.isEmpty(s));\n\t}",
"String divideAtWhite()[]{ return null; }",
"static void trimWhitespace() {\n for (int i = a.size() - 1; i >= 0; i-- ) {\n Object o = a.get(i);\n StringBuilder sb = new StringBuilder();\n if (o instanceof Token)\n sb.append( ((Token)o).image );\n else\n sb.append((String)o);\n while(sb.length() > 0 && (sb.charAt(sb.length() - 1) == '\\u005cr'\n || sb.charAt(sb.length() - 1) == '\\u005cn'\n || sb.charAt(sb.length() - 1) == '\\u005ct'\n || sb.charAt(sb.length() - 1) == ' ')) {\n sb.deleteCharAt(sb.length() - 1);\n }\n if (sb.length() == 0) {\n a.remove(i);\n }\n else {\n a.set(i, sb.toString());\n break;\n }\n }\n if (a.size() == 0) {\n while(outputBuffer.length() > 0 && (outputBuffer.charAt(outputBuffer.length() - 1) == '\\u005cr'\n || outputBuffer.charAt(outputBuffer.length() - 1) == '\\u005cn'\n || outputBuffer.charAt(outputBuffer.length() - 1) == '\\u005ct'\n || outputBuffer.charAt(outputBuffer.length() - 1) == ' ')) {\n outputBuffer.deleteCharAt(outputBuffer.length() - 1);\n }\n }\n }",
"public static void main(String[] args) {\n\t\t\n\t\tchar[] just = {'a','b','c','d',' ',' ',' ','e'};\n\t\t\n\t\tSystem.out.println(Arrays.toString(just));\n\t\t\n\t\tremoveWhiteSpace(just);\n\t\t\n\t\tSystem.out.println(Arrays.toString(just));\n\t}",
"public boolean noSeparator(){\n return separator == EMPTY_CHAR;\n }",
"public void skipWhitespace() throws IOException {\n\t\twhile (CharacterIterator.DONE != current()\n\t\t\t\t&& Character.isWhitespace(current())) {\n\t\t\tnext();\n\t\t}\n\t}",
"boolean canMatchEmptyString() {\n return false;\n }",
"@Test\n\tpublic void testEmptyLine() {\n\t\tString s = \" \\n\";\n\t\tassertTrue(\"Empty string with line ending\", StringUtil.isEmpty(s));\n\t}",
"@Test\n void testWhiteSpace() {\n assertEquals(1, Calculator.calculate(\" 5 - 4\"));\n }",
"public static int skipWS (String text, int posn, int end) {\n\t\twhile ((posn < end) && Character.isWhitespace(text.charAt(posn))) posn++;\n\t\treturn posn;\n\t}",
"protected boolean skipBlankValues() {\n return true;\n }",
"public static boolean isOnlyWhitespace(String str) {\n for (int i = 0; i < str.length(); i++) {\n if (!Character.isWhitespace(str.charAt(i))) {\n return false;\n }\n }\n return true;\n }",
"private void space() {\n if (wereTokens && !spaceSuppressed) {\n out.print(' ');\n }\n }",
"public boolean isEmpty(String line){\n char[] lineChars = line.toCharArray();\n if(lineChars.length == 0){return true;}\n\n boolean lineIsEmpty = true;\n for (char c : lineChars){\n if (!Character.isWhitespace(c)){\n return false;\n }\n }\n return lineIsEmpty;\n }",
"private boolean endsWithWhite(String str) {\r\n if ((str != null) &&\r\n (str.length() > 0) &&\r\n isWhitespace( str.charAt(str.length() - 1))) {\r\n return true;\r\n }\r\n return false;\r\n }",
"public XMLString trim() {\n/* 780 */ return new XMLStringDefault(this.m_str.trim());\n/* */ }",
"protected static boolean isWhitespace(int c) {\n return (WHITESPACE.indexOf(c) != -1);\n }",
"private static String removeWhitespace(String str)\n {\n // A string buffer to build the result in.\n StringBuffer res;\n\n // Create the result string buffer.\n res = new StringBuffer(str.length());\n\n // Iterate through the input string, appending chars to the\n // result if they are not white space.\n for (int iChar = 0; iChar < str.length(); iChar++) {\n if (!Character.isWhitespace(str.charAt(iChar))) {\n res.append(str.charAt(iChar));\n }\n }\n\n return res.toString();\n }",
"private void checkEmptyLine(String line) {\n if (line.substring(5).replace('\\t', ' ')\n .replace('\\n', ' ').trim().length() != 0) {\n throw new IllegalArgumentException(\"Invalid characters after tag.\");\n }\n }",
"public static String removeLeftSpaceOrTabs(String current) {\n char ch;\n int whiteSpacesLen = 0;\n for (int i = 0; i < current.length(); i++) {\n ch = current.charAt(i);\n if (CR == ch || LF == ch || CharacterConstants.SPACE == ch || CharacterConstants.TAB == ch) {\n whiteSpacesLen++;\n } else {\n break;\n }\n }\n return current.substring(whiteSpacesLen);\n }",
"public static String ltrim(String s)\r\n {\r\n if (s == null)\r\n return null;\r\n \r\n for (int k = 0; k < s.length(); k++)\r\n {\r\n if (!Character.isWhitespace(s.charAt(k)))\r\n return (k == 0 ? s : s.substring(k));\r\n }\r\n return \"\";\r\n }",
"public static String noSpaces(String strIn){\n String result = \"\";\n\n if (strIn.length() != 0){\n\n String[] segs = strIn.split(\" \");\n\n for (String s: segs){\n result += s;\n }\n }\n\n return result;\n }",
"private String trimLeft(String html) {\n int start = 0;\n for (int i = 0; i < html.length(); ++i) {\n char c = html.charAt(i);\n if (Character.isWhitespace(c) || c == 0xA0) { // nbsp\n start = i;\n } else {\n break;\n }\n }\n\n if (html.charAt(start) == 0xA0) {\n return html.substring(start + 1);\n } else {\n return html.substring(start); // left one space\n }\n }",
"@Test\n public void shouldMatchBreakingWhitespace(){\n Assert.assertThat(\"match any breaking white space\",CharMatcher.BREAKING_WHITESPACE.matchesAnyOf(\"\\n\\r\"),is(true));\n }",
"public void ignorableWhitespace(char[] ch, int start, int length)\n\t\t\t\tthrows java.lang.Exception {\n\t\t}",
"public static void trimLeading (TextFragment textFragment) {\r\n \t\ttrimLeading(textFragment, null);\r\n \t}",
"public static String addSpace(Object o)\r\n/* 100: */ {\r\n/* 101: 96 */ String s = o.toString().trim();\r\n/* 102: 97 */ if (s.isEmpty()) {\r\n/* 103: 98 */ return \"\";\r\n/* 104: */ }\r\n/* 105:100 */ char last = s.charAt(s.length() - 1);\r\n/* 106:101 */ if (\">\".indexOf(last) >= 0) {\r\n/* 107:102 */ return s;\r\n/* 108: */ }\r\n/* 109:104 */ if (\":\".indexOf(last) >= 0) {\r\n/* 110:105 */ return s.trim() + \" \";\r\n/* 111: */ }\r\n/* 112:107 */ if (\".?!\".indexOf(last) >= 0) {\r\n/* 113:108 */ return s + \" \";\r\n/* 114: */ }\r\n/* 115:111 */ return s + \" \";\r\n/* 116: */ }",
"static void trim() {\n if (a.size() == 0)\n return;\n Object o = a.get(a.size() - 1);\n StringBuilder sb = new StringBuilder();\n if (o instanceof Token)\n sb.append( ((Token)o).image );\n else\n sb.append((String)o);\n while(sb.length() > 0 && sb.charAt(sb.length() - 1) == ' ')\n sb.deleteCharAt(sb.length() - 1);\n a.set(a.size() - 1, sb.toString() );\n }",
"public Boolean isEmptyOrHasWhiteSpace(String string){\n return ( string.trim().isEmpty() || string.trim().contains(\" \") );\n }",
"private boolean isOneSpace(final String message) {\n\t\treturn message.contains(\"1 space\"); //$NON-NLS-1$\n\t}",
"public WhitespaceState()\n\t{\n\t\tsetWhitespaceChars(0, ' ', true);\n\t}",
"@Test\n void trim_null() {\n assertNull(stringUtil.trim(null));\n }",
"@Override\n public void ignorableWhitespace(\n char[] chars, int start, int length\n ) throws SAXException {\n // ...\n }",
"public static void main(String[] args) {\n\n\t\tRemoveWhitespace rws = new RemoveWhitespace();\n\t\tString res = rws.removeWhtSpace(\"hi how are you?\");\n\t\tString res2 = rws.removeWhtSpaceV2(\"hi how are you?\");\n\t\tSystem.out.println(res);\n\t\tSystem.out.println(res2);\n\t\t\n\t\tSystem.out.println(rws.removeTrailingWhtSpace(\" Hey what is up? \"));\n\t}",
"private String getTrimmedValue(String value) {\n\t\treturn value == null ? \"\" : value.trim();\n\t}"
] | [
"0.721398",
"0.7167965",
"0.7117635",
"0.70888853",
"0.69413906",
"0.68304145",
"0.68304145",
"0.6778694",
"0.67237246",
"0.66845876",
"0.66776955",
"0.6622409",
"0.6578067",
"0.6558231",
"0.65169185",
"0.6506803",
"0.6466647",
"0.64454937",
"0.6415529",
"0.63983905",
"0.63858837",
"0.63803333",
"0.6358307",
"0.6332667",
"0.63125217",
"0.6308192",
"0.6294738",
"0.624828",
"0.6237756",
"0.62340045",
"0.62284815",
"0.6201724",
"0.61854637",
"0.61595446",
"0.6139239",
"0.6127975",
"0.61175597",
"0.6054963",
"0.6047918",
"0.6047918",
"0.60427904",
"0.60380685",
"0.60338044",
"0.6032635",
"0.60106695",
"0.6007852",
"0.6002088",
"0.5994737",
"0.5983401",
"0.59830403",
"0.596875",
"0.59544533",
"0.594122",
"0.5932226",
"0.5925511",
"0.592196",
"0.59210443",
"0.5914101",
"0.59116805",
"0.58957505",
"0.5891238",
"0.58875",
"0.58665144",
"0.5862421",
"0.5852184",
"0.5847604",
"0.5838619",
"0.58291495",
"0.5813313",
"0.58131194",
"0.58017325",
"0.57960033",
"0.5790074",
"0.57900465",
"0.5774199",
"0.57703346",
"0.5768488",
"0.57596654",
"0.5759388",
"0.5745932",
"0.57425094",
"0.5735603",
"0.5728512",
"0.572704",
"0.5715201",
"0.5711808",
"0.570534",
"0.5696411",
"0.569244",
"0.5685741",
"0.5683179",
"0.56822276",
"0.56726676",
"0.5666557",
"0.5660768",
"0.5654746",
"0.565054",
"0.56480986",
"0.56471324",
"0.5642639",
"0.563915"
] | 0.0 | -1 |
Sets the onRun Runnable | public static OnRun onRun( Runnable run )
{
return new OnRun( run );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRunnable(Runnable runnable) {\n this.runnable = runnable;\n }",
"@Override\n public void run() {\n mRunnable.onPreExecute();\n mExecutor.onPreExecuteCallback(mRunnable);\n }",
"public void setRun(Boolean run){\n runnnig = run;\n }",
"void setRunMode(TaskRunMode runMode);",
"@Override\n protected void runInListenerThread(Runnable runnable) {\n runnable.run();\n }",
"public void run() {\n mEmoteButton.setBackgroundResource(R.drawable.button_yellow);\n mIsEmotePlayable = true;\n\n }",
"public void run () { run (true); }",
"@Override\n public void run() {\n if (gpioPort == null) {\n return;\n }\n try {\n listner.portCallback(gpioPort);\n Log.d(\"Inside runnable\", \"this is the value inside runnable\");\n\n //Schedule another event after delay.\n mHandler.postDelayed(mCallBackRunnable, CALLBACK_INTERVAL);\n } catch (IOException e) {\n Log.d(\"Inside runnable Error\", \"this is the value inside runnable\");\n }\n }",
"private void startRunnableThread() {\n customRunnable = new CustomRunnable();\n customThread = new CustomThread(customRunnable);\n customRunnable.setTag(customThread.tag);\n customThread.start();\n\n }",
"@Override\n public void run() {\n final WeakHandler wh = hw.getThat();\n final Runnable r = runnable.get();\n if (wh == null || r == null) {\n return;\n }\n r.run();\n }",
"public void setStarter(final Runnable starter) {\n this.starter = starter;\n }",
"public abstract void runOnUiThread(Runnable runnable);",
"@Override\n public void run() {\n mRunnable.onPostExecute();\n mExecutor.onPostExecuteCallback(mRunnable);\n }",
"public void run() {\n super.run();\n }",
"@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n }",
"public void setRunning(boolean run) {\n _run = run;\r\n }",
"public static void runNotification(Runnable runner)\n {\n getInstance().doRunNotification(runner);\n }",
"public MyRunnable(){\t\n\t}",
"@Override\n\t\tpublic void run() {\n\t\t\tMusicActivity.lrcView.SetIndex(new LrcIndex().LrcIndex());\n\t\t\tMusicActivity.lrcView.invalidate();\n\t\t\tmHandler.postDelayed(mRunnable, 100);\n\t\t}",
"@Override\n public void run() {\n setToast(\"연결이 종료되었습니다.\");\n }",
"@Override\n\tpublic void run() {\n\t\tLog.i(tag, \"run\");\n\t}",
"public void onRunActionRunnerAvailabilityChange(boolean isRunning);",
"public void run() {/* THE CODE HERE IS A THE @OVERRIDE FOR START() METHOD */\n\t}",
"@Override\n public void run() {\n setToast(\"연결이 종료되었습니다.\");\n }",
"@Override\n public void run()\n {\n super.run();\n }",
"public void projectRunnableChanged() { }",
"public void projectRunnableChanged() { }",
"@Override\n public void run() {\n Toast.makeText(getApplicationContext(), \"I'm a toast!\", Toast.LENGTH_SHORT).show();\n }",
"public static void runOnGameThread(final Runnable runnable) {\n sTaskQOnGameThread.addTask(runnable);\n }",
"@Override\n protected void beforeExecute(final Thread thread, final Runnable run) {\n mActiveTasks.add(run);\n super.beforeExecute(thread, run);\n }",
"@Override\n public void run() {\n System.out.println(\"Inside runnable 1\");\n }",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tsuper.run();\r\n\t\t\t}",
"public void setRunning(boolean run)\n\t{\n\t\tmRun=run;\n\t}",
"public ListenerAwareRunnableScheduledFuture(RunnableScheduledFuture<V> inner) {\n\t\tthis.inner = inner;\n\t}",
"public abstract void onAsyncRun(View view);",
"public void mo21817a(Runnable runnable) {\n this.f24530b.mo22058a(runnable);\n }",
"@Override\n\tpublic void run() {\n\t\tsuper.run();\n\t}",
"@Override\n public void run(){\n }",
"@Override\n\t\tpublic void run() {\n\t\t\tif(UpdateMonitor.getInstance(WelcomeActivity.this) != null){\n\t\t\t\tLog.d(TAG,\"Start OdmServiceSetting\");\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.setClass(WelcomeActivity.this, OdmServiceSetting.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t\tWelcomeActivity.this.finish();\n\t\t\t}else{\n\t\t\t\tmHandler.post(mStartRunnable);\n\t\t\t}\n\t\t}",
"@Override\n public void run() {\n rView.setAdapter(rcAdapter);\n }",
"protected void run() {\r\n\t\t//\r\n\t}",
"@Override\n public void run() {\n if (mToast == null) {\n mToast = Toast.makeText(getApplicationContext(), text,\n Toast.LENGTH_SHORT);\n } else {\n mToast.setText(text);\n }\n mToast.show();\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tonIntentClass(activity, MainActivity.class, true);\n\t\t\t}",
"public static void setRunning(boolean run) {\n\t\tmRunning = run;\n\t\tif (mRunning) {\n\t\t\tsetStartRecordingTime();\n\t\t}\n\n\t\tif (mContext != null) {\n\t\t\tEditor edit = mContext.getSharedPreferences(Defines.SHARED_PREF_NAME, Context.MODE_PRIVATE).edit();\n\t\t\tedit.putBoolean(Defines.SHARED_PREF_RUNNNING, mRunning);\n\t\t\tedit.commit();\n\t\t}\n\t}",
"@Override\n public void runOnUiThread(Runnable r) {\n }",
"abstract void doTaskOnRun();",
"@Override\r\n public void run() {}",
"public void run(){\n\t}",
"public void doRunNotification(Runnable runner)\n {\n m_Executor.submit(runner);\n }",
"public void run() {\r\n\t\t// overwrite in a subclass.\r\n\t}",
"@Override\n protected void invokeTestRunnable(final Runnable runnable) throws Exception {\n System.out.println(\"Invoke: \" + runnable);\n runnable.run();\n }",
"@Override\n public void startTask(TrcRobot.RunMode runMode)\n {\n }",
"public void startListener(){\n new Thread(() -> this.run()).start();\n }",
"private final void m31777a(Runnable runnable) {\n C9908u.m30853a(runnable);\n if (this.f23848a.mo25897d().mo25804t()) {\n runnable.run();\n } else {\n this.f23848a.mo25897d().mo25800a(runnable);\n }\n }",
"private static void runLater(Runnable runnable) {\n Display display = Display.findDisplay(Thread.currentThread());\n if (display != null) {\n display.asyncExec(runnable);\n } else {\n AdtPlugin.log(IStatus.WARNING, \"Could not find display\");\n }\n }",
"@Override\n public void run() {\n mPresenter.loadCameras();\n Log.d(\"Handlers\", \"Refresh lists\");\n // Repeat this the same runnable code block again another 2 seconds\n handler.postDelayed(runnableCode, 5000);\n }",
"public void executeOnMainThread(@NonNull Runnable runnable) {\r\n if (isMainThread()) {\r\n runnable.run();\r\n } else {\r\n postToMainThread(runnable);\r\n }\r\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"public void setRunWhenInitilizing(boolean value) {\n\t\trunWhenInitilizing = value;\n\t}",
"@Override\n public void run() {\n }",
"public abstract void postToMainThread(@NonNull Runnable runnable);",
"public void run()\n\t{\n\t}",
"@Override\n public void run() {\n testAnchors();\n Log.d(\"Handler:\", \"running testAnchors()\");\n\n handler.postDelayed(this, 230);// 50ms后执行this,即runable\n }",
"@Override\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tactivity.updateCameraToolbar();\n\t\t\t}",
"@Override\n\t\t\tpublic void onStart() {\n\t\t\t\tSystem.out.println(\"onStart\");\n\t\t\t\tif(listener!=null) listener.onMessage(\"onStart\");\n\t\t\t\tisRun = true;\n\t\t\t}",
"public void detenerRunnable(){\n Log.d(\"RUNNABLE\",\"DETENIENDO RUNNABLE SONIDO + VIBRACION\");\n handler.removeCallbacksAndMessages(myRunnable);\n handler.removeCallbacks(myRunnable);\n\n }",
"void runInThread(Runnable runnable) {\n try {\n Thread thread = new Thread(runnable::run);\n thread.start();\n } catch (Exception ex) {\n log.info(ex.getMessage());\n }\n\n }",
"public void run() {\n\n\t}",
"public void run() {\n\n\t}",
"@Override\n public void setMode(RunMode mode) {\n\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"public void run() {\n\t\t\t\t\t\t\t\t// Restore animated values\n\t\t\t\t\t\t\t\tv.setAlpha(1);\n\t\t\t\t\t\t\t\tv.setTranslationX(0);\n\t\t\t\t\t\t\t\t//If removed fromt the list, animate its removal\n\t\t\t\t\t\t\t\tif (remove) {\n\t\t\t\t\t\t\t\t\tanimateRemoval(mListView, v);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmBackgroundContainer.hideBackground();\n\t\t\t\t\t\t\t\t\tmSwiping = false;\n\t\t\t\t\t\t\t\t\tmListView.setEnabled(true);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}",
"void runInAudioThread(Runnable runnable) {\n executor.execute(runnable);\n }",
"public void run() {\n Toast.makeText(context, toast, Toast.LENGTH_SHORT).show(); // toast for whatever reason\n }",
"@Override\n\tpublic void run()\n\t{\n\n\t}",
"public Builder setOnSchemaUpdateRunnable(OnSchemaUpdateRunnable onSchemaUpdateRunnable) {\n this.onSchemaUpdateRunnable =\n Preconditions.checkNotNull(onSchemaUpdateRunnable, \"onSchemaUpdateRunnable is null.\");\n return this;\n }",
"public void setRunning(boolean b) {\n\t\t// Do not allow mRun to be modified while any canvas operations\n\t\t// are potentially in-flight. See doDraw().\n\t\tsynchronized (mRunLock) {\n\t\t\tmRun = b;\n\t\t}\n\t}",
"protected void startInsertRunnable() {\n\t}",
"@Override public void run() {\n DisplayAllUsersPosts();\n swipe.setRefreshing(false);\n }",
"public void run() {\n }",
"public void run() {\n }",
"public void run() {\n }",
"@Override\n\tpublic void run()\n\t{\n\t}",
"@Override\n\tprotected void postRun() {\n\n\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tAbsTaskAsynCallBack.this.run();\n\t\t\t\tAbsTaskAsynCallBack.this.callback();\n\t\t\t}",
"@Override\n public void run() {\n valTemp.setText(gestion.valTemperature);\n valSon.setText(gestion.valSon);\n valHum.setText(gestion.valHumidity);\n valLum.setText(gestion.valLumiere);\n\n maj();\n }",
"public void run() {\n }",
"public Runnable getRunnable() {\n return runnable;\n }",
"@Override\n public void run() {\n }",
"@Override\r\n public void run() {\n }",
"@Override\n public void run() {\n Toast.makeText(rootView.getContext(), mensaje,\n Toast.LENGTH_LONG).show();\n }",
"public final void run() {\r\n }",
"@ReactMethod\n public void setOnInvokeHandler(final Callback onInvokeHandler) {\n MainThreadHandler.runOnMainThread(new Runnable() {\n @Override\n public void run() {\n try {\n BugReporting.setOnInvokeCallback(new OnInvokeCallback() {\n @Override\n public void onInvoke() {\n sendEvent(Constants.IBG_PRE_INVOCATION_HANDLER, null);\n }\n });\n } catch (java.lang.Exception exception) {\n exception.printStackTrace();\n }\n }\n });\n }",
"@Override\n public void run() {\n flag = true;\n // The Runnable is posted to run again here:\n handler.postDelayed(this, interval);\n }",
"@Override\n\tpublic void run() {\n\n\t}",
"@Override\n\tpublic void run() {\n\n\t}",
"@Override\n\tpublic void run() {\n\n\t}"
] | [
"0.7180456",
"0.6447137",
"0.61434054",
"0.5925773",
"0.5883201",
"0.5873181",
"0.57865435",
"0.57847047",
"0.57726187",
"0.577011",
"0.57133174",
"0.5707774",
"0.5694742",
"0.56764096",
"0.56503224",
"0.56459725",
"0.5642047",
"0.56299543",
"0.56182486",
"0.56170356",
"0.5599488",
"0.5590619",
"0.55904704",
"0.5576726",
"0.55635715",
"0.5545641",
"0.5545641",
"0.5537034",
"0.5500576",
"0.54986316",
"0.54976594",
"0.54879636",
"0.5487135",
"0.54825014",
"0.5480888",
"0.5445518",
"0.544328",
"0.5438382",
"0.54316217",
"0.5426032",
"0.5417864",
"0.54170007",
"0.53916985",
"0.53883505",
"0.53819305",
"0.53797495",
"0.53655076",
"0.5365421",
"0.5360299",
"0.5355721",
"0.5350775",
"0.53259075",
"0.5325209",
"0.53173226",
"0.5316695",
"0.53162664",
"0.5305536",
"0.5292513",
"0.5292513",
"0.52919763",
"0.528709",
"0.52843106",
"0.52820474",
"0.52761805",
"0.52749354",
"0.5274375",
"0.5274252",
"0.5274056",
"0.5271915",
"0.5271915",
"0.52631676",
"0.5258177",
"0.5258177",
"0.5258177",
"0.5256992",
"0.5255598",
"0.52441937",
"0.5243888",
"0.5243511",
"0.524041",
"0.52387196",
"0.5236188",
"0.52353257",
"0.52353257",
"0.52353257",
"0.5232533",
"0.52304333",
"0.52300394",
"0.52253735",
"0.52241087",
"0.52196604",
"0.5218457",
"0.52179915",
"0.5213848",
"0.5209635",
"0.5206193",
"0.5204775",
"0.5202835",
"0.5202835",
"0.5202835"
] | 0.74271894 | 0 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
DashboardFragBinding binding = DataBindingUtil.inflate(inflater, R.layout.dashboard_frag, container, false);
return binding.getRoot();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}",
"@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }",
"protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}",
"@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }"
] | [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.6625158",
"0.66195583",
"0.66164845",
"0.6608733",
"0.6596594",
"0.65928894",
"0.6585293",
"0.65842897",
"0.65730995",
"0.6571248",
"0.6569152",
"0.65689117",
"0.656853",
"0.6566686",
"0.65652984",
"0.6553419",
"0.65525705",
"0.65432084",
"0.6542382",
"0.65411425",
"0.6538022",
"0.65366334",
"0.65355957",
"0.6535043",
"0.65329415",
"0.65311074",
"0.65310687",
"0.6528645",
"0.65277404",
"0.6525902",
"0.6524516",
"0.6524048",
"0.65232015",
"0.65224624",
"0.65185034",
"0.65130377",
"0.6512968",
"0.65122765",
"0.65116245",
"0.65106046",
"0.65103024",
"0.6509013",
"0.65088093",
"0.6508651",
"0.6508225",
"0.6504662",
"0.650149",
"0.65011525",
"0.6500686",
"0.64974767",
"0.64935696",
"0.6492234",
"0.6490034",
"0.6487609",
"0.6487216",
"0.64872116",
"0.6486594",
"0.64861935",
"0.6486018",
"0.6484269",
"0.648366",
"0.6481476",
"0.6481086",
"0.6480985",
"0.6480396",
"0.64797544",
"0.647696",
"0.64758915",
"0.6475649",
"0.6474114",
"0.6474004",
"0.6470706",
"0.6470275",
"0.64702207",
"0.6470039",
"0.6467449",
"0.646602",
"0.6462256",
"0.64617974",
"0.6461681",
"0.6461214"
] | 0.0 | -1 |
launch the specified browser | @Parameters({ "browser", "appUrl" })
@BeforeTest
public WebDriver openBrowser(String browser, String appUrl) throws MalformedURLException {
String os = System.getProperty("os.name").toLowerCase();
try {
if (browser.equalsIgnoreCase("firefox")) {
System.setProperty("webdriver.gecko.driver",gecko_driver_linux);
FirefoxProfile fprofile = new FirefoxProfile();
fprofile.setAcceptUntrustedCertificates(true);
fprofile.setAssumeUntrustedCertificateIssuer(false);
// Pass fprofile parameter In webdriver to use preferences to download
// file.
System.setProperty("webdriver.gecko.driver", "/usr/bin/geckodriver");
driver = new FirefoxDriver();
} else if (browser.equalsIgnoreCase("chrome")) {
System.setProperty("webdriver.chrome.driver", chrome_driver);
driver = new ChromeDriver();
} else if (browser.equalsIgnoreCase("safari")){
driver = new SafariDriver();
}else if (browser.equalsIgnoreCase("ie")) {
System.setProperty("webdriver.ie.driver", ie_driver);
driver = new InternetExplorerDriver();
}
driver.manage().window().maximize();
driver.get(appUrl);
return driver;
} catch (Exception e) {
e.getMessage();
}
return driver;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void launchSite(String browser) throws AWTException, IOException, InterruptedException\n\t{\n\t\topenBrowserAndSite(browser);\n\t}",
"@Given(\"^launch the browser \\\"([^\\\"]*)\\\"$\")\n\tpublic void launch_the_browser(String url) throws Throwable {\n\t\tdriver = getDriver();\n\t\tdriver.get(url);\n\n\t}",
"@Given(\"^launch an chrome browser$\")\r\n\tpublic void launch_an_chrome_browser() throws Throwable {\n\t sign.url();\r\n\t\t\r\n\t}",
"@Given(\"I open a browser and launch the application\")\n public void open_a_browser_and_launch_the_application() throws MalformedURLException\n {\n try {\n if(System.getProperty(\"exemode\").equals(\"remote\")) {\n if(System.getProperty(\"browser\").equals(\"firefox\")){\n System.setProperty(\"webdriver.gecko.driver\", \"./drivers/geckodriver\");\n DesiredCapabilities dc = DesiredCapabilities.firefox();\n dc.setBrowserName(\"firefox\");\n dc.setPlatform(Platform.LINUX);\n driver = new RemoteWebDriver(new URL(UtilConstants.ENDPOINT_SELENIUM_HUB), dc);\n }\n else if(System.getProperty(\"browser\").equals(\"chrome\")){\n System.setProperty(\"webdriver.chrome.driver\", \"./drivers/chromedriver\");\n DesiredCapabilities dc = DesiredCapabilities.chrome();\n dc.setBrowserName(\"chrome\");\n dc.setPlatform(Platform.LINUX);\n driver = new RemoteWebDriver(new URL(UtilConstants.ENDPOINT_SELENIUM_HUB), dc);\n }\n }\n else{\n if(System.getProperty(\"browser\").equals(\"firefox\")){\n System.setProperty(\"webdriver.gecko.driver\", \"./drivers/geckodriver\");\n driver = new FirefoxDriver();\n }\n else if(System.getProperty(\"browser\").equals(\"chrome\")){\n System.setProperty(\"webdriver.chrome.driver\", \"./drivers/chromedriver\");\n driver = new ChromeDriver();\n }\n }\n\n if(driver!=null){\n driver.manage().window().maximize();\n driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n //driver.manage().timeouts().pageLoadTimeout(5, TimeUnit.SECONDS);\n driver.get(ENDPOINT_PHPTRAVELS);\n }\n }\n catch(Exception e){\n e.printStackTrace();\n// System.exit(1);\n }\n }",
"private void launchBrowser(URI uri) throws IOException\r\n {\r\n getDesktop().browse(uri);\r\n }",
"public void openBrowser() {\n ResourceBundle config = ResourceBundle.getBundle(\"config\");\n\n config.getString(\"browser\").equalsIgnoreCase(\"Chrome\");\n System.setProperty(\"webdriver.chrome.driver\", \"src/Drivers/chromedriver_76.0.exe\");\n driver = new ChromeDriver();\n\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n// driver.get(config.getString(\"URL\"));\n driver.manage().window().maximize();\n }",
"@Parameters(\"browser\")\n\t@BeforeMethod\n\tpublic void launchBrowser(String browser) throws InterruptedException{\n\t\tif(browser.equalsIgnoreCase(\"firefox\")) {\n\t\t\t \n\t\t\t driver = new FirefoxDriver();\n\t\t \n\t\t // If browser is IE, then do this\t \n\t\t \n\t\t }else if (browser.equalsIgnoreCase(\"ie\")) { \n\t\t \n\t\t\t // Here I am setting up the path for my IEDriver\n\t\t \n\t\t\t System.setProperty(\"webdriver.ie.driver\", \"C://Users//sudt//Downloads//IEDriverServer_x64_2.53.1//IEDriverServer (2).exe\");\n\t\t \n\t\t\t driver = new InternetExplorerDriver();\n\t\t \n\t\t } \n\t\t else if (browser.equalsIgnoreCase(\"chrome\")){\n\t\t\t System.setProperty(\"webdriver.chrome.driver\", \"C://Users//sudt//Downloads//chromedriver_win32//chromedriver.exe\");\n\t\t\t driver = new ChromeDriver();\n\t\t }\n\t\t else {\n throw new IllegalArgumentException(\"The Browser Type is Undefined\");\n }\n\n\t\tdriver.get(\"https://www.xero.com/us/\");\n\t\tdriver.manage().window().maximize();\n\t\n\t\n\t}",
"public void initiateBrowser(String browser) {\n\t\tString os = System.getProperty(\"os.name\").toLowerCase();\n\t\tString current_dir = System.getProperty(\"user.dir\");\n\t\tSystem.out.println(os);\n\t\tSystem.out.println(current_dir);\n\t\tswitch (browser) {\n\t\tcase \"ie\":\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", current_dir + \"/drivers/IEDriverServer.exe\");\n\t\t\tdriver = new InternetExplorerDriver();\n\t\t\tbreak;\n\t\tcase \"chrome\":\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\tif (os.contains(\"linux\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", current_dir + \"/drivers/linuxdrivers/chromedriver\");\n\t\t\t\tDesiredCapabilities caps = DesiredCapabilities.chrome();\n\t\t\t\tLoggingPreferences logPrefs = new LoggingPreferences();\n\t\t\t\tlogPrefs.enable(LogType.BROWSER, Level.ALL);\n\t\t\t\tcaps.setCapability(CapabilityType.LOGGING_PREFS, logPrefs);\n\n\t\t\t\toptions.setBinary(\"/usr/bin/google-chrome\");\n\t\t\t\toptions.addArguments(\"--headless\");\n\t\t\t} else if (os.contains(\"windows\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", current_dir + \"/drivers/chromedriver.exe\");\n\t\t\t\tDesiredCapabilities caps = DesiredCapabilities.chrome();\n\t\t\t\tLoggingPreferences logPrefs = new LoggingPreferences();\n\t\t\t\tlogPrefs.enable(LogType.BROWSER, Level.ALL);\n\t\t\t\tcaps.setCapability(CapabilityType.LOGGING_PREFS, logPrefs);\n\t\t\t}\n\t\t\toptions.addArguments(\"test-type\");\n\t\t\toptions.addArguments(\"disable-popup-blocking\");\n\t\t\tdriver = new ChromeDriver(options);\n\n\t\t\tdriver.manage().window().maximize();\n\t\t\tbreak;\n\t\tcase \"firefox\":\n\t\t\tdriver = new FirefoxDriver();\n\t\t\tbreak;\n\t\t}\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\n\t}",
"public static void launchingBrowser() throws Exception {\n\n\t\tString applicationURL = merchEnv.getProtocol() + \"://\"\n\t\t\t\t+ merchEnv.getHost() + \":\" + merchEnv.getPort() + \"/\";\n\t\tselectedBrowser = merchEnv.getBrowser();\n\t\ttry {\n\t\t\tbaseScreen = new BaseScreen(selectedBrowser, applicationURL,\n\t\t\t\t\tmerchEnv.getContext(), merchEnv, merchUserInfo, merchUI);\n\t\t} catch (ScreenException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public static void openBrowser()\n\t{\n\t\tdriver = DriverSetup.getWebDriver(ReadPropertiesFile.getBrowser());\n\t\tdriver.get(ReadPropertiesFile.getURL());\n\t\tlog.info(\"Opening Browser\");\n\t\tlog.info(\"Practo website is launched \");\n\t}",
"@Given(\"^Open URL in chrome browser$\")\r\n\tpublic void open_URL_in_chrome_browser() {\n\t nop.Launch(\"chrome\", \"http://automationpractice.com/index.php\");\r\n\t}",
"public WebDriver launchBrowser(String browserName) {\n\n\t\tif (browserName.equals(\"chrome\")) {\n\t\t\t//System.setProperty(\"webdriver.chrome.driver\", \"/Users/naveenautomationlabs/Downloads/chromedriver\");\n\t\t\tWebDriverManager.chromedriver().setup();\n\t\t\tdriver = new ChromeDriver();\n\t\t} else if (browserName.equals(\"firefox\")) {\n\t\t\t//System.setProperty(\"webdriver.gecko.driver\", \"/Users/naveenautomationlabs/Downloads/geckodriver\");\n\t\t\tWebDriverManager.firefoxdriver().setup();\n\t\t\tdriver = new FirefoxDriver();\n\t\t} else if (browserName.equals(\"safari\")) {\n\t\t\tdriver = new SafariDriver();\n\t\t} else {\n\t\t\tSystem.out.println(\"please pass the correct browser....\");\n\t\t}\n\n\t\treturn driver;\n\t}",
"@Given(\"^user should launch the browser$\")\n\tpublic void user_should_launch_the_browser() throws Throwable {\n\t\tgetUrl(\"https://adactin.com/HotelAppBuild2/\");\n\t \n\t}",
"@Given(\"^the user launch chrome application$\")\r\n\tpublic void the_user_launch_chrome_application() throws Throwable {\n\t w.browser();\r\n\t}",
"public static void executeBrowser() throws Exception{\n\t\tinvokeMyBrowser();\n\t}",
"public void Open_Browser() \r\n\t{\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"drivers\\\\chromedriver.exe\");\r\n\t\t//Brower initiation\r\n\t\tdriver=new ChromeDriver();\r\n\t\t//maximize browser window\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\r\n\t}",
"public static void openBrowser() {\r\n\t\tString browser = prop.getProperty(\"browserType\").toLowerCase();\r\n\r\n\t\ttry {\r\n\t\t\tif (browser.equals(\"chrome\")) {\r\n\t\t\t\tSystem.setProperty(prop.getProperty(\"chromeName\"), prop.getProperty(\"chromePath\"));\r\n\t\t\t\tdriver = new ChromeDriver();\r\n\r\n\t\t\t} else if (browser.equals(\"ff\")) {\r\n\t\t\t\tSystem.setProperty(prop.getProperty(\"FFName\"), prop.getProperty(\"FFPath\"));\r\n\t\t\t\tdriver = new FirefoxDriver();\r\n\r\n\t\t\t} else if (browser.equals(\"ie\")) {\r\n\t\t\t\tSystem.setProperty(prop.getProperty(\"IEName\"), prop.getProperty(\"IEPath\"));\r\n\t\t\t\tdriver = new InternetExplorerDriver();\r\n\r\n\t\t\t} else {\r\n\t\t\t\tAssert.fail(\"Unable to find browser, Check EnvrionrmentData.properties file\");\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tAssert.fail(\"Unable to find browser, Check EnvrionrmentData.properties file\");\r\n\t\t}\r\n\t}",
"private static void openWebpage(String url) {\n try {\n new ProcessBuilder(\"x-www-browser\", url).start();\n } catch (IOException e) {\n log.error(e.getMessage(), e);\n }\n }",
"public void getBrowser(String browser, String url) {\n\n\n if (browser.equalsIgnoreCase(\"chrome\")) {\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n } else if (browser.equalsIgnoreCase(\"firefox\")) {\n WebDriverManager.firefoxdriver().setup();\n driver = new FirefoxDriver();\n }\n driver.manage().window().maximize();\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n driver.get(url);\n\n }",
"public static void main(String[] args) {\n\n BrowserService browser = null;\n switch (args[0].toLowerCase()) {\n case \"chrome\":\n browser = new Chrome();\n break;\n case \"safari\":\n browser = new Safari();\n break;\n default:\n System.err.println(\"Unsupported browser\");\n System.exit(1);\n }\n\n System.out.println(\"Opened \" + args[0]);\n //polymorphism is an ability to take different shapes\n //in Java interface data types can be initialized with Objects that implement the interface.\n //and this a runtime process. Dynamic binding.\n browser.navigate(args[1]);\n System.out.println(args[0] + \" navigated to \" + args[1]);\n getUrl(browser);\n }",
"@Parameters({\"Browser\"})\n\t@BeforeTest\n\tpublic void launchBrowser(String Browser){\t\t\n//Method invokes extent report with the given name\n//'**********************************************************\n\t\textentTest = extentReports.startTest(\"Registration and Add to Cart\");\n\t\tdriver = com.wipro.browser.LaunchBrowser.openBrowser(Browser);\n\t\textentTest.log(LogStatus.PASS, \"Browser Launched and accessed application\");\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t System.setProperty(\"webdriver.chrome.driver\", \"D:/workspace/chromedriver\");\r\n\t\t //System.setProperty(\"webdriver.chrome.driver\", ...);\r\n\t\t \r\n\t\t System.setProperty(\"selenide.browser\", \"Chrome\");\r\n\t\t Configuration.browser=\"chrome\";\r\n\t\t open(\"http://google.com\");\r\n\t\t //$(By.id(\"registerLink\")).pressEnter();\r\n\t\t }",
"@Parameters({\"browserName\"})\n\t@BeforeMethod\n\tpublic void openBrowser(String browserName) {\n\t\tString currentProjectPath = System.getProperty(\"user.dir\");\n\t\tSystem.out.println(\"Current project path is = \" + currentProjectPath);\n\t\t\n\t\tString currentOSname = System.getProperty(\"os.name\");\n\t\tSystem.out.println(\"Current OS name is = \" + currentOSname);\n\t\t\n\t\tif(browserName.equalsIgnoreCase(\"chrome\")) {\n\t\t\t//Open Chrome\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", currentProjectPath + \"\\\\browserDriverEXE\\\\chromedriver.exe\"); \n\t\t\tdriver = new ChromeDriver();\n\t\t}\n\t\t\n\t\telse if(browserName.equalsIgnoreCase(\"firefox\")) {\n\t\t\t//Open FF\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", currentProjectPath + \"\\\\browserDriverEXE\\\\geckodriver.exe\"); \n\t\t\tdriver = new FirefoxDriver();\n\t\t}\n\t\t\n\t\telse {\n\t\t\t//Open IE\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", currentProjectPath + \"\\\\browserDriverEXE\\\\IEDriverServer.exe\"); \n\t\t\tdriver = new InternetExplorerDriver();\n\t\t}\n\t\tdriver.manage().window().maximize();\n\t\t\n\t\t//refresh\n\t\t//driver.navigate().refresh();\n\t\t\n\t\t//driver.navigate().forward();\n\t\t\n\t\t//driver.navigate().back();\n\t\t\n\t\t//driver.manage().deleteAllCookies();\n\t\t\n\t\t//imp wait\n\t\t//driver.manage().timeouts().setScriptTimeout(10, TimeUnit.MINUTES);\n\t\t//driver.manage().timeouts().pageLoadTimeout(5, TimeUnit.SECONDS);\n\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t}",
"@Given(\"^I go to \\\"([^\\\"]*)\\\" on \\\"([^\\\"]*)\\\"$\") \n\tpublic void openWebPage(String url, String browser){\n\t\tString result = selenium.openBrowser(browser);\n\t\tAssert.assertEquals(selenium.result_pass, result);\n\t\tString result2 = selenium.navigate(url);\n\t\tAssert.assertEquals(selenium.result_pass, result2);\n\t}",
"public static void openBrowser() {\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n // === Google Chrome Browsers === //\n CHOSEN_BROWSER = CHROME;\n driver.manage().window().maximize();\n }",
"@BeforeTest\r\n\tpublic void launch()\r\n\t{\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Yogini\\\\chromedriver\\\\chromedriver.exe\"); //location of browser in local drive\r\n\t\tWebDriver driver = new ChromeDriver(); \r\n\t\tdriver.get(tobj.url);\r\n\t\tSystem.out.println(\"Before test, browser is launched\");\r\n\t}",
"@Given(\"^the user launch the chrome application$\")\r\n\tpublic void the_user_launch_the_chrome_application() throws Throwable {\n\t\tlaunchBrowser(\"chrome\");\r\n\t\t register= new Para_Registartion_page(driver);\r\n\t}",
"public static WebDriver startBrowser() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./driver/chromedriver.exe\");\n\t\t\n\t\t// Create ChromeDriver object, launch Chrome browser\n\t\t WebDriver driver = new ChromeDriver();\n\t\t \n\t\t// Create ChromeDriver object, launch Chrome browser\n\t\tdriver.get(\"http://techfios.com/test/107/\");\n\t\treturn driver;\n\t}",
"public FirefoxDriver openBrowser(String site){\n System.setProperty(\"webdriver.gecko.driver\", \"c:\\\\Utils\\\\geckodriver.exe\");\n FirefoxDriver browser = new FirefoxDriver();\n browser.get(site);\n return browser;\n }",
"@Parameters(\"BROWSER\")\n\t@BeforeClass(groups = {\"Smoke Test\",\"Regression Test\"})\n\tpublic void launchBrowser(String BROWSER) throws IOException \n\t{\n\n\t\tif(BROWSER.equalsIgnoreCase(\"Chrome\")) \n\t\t{\n\t\t\tdriver= new ChromeDriver();\n\t\t}\n\t\telse if (BROWSER.equalsIgnoreCase(\"Firefox\"))\n\t\t{\n\t\t\tdriver= new FirefoxDriver();\n\t\t}\n\t\telse {\n\t\t\tdriver= new ChromeDriver();\n\t\t}\n\t\t//String url = System.getProperty(\"URL\");\n\n\t\tdriver.get(fileutility.readDatafrompropfile(\"url\"));\n\t\twdu.maximizewindow(driver);\n\t\twdu.pageloadtimeout(driver);\n\t\tstaticdriver=driver;\n\t}",
"private void openUrl() throws IOException, URISyntaxException{\r\n if(Desktop.isDesktopSupported()){\r\n Desktop desktop = Desktop.getDesktop();\r\n desktop.browse(new URI(url));\r\n } else {\r\n Runtime runtime = Runtime.getRuntime();\r\n runtime.exec(\"xdg-open \" + url);\r\n }\r\n }",
"public void openBrowser(View view){\n String url = (String)view.getTag();\n\n Intent intent = new Intent();\n intent.setAction(Intent.ACTION_VIEW);\n intent.addCategory(Intent.CATEGORY_BROWSABLE);\n\n //pass the url to intent data\n intent.setData(Uri.parse(url));\n\n startActivity(intent);\n }",
"@Given(\"^Launch the page$\")\r\n\tpublic void launch_the_page() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./driver/chromedrivernew.exe\");\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\tdriver.get(\"http://realestate.upskills.in\");\r\n\t \t}",
"private boolean openBrowser(IProgressMonitor monitor) {\n\n monitor.subTask(\"Open index page\");\n // FIXME: port should come from the config files\n Display.getDefault().syncExec(new Runnable() {\n public void run() {\n URL url;\n try {\n url = new URL(\"http://localhost:8888\");\n IWorkbenchBrowserSupport browserSupport = WebBrowserUIPlugin\n .getInstance().getWorkbench().getBrowserSupport();\n IWebBrowser browser = browserSupport.createBrowser(\n IWorkbenchBrowserSupport.LOCATION_BAR\n | IWorkbenchBrowserSupport.NAVIGATION_BAR,\n null, null, null);\n browser.openURL(url);\n } catch (Exception e) {\n Trace.trace(Trace.SEVERE, \"Error opening browser\", e);\n }\n }\n });\n\n monitor.worked(3);\n return true;\n }",
"public static void InvokeBrowser() {\n\t\tString currentDir = System.getProperty(\"user.dir\");\n\t\tSystem.out.println(\"Current Directory \"+currentDir);\n\t\tDesiredCapabilities capabilities = DesiredCapabilities.chrome();\n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"--incognito\");\n\t\tcapabilities.setCapability(ChromeOptions.CAPABILITY, options);\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\tcurrentDir+\"/lib/chromedriver/36/chromedriver.exe\");\n\t\tdriver = new ChromeDriver(capabilities);\n\t\tdriver.manage().window().maximize();\n\t\t//driver.navigate().to(URL);\n\t\t//logger.info(\"URL to proceed with transaction --> \"+URL);\n\t\t/*BestBuyAddCart.addToCart();\n\t\tdriver.close();\n\t\tdriver.quit();*/\n\t}",
"public RemoteWebDriver startApp(String url) {\n\t\treturn startApp(\"chrome\", url);\r\n\t}",
"public static void main(String[] args) throws Exception {\n\t\t\r\n\t\tDifferent_Browser.call_Firefox();\r\n\t\tDifferent_Browser.get_Google();\r\n\t\tDifferent_Browser.close_browser();\r\n\t\t\r\n//\t\tDifferent_Browser.call_chrome();\r\n//\t\tDifferent_Browser.get_Google();\r\n//\t\tDifferent_Browser.close_browser();\r\n\t}",
"public void chromeLaunch() {\n\t\tSystem.setProperty(key, value);\n\t\ts=new ChromeDriver();\n\t\ts.manage().window().maximize();\n\t\ts.navigate().to(url);\n\t}",
"public Runner( String browser )\n {\n browser = browser.toUpperCase();\n if (browser.equals(\"FIREFOX\"))\n {\n driver = new FirefoxDriver();\n }\n if(browser.equals(\"CHROME\"))\n {\n driver = new ChromeDriver();\n }\n\n driver.get(\"http://kuku-kube.com\");\n }",
"@Test\r\n\tpublic void launch_browser()\r\n\t{ \r\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C://TESTING TOOLS - SOFTWARES/chromedriver.exe\");\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\tdriver.get(\"https://www.javatpoint.com/\");\r\n\t\t// remove all cookies\r\n\t\t//driver.manage().deleteAllCookies();\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n WebDriverManager.chromedriver().setup();\n\n // create object for using selenium driver;\n WebDriver driver=new ChromeDriver();\n\n //open browser\n driver.get(\"http://amazon.com\");// bumu exlaydu\n //driver.get(\"http://google.com\");\n // open website\n System.out.println(driver.getTitle());\n\n\n\n\n }",
"protected void openInNewBrowser(SelectEvent event, String url)\n {\n try\n {\n BrowserOpener.browse(new URL(url));\n event.consume();\n }\n catch (Exception e)\n {\n String message = Logging.getMessage(\"generic.ExceptionAttemptingToInvokeWebBrower\", url);\n Logging.logger().warning(message);\n }\n }",
"@BeforeTest\r\n public void launchBrowser() {\n System.setProperty(\"webdriver.chrome.driver\", ChromePath);\r\n driver= new ChromeDriver();\r\n driver.manage().window().maximize();\r\n driver.get(titulo);\r\n }",
"public static void openBrowser(String browserType) {\n\t\t\tif (\"chrome\".equals(browserType.toLowerCase())) {\n\t\t\t\tsetChromeDriverProperty();\n\t\t\t\tChromeOptions options = setChromeOptions();\n\t\t\t\twebdriver = new ChromeDriver(options);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Browser type \" + browserType + \" hasn't been handled yet.\");\n\t\t\t\tReports.logAMessage(LogStatus.ERROR, \"Browser type \" + browserType + \" hasn't been handled yet.\");\n\t\t\t}\n\t\t}",
"void setBrowser(String browser);",
"private void openBrowser() {\r\n //http://必须有\r\n String url = urlText.getText().toString();\r\n if (!\"http\".equals(url.substring(0, 4))) {\r\n url = \"http://\" + url;\r\n }\r\n Uri uri = Uri.parse(url);//获取网址,并转换成URI\r\n Intent intent = new Intent(Intent.ACTION_VIEW, uri);//打开浏览器\r\n startActivity(intent);\r\n }",
"public void openUrlInBrowser(String URL) {}",
"@Before\n public synchronized static WebDriver openBrowser() {\n String browser = System.getProperty(\"BROWSER\");\n\n\n if (driver == null) {\n try {\n //Kiem tra BROWSER = null -> gan = chrome\n if (browser == null) {\n browser = System.getenv(\"BROWSER\");\n if (browser == null) {\n browser = \"chrome\";\n }\n }\n switch (browser) {\n case \"chrome\":\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n break;\n case \"firefox\":\n WebDriverManager.firefoxdriver().setup();\n driver = new FirefoxDriver();\n break;\n case \"chrome_headless\":\n WebDriverManager.chromedriver().setup();\n ChromeOptions options = new ChromeOptions();\n options.addArguments(\"headless\");\n options.addArguments(\"window-size=1366x768\");\n driver = new ChromeDriver(options);\n break;\n default:\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n break;\n }\n } catch (UnreachableBrowserException e) {\n driver = new ChromeDriver();\n } catch (WebDriverException e) {\n driver = new ChromeDriver();\n } finally {\n Runtime.getRuntime().addShutdownHook(new Thread(new BrowserCleanup()));\n }\n driver.get(\"http://demo.guru99.com/v4/\");\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n driver.manage().window().maximize();\n log.info(\"----------- START BRWOSER -----------\");\n\n }\n return driver;\n }",
"public void openBrowser(Context context, String url) {\n Intent i = new Intent(Intent.ACTION_VIEW);\n i.setData(Uri.parse(url));\n context.startActivity(i);\n }",
"public WebDriver LaunchChromeBrowserReturnIt() {\n\t\ttry {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\t\t\"/TestSuit/lib/chromedriver.exe\");\n\t\t\tdriver = new ChromeDriver(); // Launch chrome\n\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn driver;\n\n\t}",
"private void openBrowser(String Url) {\n \tif (Url != null && Url.trim().length()>0) {\n \t\tUri uri = Uri.parse(Url);\n \tIntent i = new Intent(Intent.ACTION_VIEW, uri);\n \tstartActivity(i);\n \t} \t\n }",
"public static WebDriver selectBrowser(String browser){\r\n\t\tif(browser.equalsIgnoreCase(\"firefox\")){\r\n\t\t\tdriver = new FirefoxDriver();\r\n\t\t\tdriver.manage().window().maximize();\r\n\t\t\treturn driver;\r\n\t\t}else if(browser.equalsIgnoreCase(\"chrome\")){\r\n\t\t\tSystem.out.println(\"chrome browser\");\r\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", System.getProperty(\"user.dir\")+\"chromedriver.exe\");\r\n\t\t\tdriver = new ChromeDriver();\r\n\t\t\tdriver.manage().window().maximize();\r\n\t\t\treturn driver;\r\n\t\t} else if(browser.equalsIgnoreCase(\"IE\")){\r\n\t\t\tSystem.out.println(\"Internet Explorer\");\r\n\t\t\tSystem.setProperty(\"webdriver.IE.driver\", System.getProperty(\"user.dir\")+\"iexplore.exe\");\r\n\t\t\tdriver = new InternetExplorerDriver();\r\n\t\t\tdriver.manage().window().maximize();\r\n\t\t\treturn driver;\r\n\t}\r\n\t\treturn null;\r\n\t}",
"@Given(\"browser is open\")\n\tpublic void browser_is_open() {\n\t\tSystem.out.println(\"browseris open\");\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"/home/rahul/Desktop\");\n\t\tdriver=new ChromeDriver();\n\t\tdriver.manage().timeouts().implicitlyWait(40,TimeUnit.SECONDS);\n\t\t\n\t}",
"public void openURL(String url) {\r\n\t\t\r\n\t\tfinal String errMsg = \"Error attempting to launch web browser\";\r\n\t\tString osName = System.getProperty(\"os.name\");\r\n\t\ttry {\r\n\t\t\tif (osName.startsWith(\"Mac OS\")) {\r\n\t\t\t\tClass fileMgr = Class.forName(\"com.apple.eio.FileManager\");\r\n\t\t\t\tMethod openURL = fileMgr.getDeclaredMethod(\"openURL\",\r\n\t\t\t\t\t\tnew Class[] {String.class});\r\n\t\t\t\topenURL.invoke(null, new Object[] {url});\r\n\t\t\t}\r\n\t\t\telse if (osName.startsWith(\"Windows\"))\r\n\t\t\t\tRuntime.getRuntime().exec(\"rundll32 url.dll,FileProtocolHandler \" + url);\r\n\t\t\telse { //assume Unix or Linux\r\n\t\t\t\tString[] browsers = {\r\n\t\t\t\t\t\t\"firefox\", \"opera\", \"konqueror\", \"epiphany\", \"mozilla\", \"netscape\" };\r\n\t\t\t\tString browser = null;\r\n\t\t\t\tfor (int count = 0; count < browsers.length && browser == null; count++)\r\n\t\t\t\t\tif (Runtime.getRuntime().exec(\r\n\t\t\t\t\t\t\tnew String[] {\"which\", browsers[count]}).waitFor() == 0)\r\n\t\t\t\t\t\tbrowser = browsers[count];\r\n\t\t\t\tif (browser == null)\r\n\t\t\t\t\tthrow new Exception(\"Could not find web browser\");\r\n\t\t\t\telse\r\n\t\t\t\t\tRuntime.getRuntime().exec(new String[] {browser, url});\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n//\t\t\tJOptionPane.showMessageDialog(null, errMsg + \":\\n\" + e.getLocalizedMessage());\r\n\t\t\tAboutDialog dlgSupport = new AboutDialog(actController.getUIInstance(), \"Support\", \t\"<html> Couldn't find web browser!\"+ \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"<br> Please start your browser and type in the following URL:\"+\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"<br> www.battleship.bymaxe.de</html>\");\r\n\t\t}\r\n\t}",
"public void openBrowser(String url) {\n System.setProperty(\"webdriver.chrome.driver\", \"c:\\\\webdriver\\\\chromedriver.exe\");\n driver = new ChromeDriver();\n driver.manage().window().maximize();\n// int timeout = Integer.parseInt(ApplicationConfig.readConfigProperties(\"config-week17project.properties\", \"timeout\"));\n int timeout = Integer.parseInt(testData.timeout);\n driver.manage().timeouts().pageLoadTimeout(timeout, TimeUnit.SECONDS);\n driver.get(url);\n }",
"@Parameters(\"browser\")\n private void switchBrowser(String browser) {\n if (browser.equals(DRIVER_TYPE.IE.name())) {\n System.setProperty(\"webdriver.ie.driver\", \"src/test/resources/driver/IEDriverServer.exe\");\n driver = new InternetExplorerDriver();\n } else {\n System.setProperty(\"webdriver.chrome.driver\", \"src/test/resources/driver/chromedriver.exe\");\n driver = new ChromeDriver();\n }\n }",
"public static void setup(String browser) throws Exception{\n if(browser.equalsIgnoreCase(\"firefox\")){\n \tFile pathToBinary = new File(\"C:\\\\Program Files (x86)\\\\Mozilla Firefox 41\\\\firefox.exe\");\n \tFirefoxBinary binary = new FirefoxBinary(pathToBinary);\n \tFirefoxDriver driver = new FirefoxDriver(binary, new FirefoxProfile());\n \t\n \t//System.setProperty(\"webdriver.firefox.driver\",\"C:\\\\Program Files (x86)\\\\Mozilla Firefox\\\\firefox.exe\");\n \t/*DesiredCapabilities capabilies = DesiredCapabilities.firefox();\t\t\t\n capabilies.getBrowserName();\n capabilies.getVersion();*/\n \t\t\t\n \t//create Firefox instance\t \n //driver = new FirefoxDriver(); \n System.out.println(\"Browser Used: \"+browser);\n }\t \n //Check if parameter passed is 'Chrome'\n // https://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/chrome/ChromeOptions.html\n // http://www.programcreek.com/java-api-examples/index.php?api=org.openqa.selenium.remote.DesiredCapabilities (Singleton)\n else if(browser.equalsIgnoreCase(\"chrome\")){\t \t \n System.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Selenium\\\\Assets\\\\chromedriver.exe\");\n ChromeOptions opt = new ChromeOptions();\n opt.setBinary(\"C:\\\\Selenium\\\\Assets\\\\chromedriver.exe\");\n opt.setExperimentalOption(\"Browser\", \"Chrome\");\n opt.getExperimentalOption(\"version\");\n \n// DesiredCapabilities capabilies = DesiredCapabilities.chrome();\n// capabilies.setBrowserName(\"chrome\");\n// capabilies.setPlatform(Platform.WINDOWS);\n// capabilies.setVersion(\"38\");\n// DesiredCapabilities capabilities = new DesiredCapabilities();\n \n //Create Chrome instance\n driver = new ChromeDriver(opt);\t \n }\n \n //Check if parameter passed is 'Safari'\t\n else if(browser.equalsIgnoreCase(\"safari\")){\t \t \n \tSystem.setProperty(\"webdriver.safari.driver\",\"C:/safaridriver.exe\");\n \t\n \t//System.setProperty(\"webdriver.safari.noinstall\", \"true\");\n \tdriver = new SafariDriver();\n \t\n /*\tSafariOptions options = new SafariOptions();\n \tSafariDriver driver = new SafariDriver(options);\n \tDesiredCapabilities capabilities = DesiredCapabilities.safari();\n \tcapabilities.setCapability(SafariOptions.CAPABILITY, options);*/\n }\n \n //Check if parameter passed is 'IE'\t \n else if(browser.equalsIgnoreCase(\"ie\")){\n \t//String IE32 = \"C:\\\\Selenium\\\\Assets\\\\IEDriverServer_32.exe\"; //IE 32 bit\n\t\t\tString IE64 = \"C:\\\\Selenium\\\\Assets\\\\IEDriverServer_64.exe\"; //IE 64 bit\n \tSystem.setProperty(\"webdriver.ie.driver\",IE64);\n \t\n /* \tDesiredCapabilities capabilies = DesiredCapabilities.internetExplorer();\n \tcapabilies.setBrowserName(\"ie\");\n capabilies.getBrowserName();\n capabilies.getPlatform();\n capabilies.getVersion();*/\n \n \t//Create IE instance\n \tdriver = new InternetExplorerDriver();\n }\t \n else{\t \n //If no browser passed throw exception\t \n throw new Exception(\"Browser is not correct\");\t \n }\t \n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\t\t\n\t}",
"void browserMethod();",
"public static void main(String[] args)\n\t{\n\t\tInvokeFirefox firefox = new InvokeFirefox();\n\t\tfirefox.Maximize();\n\t\tfirefox.GoTo(\"http://www.google.com\");\n\t\tfirefox.ShutDown(1500);\n\t\tEnd();\n\t}",
"private WebDriver startWebDriver(String browser) {\n\t\tString msg = \">>> DRIVER : %s TestCase %s\";\n\t\tif (driver == null) {\n\t\t\t// driver is not started so we start it\n\t\t\tdriver = BrowserFactory.create(BROWSERS.valueOf(browser));\n\n\t\t\tif (driver != null)\n\t\t\t\tSystem.out.println(String.format(msg, driver.getWindowHandle(), this));\n\t\t}\n\t\treturn driver;\n\t}",
"private void toUrl(String url){\n Uri uriUrl = Uri.parse(url);\n Intent launchBrowser = new Intent(Intent.ACTION_VIEW, uriUrl);\n startActivity(launchBrowser);\n }",
"private static WebDriver launchChrome()\n\t{\n\t\tif (REMOTE_URL != null && !REMOTE_URL.equals(\"\")) {\n\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.chrome();\n\t\t\ttry {\n\n\t\t\t\treturn new RemoteWebDriver(new URL(System.getProperty(\"RemoteUrl\")), capabilities);\n\t\t\t}\n\n\n\t\t\tcatch (MalformedURLException e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\n\t\telse\n\t\t{\n\t\tURL chromeDriverURL = BrowserDriver.class.getResource(\"/drivers/chromedriver.exe\");\n\t\tFile file = new File(chromeDriverURL.getFile()); \n\t\tSystem.setProperty(ChromeDriverService.CHROME_DRIVER_EXE_PROPERTY, file.getAbsolutePath());\n\t\t\n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"--start-maximized\");\n\t\toptions.addArguments(\"--ignore-certificate-errors\");\n\t\t\n\t\treturn new ChromeDriver(options);\n\t\t}\n\t}",
"void openInAppBrowser(String url, String title, String subtitle, int errorMsg);",
"public static void main(String[] args) {\n\t\tinvokeFirefoxBrowser();\n\t\t\n\t\t//Enter the URL\n\t\tenterURL(\"https://demoqa.com/buttons\");\n\t\t\n\t}",
"@Given(\"^I go to \\\"([^\\\"]*)\\\" on \\\"([^\\\"]*)\\\"$\")\n\t\tpublic void i_go_to_on(String URL, String browser) {\n\t\t\t\t System.out.println(\"I am going to \"+URL+ \" on \" +browser);\n\t\t\t\t selenium.openBrowser(browser);\n\t\t\t\t selenium.navigate(URL);\n\t\t\t\t /*try {\n\t\t\t\t\tselenium.takeScreenShot();\n\t\t\t\t\tSystem.out.println(\"take screen shot\");\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}*/\n\t\t}",
"public static void main(String[] args) {\nString browser=\"ff\";\nif (browser.equals(\"chrome\")) {\n\tWebDriverManager.chromedriver().setup();\n\t// System.setProperty(\"webdriver.chrome.driver\", \"/Users/user/Downloads/chromedriver\");\n\tdriver=new ChromeDriver();\n}\nelse if (browser.equals(\"ff\")) {\n\tWebDriverManager.firefoxdriver().setup();\n\tdriver=new FirefoxDriver();\n}\nelse\n\tif (browser.equals(\"IE\")) {\n\t\tWebDriverManager.iedriver().setup();\n\t\tdriver=new InternetExplorerDriver();\n\t}\n\telse\n\t\tif (browser.equals(\"opera\")) {\n\t\t\tWebDriverManager.operadriver().setup();\n\t\t\tdriver=new OperaDriver();\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"no defined driver\");\n\t\t}\n\n\ndriver.get(\"https://google.com\");\n\n\n\n\t\n\n\n\n\n\n\n\n\n\n\n\n\t}",
"@Override\n\tpublic boolean openURL(final String url) {\n\t\ttry {\n\t\t\tURI uri = new URI(url);\n\t\t\tif(Desktop.isDesktopSupported()) {\n\t\t\t\tfinal Desktop desktop = Desktop.getDesktop();\n\t\t\t\tdesktop.browse(uri);\n\t\t\t}\n\t\t\telse { //fallback if desktop API not supported\n\t\t\t\tfor (final String browser : BROWSERS) {\n\t\t\t\t\tString cmd = browser + \" \" + url;\n\t\t\t\t\tfinal Process p = Runtime.getRuntime().exec(cmd);\n\t\t\t\t\tif(p.waitFor() == 0)\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException ioe) {\n\t\t\tJOptionPane.showInputDialog(null, \"There was an error while attempting to open the system browser. \"\n\t\t\t\t\t+ \"\\nPlease copy and paste the following URL into your browser:\", url);\n\t\t\tlogger.info(\"Error opening system browser; displaying copyable link instead\");\n\t\t} catch (URISyntaxException e) {\n\t\t\tlogger.warn(\"This URI is invalid: \" + url, e);\n\t\t\treturn false;\n\t\t} catch (InterruptedException e) {\n\t\t\tlogger.warn(\"Browser process thread interrupted\");\n\t\t}\n\t\treturn true;\n\t}",
"public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.firefox.bin\", \"C:\\\\Program Files\\\\Nightly\\\\firefox.exe\");\n\t\tSystem.setProperty(\"webdriver.gecko.driver\", \"G:\\\\WebUITests\\\\src\\\\test\\\\resources\\\\Drivers\\\\geckodriver.exe\");\n\t\t//System.setProperty(\"webdriver.gecko.driver\", \"G:\\\\geckodriver-v0.18.0-win64\\\\geckodriver.exe\");\n\t\t\n\t\tDesiredCapabilities capabilities=DesiredCapabilities.firefox();\n\t\tcapabilities.setCapability(\"marionette\", true);\n\t\tWebDriver driver = new FirefoxDriver(capabilities);\n\t\t//driver.navigate().to(\"http://www.google.com\");\n\t\tdriver.get(\"http://www.google.com\");\n\t\tdriver.quit();\n\t}",
"public static void openBrowser(String browserType) {\n if(browserType.equalsIgnoreCase(CHROME)) {\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n CHOSEN_BROWSER = CHROME;\n }\n else if(browserType.equalsIgnoreCase(EDGE)) {\n WebDriverManager.edgedriver().setup();\n driver = new EdgeDriver();\n CHOSEN_BROWSER = EDGE;\n }\n else if(browserType.equalsIgnoreCase(FIREFOX)) {\n WebDriverManager.firefoxdriver().setup();\n driver = new FirefoxDriver();\n CHOSEN_BROWSER = FIREFOX;\n }\n }",
"public void browser() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src/test/resources/Driver/chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.manage().window().maximize();// maximize the window\n\t\tdriver.manage().timeouts().implicitlyWait(50, TimeUnit.SECONDS);\n\n\t}",
"public static void main(String[] args) {\n\n\n WebDriver driver = WebDriverFactory.getDriver(\"CHROME\");\n driver.get(\"http://google.com\");\n driver.navigate().to(\"https://amazon.com\");\n driver.navigate().back();\n\n driver.close();\n\n WebDriver driver2 = WebDriverFactory.getDriver(\"FIREFOX\");\n driver2.get(\"https://www.mozilla.org\");\n\n\n driver2.close();\n }",
"@Test\n\t@BeforeSuite\n\tpublic void OpenBrowser() throws InterruptedException {\n\t\t\n\t\tdriver = new FirefoxDriver();\n\t\tdriver.get(\"https://www.gmail.com\");\n\t\tmanageInit();\n\t\n\t}",
"public static void main(String[] args) {\n\r\n\t\tWorkingwithfirefox wc = new Workingwithfirefox();\r\n\t\t\r\n\t\twc.invokeBroser();\r\n\t\twc.getTitleOfThePage();\r\n\t\twc.closeBrowser();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"public static void main(String[] args) throws Exception{\n\n WebDriverManager.chromedriver().setup();\n\n WebDriver driver = new ChromeDriver();\n\n driver.get(\"http://practice.cybertekschool.com/open_new_tab\");\n\n Thread.sleep(4000);\n\n //driver.close(); //expected to close the original one\n driver.quit(); //all window will be closed\n\n\n\n\n }",
"public static void main(String[] args) throws MalformedURLException {\n\t\t\n\t\tDesiredCapabilities objRc=new DesiredCapabilities();\n\t\tobjRc.setBrowserName(\"chrome\");\n\t\tobjRc.setPlatform(Platform.WINDOWS);\n\t\tWebDriver driver=new RemoteWebDriver(new URL(\"http://localhost:4546/wd/hub\"),objRc);\n\t}",
"@Test\n @Given(\"I launch browser\")\n public void s01_BrowserMaximizeLaunch() {\n System.setProperty(\"webdriver.chrome.driver\", \"src/ChromeDriver.exe\");\n// Init new instance of ChromeDriver.\n driver = new ChromeDriver();\n// Maximise browser window\n driver.manage().window().maximize();\n System.out.println(\"Step01 PASSED\");\n }",
"public <T extends Application<?, ?>> T launch(Class<T> appClass, String desiredUrl) {\r\n\t\tT result = super.launch(WindowManager.class, appClass, objectWhichChecksWebDriver);\r\n\t\tBrowserWindow window = (BrowserWindow) result.getHandle();\t\t\r\n\t\twindow.to(desiredUrl);\t\t\r\n\t\treturn result;\r\n\t}",
"public static void main(String[] args) {\n WebDriver driver = WebDriverFactory.getDriver(\"chrome\");\n driver.manage().window().maximize();\n\n\n }",
"public static void main(final String[] args) {\n Browser.parseCommandLineArgsAndLaunch(args);\n }",
"@BeforeTest //special type of testng method which alway run before.\r\n\t\t\tpublic void openBrowser() {\r\n\t\t\t\tWebDriverManager.chromedriver().setup();\r\n\t\t\t\tdriver = new ChromeDriver();\r\n\t\t\t\tdriver.get(\"https://locator.chase.com/\");\r\n\t\t\t}",
"public static void main(String[] args) {\n\n\n WebDriverManager.chromedriver().setup();\n WebDriver driver = new ChromeDriver();\n\n //difference between get and navigate is get will w8 for page to load fully yet navigate wont\n// driver.get(\"http://www.facebook.com\");\n driver.navigate().to(\"http://www.facebook.com\");\n driver.navigate().to(\"http://www.google.com\");\n driver.navigate().back();\n driver.navigate().forward();\n driver.navigate().refresh();\n\n\n slpBrowser(2000);\n qBrowser(driver);\n System.out.println(\"Test Done\");\n }",
"public static void main(String[] args) {\n String url = ConfigurationReader.getProperty(\"url\");\n\n Driver.get().get(url);\n\n BrowserUtils.wait(2);\n Driver.close();\n\n }",
"private void openPage(String address)\n {\n String os = System.getProperty(\"os.name\").toLowerCase();\n \n if(os.contains(\"win\"))\n {\n if(Desktop.isDesktopSupported())\n {\n Desktop desktop = Desktop.getDesktop();\n if(desktop.isSupported(Desktop.Action.BROWSE))\n {\n try { desktop.browse(new URI(address)); }\n\n catch(IOException | URISyntaxException e)\n {\n JOptionPane.showMessageDialog(null, \"Could not open page\");\n }\n }\n }\n }\n \n else \n JOptionPane.showMessageDialog(null, \"Cannot open page, system is not supported\");\n }",
"public static void main(String[] args) {\n\t\tString driverPath = System.getProperty(\"user.dir\")+\"\\\\src\\\\drivers\\\\chromedriver.exe\";\n\t\t////D:\\2021\\Batches_DATA\\SDET_0301\\LearnSelenium_03_01\\WebDriverBasics\n\t\t//System.out.println(\"path - \"+ driverPath);\n\t\t//D:\\2021\\Batches_DATA\\SDET_0301\\LearnSelenium_03_01\\WebDriverBasics\\src\\drivers\\chromedriver.exe\n\t\t//D:\\2021\\Batches_DATA\\SDET_0301\\LearnSelenium_03_01\\WebDriverBasics\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", driverPath);\n\t\t\n\t\tWebDriver chDriver = new ChromeDriver();//complex object\n\t\t//maximize\n\t\tchDriver.manage().window().maximize();\n\t\t\n\t\tchDriver.get(\"https://opensource-demo.orangehrmlive.com/\");\n\t\t\n\t\t//Webdriver -Interface, driver - ref var, CHromeDriver-class\n\t\t\n\t\t\n\t\t//Firefox Browser:\n//\t\tString ffDriverPath = System.getProperty(\"user.dir\")+\"\\\\src\\\\drivers\\\\geckodriver.exe\";\n//\t\tSystem.setProperty(\"webdriver.gecko.driver\", ffDriverPath);\n//\t\tWebDriver ffDriver = new FirefoxDriver();//complex object\n\t\t\n\t\t//get the current Url, title of application\n\t\t\n\t\t//chDriver.close();\n\t\t\n\n\t}",
"public void openApp(String Url) {\n\t\tfd = new FirefoxDriver();\r\n\t\tfd.get(Url);\r\n\t\tfd.manage().window().maximize();\r\n\t}",
"public String openBrowser(String object, String data) throws IOException, InterruptedException {\r\n\t\tAPP_LOGS.debug(\"Browser Opening Method Start\");\r\n\t\tString os = System.getProperty(\"os.name\");\r\n\t\tRuntime.getRuntime().exec(\"taskkill /F /IM safari.exe\");\r\n//Runtime.getRuntime().exec(\"taskkill /F /IM chromedriver.exe\");\r\n\t\tRuntime.getRuntime().exec(\"taskkill /F /IM opera.exe\");\r\n\t\tif (CONFIG.getProperty(\"browserType\").contains(\",\")) {\r\n\t\t\tdata = currentBrowser;\r\n\t\t}\r\n\t\tif (os.contains(\"Windows\")) {\r\n\t\t\tif (data.equals(\"Mozilla\")) {\r\n\r\n\t\t\t\tAPP_LOGS.debug(\"Mozilla Browser Opening Method Start\");\r\n\t\t\t\t// Runtime.getRuntime().exec(\"taskkill /F /IM firefox.exe\");\r\n\t\t\t\tThread.sleep(10000);\r\n\t\t\t\tdriver = new FirefoxDriver();\r\n\t\t\t\tdriver.manage().window().maximize();\r\n\t\t\t} else if (data.equals(\"IE\")) {\r\n\t\t\t\tAPP_LOGS.debug(\"IE Browser Opening Method START\");\r\n\t\t\t\tRuntime.getRuntime().exec(\"taskkill /F /IM iexplore.exe\");\r\n\t\t\t\tSystem.setProperty(\"webdriver.ie.driver\", CONFIG.getProperty(\"IEDriver\"));\r\n\t\t\t\tdriver = new InternetExplorerDriver();\r\n\t\t\t\tdriver.manage().window().maximize();\r\n\t\t\t} else if (data.equals(\"Chrome\")) {\r\n\t\t\t\tAPP_LOGS.debug(\"Chrome Browser Opening Method Start\");\r\n\t\t\t\tDesiredCapabilities capability = DesiredCapabilities.chrome();\r\n\t\t\t\t// To Accept SSL certificate\r\n\t\t\t\tcapability.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\r\n\r\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", CONFIG.getProperty(\"ChromeDriver\"));\r\n\t\t\t\tThread.sleep(10000);\r\n\r\n\t\t\t\tdriver = new ChromeDriver();\r\n\t\t\t\tdriver.manage().window().maximize();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(2000);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tAPP_LOGS.debug(\"Browser Opening Method End\");\r\n\t\t\t}\r\n\r\n\t\t\tlong implicitWaitTime = Long.parseLong(CONFIG.getProperty(\"implicitwait\"));\r\n\t\t\tdriver.manage().timeouts().implicitlyWait(implicitWaitTime, TimeUnit.SECONDS);\r\n\t\t\tdriver.manage().window().maximize();\r\n\t\t\treturn Constants.KEYWORD_PASS;\r\n\r\n\t\t}\r\n\t\treturn os;\r\n\t}",
"public static void main(String[] args) throws MalformedURLException {\n\t\t\r\n\t\tChromeOptions chromeoptions=new ChromeOptions();\r\n\t\tWebDriver driver=new RemoteWebDriver(new URL(\"http://192.168.225.206:6878/wd/hub\"),chromeoptions);\r\n\t\t\r\n\t\tdriver.get(\"http://opensource.demo.orangehrmlive.com\");\r\n\t\tSystem.out.println(\"URL opened\");\r\n\r\n\t}",
"public void open() {\n setWebDriver();\n }",
"public WebDriver openBrowser(String object, String data) {\n\n\t\ttry {\n\n\t\t\tString osName = System.getProperty(\"os.name\");\n\n\t\t\tlogger.debug(osName + \" platform detected\");\n\n\t\t\tosName = osName.toLowerCase();\n\n\t\t\tlogger.debug(osName);\n\n\t\t\tif (osName.indexOf(\"win\") >= 0) {\n\n\t\t\t\tif (driver == null) {\n\n\t\t\t\t\tlogger.debug(\"Opening browser\");\n\n\t\t\t\t\tif (data.equals(\"Mozilla\")) {\n\t\t\t\t\t\t/*Added by nitin gupta on 23/03/2016\n\t\t\t\t\t\t * This code is used to start firefox under proxy for ZAP\n\t\t\t\t\t\t */\n\t\t\t\t\t\t\n\t\t\t\t\t\tDesiredCapabilities capabilities = new DesiredCapabilities();\n\t\t\t\t\t\tif(CONFIG.getProperty(\"ZAP\").equals(Constants.RUNMODE_YES))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t Proxy proxy = new Proxy();\n\t\t\t\t proxy.setHttpProxy(CONFIG.getProperty(\"server\")+\":\"+CONFIG.getProperty(\"port\"));\n\t\t\t\t proxy.setFtpProxy(CONFIG.getProperty(\"server\")+\":\"+CONFIG.getProperty(\"port\"));\n\t\t\t\t proxy.setSslProxy(CONFIG.getProperty(\"server\")+\":\"+CONFIG.getProperty(\"port\"));\n\t\t\t\t capabilities.setCapability(CapabilityType.PROXY, proxy);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tFirefoxProfile profile = new FirefoxProfile();\n\t\t\t\t\t\tString sep = System.getProperty(\"file.separator\");\n\t\t\t\t\t\tFile dir=new File( System.getProperty(\"user.dir\")+ sep + \"externalFiles\" + sep + \"downloadFiles\");\n\t\t\t\t\t\t if(dir.exists()){\n\t\t\t\t\t\t\tlogger.debug(\"File Exits\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tdir.mkdir();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\n\t\t\t\t\t\tprofile.setPreference(\"browser.download.folderList\",2);\n\t\t\t\t\t profile.setPreference(\"browser.download.manager.showWhenStarting\",false);\n\t\t\t\t\t profile.setPreference(\"browser.download.dir\", System.getProperty(\"user.dir\")+ sep + \"externalFiles\" + sep + \"downloadFiles\");\n\t\t\t\t\t FirefoxBinary binary = new FirefoxBinary(new File(CONFIG.getProperty(\"mozilla_path\")));\n\t\t\t\t\t profile.addExtension(new File(System.getProperty(\"user.dir\")+ sep + \"externalFiles\"+sep+\"uploadFiles\"+sep+\"wave_toolbar-1.1.6-fx.xpi\"));\n\t\t\t\t\t \n\t\t\t\t\t System.setProperty( \"webdriver.gecko.driver\",System.getProperty(\"user.dir\")+ CONFIG.getProperty(\"gecko_path\")); // Added By Kashish\n\t\t\t\t\t \n\t\t\t\t\t /*Added by Nitin on 23 march 2016,capabilities for starting firefox in proxy mode*/\n\t\t\t\t\t driver = new FirefoxDriver(binary, profile, capabilities);\n\n\t\t\t\t\t\tdriver.manage().window().maximize();\n\n\t\t\t\t\t} else if (data.equals(\"IE\")) {\n\n\t\t\t\t\t\tSystem.setProperty(\n\n\t\t\t\t\t\t\"webdriver.ie.driver\",\n\n\t\t\t\t\t\tSystem.getProperty(\"user.dir\")\n\n\t\t\t\t\t\t+ CONFIG.getProperty(\"ie_path\"));\n\n\t\t\t\t\t\tDesiredCapabilities d = new DesiredCapabilities();\n\n\t\t\t\t\t\tdriver = new InternetExplorerDriver(d);\n\n\t\t\t\t\t\tdriver.manage().window().maximize();\n\n\t\t\t\t\t}\n\n\t\t\t\t\t\telse if (data.equals(\"Safari\")) {\n\n\t\t\t\t\t\tDesiredCapabilities capabilities = new DesiredCapabilities();\n\n\t\t\t\t\t\tdriver = new SafariDriver(capabilities);\n\n\t\t\t\t\t\tdriver.manage().window().maximize();\n\n\t\t\t\t\t}\n\n\t\t\t\t\telse if (data.equals(\"Chrome\")) \n\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t\t/*Added by nitin gupta on 23/03/2016\n\t\t\t\t\t\t * This code is used to start chrome under proxy for ZAP\n\t\t\t\t\t\t */\n\t\t\t\t\t\t\n\t\t\t\t\t\tDesiredCapabilities capabilities = new DesiredCapabilities();\n\t\t\t\t\t\tif(CONFIG.getProperty(\"ZAP\").equals(Constants.RUNMODE_YES))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t\tProxy proxy = new Proxy();\n\t\t\t\t proxy.setHttpProxy(CONFIG.getProperty(\"server\")+\":\"+CONFIG.getProperty(\"port\"));\n\t\t\t\t proxy.setFtpProxy(CONFIG.getProperty(\"server\")+\":\"+CONFIG.getProperty(\"port\"));\n\t\t\t\t proxy.setSslProxy(CONFIG.getProperty(\"server\")+\":\"+CONFIG.getProperty(\"port\"));\n\t\t\t\t capabilities.setCapability(CapabilityType.PROXY, proxy);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.setProperty(\t\"webdriver.chrome.driver\",System.getProperty(\"user.dir\")+ CONFIG.getProperty(\"chrome_path\"));\n\t\t\t\t\t\tMap<String, Object> prefs = new HashMap<String, Object>(); // Added Code to set Download Path and allowing Multiple downloads on Chrome\n\t\t\t\t\t\tprefs.put(\"profile.content_settings.pattern_pairs.*.multiple-automatic-downloads\", 1);\n\t\t\t\t\t\tprefs.put(\"download.default_directory\", System.getProperty(\"user.dir\")+ File.separator + \"externalFiles\" + File.separator + \"downloadFiles\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\t\t\t\t// options.setExperimentalOption(\"prefs\", prefs);\n\t\t\t\t\t\t options.addArguments(\"--disable-popup-blocking\"); // Added by Sanjay on 07 march 2016 , to disable popup blocking.\n\t\t\t\t\t\t\n\t\t\t\t\t\t /*Added by Nitin on 23 march 2016, capabilities to driver for starting chrome in proxy mode*/\n\t\t\t\t\t\t capabilities.setCapability(ChromeOptions.CAPABILITY, options);\n\t\t\t\t\t\t driver = new ChromeDriver(capabilities);\n\t\t\t\t\t\t driver.manage().window().maximize();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\tlong implicitWaitTime = Long.parseLong(CONFIG.getProperty(\"implicitwait\"));\n\n\t\t\t\t\tdriver.manage().timeouts().implicitlyWait(implicitWaitTime, TimeUnit.SECONDS);\n\t\t\t\t\twait=new WebDriverWait(driver, explicitwaitTime);\n\t\t\t\t\treturn driver;\n\n\t\t\t\t} else {\n\n\t\t\t\t\treturn driver;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\telse if (osName.indexOf(\"mac\") >= 0) {\n\n\t\t\t\tif (driver == null) {\n\n\t\t\t\t\tlogger.debug(\"Opening browser\");\n\n\t\t\t\t\tif (data.equals(\"Mozilla\")) {\n\n\t\t\t\t\t\tFirefoxProfile profile = new FirefoxProfile();\n\n\t\t\t\t\t\tFirefoxBinary binary = new FirefoxBinary(new File(CONFIG.getProperty(\"mozilla_path_mac\")));\n\n\t\t\t\t\t\tdriver = new FirefoxDriver(binary, profile);\n\n\t\t\t\t\t\tdriver.manage().window().maximize();\n\n\t\t\t\t\t} else if (data.equals(\"IE\")) {\n\n\t\t\t\t\t\tSystem.setProperty(\n\n\t\t\t\t\t\t\"webdriver.ie.driver\",\n\n\t\t\t\t\t\tSystem.getProperty(\"user.dir\")\n\n\t\t\t\t\t\t+ CONFIG.getProperty(\"ie_path\"));\n\n\t\t\t\t\t\tDesiredCapabilities d = new DesiredCapabilities();\n\n\t\t\t\t\t\tdriver = new InternetExplorerDriver(d);\n\n\t\t\t\t\t\tdriver.manage().window().maximize();\n\n\t\t\t\t\t}\n\n\t\t\t\t\telse if (data.equals(\"Safari\")) {\n\n\t\t\t\t\t\tDesiredCapabilities capabilities = new DesiredCapabilities();\n\t\t\t\t\t\tcapabilities.setJavascriptEnabled(false);\n\t\t\t\t\t\tdriver = new SafariDriver(capabilities);\n\n\t\t\t\t\t\tdriver.manage().window().maximize();\n\n\t\t\t\t\t}\n\n\t\t\t\t\telse if (data.equals(\"Chrome\")) {\n\n\t\t\t\t\t\tSystem.setProperty(\n\n\t\t\t\t\t\t\"webdriver.chrome.driver\",\n\n\t\t\t\t\t\tSystem.getProperty(\"user.dir\")\n\n\t\t\t\t\t\t+ CONFIG.getProperty(\"chrome_path_mac\"));\n\t\t\t\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\t\t\t\toptions.setBinary(CONFIG.getProperty(\"chrome_binary\"));\n\n\t\t\t\t\t\tdriver = new ChromeDriver(options);\n\n\t\t\t\t\t\tdriver.manage().window().maximize();\n\n\t\t\t\t\t}\n\n\t\t\t\t\tlong implicitWaitTime = Long.parseLong(CONFIG\n\n\t\t\t\t\t.getProperty(\"implicitwait\"));\n\n\t\t\t\t\tdriver.manage().timeouts()\n\n\t\t\t\t\t.implicitlyWait(implicitWaitTime, TimeUnit.SECONDS);\n\n\t\t\t\t\treturn driver;\n\n\t\t\t\t} else {\n\n\t\t\t\t\treturn driver;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\telse if (osName.indexOf(\"nix\") >= 0 || osName.indexOf(\"nux\") >= 0) {\n\n\t\t\t\tif (driver == null) {\n\n\t\t\t\t\tlogger.debug(\"Opening browser\");\n\n\t\t\t\t\tif (data.equals(\"Mozilla\")) {\n\n\t\t\t\t\t\tFirefoxProfile profile = new FirefoxProfile();\n\n\t\t\t\t\t\tFirefoxBinary binary = new FirefoxBinary(new File(\n\n\t\t\t\t\t\tCONFIG.getProperty(\"mozilla_path_linux\")));\n\n\t\t\t\t\t\tdriver = new FirefoxDriver(binary, profile);\n\n\t\t\t\t\t\tdriver.manage().window().maximize();\n\n\t\t\t\t\t}\n\n\t\t\t\t\telse if (data.equals(\"IE\")) {\n\n\t\t\t\t\t\tSystem.setProperty(\"webdriver.ie.driver\",\n\n\t\t\t\t\t\t\"ie_path_linux\");\n\n\t\t\t\t\t\tdriver = new InternetExplorerDriver();\n\n\t\t\t\t\t}\n\n\t\t\t\t\telse if (data.equals(\"Chrome\")) {\n\n\t\t\t\t\t\tnew DesiredCapabilities();\n\n\t\t\t\t\t\tURL serverurl = new URL(\"http://localhost:9515\");\n\n\t\t\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities\n\n\t\t\t\t\t\t.chrome();\n\n\t\t\t\t\t\tdriver = new RemoteWebDriver(serverurl, capabilities);\n\n\t\t\t\t\t}\n\n\t\t\t\t\tlong implicitWaitTime = Long.parseLong(CONFIG\n\n\t\t\t\t\t.getProperty(\"implicitwait\"));\n\n\t\t\t\t\tdriver.manage().timeouts()\n\n\t\t\t\t\t.implicitlyWait(implicitWaitTime, TimeUnit.SECONDS);\n\n\t\t\t\t\treturn driver;\n\n\t\t\t\t} else {\n\n\t\t\t\t\treturn driver;\n\n\t\t\t\t}\n\n\t\t\t} else {\n\n\t\t\t\treturn driver;\n\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\n\t\t\t// TODO Auto-generated catch block\n\n\t\t\te.printStackTrace();\n\n\t\t\treturn null;\n\n\t\t}\n\n\t}",
"@BeforeTest\n\tpublic void OpenBrowser() throws InterruptedException {\n\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\PSQA\\\\Desktop\\\\driver\\\\chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.get(\"https://www.booking.com/\");\n\t\n\t\t\n\t\tdriver.manage().window().maximize();\n\t\tThread.sleep(100);\n\t\t\n}",
"@BeforeTest\n\tpublic void LaunchBrowser() {\n\t\t driver = init(\"URL_JQuery\");\n\t\t// driver.get(\"https://jqueryui.com/autocomplete/\");\n\t\t driver.switchTo().frame(0);\n\t\t jq = new JQueryAutocompletePage(driver);\n\t\t \n\t}",
"@Test \n public void executSessionOne(){\n\t System.out.println(\"open the browser: chrome\");\n final String CHROME_DRIVER_DIRECTORY = System.getProperty(\"user.dir\") + \"/src/test/java/BrowserDrivers/chromedriver.exe\";\n System.setProperty(\"webdriver.chrome.driver\", CHROME_DRIVER_DIRECTORY);\n final WebDriver driver = new ChromeDriver();\n //Goto guru99 site\n driver.get(\"http://demo.guru99.com/V4/\");\n //find user name text box and fill it\n driver.quit();\n }",
"@Test\r\n\t\tpublic static void LaunchUrl()\r\n\t\t{\r\n\t\t\tdriver.manage().deleteAllCookies();\r\n\t\t\tdriver.get(prop.getProperty(\"url\"));\r\n\t\t\tdriver.manage().window().maximize();\t\r\n\t\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\t\r\n\t\t\r\n\t\t}",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tif(desktop == null) return ;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tdesktop.browse(uri);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}",
"@BeforeTest\r\n\tpublic void operBrowser(){\n\t\td1=Driver.getBrowser();\r\n\t\tWebDriverCommonLib wlib=new WebDriverCommonLib();\r\n\t\td1.get(Constant.url);\r\n\t\twlib.maximizeBrowse();\r\n\t\twlib.WaitPageToLoad();\r\n\t}",
"public void openURL() throws Exception{\r\n\r\n\t try{\r\n\t driverUtil.trigger();\r\n\t reporter.reportTestStep(\"App Launch\", \"ok\", \"ok\", \"PASS\", false);\r\n\t }\r\n\t\t\r\n\tcatch(Exception e){\r\n\t\te.printStackTrace();\r\n\t}\r\n}",
"public static void openBrowser(Context context, String url) {\n if (!url.startsWith(\"http://\") && !url.startsWith(\"https://\"))\n url = \"http://\" + url;\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(url));\n context.startActivity(intent);\n }",
"private void openUrlInBrowser(String url) {\n if (!url.startsWith(\"http://\") && !url.startsWith(\"https://\")) {\n url = \"http://\" + url;\n }\n // Open the browser and point it to the given url\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(url));\n startActivity(intent);\n }",
"@Given(\"^open new browser and go to \\\"([^\\\"]*)\\\"$\")\r\n\tpublic void open_new_browser_and_go_to_url(String url) {\r\n\t\tSelenium_Functions.openNewBrowserAndgotoNewUrl(driver,\r\n\t\t\t\tEnvironmentConfig.baseUrlTescoItp);\r\n\t\tlog.info(\"The user is on Tesco ITP Login page\"\r\n\t\t\t\t+ EnvironmentConfig.baseUrlTescoItp);\r\n\t\tSystem.out.println(\"The user is on Tesco ITP Login page\");\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\tWebDriverManager.firefoxdriver().setup();\r\n\t\tWebDriver driver = new FirefoxDriver();\r\n\t\t//driver.navigate().to(\"https://www.facebook.com/\");\r\n\r\n\t}"
] | [
"0.7504187",
"0.7501904",
"0.7501333",
"0.7419062",
"0.7412537",
"0.73403925",
"0.7263311",
"0.7180409",
"0.7149974",
"0.7128746",
"0.7052985",
"0.7006379",
"0.6988482",
"0.6967493",
"0.6947904",
"0.68750596",
"0.6871841",
"0.68322366",
"0.681292",
"0.677402",
"0.67025995",
"0.6663912",
"0.6625735",
"0.661484",
"0.6613712",
"0.6604253",
"0.6593922",
"0.65829176",
"0.6581898",
"0.6536909",
"0.6536203",
"0.64962196",
"0.6489961",
"0.6488486",
"0.6485209",
"0.64781874",
"0.64715403",
"0.6466303",
"0.6459953",
"0.6456997",
"0.6456005",
"0.6432292",
"0.64292413",
"0.6421145",
"0.63807535",
"0.6342208",
"0.6331572",
"0.63266426",
"0.6311884",
"0.6296963",
"0.6289091",
"0.6275518",
"0.6273117",
"0.62412417",
"0.6241232",
"0.6234548",
"0.6220097",
"0.61944413",
"0.61870104",
"0.6176227",
"0.61694473",
"0.6164274",
"0.61569005",
"0.6138715",
"0.61371106",
"0.61331224",
"0.612885",
"0.6126534",
"0.6119487",
"0.60915744",
"0.6058376",
"0.60515046",
"0.60453874",
"0.6044601",
"0.60297793",
"0.6028405",
"0.60273045",
"0.6024556",
"0.6017374",
"0.6014105",
"0.6006987",
"0.6003602",
"0.600155",
"0.5996785",
"0.5996107",
"0.59927404",
"0.59820086",
"0.59815186",
"0.59807825",
"0.59767836",
"0.59533376",
"0.5952718",
"0.5948277",
"0.5945877",
"0.59442854",
"0.59414893",
"0.59395915",
"0.5933585",
"0.5928743",
"0.5926903"
] | 0.6600081 | 26 |
optional string name = 1; optional string name = 1; | boolean hasName(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String name) {\n if (!name.equals(\"\")) {\r\n this.name = name;\r\n }\r\n\r\n\r\n\r\n\r\n }",
"public void setName(String name){this.name = name;}",
"public void setName(String name){this.name=name;}",
"public void setName(String name)\n/* */ {\n/* 84 */ this._name = name;\n/* */ }",
"public void setName(String n){ name=n; }",
"public void setName(String name)\n/* */ {\n/* 53 */ this.name = name;\n/* */ }",
"public void setName(final String pName){this.aName = pName;}",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name1) {\r\n this.name = name1;\r\n }",
"public void setName(String name) {\n//\t\tif((name==null) || (name.length()<2)){\n//\t\t\tthrow new RuntimeException(\"Name muss mindestens 2 Zeichen enthalten!\");\n//\t\t}\n\t\tthis.name = name;\n\t}",
"public void setName(String name)\r\n/* 29: */ {\r\n/* 30:23 */ this.name = name;\r\n/* 31: */ }",
"public void setName(String name){\n this.name = name;\n }",
"void setName(String name)\n\t{\n\t\t\tthis.name = name;\n\t}",
"public void setName(String name)\n {\n this.name=name;\n }",
"@Override\r\n public String getFirstArg() {\n return name;\r\n }",
"public void setName(final String name);",
"public final void setName(String name) {_name = name;}",
"public void setName(String name)\n {\n _name = name;\n }",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"public void setName(String name) \n {\n this.name = name;\n }",
"boolean isNameRequired();",
"public void setName(String name0){\n\t\tname = name0;\n\t}",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n/* */ {\r\n/* 137 */ this.name = name;\r\n/* */ }",
"void setName(String name)\n {\n this.name = name;\n }",
"public void setName(java.lang.String aName);",
"WithFlexibleName withName(String name);",
"public void setName(String n);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"@Override\n\tpublic void setName(String name) {\n\t\t\n\t}",
"public void setName(String name)\n/* */ {\n/* 368 */ this.name = name;\n/* 369 */ this.fullName = name;\n/* 370 */ this.namespace = null;\n/* */ }",
"public void setname(String name) {\n this.name = name;\n }",
"void getName(String name);",
"public void setName (String name)\n \t{\n \t\tif(name.length()>4||name.length()<2)\n \t\t{\n \t\t\tSystem.out.println(\"´íÎó\");\n \t\t\treturn;\n \t\t}\n \t\telse\n \t\t{\n \t\t\tthis.name = name;\n \t\t}\n \t}",
"void setName(String name_);",
"@Override\n public void setName(String name) {\n \n }",
"void setName(java.lang.String name);",
"void setName(java.lang.String name);",
"void setName(java.lang.String name);",
"public void setName(String name) {\n fName= name;\n }",
"void setName(String name) {\n this.name = name;\n }",
"void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name){\n \t\tthis.name = name;\n \t}",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"String getName( String name );",
"public void setName(String name)\n {\n\tthis.name = name;\n }",
"public void setName(String name)\r\n {\r\n\tthis.name = name;\r\n }",
"ChangeName.Req getChangeNameReq();",
"@Override\n public void setName(String name) {\n\n }",
"public void setName(String arg0) {\n\t\t\n\t}",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"@Override\n\tpublic void setName(String arg0) {\n\n\t}",
"abstract String name();",
"public void setName (String Name);",
"public void setName (String Name);",
"public void setName (String Name);",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public String getName()\n/* */ {\n/* 59 */ return this.name;\n/* */ }",
"@NotNull\n String getName();",
"public String getName(){return name;}",
"public String getName(){return name;}",
"public String getName(){return name;}",
"public String getName(){return name;}",
"public String getName()\n/* */ {\n/* 62 */ return this.name;\n/* */ }",
"public void setName(String name){\n\t\tif(name != null){\n\t\t\tthis.name = name;\n\t\t}\n\t}",
"public void setname(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName (String newName)\n {\n this.name = newName; \n }",
"public int setName(String name)\n\t{\n\n\t\tint iNameLength;\n\t\tif(name.length()>0)\n\t\t{\n\t\t\tthis.name=name;\n\t\t\tiNameLength=(0);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tiNameLength=(-1);\n\t\t}\n\t\treturn iNameLength;\n\t}",
"public void setName(String name)\r\n\t{\t\t\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name)\n {\n this.name = name;\n }",
"public String getName()\n/* */ {\n/* 60 */ return this.name;\n/* */ }",
"public void set_name(String Name)\n {\n name =Name;\n }"
] | [
"0.6737366",
"0.6550171",
"0.6531222",
"0.6408561",
"0.6352195",
"0.63478094",
"0.6339076",
"0.6264758",
"0.6264758",
"0.6264758",
"0.6264758",
"0.6241472",
"0.6177932",
"0.61779135",
"0.6165531",
"0.6162522",
"0.6131763",
"0.61240315",
"0.61196494",
"0.61147517",
"0.60627025",
"0.6060383",
"0.6060383",
"0.6060383",
"0.6038172",
"0.6015078",
"0.60136193",
"0.6011769",
"0.6011769",
"0.6011769",
"0.60091144",
"0.60090667",
"0.6008424",
"0.5971332",
"0.59668106",
"0.5959817",
"0.5959817",
"0.5959817",
"0.5959817",
"0.5959817",
"0.5959817",
"0.5959817",
"0.5959817",
"0.5959817",
"0.5959817",
"0.5959817",
"0.59546024",
"0.59546024",
"0.59546024",
"0.59546024",
"0.59546024",
"0.59546024",
"0.59546024",
"0.5951094",
"0.5946069",
"0.5945597",
"0.5941369",
"0.59360653",
"0.59327066",
"0.59308094",
"0.59234065",
"0.59234065",
"0.59234065",
"0.5916944",
"0.59059244",
"0.59051764",
"0.59028876",
"0.59006387",
"0.5899247",
"0.5898331",
"0.589435",
"0.5882208",
"0.58821535",
"0.58801",
"0.5878869",
"0.5875082",
"0.5875082",
"0.5875082",
"0.5875082",
"0.58668965",
"0.58597887",
"0.5857122",
"0.5857122",
"0.5857122",
"0.58560634",
"0.58560634",
"0.5855376",
"0.5854094",
"0.5843861",
"0.5843861",
"0.5843861",
"0.5843861",
"0.5838899",
"0.58375716",
"0.58357704",
"0.58338016",
"0.58329844",
"0.5825051",
"0.58232594",
"0.58164936",
"0.58114153"
] | 0.0 | -1 |
optional string name = 1; | java.lang.String getName(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String name){this.name = name;}",
"public void setName(String name){this.name=name;}",
"public void setName(String n){ name=n; }",
"public void setName(String name) {\n if (!name.equals(\"\")) {\r\n this.name = name;\r\n }\r\n\r\n\r\n\r\n\r\n }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name)\n/* */ {\n/* 84 */ this._name = name;\n/* */ }",
"public void setName(String name)\n/* */ {\n/* 53 */ this.name = name;\n/* */ }",
"public String getName(){return name;}",
"public String getName(){return name;}",
"public String getName(){return name;}",
"public String getName(){return name;}",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name)\n {\n _name = name;\n }",
"public String getName(){ return name; }",
"public void setName(final String pName){this.aName = pName;}",
"public final void setName(String name) {_name = name;}",
"public void setName(String name)\n {\n this.name=name;\n }",
"abstract String name();",
"void getName(String name);",
"public void setName(final String name);",
"String getName( String name );",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"void setName(String name)\n\t{\n\t\t\tthis.name = name;\n\t}",
"public void setName(String name) \n {\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String n);",
"public String getName(){return this.name;}",
"void setName(String name)\n {\n this.name = name;\n }",
"public String getName() { return name; }",
"public String getName()\n/* */ {\n/* 59 */ return this.name;\n/* */ }",
"public String getName() \n{\n\treturn name;\n}",
"public void setName(java.lang.String aName);",
"void setName(java.lang.String name);",
"void setName(java.lang.String name);",
"void setName(java.lang.String name);",
"public String getName ()\n {\n return name;\n }",
"public String getName()\n/* */ {\n/* 62 */ return this.name;\n/* */ }",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public String name() { return name; }",
"@Override\n public void setName(String name) {\n \n }",
"public String getName()\n {\n return name;\n}",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"public String getName(){\n return name;\r\n }",
"@Override\n\tpublic void setName(String name) {\n\t\t\n\t}",
"public void setName(String name) {\n fName= name;\n }",
"void setName(String name) {\n this.name = name;\n }",
"public String getName() { return _name; }",
"public void setName(String name)\r\n/* */ {\r\n/* 137 */ this.name = name;\r\n/* */ }",
"public void setName(String name)\r\n/* 29: */ {\r\n/* 30:23 */ this.name = name;\r\n/* 31: */ }",
"public void setName(String name) {\n this.name = name;\n }",
"public String getName(){\n return name;\n}",
"@Override\n public void setName(String name) {\n\n }",
"public String getName()\n/* */ {\n/* 60 */ return this.name;\n/* */ }",
"public String getName(){return this.aName;}",
"public String getName() { return name;}",
"@Override\n\tpublic void setName(String arg0) {\n\n\t}",
"String getName(){return this.name;}",
"public String getName(){\n return name; \n }",
"public String getName() {\n/* 57 */ return this.name;\n/* */ }",
"void setName(String name_);",
"@Override\r\n public String getFirstArg() {\n return name;\r\n }",
"public void setname(String name) {\n this.name = name;\n }",
"public String getName() {return name;}",
"public String getName() {return name;}",
"public String getName() {return name;}",
"public void setName(String name){\n \t\tthis.name = name;\n \t}",
"void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name1) {\r\n this.name = name1;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public String getName(){\n return name;\n }",
"public String getName(){\n return name;\n }",
"public void setName (String Name);",
"public void setName (String Name);"
] | [
"0.74156314",
"0.73947275",
"0.72931343",
"0.722587",
"0.71425295",
"0.71425295",
"0.71425295",
"0.71425295",
"0.71254766",
"0.7042126",
"0.7036526",
"0.7036526",
"0.7036526",
"0.7036526",
"0.7032075",
"0.69701284",
"0.6963385",
"0.695678",
"0.69470596",
"0.6932955",
"0.6926615",
"0.6924372",
"0.69193673",
"0.6917011",
"0.69024205",
"0.69024205",
"0.69024205",
"0.68846864",
"0.6864317",
"0.6857414",
"0.6857414",
"0.6857414",
"0.6857414",
"0.6857414",
"0.6857414",
"0.6857414",
"0.6851823",
"0.6849109",
"0.6827988",
"0.68255794",
"0.68231934",
"0.68132335",
"0.6812315",
"0.68072385",
"0.68072385",
"0.68072385",
"0.6807046",
"0.68050075",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6795918",
"0.67817914",
"0.6770219",
"0.6768334",
"0.6768334",
"0.6768334",
"0.676285",
"0.67607033",
"0.67601925",
"0.6759551",
"0.67595273",
"0.67561615",
"0.6753157",
"0.6752148",
"0.67491335",
"0.6747233",
"0.6742414",
"0.6740996",
"0.67407084",
"0.6736447",
"0.6733133",
"0.6730651",
"0.67302257",
"0.67291254",
"0.6727981",
"0.67250055",
"0.67211264",
"0.67211264",
"0.67211264",
"0.67131555",
"0.6712134",
"0.6700538",
"0.6700538",
"0.6698792",
"0.6697874",
"0.6697874",
"0.6697874",
"0.6697874",
"0.66878164",
"0.66878164",
"0.6687206",
"0.6687206"
] | 0.0 | -1 |
optional string name = 1; | com.google.protobuf.ByteString
getNameBytes(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String name){this.name = name;}",
"public void setName(String name){this.name=name;}",
"public void setName(String n){ name=n; }",
"public void setName(String name) {\n if (!name.equals(\"\")) {\r\n this.name = name;\r\n }\r\n\r\n\r\n\r\n\r\n }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name)\n/* */ {\n/* 84 */ this._name = name;\n/* */ }",
"public void setName(String name)\n/* */ {\n/* 53 */ this.name = name;\n/* */ }",
"public String getName(){return name;}",
"public String getName(){return name;}",
"public String getName(){return name;}",
"public String getName(){return name;}",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name)\n {\n _name = name;\n }",
"public String getName(){ return name; }",
"public void setName(final String pName){this.aName = pName;}",
"public final void setName(String name) {_name = name;}",
"public void setName(String name)\n {\n this.name=name;\n }",
"abstract String name();",
"void getName(String name);",
"public void setName(final String name);",
"String getName( String name );",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"void setName(String name)\n\t{\n\t\t\tthis.name = name;\n\t}",
"public void setName(String name) \n {\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String n);",
"public String getName(){return this.name;}",
"void setName(String name)\n {\n this.name = name;\n }",
"public String getName() { return name; }",
"public String getName()\n/* */ {\n/* 59 */ return this.name;\n/* */ }",
"public String getName() \n{\n\treturn name;\n}",
"public void setName(java.lang.String aName);",
"void setName(java.lang.String name);",
"void setName(java.lang.String name);",
"void setName(java.lang.String name);",
"public String getName ()\n {\n return name;\n }",
"public String getName()\n/* */ {\n/* 62 */ return this.name;\n/* */ }",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public String name() { return name; }",
"@Override\n public void setName(String name) {\n \n }",
"public String getName()\n {\n return name;\n}",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"public String getName(){\n return name;\r\n }",
"@Override\n\tpublic void setName(String name) {\n\t\t\n\t}",
"public void setName(String name) {\n fName= name;\n }",
"void setName(String name) {\n this.name = name;\n }",
"public String getName() { return _name; }",
"public void setName(String name)\r\n/* */ {\r\n/* 137 */ this.name = name;\r\n/* */ }",
"public void setName(String name)\r\n/* 29: */ {\r\n/* 30:23 */ this.name = name;\r\n/* 31: */ }",
"public void setName(String name) {\n this.name = name;\n }",
"public String getName(){\n return name;\n}",
"@Override\n public void setName(String name) {\n\n }",
"public String getName()\n/* */ {\n/* 60 */ return this.name;\n/* */ }",
"public String getName(){return this.aName;}",
"public String getName() { return name;}",
"@Override\n\tpublic void setName(String arg0) {\n\n\t}",
"String getName(){return this.name;}",
"public String getName(){\n return name; \n }",
"public String getName() {\n/* 57 */ return this.name;\n/* */ }",
"void setName(String name_);",
"@Override\r\n public String getFirstArg() {\n return name;\r\n }",
"public void setname(String name) {\n this.name = name;\n }",
"public String getName() {return name;}",
"public String getName() {return name;}",
"public String getName() {return name;}",
"public void setName(String name){\n \t\tthis.name = name;\n \t}",
"void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name1) {\r\n this.name = name1;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName (String Name);",
"public void setName (String Name);",
"public void setName (String Name);",
"public String getName(){\n return name;\n }"
] | [
"0.7415193",
"0.7394258",
"0.729242",
"0.7225616",
"0.7142188",
"0.7142188",
"0.7142188",
"0.7142188",
"0.7124642",
"0.704143",
"0.7035703",
"0.7035703",
"0.7035703",
"0.7035703",
"0.703168",
"0.6969442",
"0.69625455",
"0.69563097",
"0.6946523",
"0.6932603",
"0.69257647",
"0.69236046",
"0.6918786",
"0.69161576",
"0.69020665",
"0.69020665",
"0.69020665",
"0.6884299",
"0.68639964",
"0.68570775",
"0.68570775",
"0.68570775",
"0.68570775",
"0.68570775",
"0.68570775",
"0.68570775",
"0.68512315",
"0.68482256",
"0.6827596",
"0.6824664",
"0.6822075",
"0.6812009",
"0.6811948",
"0.6807033",
"0.6807033",
"0.6807033",
"0.68057597",
"0.6803925",
"0.68036824",
"0.68036824",
"0.68036824",
"0.68036824",
"0.68036824",
"0.68036824",
"0.68036824",
"0.68036824",
"0.68036824",
"0.68036824",
"0.68036824",
"0.67952424",
"0.67816585",
"0.6768896",
"0.67675173",
"0.67675173",
"0.67675173",
"0.6761691",
"0.67604834",
"0.6759709",
"0.675923",
"0.6758438",
"0.6755651",
"0.67524725",
"0.675179",
"0.6747701",
"0.6746954",
"0.6741313",
"0.6740185",
"0.67400306",
"0.673626",
"0.6732299",
"0.67294097",
"0.67291677",
"0.6729005",
"0.67282593",
"0.6724423",
"0.6720475",
"0.6720475",
"0.6720475",
"0.6712931",
"0.67119104",
"0.67001593",
"0.67001593",
"0.6699112",
"0.6697609",
"0.6697609",
"0.6697609",
"0.6697609",
"0.66868776",
"0.66868776",
"0.66868776",
"0.6686557"
] | 0.0 | -1 |
optional int32 id = 2; optional int32 id = 2; In a file of records of type Protein ids will | boolean hasId(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void idlize() throws IOException {\r\n\t\t/**give mid who has name a id, for other mid, keep using mid to identify them*/\r\n\t\t//\t\tHashMap<String, Integer> namedmid2name = new HashMap<String, Integer>(20000000);\r\n\t\t//\t\tHashMap<String, Integer> relationname2id = new HashMap<String, Integer>(1000000);\r\n\t\t//\t\tDelimitedWriter dw = new DelimitedWriter(Main.dir + \"/visible_idize\");\r\n\t\t//\t\tDelimitedWriter dw_debug = new DelimitedWriter(Main.dir + \"/visible_debug\");\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_fbenglishname);\r\n\t\t//\t\t\tString[] l;\r\n\t\t//\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t//\t\t\t\tnamedmid2name.put(l[0], namedmid2name.size());\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tD.p(\"load mid2name finished\");\r\n\t\t//\t\t\tdr.close();\r\n\t\t//\t\t}\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_visible_str);\r\n\t\t//\t\t\tString[] l;\r\n\t\t//\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t//\t\t\t\tString mid = l[0];\r\n\t\t//\t\t\t\tInteger gid = namedmid2name.get(mid);\r\n\t\t//\t\t\t\tif (gid == null) {\r\n\t\t//\t\t\t\t\tdw_debug.write(l);\r\n\t\t//\t\t\t\t\tcontinue;\r\n\t\t//\t\t\t\t}\r\n\t\t//\t\t\t\tString relationname = l[2];\r\n\t\t//\t\t\t\tif (!relationname2id.containsKey(relationname)) {\r\n\t\t//\t\t\t\t\trelationname2id.put(relationname, relationname2id.size());\r\n\t\t//\t\t\t\t}\r\n\t\t//\t\t\t\tint relid = relationname2id.get(relationname);\r\n\t\t//\t\t\t\tdw.write(l[1], gid, relid, l[3]);\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tdr.close();\r\n\t\t//\t\t}\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_visible_str);\r\n\t\t//\t\t\tString[] l;\r\n\t\t//\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t//\t\t\t\tString mid1 = l[0];\r\n\t\t//\t\t\t\tString mid2 = l[3];\r\n\t\t//\t\t\t\tInteger gid1 = namedmid2name.get(mid1);\r\n\t\t//\t\t\t\tInteger gid2 = namedmid2name.get(mid2);\r\n\t\t//\t\t\t\tif (gid1 == null || gid2 == null) {\r\n\t\t//\t\t\t\t\tdw_debug.write(l);\r\n\t\t//\t\t\t\t\tcontinue;\r\n\t\t//\t\t\t\t}\r\n\t\t//\t\t\t\tString relationname = l[2];\r\n\t\t//\t\t\t\tif (!relationname2id.containsKey(relationname)) {\r\n\t\t//\t\t\t\t\trelationname2id.put(relationname, relationname2id.size());\r\n\t\t//\t\t\t\t}\r\n\t\t//\t\t\t\tint relid = relationname2id.get(relationname);\r\n\t\t//\t\t\t\tdw.write(l[1], gid1, relid, gid2, l[3]);\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tdr.close();\r\n\t\t//\t\t}\r\n\t\t//\t\tdw.close();\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedWriter dwrel = new DelimitedWriter(Main.dir + \"/visible_relations.temp\");\r\n\t\t//\t\t\tfor (Entry<String, Integer> e : relationname2id.entrySet()) {\r\n\t\t//\t\t\t\tdwrel.write(e.getValue(), e.getKey());\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tdwrel.close();\r\n\t\t//\t\t\tSort.sort(Main.dir + \"/visible_relations.temp\", Main.dir + \"/visible_relations\", Main.dir,\r\n\t\t//\t\t\t\t\tnew Comparator<String[]>() {\r\n\t\t//\t\t\t\t\t\t@Override\r\n\t\t//\t\t\t\t\t\tpublic int compare(String[] o1, String[] o2) {\r\n\t\t//\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t//\t\t\t\t\t\t\treturn Integer.parseInt(o1[0]) - Integer.parseInt(o2[0]);\r\n\t\t//\t\t\t\t\t\t}\r\n\t\t//\r\n\t\t//\t\t\t\t\t});\r\n\t\t//\t\t}\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedWriter dwmid = new DelimitedWriter(Main.dir + \"/visible_mid2gid.temp\");\r\n\t\t//\t\t\tfor (Entry<String, Integer> e : namedmid2name.entrySet()) {\r\n\t\t//\t\t\t\tdwmid.write(e.getValue(), e.getKey());\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tdwmid.close();\r\n\t\t//\t\t\tSort.sort(Main.dir + \"/visible_mid2gid.temp\", Main.dir + \"/visible_mid2gid\", Main.dir,\r\n\t\t//\t\t\t\t\tnew Comparator<String[]>() {\r\n\t\t//\t\t\t\t\t\t@Override\r\n\t\t//\t\t\t\t\t\tpublic int compare(String[] o1, String[] o2) {\r\n\t\t//\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t//\t\t\t\t\t\t\treturn Integer.parseInt(o1[0]) - Integer.parseInt(o2[0]);\r\n\t\t//\t\t\t\t\t\t}\r\n\t\t//\r\n\t\t//\t\t\t\t\t});\r\n\t\t//\t\t}\r\n\t}",
"public void createIDMap()\n {\n IDMap = new HashMap<>();\n idFile.open(\"idpassword.txt\");\n String line = idFile.getNextLine();\n\n\n\n while(line!=null) {\n String[] fields = line.split(\",\");\n IDMap.put(fields[0], fields[1]);\n\n line = idFile.getNextLine();\n\n }\n\n }",
"public PlantID(String line){\r\n\t\tScanner sc = new Scanner(line);\r\n\t\tthis.id = sc.next();\r\n\t\tthis.name = (sc.next()+\" \" +sc.next());\r\n\t\tsc.close();\r\n\t}",
"int insertSelective(EhrPersonFile record);",
"int insertSelective(DiaryFile record);",
"int insert(DiaryFile record);",
"int getIDS(String ids) throws IOException {\n String lines=\"\";\n String aux;\n int i = 0, j = 0, k = 0;\n\n BufferedReader br = new BufferedReader(new FileReader(ids)); /* Read all file adding to string */\n try {\n StringBuilder sb = new StringBuilder();\n String line = br.readLine();\n while (line != null) {\n sb.append(line);\n sb.append(System.lineSeparator());\n line = br.readLine();\n }\n lines = sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n br.close();\n }\n\n /* Add each each id to array and get the number of ids */\n i = lines.indexOf(\"id#:[\");\n k = lines.indexOf(\"]\");\n while (i >= 0) {\n /* AllPos[j] = Integer.parseInt(lines.substring(i+5,k));*/\n attrib_int(j, Integer.parseInt(lines.substring(i+5,k)));\n lines = lines.substring(k+1);\n i = lines.indexOf(\"id#:[\");\n if (i>=0)\n {\n aux = lines.substring(i);\n k = aux.indexOf(\"]\") + i;\n }\n j++;\n\n }\n ids_quantity=j;\n return (0);\n }",
"public void setID() throws IOException;",
"public void setProtein_id(java.lang.String protein_id) {\n this.protein_id = protein_id;\n }",
"int insert(EhrPersonFile record);",
"public static void loadTargetTerm2IdMapping(File input) throws IOException {\n\t\t\tm_namesMap = new SimpleBidirectionalMap<String, Integer>();\n\t\t\tString encoding = FileUtils.getFileEncoding(input);\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(input), encoding));\n\t\t\tString line = reader.readLine();\n\t\t\tint lineNum = 1;\n\t\t\tboolean testFormat = false;\n\t\t\tif(StringUtils.checkIfNumber(line.split(\"\\t\")[0]))\n\t\t\t\ttestFormat = true;\n\t\t\twhile(line!= null) {\n\t\t\t\tif(line.equals(\"@@@\"))\n\t\t\t\t\tbreak;\n\t\t\t\tif(testFormat) {\n\t\t\t\t\tString num = line.split(\"\\t\")[0];\n\t\t\t\t\tSystem.out.println(\"key: \"+line.trim().substring(num.length()+1) + \" value: \" + Integer.parseInt(num));\n\t\t\t\t\tm_namesMap.put(line.trim().substring(num.length()+1), Integer.parseInt(num));\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"key????\" + lineNum + \"instead of \" + line.split(\"\\t\")[0]);\n\t\t\t\t\tm_namesMap.put(line.trim(), lineNum);\n\t\t\t\t}\n\t\t\t\tline = reader.readLine();\n\t\t\t\tlineNum ++;\n\t\t\t}\n\t\t}",
"EhrPersonFile selectByPrimaryKey(Long id);",
"public void importFile(String filename) throws IOException, BadEntryException, ImportFileException{\n try{\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n String line;\n line = reader.readLine();\n\n while(line != null){\n String[] fields = line.split(\"\\\\|\");\n int id = Integer.parseInt(fields[1]);\n if(_persons.get(id) != null){\n throw new BadEntryException(fields[0]);\n }\n\n if(fields[0].equals(\"FUNCIONÁRIO\")){\n registerAdministrative(fields);\n line = reader.readLine();\n }else if(fields[0].equals(\"DOCENTE\")){\n Professor _professor = new Professor(id, fields[2], fields[3]);\n _professors.put(id, _professor);\n _persons.put(id, (Person) _professor);\n\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n while((line != null) && (fields[0].charAt(0) == '#')){\n String course = fields[0].substring(2);\n String discipline = fields[1];\n Course _course = _courses.get(course);\n \n if(_course == null){\n _course = new Course(course);\n _disciplineCourse.put(course, new HashMap<String, Discipline>());\n _courses.put(course, _course);\n }\n\n if(_professor.getDisciplineCourses().get(course) == null){\n _professor.getDisciplineCourses().put(course, new HashMap<String, Discipline>());\n }\n\n Discipline _discipline = _disciplines.get(discipline);\n if(_discipline == null){\n _discipline = new Discipline(discipline,_course);\n _disciplines.put(discipline, _discipline);\n _course.getDisciplines().put(discipline, _discipline);\n }\n _discipline.registerObserver(_professor, id);\n _disciplineCourse.get(course).put(discipline, _discipline);\n\n if(_professor.getDisciplines() != null){\n _professor.getDisciplines().put(discipline, _discipline);\n _professor.getDisciplineCourses().get(course).put(discipline, _discipline); \n }\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n\n }\n }\n }\n }else if(fields[0].equals(\"DELEGADO\")){\n Student _student = new Student(id, fields[2], fields[3]);\n _students.put(id, _student);\n _persons.put(id, (Person) _student);\n\n line = reader.readLine();\n fields = line.split(\"\\\\|\");\n while((line != null) && (fields[0].charAt(0) == '#')){\n String course = fields[0].substring(2);\n String discipline = fields[1];\n Course _course = _courses.get(course);\n if(_course == null){\n _course = new Course(course);\n _disciplineCourse.put(course, new HashMap<String, Discipline>());\n _courses.put(course,_course);\n }\n if(_course.getRepresentatives().size() == 8){\n System.out.println(id);\n throw new BadEntryException(course);\n }else{\n _course.getRepresentatives().put(id,_student);\n }\n _student.setCourse(_course);\n Discipline _discipline = _disciplines.get(discipline);\n if(_discipline == null){\n _discipline = new Discipline(discipline, _course);\n _disciplines.put(discipline,_discipline);\n _course.getDisciplines().put(discipline, _discipline);\n }\n if(_student.getDisciplines().size() == 6){\n throw new BadEntryException(discipline);\n }else{\n if(_discipline.getStudents().size() == 100){\n throw new BadEntryException(discipline);\n }else{\n _student.getDisciplines().put(discipline,_discipline);\n _discipline.getStudents().put(id,_student);\n }\n }\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n }\n }\n }else if(fields[0].equals(\"ALUNO\")){\n Student _student = new Student(id, fields[2], fields[3]);\n _students.put(id, _student);\n _persons.put(id, (Person) _student);\n\n line = reader.readLine();\n fields = line.split(\"\\\\|\");\n while((line != null) && (fields[0].charAt(0) == '#')){\n String course = fields[0].substring(2);\n String discipline = fields[1];\n Course _course = _courses.get(course);\n if(_course == null){\n _course = new Course(course);\n _disciplineCourse.put(course, new HashMap<String, Discipline>());\n _courses.put(course, _course);\n }\n _student.setCourse(_course);\n Discipline _discipline = _disciplines.get(discipline);\n if(_discipline == null){\n _discipline = new Discipline(discipline, _course);\n _disciplines.put(discipline, _discipline);\n _course.getDisciplines().put(discipline, _discipline);\n }\n _discipline.registerObserver(_student, id);\n if(_student.getDisciplines().size() == 6){\n throw new BadEntryException(discipline);\n }else{\n _student.getDisciplines().put(discipline,_discipline);\n if(_discipline.getStudents().size() == 100){\n throw new BadEntryException(discipline);\n }else{\n _discipline.getStudents().put(id,_student);\n }\n }\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n }\n }\n\n }else{\n throw new BadEntryException(fields[0]);\n }\n }\n for(Course course: _courses.values()){\n HashMap<Integer,Student> representatives = course.getRepresentatives();\n HashMap<String, Discipline> disciplines = course.getDisciplines();\n for(Discipline discipline: disciplines.values()){\n for(Student representative: representatives.values()){\n discipline.registerObserver(representative, representative.getId());\n }\n }\n \n } \n reader.close();\n }catch(BadEntryException e){\n throw new ImportFileException(e);\n }catch(IOException e){\n throw new ImportFileException(e);\n }\n }",
"public void setID(String idIn) {this.id = idIn;}",
"@Override\n\tpublic FileModel getId(Long id) {\n\t\treturn fm.getOne(id);\n\t}",
"private void processGeneFile(String inputFilename, String taxonID) throws IOException {\n BufferedReader reader = createInputFileReader(inputFilename);\n String line;\n String[] columns;\n \n \t// Skip the first line\n line = reader.readLine();\n while (reader.ready()) {\n line = reader.readLine();\n \t\t//writeToDebugFile(line);\n \t\tif (line.substring(0,1).equals(\"#\")) {\n \t\twriteToErrorFile(line, \"Comment\");\n \t\t\tcontinue;\n \t\t}\n columns = line.split(INPUT_COLUMN_DELIM);\n \n String rgdID = columns[0].trim();\n \n // If line contains column names (usually first line), skip it\n if (rgdID.equals(\"GENE_RGD_ID\")) continue;\n \n String geneSymbol = columns[1].trim();\n String chromosome = columns[6].trim(); \n \n \t\t// columns[14] == start base pair\n \t\t// columns[15] == end base pair\n \t\t// columns[16] == strand (- or +)\n \n String mapLocation = getMapLocation(columns[14], columns[15], columns[16].trim());\n \n // The following columns may contain multiple items\n String[] entrezGeneIDs = splitListColumn(columns[20]);\n String[] swissProtIDs = splitListColumn(columns[21]);\n String[] genBankRNAIDs = splitListColumn(columns[23]);\n String[] genBankProteinIDs = splitListColumn(columns[25]);\n String[] unigeneIDs = splitListColumn(columns[26]);\n String[] ensemblIDs;\n \n // if columns.length < 38, the last column (Ensembl ID) is missing\n // from the input file\n if (columns.length < 38) {\n // since there are no EnsemblIDs, set the variable to an empty array,\n // which is what splitListColumn() would do\n ensemblIDs = EMPTY_STRING_ARRAY;\n } else {\n //ensemblIDs = columns[37].split(INPUT_LIST_DELIM);\n ensemblIDs = splitListColumn(columns[37]);\n }\n \n // Write RGD Info\n writeToInfoFile(taxonID, RGD_ID_TYPE, rgdID, chromosome, mapLocation);\n \n // Write Gene Symbol and Ensembl ID Info and Links\n if (!geneSymbol.equals(\"\")) {\n writeToInfoFile(taxonID, \"Gene Symbol\", geneSymbol, chromosome, mapLocation);\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"Gene Symbol\",geneSymbol);\n }\n for (int i = 0; i < ensemblIDs.length; i++) {\n writeToInfoFile(taxonID, \"Ensembl ID\", ensemblIDs[i], chromosome, mapLocation);\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"Ensembl ID\",ensemblIDs[i]);\n }\n \n // Handle NCBI RefSeq and non-RefSeq IDs (both RNA and Protein)\n for (int i = 0; i < genBankRNAIDs.length; i++) {\n String genBankRNAID = genBankRNAIDs[i];\n if (isRefSeq(genBankRNAID)) {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"RefSeq RNA ID\",genBankRNAIDs[i]);\n } else {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"NCBI RNA ID\",genBankRNAIDs[i]);\n }\n }\n for (int i = 0; i < genBankProteinIDs.length; i++) {\n String genBankProteinID = genBankProteinIDs[i];\n if (isRefSeq(genBankProteinID)) {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"RefSeq Protein ID\",genBankProteinIDs[i]);\n } else {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"NCBI Protein ID\",genBankProteinIDs[i]);\n }\n } \n \n // create Links entries for the rest\n writeCollectionToLinksFile(RGD_ID_TYPE,rgdID,\"Entrez Gene ID\",Arrays.asList(entrezGeneIDs));\n writeCollectionToLinksFile(RGD_ID_TYPE,rgdID,\"SwissProt ID\",Arrays.asList(swissProtIDs));\n writeCollectionToLinksFile(RGD_ID_TYPE,rgdID,\"UniGene ID\",Arrays.asList(unigeneIDs));\n } \n reader.close();\n }",
"FileRecordAdmin selectByPrimaryKey(String id);",
"public ReadModelEntity(Guid id)\n {\n this.Id = MakeId(this.GetType(), id);\n this.AggregateId = id;\n }",
"int updateByPrimaryKeySelective(EhrPersonFile record);",
"int updateByPrimaryKeySelective(DiaryFile record);",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"public void setId(byte id){this.id = id;}",
"@Override\r\n\tpublic void read(Object id) {\n\t\t\r\n\t}",
"public abstract String getLineupId();",
"DiaryFile selectByPrimaryKey(String maperId);",
"public void setFileid(Integer fileid) {\n this.fileid = fileid;\n }",
"IDType getID();",
"@Import(\"id\")\n\tint getId();",
"int insertSelective(AvwFileprocess record);",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"private void setId(int ida2) {\n\t\tthis.id=ida;\r\n\t}",
"protected abstract String getId();",
"@Transactional(readOnly = true)\n Protein getProteinAndCrossReferencesByProteinId(Long id);",
"public Long getFileID()\n/* */ {\n/* 88 */ return this.fileID;\n/* */ }",
"public void setFileID(Long fileID)\n/* */ {\n/* 100 */ this.fileID = fileID;\n/* */ }",
"java.lang.String getID();",
"public byte getId() {\n return 2;\n }",
"int updateByPrimaryKey(DiaryFile record);",
"public String getIdString(CharSequence line) {\n\t\tList<String> values = parseCsvLine(line);\n\t\treturn values.get(id);\n\t}",
"void readQueryGraph(boolean isProtein, File file, int queryID) throws IOException {\n if(isProtein) {\n FileReader fileReader = new FileReader(file.getPath());\n BufferedReader br = new BufferedReader(fileReader);\n String line = null;\n int lineread = -1;\n boolean edgesEncountered = false;\n while ((line = br.readLine()) != null) {\n lineread++;\n if (lineread == 0)\n continue;\n String lineData[] = line.split(\" \");\n if (lineData.length == 2) {\n if (!edgesEncountered) {\n int id = Integer.parseInt(lineData[0]);\n String label = lineData[1];\n vertexClass vc = new vertexClass();\n vc.id1 = id;\n vc.label = label;\n vc.isProtein = true;\n queryGraphNodes.put(id, vc);\n\n } else {\n int id1 = Integer.parseInt(lineData[0]);\n int id2 = Integer.parseInt(lineData[1]);\n queryGraphNodes.get(id1).edges.put(id2, -1);\n }\n } else {\n edgesEncountered = true;\n }\n\n }\n\n }\n else {\n FileReader fileReader = new FileReader(file);\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n String line = null;\n boolean reachedDest = false;\n while ((line = bufferedReader.readLine()) != null) {\n String[] lineData = line.split(\" \");\n if (lineData[0].equals(\"t\")) {\n // new graph\n if (Integer.parseInt(lineData[2]) == queryID) {\n reachedDest = true;\n nodesHuman = new HashMap<>();\n }\n else\n reachedDest = false;\n\n } else if (lineData[0].equals(\"v\")) {\n if (reachedDest) {\n // vertex in the graph\n int id1 = Integer.parseInt(lineData[1]);\n HashMap<String, Object> insertData = new HashMap<>();\n insertData.put(\"id\", id1);\n //insertData.put(\"graphID\", id);\n int count = 0;\n vertexClass vc = new vertexClass();\n for (int i = 2; i < lineData.length; i++) {\n vc.labels.add(Integer.parseInt(lineData[i]));\n\n }\n vc.id1 = id1;\n queryGraphNodes.put(id1, vc);\n }\n } else if (lineData[0].equals(\"e\")) {\n // edge in the graph\n if (reachedDest) {\n int id1 = Integer.parseInt(lineData[1]);\n int id2 = Integer.parseInt(lineData[2]);\n int label = Integer.parseInt(lineData[3]);\n queryGraphNodes.get(id1).edges.put(id2, label);\n }\n\n }\n }\n }\n }",
"com.google.protobuf.ByteString getIdBytes();"
] | [
"0.599899",
"0.58438325",
"0.56366503",
"0.55939984",
"0.55567765",
"0.5412071",
"0.5383898",
"0.53625983",
"0.5346771",
"0.52589184",
"0.52447003",
"0.52192014",
"0.51957786",
"0.5147815",
"0.5143385",
"0.51330143",
"0.5132791",
"0.5128793",
"0.51287246",
"0.5113718",
"0.50923556",
"0.50923556",
"0.50923556",
"0.50923556",
"0.50923556",
"0.50923556",
"0.50923556",
"0.50923556",
"0.50923556",
"0.50923556",
"0.50923556",
"0.50923556",
"0.50923556",
"0.50923556",
"0.50923556",
"0.50923556",
"0.50923556",
"0.50923556",
"0.50923556",
"0.50904065",
"0.5090014",
"0.50881296",
"0.5084929",
"0.50731736",
"0.50473356",
"0.50376654",
"0.50286275",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5026882",
"0.5024708",
"0.5011819",
"0.49978703",
"0.49886894",
"0.49618438",
"0.49602896",
"0.49575487",
"0.49554372",
"0.495114",
"0.49469876",
"0.49426222"
] | 0.0 | -1 |
optional int32 id = 2; In a file of records of type Protein ids will | int getId(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void idlize() throws IOException {\r\n\t\t/**give mid who has name a id, for other mid, keep using mid to identify them*/\r\n\t\t//\t\tHashMap<String, Integer> namedmid2name = new HashMap<String, Integer>(20000000);\r\n\t\t//\t\tHashMap<String, Integer> relationname2id = new HashMap<String, Integer>(1000000);\r\n\t\t//\t\tDelimitedWriter dw = new DelimitedWriter(Main.dir + \"/visible_idize\");\r\n\t\t//\t\tDelimitedWriter dw_debug = new DelimitedWriter(Main.dir + \"/visible_debug\");\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_fbenglishname);\r\n\t\t//\t\t\tString[] l;\r\n\t\t//\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t//\t\t\t\tnamedmid2name.put(l[0], namedmid2name.size());\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tD.p(\"load mid2name finished\");\r\n\t\t//\t\t\tdr.close();\r\n\t\t//\t\t}\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_visible_str);\r\n\t\t//\t\t\tString[] l;\r\n\t\t//\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t//\t\t\t\tString mid = l[0];\r\n\t\t//\t\t\t\tInteger gid = namedmid2name.get(mid);\r\n\t\t//\t\t\t\tif (gid == null) {\r\n\t\t//\t\t\t\t\tdw_debug.write(l);\r\n\t\t//\t\t\t\t\tcontinue;\r\n\t\t//\t\t\t\t}\r\n\t\t//\t\t\t\tString relationname = l[2];\r\n\t\t//\t\t\t\tif (!relationname2id.containsKey(relationname)) {\r\n\t\t//\t\t\t\t\trelationname2id.put(relationname, relationname2id.size());\r\n\t\t//\t\t\t\t}\r\n\t\t//\t\t\t\tint relid = relationname2id.get(relationname);\r\n\t\t//\t\t\t\tdw.write(l[1], gid, relid, l[3]);\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tdr.close();\r\n\t\t//\t\t}\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_visible_str);\r\n\t\t//\t\t\tString[] l;\r\n\t\t//\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t//\t\t\t\tString mid1 = l[0];\r\n\t\t//\t\t\t\tString mid2 = l[3];\r\n\t\t//\t\t\t\tInteger gid1 = namedmid2name.get(mid1);\r\n\t\t//\t\t\t\tInteger gid2 = namedmid2name.get(mid2);\r\n\t\t//\t\t\t\tif (gid1 == null || gid2 == null) {\r\n\t\t//\t\t\t\t\tdw_debug.write(l);\r\n\t\t//\t\t\t\t\tcontinue;\r\n\t\t//\t\t\t\t}\r\n\t\t//\t\t\t\tString relationname = l[2];\r\n\t\t//\t\t\t\tif (!relationname2id.containsKey(relationname)) {\r\n\t\t//\t\t\t\t\trelationname2id.put(relationname, relationname2id.size());\r\n\t\t//\t\t\t\t}\r\n\t\t//\t\t\t\tint relid = relationname2id.get(relationname);\r\n\t\t//\t\t\t\tdw.write(l[1], gid1, relid, gid2, l[3]);\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tdr.close();\r\n\t\t//\t\t}\r\n\t\t//\t\tdw.close();\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedWriter dwrel = new DelimitedWriter(Main.dir + \"/visible_relations.temp\");\r\n\t\t//\t\t\tfor (Entry<String, Integer> e : relationname2id.entrySet()) {\r\n\t\t//\t\t\t\tdwrel.write(e.getValue(), e.getKey());\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tdwrel.close();\r\n\t\t//\t\t\tSort.sort(Main.dir + \"/visible_relations.temp\", Main.dir + \"/visible_relations\", Main.dir,\r\n\t\t//\t\t\t\t\tnew Comparator<String[]>() {\r\n\t\t//\t\t\t\t\t\t@Override\r\n\t\t//\t\t\t\t\t\tpublic int compare(String[] o1, String[] o2) {\r\n\t\t//\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t//\t\t\t\t\t\t\treturn Integer.parseInt(o1[0]) - Integer.parseInt(o2[0]);\r\n\t\t//\t\t\t\t\t\t}\r\n\t\t//\r\n\t\t//\t\t\t\t\t});\r\n\t\t//\t\t}\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedWriter dwmid = new DelimitedWriter(Main.dir + \"/visible_mid2gid.temp\");\r\n\t\t//\t\t\tfor (Entry<String, Integer> e : namedmid2name.entrySet()) {\r\n\t\t//\t\t\t\tdwmid.write(e.getValue(), e.getKey());\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tdwmid.close();\r\n\t\t//\t\t\tSort.sort(Main.dir + \"/visible_mid2gid.temp\", Main.dir + \"/visible_mid2gid\", Main.dir,\r\n\t\t//\t\t\t\t\tnew Comparator<String[]>() {\r\n\t\t//\t\t\t\t\t\t@Override\r\n\t\t//\t\t\t\t\t\tpublic int compare(String[] o1, String[] o2) {\r\n\t\t//\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t//\t\t\t\t\t\t\treturn Integer.parseInt(o1[0]) - Integer.parseInt(o2[0]);\r\n\t\t//\t\t\t\t\t\t}\r\n\t\t//\r\n\t\t//\t\t\t\t\t});\r\n\t\t//\t\t}\r\n\t}",
"public PlantID(String line){\r\n\t\tScanner sc = new Scanner(line);\r\n\t\tthis.id = sc.next();\r\n\t\tthis.name = (sc.next()+\" \" +sc.next());\r\n\t\tsc.close();\r\n\t}",
"public void createIDMap()\n {\n IDMap = new HashMap<>();\n idFile.open(\"idpassword.txt\");\n String line = idFile.getNextLine();\n\n\n\n while(line!=null) {\n String[] fields = line.split(\",\");\n IDMap.put(fields[0], fields[1]);\n\n line = idFile.getNextLine();\n\n }\n\n }",
"public void setProtein_id(java.lang.String protein_id) {\n this.protein_id = protein_id;\n }",
"public void setID() throws IOException;",
"int getIDS(String ids) throws IOException {\n String lines=\"\";\n String aux;\n int i = 0, j = 0, k = 0;\n\n BufferedReader br = new BufferedReader(new FileReader(ids)); /* Read all file adding to string */\n try {\n StringBuilder sb = new StringBuilder();\n String line = br.readLine();\n while (line != null) {\n sb.append(line);\n sb.append(System.lineSeparator());\n line = br.readLine();\n }\n lines = sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n br.close();\n }\n\n /* Add each each id to array and get the number of ids */\n i = lines.indexOf(\"id#:[\");\n k = lines.indexOf(\"]\");\n while (i >= 0) {\n /* AllPos[j] = Integer.parseInt(lines.substring(i+5,k));*/\n attrib_int(j, Integer.parseInt(lines.substring(i+5,k)));\n lines = lines.substring(k+1);\n i = lines.indexOf(\"id#:[\");\n if (i>=0)\n {\n aux = lines.substring(i);\n k = aux.indexOf(\"]\") + i;\n }\n j++;\n\n }\n ids_quantity=j;\n return (0);\n }",
"int insertSelective(EhrPersonFile record);",
"int insertSelective(DiaryFile record);",
"int insert(DiaryFile record);",
"public void setFileid(Integer fileid) {\n this.fileid = fileid;\n }",
"@Override\n\tpublic FileModel getId(Long id) {\n\t\treturn fm.getOne(id);\n\t}",
"public void setId(byte id){this.id = id;}",
"@Override\r\n\tpublic void read(Object id) {\n\t\t\r\n\t}",
"EhrPersonFile selectByPrimaryKey(Long id);",
"public void setID(String idIn) {this.id = idIn;}",
"public static void loadTargetTerm2IdMapping(File input) throws IOException {\n\t\t\tm_namesMap = new SimpleBidirectionalMap<String, Integer>();\n\t\t\tString encoding = FileUtils.getFileEncoding(input);\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(input), encoding));\n\t\t\tString line = reader.readLine();\n\t\t\tint lineNum = 1;\n\t\t\tboolean testFormat = false;\n\t\t\tif(StringUtils.checkIfNumber(line.split(\"\\t\")[0]))\n\t\t\t\ttestFormat = true;\n\t\t\twhile(line!= null) {\n\t\t\t\tif(line.equals(\"@@@\"))\n\t\t\t\t\tbreak;\n\t\t\t\tif(testFormat) {\n\t\t\t\t\tString num = line.split(\"\\t\")[0];\n\t\t\t\t\tSystem.out.println(\"key: \"+line.trim().substring(num.length()+1) + \" value: \" + Integer.parseInt(num));\n\t\t\t\t\tm_namesMap.put(line.trim().substring(num.length()+1), Integer.parseInt(num));\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"key????\" + lineNum + \"instead of \" + line.split(\"\\t\")[0]);\n\t\t\t\t\tm_namesMap.put(line.trim(), lineNum);\n\t\t\t\t}\n\t\t\t\tline = reader.readLine();\n\t\t\t\tlineNum ++;\n\t\t\t}\n\t\t}",
"public abstract String getLineupId();",
"private void processGeneFile(String inputFilename, String taxonID) throws IOException {\n BufferedReader reader = createInputFileReader(inputFilename);\n String line;\n String[] columns;\n \n \t// Skip the first line\n line = reader.readLine();\n while (reader.ready()) {\n line = reader.readLine();\n \t\t//writeToDebugFile(line);\n \t\tif (line.substring(0,1).equals(\"#\")) {\n \t\twriteToErrorFile(line, \"Comment\");\n \t\t\tcontinue;\n \t\t}\n columns = line.split(INPUT_COLUMN_DELIM);\n \n String rgdID = columns[0].trim();\n \n // If line contains column names (usually first line), skip it\n if (rgdID.equals(\"GENE_RGD_ID\")) continue;\n \n String geneSymbol = columns[1].trim();\n String chromosome = columns[6].trim(); \n \n \t\t// columns[14] == start base pair\n \t\t// columns[15] == end base pair\n \t\t// columns[16] == strand (- or +)\n \n String mapLocation = getMapLocation(columns[14], columns[15], columns[16].trim());\n \n // The following columns may contain multiple items\n String[] entrezGeneIDs = splitListColumn(columns[20]);\n String[] swissProtIDs = splitListColumn(columns[21]);\n String[] genBankRNAIDs = splitListColumn(columns[23]);\n String[] genBankProteinIDs = splitListColumn(columns[25]);\n String[] unigeneIDs = splitListColumn(columns[26]);\n String[] ensemblIDs;\n \n // if columns.length < 38, the last column (Ensembl ID) is missing\n // from the input file\n if (columns.length < 38) {\n // since there are no EnsemblIDs, set the variable to an empty array,\n // which is what splitListColumn() would do\n ensemblIDs = EMPTY_STRING_ARRAY;\n } else {\n //ensemblIDs = columns[37].split(INPUT_LIST_DELIM);\n ensemblIDs = splitListColumn(columns[37]);\n }\n \n // Write RGD Info\n writeToInfoFile(taxonID, RGD_ID_TYPE, rgdID, chromosome, mapLocation);\n \n // Write Gene Symbol and Ensembl ID Info and Links\n if (!geneSymbol.equals(\"\")) {\n writeToInfoFile(taxonID, \"Gene Symbol\", geneSymbol, chromosome, mapLocation);\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"Gene Symbol\",geneSymbol);\n }\n for (int i = 0; i < ensemblIDs.length; i++) {\n writeToInfoFile(taxonID, \"Ensembl ID\", ensemblIDs[i], chromosome, mapLocation);\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"Ensembl ID\",ensemblIDs[i]);\n }\n \n // Handle NCBI RefSeq and non-RefSeq IDs (both RNA and Protein)\n for (int i = 0; i < genBankRNAIDs.length; i++) {\n String genBankRNAID = genBankRNAIDs[i];\n if (isRefSeq(genBankRNAID)) {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"RefSeq RNA ID\",genBankRNAIDs[i]);\n } else {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"NCBI RNA ID\",genBankRNAIDs[i]);\n }\n }\n for (int i = 0; i < genBankProteinIDs.length; i++) {\n String genBankProteinID = genBankProteinIDs[i];\n if (isRefSeq(genBankProteinID)) {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"RefSeq Protein ID\",genBankProteinIDs[i]);\n } else {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"NCBI Protein ID\",genBankProteinIDs[i]);\n }\n } \n \n // create Links entries for the rest\n writeCollectionToLinksFile(RGD_ID_TYPE,rgdID,\"Entrez Gene ID\",Arrays.asList(entrezGeneIDs));\n writeCollectionToLinksFile(RGD_ID_TYPE,rgdID,\"SwissProt ID\",Arrays.asList(swissProtIDs));\n writeCollectionToLinksFile(RGD_ID_TYPE,rgdID,\"UniGene ID\",Arrays.asList(unigeneIDs));\n } \n reader.close();\n }",
"FileRecordAdmin selectByPrimaryKey(String id);",
"@Import(\"id\")\n\tint getId();",
"public String getIdString(CharSequence line) {\n\t\tList<String> values = parseCsvLine(line);\n\t\treturn values.get(id);\n\t}",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"int insert(EhrPersonFile record);",
"@Override\r\n\tpublic Newstrategypojo getline(int id) {\n\t\treturn dao.getline(id);\r\n\t}",
"public Readln(String id)\n {\n this.id = id;\n }",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"public ReadModelEntity(Guid id)\n {\n this.Id = MakeId(this.GetType(), id);\n this.AggregateId = id;\n }",
"public byte getId() {\n return 2;\n }",
"com.google.protobuf.ByteString getIdBytes();",
"com.google.protobuf.ByteString getIdBytes();",
"com.google.protobuf.ByteString getIdBytes();",
"com.google.protobuf.ByteString getIdBytes();",
"DiaryFile selectByPrimaryKey(String maperId);",
"byte[] getId();",
"public void importFile(String filename) throws IOException, BadEntryException, ImportFileException{\n try{\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n String line;\n line = reader.readLine();\n\n while(line != null){\n String[] fields = line.split(\"\\\\|\");\n int id = Integer.parseInt(fields[1]);\n if(_persons.get(id) != null){\n throw new BadEntryException(fields[0]);\n }\n\n if(fields[0].equals(\"FUNCIONÁRIO\")){\n registerAdministrative(fields);\n line = reader.readLine();\n }else if(fields[0].equals(\"DOCENTE\")){\n Professor _professor = new Professor(id, fields[2], fields[3]);\n _professors.put(id, _professor);\n _persons.put(id, (Person) _professor);\n\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n while((line != null) && (fields[0].charAt(0) == '#')){\n String course = fields[0].substring(2);\n String discipline = fields[1];\n Course _course = _courses.get(course);\n \n if(_course == null){\n _course = new Course(course);\n _disciplineCourse.put(course, new HashMap<String, Discipline>());\n _courses.put(course, _course);\n }\n\n if(_professor.getDisciplineCourses().get(course) == null){\n _professor.getDisciplineCourses().put(course, new HashMap<String, Discipline>());\n }\n\n Discipline _discipline = _disciplines.get(discipline);\n if(_discipline == null){\n _discipline = new Discipline(discipline,_course);\n _disciplines.put(discipline, _discipline);\n _course.getDisciplines().put(discipline, _discipline);\n }\n _discipline.registerObserver(_professor, id);\n _disciplineCourse.get(course).put(discipline, _discipline);\n\n if(_professor.getDisciplines() != null){\n _professor.getDisciplines().put(discipline, _discipline);\n _professor.getDisciplineCourses().get(course).put(discipline, _discipline); \n }\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n\n }\n }\n }\n }else if(fields[0].equals(\"DELEGADO\")){\n Student _student = new Student(id, fields[2], fields[3]);\n _students.put(id, _student);\n _persons.put(id, (Person) _student);\n\n line = reader.readLine();\n fields = line.split(\"\\\\|\");\n while((line != null) && (fields[0].charAt(0) == '#')){\n String course = fields[0].substring(2);\n String discipline = fields[1];\n Course _course = _courses.get(course);\n if(_course == null){\n _course = new Course(course);\n _disciplineCourse.put(course, new HashMap<String, Discipline>());\n _courses.put(course,_course);\n }\n if(_course.getRepresentatives().size() == 8){\n System.out.println(id);\n throw new BadEntryException(course);\n }else{\n _course.getRepresentatives().put(id,_student);\n }\n _student.setCourse(_course);\n Discipline _discipline = _disciplines.get(discipline);\n if(_discipline == null){\n _discipline = new Discipline(discipline, _course);\n _disciplines.put(discipline,_discipline);\n _course.getDisciplines().put(discipline, _discipline);\n }\n if(_student.getDisciplines().size() == 6){\n throw new BadEntryException(discipline);\n }else{\n if(_discipline.getStudents().size() == 100){\n throw new BadEntryException(discipline);\n }else{\n _student.getDisciplines().put(discipline,_discipline);\n _discipline.getStudents().put(id,_student);\n }\n }\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n }\n }\n }else if(fields[0].equals(\"ALUNO\")){\n Student _student = new Student(id, fields[2], fields[3]);\n _students.put(id, _student);\n _persons.put(id, (Person) _student);\n\n line = reader.readLine();\n fields = line.split(\"\\\\|\");\n while((line != null) && (fields[0].charAt(0) == '#')){\n String course = fields[0].substring(2);\n String discipline = fields[1];\n Course _course = _courses.get(course);\n if(_course == null){\n _course = new Course(course);\n _disciplineCourse.put(course, new HashMap<String, Discipline>());\n _courses.put(course, _course);\n }\n _student.setCourse(_course);\n Discipline _discipline = _disciplines.get(discipline);\n if(_discipline == null){\n _discipline = new Discipline(discipline, _course);\n _disciplines.put(discipline, _discipline);\n _course.getDisciplines().put(discipline, _discipline);\n }\n _discipline.registerObserver(_student, id);\n if(_student.getDisciplines().size() == 6){\n throw new BadEntryException(discipline);\n }else{\n _student.getDisciplines().put(discipline,_discipline);\n if(_discipline.getStudents().size() == 100){\n throw new BadEntryException(discipline);\n }else{\n _discipline.getStudents().put(id,_student);\n }\n }\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n }\n }\n\n }else{\n throw new BadEntryException(fields[0]);\n }\n }\n for(Course course: _courses.values()){\n HashMap<Integer,Student> representatives = course.getRepresentatives();\n HashMap<String, Discipline> disciplines = course.getDisciplines();\n for(Discipline discipline: disciplines.values()){\n for(Student representative: representatives.values()){\n discipline.registerObserver(representative, representative.getId());\n }\n }\n \n } \n reader.close();\n }catch(BadEntryException e){\n throw new ImportFileException(e);\n }catch(IOException e){\n throw new ImportFileException(e);\n }\n }",
"java.lang.String getID();",
"public Fila carregar(int id) throws IOException{\t\t\n\t\treturn dao.carregar(id);\n\t}",
"public String getFeatureID(long offset) throws IOException {\n\t\tdataBase.seek(offset);\n\t\tString[] array = dataBase.readLine().split(\"\\\\|\");\n\t\treturn array[0];\n\t}",
"public void setID(String id){\n this.id = id;\n }",
"protected abstract String getId();",
"IDType getID();"
] | [
"0.6008695",
"0.5880774",
"0.5836637",
"0.5629748",
"0.55493927",
"0.5451436",
"0.5427086",
"0.5412266",
"0.53402615",
"0.5337522",
"0.5337499",
"0.53348273",
"0.5303492",
"0.52798796",
"0.52786607",
"0.5261937",
"0.5235576",
"0.5223284",
"0.52216434",
"0.5214431",
"0.51940376",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5177911",
"0.51641715",
"0.51628375",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.51472247",
"0.5145134",
"0.51270646",
"0.51270646",
"0.51270646",
"0.51270646",
"0.5125682",
"0.5122762",
"0.51170903",
"0.5113751",
"0.51076204",
"0.51005906",
"0.5086489",
"0.5078073",
"0.5076653"
] | 0.0 | -1 |
optional string residues = 3; optional string residues = 3; usually be numbered sequentially. | boolean hasResidues(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getResidues();",
"public Builder setResidues(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n residues_ = value;\n onChanged();\n return this;\n }",
"public java.lang.String getResidues() {\n java.lang.Object ref = residues_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n residues_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getResidues() {\n java.lang.Object ref = residues_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n residues_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getResiduesBytes() {\n java.lang.Object ref = residues_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n residues_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Builder setResiduesBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n residues_ = value;\n onChanged();\n return this;\n }",
"public com.google.protobuf.ByteString\n getResiduesBytes() {\n java.lang.Object ref = residues_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n residues_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"private void assignMissingResidueIds() {\n \t\tfor (Atom atom: atomVector) {\n \t\t\tif (atom.residue_id == Integer.MIN_VALUE) {\n \t\t\t\tatom.residue_id = atom.authorResidue_id;\n \t\t\t\tatom.nonpolymer = true;\n \t\t\t}\n \t\t}\n \t}",
"com.google.protobuf.ByteString\n getResiduesBytes();",
"public void printResiduals(double t, double resid1, double resid2);",
"private List<String> generateN3Optional() {\n\t\treturn list(\n\t\t\t\t\t\"?conceptNode <\" + VitroVocabulary.RDF_TYPE + \"> <\" + SKOSConceptType + \"> .\\n\" +\n\t\t\t\t\t\"?conceptNode <\" + label + \"> ?conceptLabel .\"\n\t \t);\n\n }",
"@Override\n\tpublic List getListByResId(Integer resid) {\n\t\tString sql = \"select g.resid from GroupFunres g where resid = '\" + resid + \"'\";\n\t\tList list = this.queryForList(sql);\n\t\tList idList=new ArrayList();\n\t\tif (list != null && list.size() > 0) {\n\t\t\tfor(int i=0;i<list.size();i++){\n\t\t\t\tidList.add(list.get(i));\n\t\t\t}\n\t\t\treturn idList;\n\t\t}\n\t\treturn null;\n\t}",
"public Recurso(int idRecurso, String descripcionRecurso){\n this.idRecurso = idRecurso; //Recibimos el numero \n this.descripcionRecurso = descripcionRecurso; //Material que deseamos\n }",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_4() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tint[][] response = roc.generateIntegerSequences(3, 5, 0, 10, false, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tint[][] response2 = roc.generateIntegerSequences(3, 5, 0, 10, false, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(3, 5, 0, 10, false, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(3, 5, 0, 10, false, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"String slotOfCar(String regNumber);",
"@Test\n void multiConstruct() {\n var multicons = \"(define conCar_a (cons 1 2))(define conCar_b (cons 3 conCar_a))(define conCar_c (cons conCar_b 4))(define conCar_d (cons conCar_b conCar_c))\";\n Main.parseInputString(multicons);\n assertEquals(\"(3 1 . 2)\", Main.parseInputString(\"(display (car conCar_d)) \"));\n }",
"private void setInstruc(int[] instruc2) \n\t{\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"static int size_of_xri(String passed){\n\t\treturn 2;\n\t}",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_5() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString[][] response = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tString[][] response2 = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"public void setRegulations(String regulations) {\n this.regulations = regulations;\n }",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_9() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tint[][] response = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tint[][] response2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"public List<Resident> getAllResidents();",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(3, 5, 0, 10, false, 16), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"public boolean hasResidues() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public boolean hasResidues() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"@Test\r\n\tpublic void testPositiveGenerateSignedIntegerSequences_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tHashMap<String,Object> o = roc.generateSignedIntegerSequences(3, 5, 0, 10, false, 16, userData);\r\n\t\t\t\t\r\n\t\t\t\tthis.signedValueTester(roc, i, o, String[][].class, true);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_7() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(4, LENGTH, MIN, MAX, REPLACEMENT), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_10() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString[][] response = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, BASE, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tString[][] response2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, BASE, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, BASE, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, BASE, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"@Override\n\tpublic int resid() {\n\t\treturn currnet().resid();\n\t}",
"@Test\r\n\tpublic void testPositiveGenerateStrings_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString[] response = roc.generateStrings(10, 5, \"abcd\", false, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tString[] response2 = roc.generateStrings(10, 5, \"abcd\", false, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\r\n\t\t\t\tresponse = roc.generateStrings(10, 5, \"abcd\", false, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateStrings(10, 5, \"abcd\", false, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"public void readArmies(){\n\n for ( j= 0;j<countriesArmyLines.size();j++) {\n String [] armyLine = countriesArmyLines.get(j).split(\" \");\n vertices.get(Integer.parseInt(armyLine[1])-1).addArmies(Integer.parseInt(armyLine[2]));\n System.out.println(\"army \"+vertices.get(j).getNumberArmies());\n }\n // Read countries armies for AI agents\n\n for ( j= 0;j<countriesArmyLines.size();j++) {\n String [] armyLine = countriesArmyLines.get(j).split(\" \");\n allSCountries.get(Integer.parseInt(armyLine[1])).setNumberArmies(Integer.parseInt(armyLine[2]));\n // System.out.println(\"army \"+vertices.get(j).getNumberArmies());\n }\n NState.globalState.allCountries=allSCountries;\n }",
"public static String getResidSnippet(String resident) {\n String snippet = null;\n try {\n JSONObject jsonObject = new JSONObject(resident);\n snippet = jsonObject.getString(\"resid\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n return snippet;\n }",
"private static void initSet1(String[] set1) {\n\t\tset1[0] = \"rs36129689\";\n\t\tset1[1] = \"rs36153986\";\n\t\tset1[2] = \"rs493934\";\n\t\tset1[3] = \"rs36146958\";\n\t\tset1[4] = \"rs36197089\";\n\t\tset1[5] = \"rs35773247\";\n\t\tset1[6] = \"rs35346884\";\n\t\tset1[7] = \"rs493040\";\n\t\tset1[8] = \"rs35473000\";\n\t\tset1[9] = \"rs123456\";\n\t\tset1[10] = \"rs1234567\";\n\t\tset1[11] = \"rs12345678\";\n\t\tset1[12] = \"rs1234234\";\n\t\tset1[13] = \"rs492232\";\n\t\tset1[14] = \"rs492184\";\n\t\tset1[15] = \"rs123123\";\n\t}",
"public Integer getResnr() {\n\t\treturn this.resnr;\n\t}",
"private void parsePlateau(String s) {\r\n String[] parsedString = s.split(\" \");\r\n plateau[0] = Integer.parseInt(parsedString[0]);\r\n plateau[1] = Integer.parseInt(parsedString[1]);\r\n }",
"public void restricciones(String oraciones){\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Restricciones semanticas\");\n alert.setHeaderText(oraciones);\n alert.showAndWait();\n }",
"final String getResourceName(int resid) {\n if (am == null)\n return null;\n ResTable.resource_name name = new ResTable.resource_name(null, null, null);\n if (!am.getResources(false).getResourceName(resid, name)) {\n return null;\n }\n String str = null;\n if (name.mPackage != null) {\n str = name.mPackage;\n }\n\n if (name.mType != null) {\n if (str.length() > 0) {\n str += \":\";\n }\n str += name.mType;\n }\n\n if (name.mName != null) {\n if (str.length() > 0) {\n str += \"/\";\n }\n str += name.mName;\n }\n\n return str;\n }",
"AstroArg seq(AstroArg first,\n AstroArg second,\n AstroArg third,\n AstroArg fourth);",
"public void setResidue(char residue)\r\n {\n if (residue == '[')\r\n this.residue = 'n';\r\n else if (residue == ']')\r\n this.residue = 'c';\r\n else\r\n this.residue = residue;\r\n\r\n if (this.residue == 'n' || this.residue == 'c')\r\n throw new IllegalArgumentException(\"N-terminal and C-terminal labels are not currently supported\");\r\n }",
"public void setIDINTERNOPE1(int value) {\n this.idinternope1 = value;\n }",
"public String[] getVariants_ru(int[] randIds){\n Cursor crs;\n String[] variants_ru = new String[4];\n for(int i = 0; i< 4; i++){\n String[] args = new String[1];\n args[0] = Integer.toString(randIds[i]+1);\n crs = aniDB.getReadableDatabase().rawQuery(\"SELECT name_ru FROM titles WHERE id = ?\",args);\n if(crs.moveToFirst()) {\n variants_ru[i] = crs.getString(crs.getColumnIndex(\"name_ru\"));\n }\n crs.close();\n }\n return variants_ru;\n }",
"private List<String> generateN3Required(VitroRequest vreq) {\n \tList<String> n3Required = list(\n \t getPrefixesString() + \"\\n\" +\n \t \"?subject ?predicate ?conceptNode .\\n\"\n \t);\n \tList<String> inversePredicate = getInversePredicate(vreq);\n\t\t//Adding inverse predicate if it exists\n\t\tif(inversePredicate.size() > 0) {\n\t\t\tn3Required.add(\"?conceptNode <\" + inversePredicate.get(0) + \"> ?subject .\");\n\t\t}\n \treturn n3Required;\n }",
"private void inzsr() {\n\t\tid1Ctdta = 1;\n\t\tstrCtdta = \"Each KGS \";\n\t\tfor (int idxCtdta = 1; idxCtdta <= 1; idxCtdta++) {\n\t\t\tum[idxCtdta] = subString(strCtdta, id1Ctdta, 11);\n\t\t\tid1Ctdta = Integer.valueOf(id1Ctdta + 11);\n\t\t}\n\t\t// Initialise message subfile\n\t\tnmfkpinds.setPgmInd32(true);\n\t\tstateVariable.setZzpgm(replaceStr(stateVariable.getZzpgm(), 1, 8, \"WWCONDET\"));\n\t\t// - Set date\n\t\tstateVariable.setZzdate(getDate().toInt());\n\t\t// -\n\t\t// - CONTRACT\n\t\tcontractHeader.retrieve(stateVariable.getXwordn());\n\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t// - CUSTOMER\n\t\tpurchases.retrieve(stateVariable.getXwbccd());\n\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t// BR00012 Debtor not found on Purchases\n\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\tstateVariable.setXwg4tx(all(\"-\", 40));\n\t\t}\n\t\t// - REPRESENTATIVE\n\t\tsalespersons.retrieve(stateVariable.getPerson());\n\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t// BR00013 Rep not found on Salespersons\n\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\tstateVariable.setPname(all(\"-\", 34));\n\t\t}\n\t\t// - STATUS\n\t\torderStatusDescription.retrieve(stateVariable.getXwstat());\n\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t// BR00014 Status not found on Order_status_description\n\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\tstateVariable.setXwsdsc(all(\"-\", 20));\n\t\t}\n\t}",
"static void perform_xri(String passed){\n\t\tint type = type_of_xri(passed);\n\t\tif(type==1)\n\t\t\txri_with_acc(passed);\n\t}",
"public void setReserve3(java.lang.String reserve3) {\n this.reserve3 = reserve3;\n }",
"static int size_of_rlc(String passed){\n\t\treturn 1;\n\t}",
"public static void ExibirResumo(Registro registros[]) {\n for (Registro registro : registros) {\n System.out.println(registro.toStringSummary());\n }\n }",
"public static int[][] AssetCreater(String srt) {\n\r\n\t\tint Length = ArrLength(srt);\r\n\r\n\t\tint[][] TempArr = new int[5][Length];\r\n\r\n\t\tint Xoffset = 0;\r\n\r\n\t\t// goes through entire word and if any letter corrisponds with a letter it's\r\n\t\t// testing for\r\n\t\t// it calls a function to add the new symbol to 2d array\r\n\r\n\t\t// I considered commenting all this but I think it's pretty self explanitory\r\n\r\n\t\tfor (int k = 0; k < srt.length(); k++) {\r\n\r\n\t\t\tif (srt.charAt(k) == '0') {\r\n\t\t\t\t// if it's 0 add Zero Matrix to the matrix\r\n\t\t\t\tTempArr = AddToArr(TempArr, Zero, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '1') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, One, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '2') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Two, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '3') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Three, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '4') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Four, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '5') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Five, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '6') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Six, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '7') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Seven, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '8') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Eight, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '9') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Nine, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'a') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ALetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'b') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, BLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'c') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, CLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'd') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, DLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'e') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ELetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'f') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, FLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'g') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, GLetter, 4, Xoffset);\r\n\r\n\t\t\t\t// G is a bigger number so I just add 1 to offset\r\n\t\t\t\tXoffset += 1;\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'h') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, HLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'i') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ILetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'j') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, JLetter, 4, Xoffset);\r\n\r\n\t\t\t\tXoffset += 1;\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'k') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, KLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'l') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, LLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'm') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, MLetter, 5, Xoffset);\r\n\r\n\t\t\t\tXoffset += 2;\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'n') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, NLetter, 4, Xoffset);\r\n\r\n\t\t\t\tXoffset += 1;\r\n\t\t\t} else if (srt.charAt(k) == 'o') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, OLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'p') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, PLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'q') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, QLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'r') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, RLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 's') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, SLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 't') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, TLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'u') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ULetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'v') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, VLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'w') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, WLetter, 5, Xoffset);\r\n\r\n\t\t\t\tXoffset += 2;\r\n\t\t\t} else if (srt.charAt(k) == 'x') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, XLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'y') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, YLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'z') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ZLetter, 4, Xoffset);\r\n\r\n\t\t\t\tXoffset += 1;\r\n\t\t\t} else if (srt.charAt(k) == ' ') {\r\n\t\t\t\tXoffset -= 2;\r\n\t\t\t\t// space is too big number so I just sub 2 from offset\r\n\r\n\t\t\t} else if (srt.charAt(k) == '-') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, DashLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == ':') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ColonLetter, 3, Xoffset);\r\n\r\n\t\t\t}\r\n\r\n\t\t\tXoffset += 4;\r\n\t\t}\r\n\t\treturn TempArr;\r\n\t}",
"private static int _addPossibleValues(int rowNumber, int y, int x, short[][] spareMatrix,String[] rowIds, SudokuModel model) {\r\n\r\n\t\tfor(short i = 0; i <9; i++){\r\n\t\t\tif(!model.restrictionIsSatisfied(y, x, i+1))\r\n\t\t\trowNumber = _addRestrictions(rowNumber,y,x,i,spareMatrix,rowIds);\r\n\t\t}\r\n\t\t\r\n\t\treturn rowNumber;\r\n\t}",
"private String insertarCartaNaturalResources() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 0,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 5,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n true,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }",
"public ArrayList<String> findPossibleCorridors(String corridorX);",
"public static void loadMatric(int matr[][]) throws IOException{\n\n\t\tfor(int i=0;i<7;i++){\n\t\t\tfor(int j=0;j<6;j++){\n\t\t\t\tSystem.out.print(\"INSERISCI\"+i+j+\": \");\n\t\t\t\tSystem.out.flush();\n\t\t\t\tmatr[i][j]=System.in.read()-'0';\n\t\t\t\tSystem.in.skip(2);\n\t\t\t}}}",
"public int cuantosRenglones() \r\n\t{\r\n\t\tString respuesta = JOptionPane.showInputDialog(\"cuantas renglones quiere\");\r\n\t\tint respuesta1 = Integer.parseInt(respuesta);\r\n\t\treturn respuesta1;\r\n\t}",
"AstroArg seq(AstroArg first, AstroArg second, AstroArg third);",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_8() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(4, LENGTH, MIN, MAX, REPLACEMENT, BASE), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"public static String guessResidueTypeFromFeatureLength(int seqLength,\n int featureLength) {\n float basepairsPerResidue = (Math.abs((float)featureLength/\n (float)seqLength));\n return (basepairsPerResidue > 2.0 ? SequenceI.AA : SequenceI.DNA);\n }",
"public GI3( String[] textParms )\n {\n super( textParms );\n }",
"public boolean checkR3(String candidateSolution){\n\t\t//Split the string to a number of 9 digits\n\t\tString []candSol = candidateSolution.split(\"(?<=\\\\G.........)\");\n\t\tint candSolIndex = 0;\n\t\t\n\t\twhile(candSolIndex < 9){\n\n\t\t\tString testPart = candSol[candSolIndex];\n\t\t\t//R2 part\n\t\t\tboolean ok = checkIfDublicate(testPart);\n\t\t\tcandSolIndex++;\n\t\t\tif(ok){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\treturn true;\t\t\t\t\n\t\t}\n\t\treturn false;\n\t}",
"public static void muestraArreglo(int[] arreglo) {\r\n\t\tfor (int i = 0; i < arreglo.length; i++) {\r\n\t\t\tescribir(\"[\" + arreglo[i] + \"]\", false);\r\n\t\t}\r\n\t}",
"private static void shift(RescueMap rm, int n1, int n2, int n3, int[] c){\n\t\t//get the normal to the first road\n\t\tlong n1y = rm.getX(n2) - rm.getX(n1);\n\t\tlong n1x = rm.getY(n1) - rm.getY(n2);\n\t\t//get normal to the second road\n\t\tlong n2y = rm.getX(n3) - rm.getX(n2);\n\t\tlong n2x = rm.getY(n2) - rm.getY(n3);\n\t\t//get length of each normal\n\t\tdouble len1 = Math.sqrt(n1y*n1y+n1x*n1x);\n\t\tdouble len2 = Math.sqrt(n2y*n2y+n2x*n2x);\n\n\t\tint d = 3000;//Math.max(rm.getRoad(n1,n2),rm.getRoad(n2,n3))*2000 +500;\n\n\t\tint x1 = rm.getX(n1) - (int)(n1x*d*1.0/len1);\n\t\tint x2 = rm.getX(n2) - (int)(n1x*d*1.0/len1);\n\t\tint y1 = rm.getY(n1) - (int)(n1y*d*1.0/len1);\n\t\tint y2 = rm.getY(n2) - (int)(n1y*d*1.0/len1);\n\t\tint x3 = rm.getX(n2) - (int)(n2x*d*1.0/len2);\n\t\tint x4 = rm.getX(n3) - (int)(n2x*d*1.0/len2);\n\t\tint y3 = rm.getY(n2) - (int)(n2y*d*1.0/len2);\n\t\tint y4 = rm.getY(n3) - (int)(n2y*d*1.0/len2);\n\n\t\tint[] intersect = intersection(x1,y1,x2,y2,x3,y3,x4,y4);\n\t\tif(intersect == null){\n\t\t\tc[0] -= (n1x/len1)*d;\n\t\t\tc[1] -= (n1y/len1)*d;\n\t\t}\n\t\telse{\n\t\t\tc[0] = intersect[0];\n\t\t\tc[1] = intersect[1];\n\t\t}\n\t}",
"public void setNoOfRelevantLines(int norl) { this.noOfRelevantLines = norl; }",
"@Override\n\tpublic void addRecipes() \n\t{\n GameRegistry.addRecipe(new ItemStack(this), \"xxx\", \"xyx\", \"xxx\",\t\t\t\t\t\t\n 'x', Items.fireworks, \n 'y', Items.string\n ); \n \n // Bundle of rockets back to 8 rockets\n GameRegistry.addShapelessRecipe(new ItemStack(Items.fireworks, 8), new ItemStack(this));\n\t}",
"static int setCon(String input){\n if (input.equals(\"little\")||input.equals(\"1\")) return 1;\n if (input.equals(\"average\")||input.equals(\"2\"))return 2;\n if (input.equals(\"lot\") || input.equals(\"3\")) return 3;\n if (input.equals(\"manual\") || input.equals(\"4\")) return 4;\n throw new RuntimeException(\n \"Illigal second paramter on command line, use : <little,average,lot>\");\n }",
"public void setResultStrings (byte[][] extraResultStrings) {\n\t\t\t\n\t\t\tint extraLength = 0;\n\t\t\t\n\t\t\tif (extraResultStrings != null)\n\t\t\t\textraLength = extraResultStrings.length;\n\t\t\t\n\t\t\tresultStrings = new byte[defaultResultStrings.length + extraLength][];\n\t\t\t\n\t\t\tint k;\n\t\t\tfor (k=0; k < defaultResultStrings.length; k++)\n\t\t\t\tresultStrings[k] = defaultResultStrings[k];\n\t\t\t\n\t\t\tfor (k=0; k < extraLength; k++)\n\t\t\t\tresultStrings[defaultResultStrings.length+k] = extraResultStrings[k];\n\t\t\t\n\t\t\tresultIndexes = new int[resultStrings.length];\n\t\t\tresultDetected = new boolean[resultStrings.length];\n\t\t\t\n\t\t\tfor (k=0; k < resultStrings.length; k++) {\n\t\t\t\tresultIndexes[k] = -1;\n\t\t\t\tresultDetected[k] = false;\n\t\t\t}\n\t\t\t\n\t\t\tindex = -1;\n\t\t}",
"public void setRsv3(String rsv3) {\r\n this.rsv3 = rsv3;\r\n }",
"public static void main(String[] args) {\n\t\tint n = 4;\n\t\tint index = 0;\n\t\tint a[] = { 1, 1, 2, 2 };\n\t\tString data[] = { \"hackerrank\", \"hacker\" };\n\t\tString partial = \"hak\";\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\n\t\t\tif(a[i] == 1){\n\t\t\t\tString contact = data[index++];\n\t\t\t\tadd(contact);\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"Count: \"+find(partial));\n\t\t\t}\n\t\t}\n\t}",
"public void restock() {\n List<String> bmwModels = new ArrayList<String>();\n bmwModels.add(\"1 Series\");\n bmwModels.add(\"2 Series\");\n bmwModels.add(\"3 Series\");\n bmwModels.add(\"4 Series\");\n bmwModels.add(\"M4\");\n cars.put(\"BMW\", bmwModels);\n List<String> vauxhallModels = new ArrayList<String>();\n vauxhallModels.add(\"Corsa\");\n vauxhallModels.add(\"Viva\");\n vauxhallModels.add(\"Astra\");\n vauxhallModels.add(\"Insignia\");\n cars.put(\"Vauxhall\", vauxhallModels);\n List<String> fordModels = new ArrayList<String>();\n fordModels.add(\"KA\");\n fordModels.add(\"Fiesta\");\n fordModels.add(\"Focus\");\n fordModels.add(\"Mondea\");\n fordModels.add(\"Kuga\");\n cars.put(\"Ford\", fordModels);\n }",
"public Builder clearResidues() {\n bitField0_ = (bitField0_ & ~0x00000004);\n residues_ = getDefaultInstance().getResidues();\n onChanged();\n return this;\n }",
"@Override\n\tpublic int resid() {\n\t\tfinal float rate = mProgress/mPeroid;\n\t\tint index = (int)(rate-(int)rate)*mArry.length;\n\t\tif(index >= mArry.length){\n\t\t\treturn mArry.length-1;\n\t\t}\n\t\treturn index;\n\t}",
"public boolean restrizione14()\r\n\t\tthrows RestrizioniSpecException\r\n\t\t{\r\n\t\tfor (int i = 0; i < this.equivalenzeInput.size(); i++)\r\n\t\t\t{\r\n\t\t\t// si preleva il nome dell'interazione di output connessa a questa componente\r\n\t\t\tAttacDecl attacDecl = this.attacsDeclInput.get(i);\r\n\t\t\tString string = attacDecl.getOutputInteraction();\r\n\t\t\t// si preleva la relativa equivalenza\r\n\t\t\tIEquivalenza equivalenza = this.equivalenzeInput.get(i);\r\n\t\t\t// si preleva l'azione corrispondente a string\r\n\t\t\tAction action = equivalenza.getActionFromName(string);\r\n\t\t\tif (action == null)\r\n\t\t\t\t{\r\n\t\t\t\tString string2 = equivalenza.getAEIdecl().getName();\r\n\t\t\t\tthrow new RestrizioniSpecException(\"The \"+string+\" action of instance \"+\r\n\t\t\t\t\t\tstring2+\" don't found\");\r\n\t\t\t\t}\r\n\t\t\tActionRate actionRate = action.getRate();\r\n\t\t\tif (!(actionRate instanceof RateInf))\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\treturn true;\r\n\t\t}",
"@SuppressWarnings(\"unused\")\n private Object[] parametersTestHasEnough() {\n return new Object[] { \n new Object[] { new Ingredient(\"have\", 100, \"tbsp.\"), new Ingredient(\"needed\", 1, \"cup\"), true}, \n new Object[] { new Ingredient(\"have\", 5, \"\"), new Ingredient(\"needed\", 10, \"tsp\"), false}, \n new Object[] { new Ingredient(\"have\", 3, \"cups.\"), new Ingredient(\"needed\", 1, \"gallon\"), false},\n new Object[] { new Ingredient(\"have\", 3, \"ounces.\"), new Ingredient(\"needed\", 1, \"gallon\"), false},\n new Object[] { new Ingredient(\"have\", 100, \"tbsp.\"), new Ingredient(\"needed\", 100, \"tbsp\"), true},\n new Object[] { new Ingredient(\"have\", 100, \"\"), new Ingredient(\"needed\", 100, \"tbsp\"), true},\n new Object[] { new Ingredient(\"have\", 100, \"oz\"), new Ingredient(\"needed\", 50, null), true},\n new Object[] { new Ingredient(\"have\", 3, \"ct.\"), new Ingredient(\"needed\", 2, \"fake\"), true},\n new Object[] { new Ingredient(\"have\", 3, \"ct.\"), null, true},\n };\n }",
"void mo19167a(String str, String str2, int i, String str3, int i2);",
"public Recipe(String[] in)\r\n {\r\n double temp;\r\n if (in.length == 3){\r\n this.origQty = in[0];\r\n this.measure = in[1];\r\n this.ingredient = in[2];\r\n this.w_qty = makeDecimal(in[0]);\r\n }\r\n else {if (in.length == 5) {\r\n this.origQty = in[0] + \" \" + in[1];\r\n this.measure = in[2];\r\n this.ingredient = in[3] + \" \" + in[4];\r\n temp = makeDecimal(in[1]);\r\n this.w_qty = Double.parseDouble(in[0])+ temp;\r\n }\r\n else if (in.length == 4) {\r\n if (in[1].contains(\"/\")) {\r\n this.origQty = in[0] + \" \" + in[1];\r\n this.measure = in[2];\r\n this.ingredient = in[3];\r\n temp = makeDecimal(in[1]);\r\n this.w_qty = temp + Double.parseDouble(in[0]);}\r\n else {\r\n this.origQty = in[0];\r\n this.measure = in[1];\r\n this.ingredient = in[2] + \" \" + in[3];\r\n this.w_qty = makeDecimal(in[0]);}\r\n }\r\n }\r\n this.working_measure = measure;\r\n this.final_measure = measure;\r\n }",
"public Integer requestPlatinumResources() throws java.rmi.RemoteException {\n\tInteger result = null;\n\ttry {\n\t\t\n\t\tlogIt(\"Get resources from platinum called\");\n\t\t\n\t\t// 1. Check if processing enabled\n\t\tif (!isProcessingEnabled())\n\t\t\treturn result;\n\n\t\t// 2. Create query\n\t\tKeyGeneratorAccessBean keygen = new KeyGeneratorAccessBean();\n\t\tint locIdQuery = keygen.getNextKey(QRYGENSEQ);\n\t\ttry {\n\t\t\tPIEQueryAccessBean query = new PIEQueryAccessBean(locIdQuery, REQUESTTYPES.IRES, OPERATIONTYPES.INF,\n\t\t\t\tSTATUSTYPES.PREPARE, EXTSTATUSTYPES.WAIT, new java.sql.Timestamp(new java.util.Date().getTime()));\n\t\t\t\n\t\t\tKeyGeneratorAccessBean loggen = new KeyGeneratorAccessBean();\n\t\t\tPIEQueryLogAccessBean log = new PIEQueryLogAccessBean(loggen.getNextKey(LOGGENSEQ),\n\t\t\t\tlocIdQuery, \"I\", ERRORTYPES.RESOURCES_REQUEST, \"Resources request\", new java.sql.Timestamp(new java.util.Date().getTime()));\n\n\t\t\tquery.setStatus(STATUSTYPES.PREPAREOK);\n\t\t\tquery.commitCopyHelper();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// Cannot create query - fatal ....\n\t\t\tSystem.out.println(\"PLATINUM-SYNC: cannot create query\");\n\t\t\tthrow e;\n\t\t}\n\t\tlogIt(\"Creating request header with id=\" + locIdQuery);\n\t\tresult = new Integer(locIdQuery);\n\t\t\t\n\t} catch( Exception e ) {\n\t\tthrow new java.rmi.RemoteException( \"PLATINUM-SYNC: Unknown error while sending resources to platinum\", e );\n\t}\n\treturn result;\n}",
"public void setResearchno(String researchno) {\r\n\t\tthis.researchno = researchno;\r\n\t}",
"private static void setClonalSexRecGenomes(String haplotypeFile, String recombinationFile, String chromosomeDefinition, String sexInfoFile, boolean haploids)\n {\n if(! new File(haplotypeFile).exists()) throw new IllegalArgumentException(\"Haplotype file does not exist \"+haplotypeFile);\n if(recombinationFile!=null) throw new IllegalArgumentException(\"It is not allowed to provide a recombination file for simulation of clonal evolution\" + recombinationFile);\n if(sexInfoFile != null) throw new IllegalArgumentException(\"It is not allowed to provide a sex info file for simulations of clonal evolution \"+sexInfoFile);\n\n sexInfo=SexInfo.getClonalEvolutionSexInfo();\n\n DiploidGenomeReader dgr =new DiploidGenomeReader(haplotypeFile,sexInfo.getSexAssigner(),haploids,logger);\n SexedDiploids sd=dgr.readGenomes();\n if(sd.countMales()>0) throw new IllegalArgumentException(\"It is not allowed to specify male-haplotypes for clonal evolution, solely hermaphrodites or no sex is allowed\");\n if(sd.countFemales()>0) throw new IllegalArgumentException(\"It is not allowed to specify female-haplotypes for clonal evolution, solely hermaphrodites or no sex is allowed\");\n sexInfo.setHemizygousSite(sd.getDiploids().get(0).getHaplotypeA().getSNPCollection());\n\n ArrayList<Chromosome> chromosomes=sd.getDiploids().get(0).getHaplotypeA().getSNPCollection().getChromosomes();\n recombinationGenerator = new RecombinationGenerator(CrossoverGenerator.getDefault(), new RandomAssortmentGenerator(chromosomes,true));\n\n basePopulation=sd.updateSexChromosome(sexInfo);\n\n }",
"public String sparseRecTest() {\n \tString result = \" \";\n \tint sparse_count= 0;\n for(int i = 0; i <this.r;i++) {\n \tfor(int j = 0 ; j <this.s * 2; j ++) {\n \t\tif(net[i][j].isOneSparse())\n \t\t{\n \t\t\tsparse_count ++;\n \t\t}\n \t}\n }\n if(sparse_count == 0)\n {\n \treturn \"zero /n\";\n }\n else if(sparse_count > this.s)\n {\n \treturn \"more\";\n }\n else\n {\n \tHashMap<Integer, Integer> hmap = recover();\n if (hmap != null) {\n Set set = hmap.entrySet();\n Iterator iterator = set.iterator();\n while (iterator.hasNext()) {\n Map.Entry value = (Map.Entry) iterator.next();\n\n result = result + value.getKey() + \" \" + value.getValue() + \"\\n\";\n }\n\n }\t\n }\n return result;\n }",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_2() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(3, 5, 0, 10, false), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"static void perform_rrc(String passed){\n\t\tint type = type_of_rrc(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\trrc_without_carry(passed);\n\t\t\tbreak;\n\t\t}\n\t}",
"public void init() {\n\t\tinit(\"1,0 3,0 5,0 7,0 9,0 0,1 2,1 4,1 6,1 8,1 1,2 3,2 5,2 7,2 9,2 0,3 2,3 4,3 6,3 8,3\", \n\t\t\t \"1,6 3,6 5,6 7,6 9,6 0,7 2,7 4,7 6,7 8,7 1,8 3,8 5,8 7,8 9,8 0,9 2,9 4,9 6,9 8,9\"); \n }",
"public static void main(String[] args) {\n\t\tRandom rand = new Random();\n\t\tint first = rand.nextInt(7);\n\t\tint second = rand.nextInt(7);\n\t\tint third = rand.nextInt(7);\n\t\t\n\t\tint middle = rand.nextInt(741);\n\t\t\n\t\tint last = rand.nextInt(9999);\n\t\t\n\t\tString middleString= Integer.toString(middle);\n\t\tString lastString = Integer.toString(last); \n\t\tString firstString = Integer.toString(first);\n\t\tString secondString = Integer.toString(second);\n\t\tString thirdString = Integer.toString(third);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\twhile (middleString.length()<3) {\n\t\t\tmiddleString = \"0\" + middleString;\n\t\t\t\n\t\t}\n\t\t\n\t\twhile (lastString.length()<4){\n\t\t\tlastString = \"0\" + lastString;\n\t\t}\n\t\t\n\t\tSystem.out.println(firstString + secondString + thirdString + \"-\"+ middleString +\"-\"+ lastString);\n\t\t\n\t\t\n\t}",
"@Test public void testParseManyDigits3() {\n String pows10 =\n \"0.00000000000001\\n\"+\n \"1000001\\n\"+\n \"2000001\\n\"+\n \"\";\n double[][] pows10_exp = new double[][] {\n ard(1e-14),\n ard(1000001L),\n ard(2000001L),\n };\n Key k = FVecFactory.makeByteVec(pows10);\n Key r1 = Key.make(\"r1\");\n ParseDataset.parse(r1, k);\n testParsed(r1,pows10_exp);\n }",
"static int[] getFirstResultString(int[] array){\n int from = (n * (lineNumber-1));\n int[] rezultColumn = Arrays.copyOfRange(array, from, from + n);\n return rezultColumn;\n }",
"private void checkRequiredSemaphores() {\n if (car.start == 1){\n if (car.end == 2)\n requiredSemaphores.add(Street.sw);\n else if (car.end == 3){\n requiredSemaphores.add(Street.sw);\n requiredSemaphores.add(Street.se);\n }\n // end = 4\n else {\n requiredSemaphores.add(Street.sw);\n requiredSemaphores.add(Street.se);\n requiredSemaphores.add(Street.ne);\n }\n }\n else if (car.start == 2){\n if (car.end == 3)\n requiredSemaphores.add(Street.se);\n else if (car.end == 4){\n requiredSemaphores.add(Street.se);\n requiredSemaphores.add(Street.ne);\n }\n // end = 1\n else {\n requiredSemaphores.add(Street.se);\n requiredSemaphores.add(Street.ne);\n requiredSemaphores.add(Street.nw);\n }\n }\n else if (car.start == 3){\n if (car.end == 4)\n requiredSemaphores.add(Street.ne);\n else if (car.end == 1){\n requiredSemaphores.add(Street.ne);\n requiredSemaphores.add(Street.nw);\n }\n // end = 2\n else{\n requiredSemaphores.add(Street.ne);\n requiredSemaphores.add(Street.nw);\n requiredSemaphores.add(Street.sw);\n }\n }\n // start = 4\n else{\n if (car.end == 1)\n requiredSemaphores.add(Street.nw);\n else if (car.end == 2){\n requiredSemaphores.add(Street.nw);\n requiredSemaphores.add(Street.sw);\n }\n // end = 3\n else {\n requiredSemaphores.add(Street.nw);\n requiredSemaphores.add(Street.sw);\n requiredSemaphores.add(Street.se);\n }\n }\n }",
"public String[] getVariants(int[] randIds){\n Cursor crs;\n String[] variants = new String[4];\n for(int i = 0; i< 4; i++){\n String[] args = new String[1];\n args[0] = Integer.toString(randIds[i]+1);\n crs = aniDB.getReadableDatabase().rawQuery(\"SELECT name FROM titles WHERE id = ?\",args);\n if(crs.moveToFirst()) {\n variants[i] = crs.getString(crs.getColumnIndex(\"name\"));\n }\n crs.close();\n }\n return variants;\n }",
"void playYearOfPlentyCard(String resource1, String resource2);",
"void adobe_coeff( CharPtr make, CharPtr model) {\n \n adobe_coeff( make.toString(), model.toString());\n}",
"private void collectRandomRIDs(){\n\t\tint numRIDs = iterations + 1;\n\t\trandomRID_list = new String[numRIDs];\n\t\tString randomClusterName;\n\t\tint clusterID, randomPosition;\n\t\t\n\t\t// Collect #iterations of random RID's\n\t\tfor(int i=0; i < numRIDs; i++){\n\t\t\trandomClusterName = env.VERTEX_PREFIX + (int) (Math.random() * env.NUM_VERTEX_TYPE);\n\t\t\tclusterID = db.getClusterIdByName(randomClusterName); \n\t\t\tOClusterPosition [] range = db.getStorage().getClusterDataRange(clusterID);\n\t\t\t\n\t\t\trandomPosition = (int) (Math.random() * range[1].intValue()) + range[0].intValue();\n\t\t\trandomRID_list[i] = \"#\" + clusterID + \":\" + randomPosition;\n\t\t}\n\t\t\n\t}",
"public static void main(String[] args) throws Exception {\n int arreglo[] = new int [3];\n String nombres[] = new String[5];\n Scanner nom = new Scanner(System.in);\n arreglo[1] = 1;\n nombres[2] = \"Mau\";\n System.out.println(arreglo[1] + nombres[2]);\n\n for (int i = 0; i < 5; i++){\n System.out.println(\"Escribe tu nombre: \");\n nombres[i] = nom.nextLine();\n System.out.println(nombres[i]);\n }\n }",
"public int getIndicationReps() {\r\n \treturn this.getReps(19);\r\n }",
"private String theFunctionThatSolvesAllProblems(String input) throws IOException {\n\n first = new MyInt[9];\n second = new MyInt[9];\n third = new MyInt[9];\n myPointers = new MyIntPointer[7];\n\n M = new MyInt();\n D = new MyInt();\n C = new MyInt();\n L = new MyInt();\n X = new MyInt();\n V = new MyInt();\n I = new MyInt();\n\n hasI = false;\n hasX = false;\n hasC = false;\n hasM = false;\n hasV = false;\n hasL = false;\n hasD = false;\n\n firstLength = 0;\n secondLength = 0;\n thirdLength = 0;\n\n initializeEquation(input);\n\n return arabic();\n\n }",
"static void perform_ral(String passed){\n\t\tint type = type_of_ral(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tral_with_car(passed);\n\t\t\tbreak;\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tRpair<Integer, String> r1 = new Rpair<Integer,String>(24,\"Vishal\");\r\n\t\tSystem.out.println(r1.getf());\r\n\t\tSystem.out.println(r1.gets());\r\n\t\tint a = 10;\r\n\t\tint b = 20;\r\n\t\tint c = 30;\r\n\t\tRpair<Integer, Integer> intenal = new Rpair<Integer, Integer>(a, b);\r\n\t\tRpair<Rpair<Integer, Integer>, Integer> p3 = new Rpair<Rpair<Integer,Integer>, Integer>(intenal, c);\r\n\t\tSystem.out.println(p3.gets());\r\n\t\tSystem.out.println(p3.getf().getf());\r\n\t\tSystem.out.println(p3.getf().gets());\r\n\t\t\r\n\t}",
"public void genres(Parameters parameters, final onSuccessCallback callback){\n getJSONArray(parameters.buildQuery(Endpoint.GENRES), new onSuccessCallback() {\n @Override\n public void onSuccess(JSONArray result) {\n callback.onSuccess(result);\n }\n\n @Override\n public void onError(VolleyError error) {\n callback.onError(error);\n }\n });\n }",
"public void getReligion(final Spinner st, final String Rcode){\n Toast.makeText(getApplicationContext(),\"input code \"+Rcode,Toast.LENGTH_SHORT).show();\n if(!Rcode.equals(\"0\")){\n//\n StringRequest stringRequest = new StringRequest(Request.Method.POST, DatabaseInfo.GetReligionListURL,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n Log.d(\"Volleyresponse\",response.toString());\n try {\n JSONArray jArray;\n JSONObject Jobject = (JSONObject) new JSONTokener(response).nextValue();\n Log.e(\"volleyJson\", Jobject.toString());\n try {\n jArray = Jobject.getJSONArray(\"religion\");\n int jarraylength=jArray.length()+1;\n String c1[] = new String[jarraylength];\n String c2[] = new String[jarraylength];\n String c3[] = new String[jarraylength];\n Toast.makeText(getApplicationContext(),String.valueOf(jArray.length()),Toast.LENGTH_SHORT).show();\n\n for (int i = 0; i < jarraylength; i++) {\n JSONObject json_data = jArray.getJSONObject(i);\n\n String cid = json_data.getString(\"id\");\n String sname = json_data.getString(\"caste\");\n Log.e(sname, \"got\");\n Log.e(\"got\",json_data.toString());\n Log.e(cid, \"got\");\n\n\n cid = json_data.getString(\"id\");\n sname = json_data.getString(\"caste\");\n c1[i]=cid;\n c3[i]=sname;\n\n\n religioncode1.add(cid);\n religionname1.add(sname);\n }\n// c1[i]=cid;\n// c3[i]=sname;\n\n// statecodename=c3;\n// statecodeid=c1;\n\n\n } catch (Exception e) {\n }\n\n religionname1.add(0,\"Select Caste\");\n religioncode1.add(0,\"0\");\n ArrayAdapter<String> spinnerAdapter =new ArrayAdapter<String>(getApplicationContext(),R.layout.spinner_iltem,religionname1);\n spinnerAdapter.setDropDownViewResource(R.layout.spinner_iltem);\n\n st.setAdapter(spinnerAdapter);\n st.setSelection(0);\n\n } catch (Exception e) {\n }\n// pDialog.hide();\n // Toast.makeText(getActivity().getApplication(),response,Toast.LENGTH_LONG).show();\n }\n },\n\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n// pDialog.hide();\n Toast.makeText(MatrimonyRegistration.this,error.toString(), Toast.LENGTH_LONG).show();\n }\n }) {\n @Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"cid\", String.valueOf(Rcode));\n// Log.e(\"country code send\",countrycode);\n return params;\n }\n\n };\n\n //Adding the string request to the queue\n RequestQueue requestQueue = Volley.newRequestQueue(this);\n requestQueue.add(stringRequest);\n\n stringRequest.setRetryPolicy(new DefaultRetryPolicy(10000,\n DefaultRetryPolicy.DEFAULT_MAX_RETRIES,\n DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));\n }\n else{\n//\n StringRequest stringRequest = new StringRequest(Request.Method.POST, DatabaseInfo.GetReligionListURL,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n Log.d(\"Volleyresponse\",response.toString());\n try {\n JSONArray jArray;\n JSONObject Jobject = (JSONObject) new JSONTokener(response).nextValue();\n Log.e(\"volleyJson\", Jobject.toString());\n try {\n jArray = Jobject.getJSONArray(\"religion\");\n int jarraylength=jArray.length()+1;\n String c1[] = new String[jarraylength];\n String c2[] = new String[jarraylength];\n String c3[] = new String[jarraylength];\n Toast.makeText(getApplicationContext(),String.valueOf(jArray.length()),Toast.LENGTH_SHORT).show();\n\n for (int i = 0; i < jarraylength; i++) {\n JSONObject json_data = jArray.getJSONObject(i);\n\n String cid = json_data.getString(\"id\");\n String sname = json_data.getString(\"caste\");\n Log.e(sname, \"religion\");\n Log.e(\"got\",json_data.toString());\n Log.e(cid, \"relition code\");\n\n\n cid = json_data.getString(\"id\");\n sname = json_data.getString(\"caste\");\n c1[i]=cid;\n c3[i]=sname;\n\n\n religioncode2.add(cid);\n religionname2.add(sname);\n }\n// c1[i]=cid;\n// c3[i]=sname;\n\n// statecodename=c3;\n// statecodeid=c1;\n\n\n } catch (Exception e) {\n }\n Toast.makeText(getApplicationContext(),String.valueOf(Arrays.asList(religionname2)),Toast.LENGTH_LONG).show();\n religionname2.add(0,\"Select Religion\");\n religioncode2.add(0,\"0\");\n ArrayAdapter<String> spinnerAdapter =new ArrayAdapter<String>(getApplicationContext(),R.layout.spinner_iltem,religionname2);\n spinnerAdapter.setDropDownViewResource(R.layout.spinner_iltem);\n\n st.setAdapter(spinnerAdapter);\n st.setSelection(0);\n\n } catch (Exception e) {\n }\n// pDialog.hide();\n // Toast.makeText(getActivity().getApplication(),response,Toast.LENGTH_LONG).show();\n }\n },\n\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n// pDialog.hide();\n Toast.makeText(MatrimonyRegistration.this,error.toString(), Toast.LENGTH_LONG).show();\n }\n }) {\n @Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"cid\", String.valueOf(Rcode));\n// Log.e(\"country code send\",countrycode);\n return params;\n }\n\n };\n\n //Adding the string request to the queue\n RequestQueue requestQueue = Volley.newRequestQueue(this);\n requestQueue.add(stringRequest);\n\n stringRequest.setRetryPolicy(new DefaultRetryPolicy(10000,\n DefaultRetryPolicy.DEFAULT_MAX_RETRIES,\n DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));\n }\n\n }",
"Girl(String n,String p,String i,String a,String b,String t,String pr) {\n \n name = n;\n pairedto = p;\n intelligence = Integer.parseInt(i);\n attractiveness = Integer.parseInt(a);\n mBudget = Integer.parseInt(b); \n type = t;\n pref = pr;\n \n }",
"public boolean verdict(int n[]) {\n\treturn true;\n }",
"@Override\n protected Map<String, String> getParams() {\n int noofstudent = 2*Integer.parseInt(noofconflicts);\n String checkconflicts = \"jbscjas\";//send anything part\n String uid = AppController.getString(WingForm.this,\"Student_id\");\n Map<String, String> params = new LinkedHashMap<String, String>();\n //using LinkedHashmap because backend does not check key value and sees order of variables\n params.put(\"checkconflicts\", checkconflicts);\n params.put(\"noofstudent\", String.valueOf(noofstudent));\n for(int m=0;m<noofstudent;m++){\n params.put(\"sid[\"+m+\"]\",sid[m]);\n }\n\n\n return params;\n }",
"@Override\n\tpublic Instruction parseInstruction(InstructionSequence seq, State state) \n\t{\n\t\treturn new Iconst3();\n\t}",
"public void setRois(Roi[] rois) {\n this.rois = rois;\n }"
] | [
"0.6503305",
"0.6320637",
"0.5611154",
"0.55559504",
"0.55280805",
"0.5395395",
"0.53659534",
"0.5141419",
"0.49817008",
"0.48224068",
"0.47537264",
"0.46486726",
"0.4634953",
"0.46222705",
"0.45618212",
"0.4559067",
"0.45572215",
"0.45228228",
"0.45215788",
"0.45136228",
"0.44889778",
"0.4485556",
"0.44838998",
"0.44739473",
"0.44589868",
"0.44208175",
"0.44147655",
"0.44121033",
"0.4408763",
"0.44070974",
"0.44022238",
"0.43881926",
"0.43752712",
"0.43738288",
"0.4363693",
"0.43618682",
"0.43360016",
"0.43256393",
"0.43226779",
"0.4317093",
"0.43049756",
"0.42950004",
"0.42855966",
"0.42751163",
"0.42713585",
"0.4266073",
"0.42648745",
"0.42630807",
"0.42624152",
"0.42540067",
"0.42504352",
"0.4249264",
"0.42423126",
"0.42328304",
"0.4228087",
"0.4218764",
"0.42159912",
"0.42151305",
"0.41939998",
"0.4193007",
"0.41922346",
"0.41904986",
"0.41899484",
"0.41889924",
"0.41885886",
"0.41881818",
"0.41880018",
"0.4184167",
"0.41760826",
"0.41706154",
"0.4163634",
"0.41603428",
"0.41574982",
"0.4157059",
"0.4145056",
"0.41442403",
"0.4140396",
"0.4138977",
"0.413833",
"0.41376406",
"0.41276684",
"0.41250125",
"0.41195154",
"0.41191",
"0.41159734",
"0.41144258",
"0.4110503",
"0.4110168",
"0.41096956",
"0.41095316",
"0.410918",
"0.41085765",
"0.41052166",
"0.41017976",
"0.4094505",
"0.40903872",
"0.40902725",
"0.4088987",
"0.40874085",
"0.40852964"
] | 0.50625014 | 8 |
optional string residues = 3; usually be numbered sequentially. | java.lang.String getResidues(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Builder setResidues(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n residues_ = value;\n onChanged();\n return this;\n }",
"public java.lang.String getResidues() {\n java.lang.Object ref = residues_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n residues_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getResidues() {\n java.lang.Object ref = residues_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n residues_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getResiduesBytes() {\n java.lang.Object ref = residues_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n residues_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getResiduesBytes() {\n java.lang.Object ref = residues_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n residues_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Builder setResiduesBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n residues_ = value;\n onChanged();\n return this;\n }",
"private List<String> generateN3Optional() {\n\t\treturn list(\n\t\t\t\t\t\"?conceptNode <\" + VitroVocabulary.RDF_TYPE + \"> <\" + SKOSConceptType + \"> .\\n\" +\n\t\t\t\t\t\"?conceptNode <\" + label + \"> ?conceptLabel .\"\n\t \t);\n\n }",
"private void assignMissingResidueIds() {\n \t\tfor (Atom atom: atomVector) {\n \t\t\tif (atom.residue_id == Integer.MIN_VALUE) {\n \t\t\t\tatom.residue_id = atom.authorResidue_id;\n \t\t\t\tatom.nonpolymer = true;\n \t\t\t}\n \t\t}\n \t}",
"boolean hasResidues();",
"static int size_of_xri(String passed){\n\t\treturn 2;\n\t}",
"public void setReserve3(java.lang.String reserve3) {\n this.reserve3 = reserve3;\n }",
"com.google.protobuf.ByteString\n getResiduesBytes();",
"@Test\n void multiConstruct() {\n var multicons = \"(define conCar_a (cons 1 2))(define conCar_b (cons 3 conCar_a))(define conCar_c (cons conCar_b 4))(define conCar_d (cons conCar_b conCar_c))\";\n Main.parseInputString(multicons);\n assertEquals(\"(3 1 . 2)\", Main.parseInputString(\"(display (car conCar_d)) \"));\n }",
"String slotOfCar(String regNumber);",
"public GI3( String[] textParms )\n {\n super( textParms );\n }",
"private void setInstruc(int[] instruc2) \n\t{\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"static int setCon(String input){\n if (input.equals(\"little\")||input.equals(\"1\")) return 1;\n if (input.equals(\"average\")||input.equals(\"2\"))return 2;\n if (input.equals(\"lot\") || input.equals(\"3\")) return 3;\n if (input.equals(\"manual\") || input.equals(\"4\")) return 4;\n throw new RuntimeException(\n \"Illigal second paramter on command line, use : <little,average,lot>\");\n }",
"public void setResidue(char residue)\r\n {\n if (residue == '[')\r\n this.residue = 'n';\r\n else if (residue == ']')\r\n this.residue = 'c';\r\n else\r\n this.residue = residue;\r\n\r\n if (this.residue == 'n' || this.residue == 'c')\r\n throw new IllegalArgumentException(\"N-terminal and C-terminal labels are not currently supported\");\r\n }",
"public Recurso(int idRecurso, String descripcionRecurso){\n this.idRecurso = idRecurso; //Recibimos el numero \n this.descripcionRecurso = descripcionRecurso; //Material que deseamos\n }",
"@Override\n\tpublic Instruction parseInstruction(InstructionSequence seq, State state) \n\t{\n\t\treturn new Iconst3();\n\t}",
"public void printResiduals(double t, double resid1, double resid2);",
"static int size_of_rlc(String passed){\n\t\treturn 1;\n\t}",
"public void setRsv3(String rsv3) {\r\n this.rsv3 = rsv3;\r\n }",
"private void parsePlateau(String s) {\r\n String[] parsedString = s.split(\" \");\r\n plateau[0] = Integer.parseInt(parsedString[0]);\r\n plateau[1] = Integer.parseInt(parsedString[1]);\r\n }",
"public void setExtra3(String extra3) {\n this.extra3 = extra3;\n }",
"public boolean checkR3(String candidateSolution){\n\t\t//Split the string to a number of 9 digits\n\t\tString []candSol = candidateSolution.split(\"(?<=\\\\G.........)\");\n\t\tint candSolIndex = 0;\n\t\t\n\t\twhile(candSolIndex < 9){\n\n\t\t\tString testPart = candSol[candSolIndex];\n\t\t\t//R2 part\n\t\t\tboolean ok = checkIfDublicate(testPart);\n\t\t\tcandSolIndex++;\n\t\t\tif(ok){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\treturn true;\t\t\t\t\n\t\t}\n\t\treturn false;\n\t}",
"public void init() {\n\t\tinit(\"1,0 3,0 5,0 7,0 9,0 0,1 2,1 4,1 6,1 8,1 1,2 3,2 5,2 7,2 9,2 0,3 2,3 4,3 6,3 8,3\", \n\t\t\t \"1,6 3,6 5,6 7,6 9,6 0,7 2,7 4,7 6,7 8,7 1,8 3,8 5,8 7,8 9,8 0,9 2,9 4,9 6,9 8,9\"); \n }",
"public void setIDINTERNOPE1(int value) {\n this.idinternope1 = value;\n }",
"void mo19167a(String str, String str2, int i, String str3, int i2);",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(3, 5, 0, 10, false, 16), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"static void initSample3(){\n // put values into the sField\n sField[3][6] = \"X\";\n sField[4][6] = \"X\";\n sField[5][6] = \"X\";\n sField[6][6] = \"X\";\n sField[7][6] = \".\";\n \n sField[1][5] = \"O\";\n sField[1][6] = \"O\";\n sField[1][7] = \".\";\n sField[1][8] = \"O\";\n }",
"final String getResourceName(int resid) {\n if (am == null)\n return null;\n ResTable.resource_name name = new ResTable.resource_name(null, null, null);\n if (!am.getResources(false).getResourceName(resid, name)) {\n return null;\n }\n String str = null;\n if (name.mPackage != null) {\n str = name.mPackage;\n }\n\n if (name.mType != null) {\n if (str.length() > 0) {\n str += \":\";\n }\n str += name.mType;\n }\n\n if (name.mName != null) {\n if (str.length() > 0) {\n str += \"/\";\n }\n str += name.mName;\n }\n\n return str;\n }",
"public void setRegulations(String regulations) {\n this.regulations = regulations;\n }",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_4() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tint[][] response = roc.generateIntegerSequences(3, 5, 0, 10, false, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tint[][] response2 = roc.generateIntegerSequences(3, 5, 0, 10, false, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(3, 5, 0, 10, false, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(3, 5, 0, 10, false, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"@Test\r\n\tpublic void testPositiveGenerateStrings_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString[] response = roc.generateStrings(10, 5, \"abcd\", false, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tString[] response2 = roc.generateStrings(10, 5, \"abcd\", false, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\r\n\t\t\t\tresponse = roc.generateStrings(10, 5, \"abcd\", false, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateStrings(10, 5, \"abcd\", false, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"private List<String> generateN3Required(VitroRequest vreq) {\n \tList<String> n3Required = list(\n \t getPrefixesString() + \"\\n\" +\n \t \"?subject ?predicate ?conceptNode .\\n\"\n \t);\n \tList<String> inversePredicate = getInversePredicate(vreq);\n\t\t//Adding inverse predicate if it exists\n\t\tif(inversePredicate.size() > 0) {\n\t\t\tn3Required.add(\"?conceptNode <\" + inversePredicate.get(0) + \"> ?subject .\");\n\t\t}\n \treturn n3Required;\n }",
"public static String getResidSnippet(String resident) {\n String snippet = null;\n try {\n JSONObject jsonObject = new JSONObject(resident);\n snippet = jsonObject.getString(\"resid\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n return snippet;\n }",
"@Test public void testParseManyDigits3() {\n String pows10 =\n \"0.00000000000001\\n\"+\n \"1000001\\n\"+\n \"2000001\\n\"+\n \"\";\n double[][] pows10_exp = new double[][] {\n ard(1e-14),\n ard(1000001L),\n ard(2000001L),\n };\n Key k = FVecFactory.makeByteVec(pows10);\n Key r1 = Key.make(\"r1\");\n ParseDataset.parse(r1, k);\n testParsed(r1,pows10_exp);\n }",
"@Test\r\n\tpublic void testPositiveGenerateSignedIntegerSequences_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tHashMap<String,Object> o = roc.generateSignedIntegerSequences(3, 5, 0, 10, false, 16, userData);\r\n\t\t\t\t\r\n\t\t\t\tthis.signedValueTester(roc, i, o, String[][].class, true);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"void mo11024a(int i, int i2, String str);",
"@Override\r\n\tpublic vec3 get3(String ponits) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic List getListByResId(Integer resid) {\n\t\tString sql = \"select g.resid from GroupFunres g where resid = '\" + resid + \"'\";\n\t\tList list = this.queryForList(sql);\n\t\tList idList=new ArrayList();\n\t\tif (list != null && list.size() > 0) {\n\t\t\tfor(int i=0;i<list.size();i++){\n\t\t\t\tidList.add(list.get(i));\n\t\t\t}\n\t\t\treturn idList;\n\t\t}\n\t\treturn null;\n\t}",
"private String insertarCartaNaturalResources() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 0,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 5,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n true,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }",
"@Override\n\tpublic int resid() {\n\t\treturn currnet().resid();\n\t}",
"public static int[][] AssetCreater(String srt) {\n\r\n\t\tint Length = ArrLength(srt);\r\n\r\n\t\tint[][] TempArr = new int[5][Length];\r\n\r\n\t\tint Xoffset = 0;\r\n\r\n\t\t// goes through entire word and if any letter corrisponds with a letter it's\r\n\t\t// testing for\r\n\t\t// it calls a function to add the new symbol to 2d array\r\n\r\n\t\t// I considered commenting all this but I think it's pretty self explanitory\r\n\r\n\t\tfor (int k = 0; k < srt.length(); k++) {\r\n\r\n\t\t\tif (srt.charAt(k) == '0') {\r\n\t\t\t\t// if it's 0 add Zero Matrix to the matrix\r\n\t\t\t\tTempArr = AddToArr(TempArr, Zero, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '1') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, One, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '2') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Two, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '3') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Three, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '4') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Four, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '5') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Five, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '6') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Six, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '7') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Seven, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '8') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Eight, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '9') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Nine, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'a') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ALetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'b') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, BLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'c') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, CLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'd') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, DLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'e') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ELetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'f') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, FLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'g') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, GLetter, 4, Xoffset);\r\n\r\n\t\t\t\t// G is a bigger number so I just add 1 to offset\r\n\t\t\t\tXoffset += 1;\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'h') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, HLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'i') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ILetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'j') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, JLetter, 4, Xoffset);\r\n\r\n\t\t\t\tXoffset += 1;\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'k') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, KLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'l') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, LLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'm') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, MLetter, 5, Xoffset);\r\n\r\n\t\t\t\tXoffset += 2;\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'n') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, NLetter, 4, Xoffset);\r\n\r\n\t\t\t\tXoffset += 1;\r\n\t\t\t} else if (srt.charAt(k) == 'o') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, OLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'p') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, PLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'q') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, QLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'r') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, RLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 's') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, SLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 't') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, TLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'u') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ULetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'v') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, VLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'w') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, WLetter, 5, Xoffset);\r\n\r\n\t\t\t\tXoffset += 2;\r\n\t\t\t} else if (srt.charAt(k) == 'x') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, XLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'y') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, YLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'z') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ZLetter, 4, Xoffset);\r\n\r\n\t\t\t\tXoffset += 1;\r\n\t\t\t} else if (srt.charAt(k) == ' ') {\r\n\t\t\t\tXoffset -= 2;\r\n\t\t\t\t// space is too big number so I just sub 2 from offset\r\n\r\n\t\t\t} else if (srt.charAt(k) == '-') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, DashLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == ':') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ColonLetter, 3, Xoffset);\r\n\r\n\t\t\t}\r\n\r\n\t\t\tXoffset += 4;\r\n\t\t}\r\n\t\treturn TempArr;\r\n\t}",
"private static void initSet1(String[] set1) {\n\t\tset1[0] = \"rs36129689\";\n\t\tset1[1] = \"rs36153986\";\n\t\tset1[2] = \"rs493934\";\n\t\tset1[3] = \"rs36146958\";\n\t\tset1[4] = \"rs36197089\";\n\t\tset1[5] = \"rs35773247\";\n\t\tset1[6] = \"rs35346884\";\n\t\tset1[7] = \"rs493040\";\n\t\tset1[8] = \"rs35473000\";\n\t\tset1[9] = \"rs123456\";\n\t\tset1[10] = \"rs1234567\";\n\t\tset1[11] = \"rs12345678\";\n\t\tset1[12] = \"rs1234234\";\n\t\tset1[13] = \"rs492232\";\n\t\tset1[14] = \"rs492184\";\n\t\tset1[15] = \"rs123123\";\n\t}",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_5() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString[][] response = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tString[][] response2 = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void setText(String text) {\n \tif (_assocModel == null) return;\n\t\tString mult;\n\t\tPattern p = Pattern.compile(\"([\\\\d]|\\\\Q*\\\\E)([.]{2}+([\\\\d]|\\\\Q*\\\\E))?\");\t// regex for multiplicities: (digit | *) + optional(.. (digit | *))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// can use a Collection to handle multiplicities of *; we really only care about\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the upper bound also\n\t\tMatcher m = p.matcher(text);\n\t\t// regex didn't find anything, so we'll assign a default multiplicity\n\t\tif (!m.find() || m.group().length() < 0) {\n\t\t\tmult=\"1\";\n\t\t}\n\t\telse mult = m.group();\n\t\t_assocModel.setMultiplicity(mult);\n\t\tsuper.setText(mult);\n\t}",
"public Integer getResnr() {\n\t\treturn this.resnr;\n\t}",
"static void perform_xri(String passed){\n\t\tint type = type_of_xri(passed);\n\t\tif(type==1)\n\t\t\txri_with_acc(passed);\n\t}",
"public String designPN(String nr)\r\n {\r\n String newStr=\"(\";\r\n if(nr.length()!=10){return null;}\r\n else\r\n {\r\n newStr=newStr+nr.substring(0,4)+\")-\";\r\n // System.out.println(\"phase 1 \"+ newStr);\r\n newStr=newStr+nr.substring(4,7)+\"-\";\r\n // System.out.println(\"phase 2 \"+ newStr);\r\n newStr=newStr+nr.substring(7,10);\r\n // System.out.println(\"phase 3 \"+ newStr);\r\n }\r\n return newStr;\r\n\r\n }",
"private void inzsr() {\n\t\tid1Ctdta = 1;\n\t\tstrCtdta = \"Each KGS \";\n\t\tfor (int idxCtdta = 1; idxCtdta <= 1; idxCtdta++) {\n\t\t\tum[idxCtdta] = subString(strCtdta, id1Ctdta, 11);\n\t\t\tid1Ctdta = Integer.valueOf(id1Ctdta + 11);\n\t\t}\n\t\t// Initialise message subfile\n\t\tnmfkpinds.setPgmInd32(true);\n\t\tstateVariable.setZzpgm(replaceStr(stateVariable.getZzpgm(), 1, 8, \"WWCONDET\"));\n\t\t// - Set date\n\t\tstateVariable.setZzdate(getDate().toInt());\n\t\t// -\n\t\t// - CONTRACT\n\t\tcontractHeader.retrieve(stateVariable.getXwordn());\n\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t// - CUSTOMER\n\t\tpurchases.retrieve(stateVariable.getXwbccd());\n\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t// BR00012 Debtor not found on Purchases\n\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\tstateVariable.setXwg4tx(all(\"-\", 40));\n\t\t}\n\t\t// - REPRESENTATIVE\n\t\tsalespersons.retrieve(stateVariable.getPerson());\n\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t// BR00013 Rep not found on Salespersons\n\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\tstateVariable.setPname(all(\"-\", 34));\n\t\t}\n\t\t// - STATUS\n\t\torderStatusDescription.retrieve(stateVariable.getXwstat());\n\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t// BR00014 Status not found on Order_status_description\n\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\tstateVariable.setXwsdsc(all(\"-\", 20));\n\t\t}\n\t}",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_7() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(4, LENGTH, MIN, MAX, REPLACEMENT), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"public static String guessResidueTypeFromFeatureLength(int seqLength,\n int featureLength) {\n float basepairsPerResidue = (Math.abs((float)featureLength/\n (float)seqLength));\n return (basepairsPerResidue > 2.0 ? SequenceI.AA : SequenceI.DNA);\n }",
"void adobe_coeff( CharPtr make, CharPtr model) {\n \n adobe_coeff( make.toString(), model.toString());\n}",
"public void readArmies(){\n\n for ( j= 0;j<countriesArmyLines.size();j++) {\n String [] armyLine = countriesArmyLines.get(j).split(\" \");\n vertices.get(Integer.parseInt(armyLine[1])-1).addArmies(Integer.parseInt(armyLine[2]));\n System.out.println(\"army \"+vertices.get(j).getNumberArmies());\n }\n // Read countries armies for AI agents\n\n for ( j= 0;j<countriesArmyLines.size();j++) {\n String [] armyLine = countriesArmyLines.get(j).split(\" \");\n allSCountries.get(Integer.parseInt(armyLine[1])).setNumberArmies(Integer.parseInt(armyLine[2]));\n // System.out.println(\"army \"+vertices.get(j).getNumberArmies());\n }\n NState.globalState.allCountries=allSCountries;\n }",
"private static String lllIIllIl(short IIIlIIlllllIIll, String IIIIlIlllllIIll) {\n }",
"public String getRelationIdString(SpatialElement se1, String se1Role, SpatialElement se2, String se2Role, SpatialElement se3, String se3Role) {\n String idString = \"\";\n if (se1 != null && se2 != null && se3 != null) {\n se1.role = se1Role;\n se2.role = se2Role;\n se3.role = se3Role;\n idString = se1.id+\"-\"+se2.id+\"-\"+se3.id;\n }\n else if (se1 != null && se2 != null) {\n se1.role = se1Role;\n se2.role = se2Role;\n idString = se1.id+\"-\"+se2.id+\"-null\";\n }\n else if (se1 != null && se3 != null) {\n se1.role = se1Role;\n se3.role = se3Role;\n idString = se1.id+\"-null-\"+se3.id;\n }\n else if (se2 != null && se3 != null) {\n se2.role = se2Role;\n se3.role = se3Role;\n idString = \"null-\"+se2.id+\"-\"+se3.id;\n }\n return idString;\n }",
"public String[] getVariants_ru(int[] randIds){\n Cursor crs;\n String[] variants_ru = new String[4];\n for(int i = 0; i< 4; i++){\n String[] args = new String[1];\n args[0] = Integer.toString(randIds[i]+1);\n crs = aniDB.getReadableDatabase().rawQuery(\"SELECT name_ru FROM titles WHERE id = ?\",args);\n if(crs.moveToFirst()) {\n variants_ru[i] = crs.getString(crs.getColumnIndex(\"name_ru\"));\n }\n crs.close();\n }\n return variants_ru;\n }",
"public void setSpare3(String spare3) {\r\n this.spare3 = spare3;\r\n }",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_9() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tint[][] response = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tint[][] response2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"public void restricciones(String oraciones){\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Restricciones semanticas\");\n alert.setHeaderText(oraciones);\n alert.showAndWait();\n }",
"void mo8715r(String str, String str2, String str3);",
"public void setRemark3(java.lang.String _remark3)\r\n {\r\n this._remark3 = _remark3;\r\n }",
"public /* synthetic */ CinemaDescriptionItem(String str, int i2, int i3, f fVar) {\n this(str, (i3 & 2) != 0 ? 3 : i2);\n }",
"static int type_of_inr(String passed){\n\t\tif(general_registers.contains(passed.charAt(4)))\n\t\t\treturn 1;\n\t\telse if(passed.charAt(4)=='M')\n\t\t\treturn 2;\n\t\telse\n\t\t\treturn 0;\n\t}",
"public Recipe(String[] in)\r\n {\r\n double temp;\r\n if (in.length == 3){\r\n this.origQty = in[0];\r\n this.measure = in[1];\r\n this.ingredient = in[2];\r\n this.w_qty = makeDecimal(in[0]);\r\n }\r\n else {if (in.length == 5) {\r\n this.origQty = in[0] + \" \" + in[1];\r\n this.measure = in[2];\r\n this.ingredient = in[3] + \" \" + in[4];\r\n temp = makeDecimal(in[1]);\r\n this.w_qty = Double.parseDouble(in[0])+ temp;\r\n }\r\n else if (in.length == 4) {\r\n if (in[1].contains(\"/\")) {\r\n this.origQty = in[0] + \" \" + in[1];\r\n this.measure = in[2];\r\n this.ingredient = in[3];\r\n temp = makeDecimal(in[1]);\r\n this.w_qty = temp + Double.parseDouble(in[0]);}\r\n else {\r\n this.origQty = in[0];\r\n this.measure = in[1];\r\n this.ingredient = in[2] + \" \" + in[3];\r\n this.w_qty = makeDecimal(in[0]);}\r\n }\r\n }\r\n this.working_measure = measure;\r\n this.final_measure = measure;\r\n }",
"public TextPropDefaultViewModel_ textWithDefaultQuantityRes(@PluralsRes int pluralRes,\n int quantity, Object... formatArgs) {\n onMutation();\n assignedAttributes_epoxyGeneratedModel.set(0);\n textWithDefault_StringAttributeData.setValue(pluralRes, quantity, formatArgs);\n return this;\n }",
"private static int _addPossibleValues(int rowNumber, int y, int x, short[][] spareMatrix,String[] rowIds, SudokuModel model) {\r\n\r\n\t\tfor(short i = 0; i <9; i++){\r\n\t\t\tif(!model.restrictionIsSatisfied(y, x, i+1))\r\n\t\t\trowNumber = _addRestrictions(rowNumber,y,x,i,spareMatrix,rowIds);\r\n\t\t}\r\n\t\t\r\n\t\treturn rowNumber;\r\n\t}",
"public boolean restrizione14()\r\n\t\tthrows RestrizioniSpecException\r\n\t\t{\r\n\t\tfor (int i = 0; i < this.equivalenzeInput.size(); i++)\r\n\t\t\t{\r\n\t\t\t// si preleva il nome dell'interazione di output connessa a questa componente\r\n\t\t\tAttacDecl attacDecl = this.attacsDeclInput.get(i);\r\n\t\t\tString string = attacDecl.getOutputInteraction();\r\n\t\t\t// si preleva la relativa equivalenza\r\n\t\t\tIEquivalenza equivalenza = this.equivalenzeInput.get(i);\r\n\t\t\t// si preleva l'azione corrispondente a string\r\n\t\t\tAction action = equivalenza.getActionFromName(string);\r\n\t\t\tif (action == null)\r\n\t\t\t\t{\r\n\t\t\t\tString string2 = equivalenza.getAEIdecl().getName();\r\n\t\t\t\tthrow new RestrizioniSpecException(\"The \"+string+\" action of instance \"+\r\n\t\t\t\t\t\tstring2+\" don't found\");\r\n\t\t\t\t}\r\n\t\t\tActionRate actionRate = action.getRate();\r\n\t\t\tif (!(actionRate instanceof RateInf))\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\treturn true;\r\n\t\t}",
"public static void loadMatric(int matr[][]) throws IOException{\n\n\t\tfor(int i=0;i<7;i++){\n\t\t\tfor(int j=0;j<6;j++){\n\t\t\t\tSystem.out.print(\"INSERISCI\"+i+j+\": \");\n\t\t\t\tSystem.out.flush();\n\t\t\t\tmatr[i][j]=System.in.read()-'0';\n\t\t\t\tSystem.in.skip(2);\n\t\t\t}}}",
"public void setNoOfRelevantLines(int norl) { this.noOfRelevantLines = norl; }",
"void playYearOfPlentyCard(String resource1, String resource2);",
"public int cuantosRenglones() \r\n\t{\r\n\t\tString respuesta = JOptionPane.showInputDialog(\"cuantas renglones quiere\");\r\n\t\tint respuesta1 = Integer.parseInt(respuesta);\r\n\t\treturn respuesta1;\r\n\t}",
"java.lang.String getNum1();",
"static int size_of_rrc(String passed){\n\t\treturn 1;\n\t}",
"public boolean hasResidues() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public void agregarpal(String n) {\n\n switch (pos) {\n case 0:\n pal1 = n;\n case 1:\n pal2 = n;\n case 2:\n pal3 = n;\n case 3:\n pal4 = n;\n case 4:\n pal5 = n;\n break;\n }//fin switch\n\n pos++;\n }",
"public void int3_m() {\n\t\t\n\t}",
"public static void muestraArreglo(int[] arreglo) {\r\n\t\tfor (int i = 0; i < arreglo.length; i++) {\r\n\t\t\tescribir(\"[\" + arreglo[i] + \"]\", false);\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n\t\tRandom rand = new Random();\n\t\tint first = rand.nextInt(7);\n\t\tint second = rand.nextInt(7);\n\t\tint third = rand.nextInt(7);\n\t\t\n\t\tint middle = rand.nextInt(741);\n\t\t\n\t\tint last = rand.nextInt(9999);\n\t\t\n\t\tString middleString= Integer.toString(middle);\n\t\tString lastString = Integer.toString(last); \n\t\tString firstString = Integer.toString(first);\n\t\tString secondString = Integer.toString(second);\n\t\tString thirdString = Integer.toString(third);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\twhile (middleString.length()<3) {\n\t\t\tmiddleString = \"0\" + middleString;\n\t\t\t\n\t\t}\n\t\t\n\t\twhile (lastString.length()<4){\n\t\t\tlastString = \"0\" + lastString;\n\t\t}\n\t\t\n\t\tSystem.out.println(firstString + secondString + thirdString + \"-\"+ middleString +\"-\"+ lastString);\n\t\t\n\t\t\n\t}",
"public String getChoice3(int a){\n String choice2 = choices[a][2];\n return choice2;\n }",
"public boolean hasResidues() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"@Override\n\tpublic void setStreet3(java.lang.String street3) {\n\t\t_candidate.setStreet3(street3);\n\t}",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_8() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(4, LENGTH, MIN, MAX, REPLACEMENT, BASE), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"private String theFunctionThatSolvesAllProblems(String input) throws IOException {\n\n first = new MyInt[9];\n second = new MyInt[9];\n third = new MyInt[9];\n myPointers = new MyIntPointer[7];\n\n M = new MyInt();\n D = new MyInt();\n C = new MyInt();\n L = new MyInt();\n X = new MyInt();\n V = new MyInt();\n I = new MyInt();\n\n hasI = false;\n hasX = false;\n hasC = false;\n hasM = false;\n hasV = false;\n hasL = false;\n hasD = false;\n\n firstLength = 0;\n secondLength = 0;\n thirdLength = 0;\n\n initializeEquation(input);\n\n return arabic();\n\n }",
"static void initSample4(){\n // put values into the sField\n sField[5][4] = \"X\";\n sField[4][5] = \".\";\n sField[3][6] = \"X\";\n sField[2][7] = \"X\";\n sField[1][8] = \"X\";\n \n sField[1][5] = \"O\";\n sField[1][6] = \"O\";\n sField[1][7] = \".\"; \n }",
"public StrumInstrument(String type, String manufacturer, int nrStrings, double stringSize) {\n super(type, manufacturer);\n this.nrStrings = nrStrings;\n this.stringSize = stringSize;\n }",
"public void setSecondary3(java.lang.String secondary3) {\n this.secondary3 = secondary3;\n }",
"public int[] contarCodons(String seq){\n int [] countCodons=new int[65];\n for (int i=0;i<seq.length()-2;i=i+3){\n String c=seq.substring(i, i+3);\n int j=0;\n while (j<nameCodon.length && nameCodon[j].compareTo(c)!=0) j++;\n if (j<nameCodon.length)\n countCodons[j]++;\n else\n countCodons[64]++;\n }\n return countCodons;\n\n }",
"@Test\n public void execute_nricParameter() throws ParseException {\n //No user input\n execute_parameterPredicate_test(0, \" \", \"nric\", true, false, Collections.emptyList());\n //Single keyword, ignore case, person found.\n execute_parameterPredicate_test(1, \"s1234567A\", \"nric\", true, false, Arrays.asList(ALICE));\n //Single keyword, case sensitive, no one found.\n execute_parameterPredicate_test(0, \"s1234567A\", \"nric\", false, false, Collections.emptyList());\n //Multiple keywords, ignore case, or condition, multiple people found\n execute_parameterPredicate_test(2, \"S1234567a S5234569A\", \"nric\", true, false, Arrays.asList(ALICE, GEORGE));\n //Multiple keywords, ignore case, and condition, no one found\n execute_parameterPredicate_test(0, \"S1234567a S5234569A\", \"nric\", true, true, Collections.emptyList());\n //Multiple keywords, case sensitive, or condition, one person found\n execute_parameterPredicate_test(1, \"S1234567a S5234569A\", \"nric\", false, false, Arrays.asList(GEORGE));\n //Multiple keywords, case sensitive, and condition, no one found\n execute_parameterPredicate_test(0, \"S1234567a S5234569A\", \"nric\", false, true, Collections.emptyList());\n }",
"@Nullable public abstract String loadVerseText(int ari);",
"public void setIDINTERNODC(int value) {\n this.idinternodc = value;\n }",
"static void lxi_to_reg_pair(String passed){\n\t\tchar fourth = passed.charAt(4);\n\t\tif(fourth=='B'){\n\t\t\tregisters.put('B', passed.substring(6,8));\n\t\t\tregisters.put('C', passed.substring(8));\n\t\t}\n\t\telse if(fourth=='D'){\n\t\t\tregisters.put('D', passed.substring(6,8));\n\t\t\tregisters.put('E', passed.substring(8));\n\t\t}\n\t\telse if(fourth=='H'){\n\t\t\tregisters.put('H', passed.substring(6,8));\n\t\t\tregisters.put('L', passed.substring(8));\n\t\t}\n\t}",
"public int getImageResourceIdForExercise(Context context){\n\n TypedArray imagesArray = context.getResources().obtainTypedArray(R.array.images_array);\n int id = 0;\n\n if(musclePart == 1) {\n return imagesArray.getResourceId((exeNumber -1),0);\n }else {\n for (int i = 1; i < imagesArray.length(); i++) {\n if(i == (((musclePart - 1) * 6) + exeNumber) - 1){\n id = imagesArray.getResourceId(i,0);\n break;\n }\n }\n }\n imagesArray.recycle();\n return id;\n }",
"public void mo32111rr(int i) {\n }",
"static int size_of_lxi(String passed){\n\t\treturn 3;\n\t}",
"public static void main(String[] args) {\n //The letters are randomly chosen through this block of code with use of ASCII code.\n char let1 = (char) ((int)(Math.random() * 26 + 65));\n char let2 = (char) ((int)(Math.random() * 26 + 65));\n char let3 = (char) ((int)(Math.random() * 26 + 65));\n \n //This generates a number of four digits to follow the letters. \n int num = (int)(Math.random() * 9000 + 999);\n \n //The combination is now printed to the screen through this. \n System.out.println(\"The plate number is \" + let1 + let2 +let3 + num); \n }",
"public void setResearchno(String researchno) {\r\n\t\tthis.researchno = researchno;\r\n\t}",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_10() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString[][] response = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, BASE, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tString[][] response2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, BASE, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, BASE, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, BASE, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}"
] | [
"0.6192523",
"0.54703444",
"0.54320204",
"0.53430146",
"0.5179291",
"0.512601",
"0.49395695",
"0.48429784",
"0.4722289",
"0.47159922",
"0.46766278",
"0.46699157",
"0.46671402",
"0.4631843",
"0.4602065",
"0.45691842",
"0.4545522",
"0.45275655",
"0.4526531",
"0.45224777",
"0.45165515",
"0.44878346",
"0.44798192",
"0.44746506",
"0.4452068",
"0.4451284",
"0.44419998",
"0.4435498",
"0.4435365",
"0.44183835",
"0.44146082",
"0.43992442",
"0.43743503",
"0.4366774",
"0.43646222",
"0.4363635",
"0.43602377",
"0.43424073",
"0.43341428",
"0.43334198",
"0.43322542",
"0.4321793",
"0.43049264",
"0.4304571",
"0.42924526",
"0.42903167",
"0.42785272",
"0.42693284",
"0.42629048",
"0.42606726",
"0.4259107",
"0.42573783",
"0.42485988",
"0.42480448",
"0.4245962",
"0.42444512",
"0.4242475",
"0.42358047",
"0.4231975",
"0.4231563",
"0.42311695",
"0.422844",
"0.42273057",
"0.42271665",
"0.42261523",
"0.4224413",
"0.42234236",
"0.4222285",
"0.42197564",
"0.42193034",
"0.42184776",
"0.42145425",
"0.42101064",
"0.4205031",
"0.42048913",
"0.42003375",
"0.4199567",
"0.41949332",
"0.41934097",
"0.4189292",
"0.41866213",
"0.4185099",
"0.4182001",
"0.41813993",
"0.41809544",
"0.4176753",
"0.417664",
"0.41718188",
"0.4167094",
"0.41648847",
"0.41612086",
"0.41609636",
"0.41544276",
"0.41524765",
"0.41507205",
"0.4148269",
"0.41443336",
"0.41425788",
"0.41406265",
"0.41387102"
] | 0.632804 | 0 |
optional string residues = 3; usually be numbered sequentially. | com.google.protobuf.ByteString
getResiduesBytes(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getResidues();",
"public Builder setResidues(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n residues_ = value;\n onChanged();\n return this;\n }",
"public java.lang.String getResidues() {\n java.lang.Object ref = residues_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n residues_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getResidues() {\n java.lang.Object ref = residues_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n residues_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getResiduesBytes() {\n java.lang.Object ref = residues_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n residues_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getResiduesBytes() {\n java.lang.Object ref = residues_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n residues_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Builder setResiduesBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n residues_ = value;\n onChanged();\n return this;\n }",
"private List<String> generateN3Optional() {\n\t\treturn list(\n\t\t\t\t\t\"?conceptNode <\" + VitroVocabulary.RDF_TYPE + \"> <\" + SKOSConceptType + \"> .\\n\" +\n\t\t\t\t\t\"?conceptNode <\" + label + \"> ?conceptLabel .\"\n\t \t);\n\n }",
"private void assignMissingResidueIds() {\n \t\tfor (Atom atom: atomVector) {\n \t\t\tif (atom.residue_id == Integer.MIN_VALUE) {\n \t\t\t\tatom.residue_id = atom.authorResidue_id;\n \t\t\t\tatom.nonpolymer = true;\n \t\t\t}\n \t\t}\n \t}",
"boolean hasResidues();",
"static int size_of_xri(String passed){\n\t\treturn 2;\n\t}",
"public void setReserve3(java.lang.String reserve3) {\n this.reserve3 = reserve3;\n }",
"@Test\n void multiConstruct() {\n var multicons = \"(define conCar_a (cons 1 2))(define conCar_b (cons 3 conCar_a))(define conCar_c (cons conCar_b 4))(define conCar_d (cons conCar_b conCar_c))\";\n Main.parseInputString(multicons);\n assertEquals(\"(3 1 . 2)\", Main.parseInputString(\"(display (car conCar_d)) \"));\n }",
"String slotOfCar(String regNumber);",
"public GI3( String[] textParms )\n {\n super( textParms );\n }",
"private void setInstruc(int[] instruc2) \n\t{\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"static int setCon(String input){\n if (input.equals(\"little\")||input.equals(\"1\")) return 1;\n if (input.equals(\"average\")||input.equals(\"2\"))return 2;\n if (input.equals(\"lot\") || input.equals(\"3\")) return 3;\n if (input.equals(\"manual\") || input.equals(\"4\")) return 4;\n throw new RuntimeException(\n \"Illigal second paramter on command line, use : <little,average,lot>\");\n }",
"public Recurso(int idRecurso, String descripcionRecurso){\n this.idRecurso = idRecurso; //Recibimos el numero \n this.descripcionRecurso = descripcionRecurso; //Material que deseamos\n }",
"public void setResidue(char residue)\r\n {\n if (residue == '[')\r\n this.residue = 'n';\r\n else if (residue == ']')\r\n this.residue = 'c';\r\n else\r\n this.residue = residue;\r\n\r\n if (this.residue == 'n' || this.residue == 'c')\r\n throw new IllegalArgumentException(\"N-terminal and C-terminal labels are not currently supported\");\r\n }",
"@Override\n\tpublic Instruction parseInstruction(InstructionSequence seq, State state) \n\t{\n\t\treturn new Iconst3();\n\t}",
"public void printResiduals(double t, double resid1, double resid2);",
"static int size_of_rlc(String passed){\n\t\treturn 1;\n\t}",
"public void setRsv3(String rsv3) {\r\n this.rsv3 = rsv3;\r\n }",
"private void parsePlateau(String s) {\r\n String[] parsedString = s.split(\" \");\r\n plateau[0] = Integer.parseInt(parsedString[0]);\r\n plateau[1] = Integer.parseInt(parsedString[1]);\r\n }",
"public boolean checkR3(String candidateSolution){\n\t\t//Split the string to a number of 9 digits\n\t\tString []candSol = candidateSolution.split(\"(?<=\\\\G.........)\");\n\t\tint candSolIndex = 0;\n\t\t\n\t\twhile(candSolIndex < 9){\n\n\t\t\tString testPart = candSol[candSolIndex];\n\t\t\t//R2 part\n\t\t\tboolean ok = checkIfDublicate(testPart);\n\t\t\tcandSolIndex++;\n\t\t\tif(ok){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\treturn true;\t\t\t\t\n\t\t}\n\t\treturn false;\n\t}",
"public void setExtra3(String extra3) {\n this.extra3 = extra3;\n }",
"public void init() {\n\t\tinit(\"1,0 3,0 5,0 7,0 9,0 0,1 2,1 4,1 6,1 8,1 1,2 3,2 5,2 7,2 9,2 0,3 2,3 4,3 6,3 8,3\", \n\t\t\t \"1,6 3,6 5,6 7,6 9,6 0,7 2,7 4,7 6,7 8,7 1,8 3,8 5,8 7,8 9,8 0,9 2,9 4,9 6,9 8,9\"); \n }",
"public void setIDINTERNOPE1(int value) {\n this.idinternope1 = value;\n }",
"void mo19167a(String str, String str2, int i, String str3, int i2);",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(3, 5, 0, 10, false, 16), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"static void initSample3(){\n // put values into the sField\n sField[3][6] = \"X\";\n sField[4][6] = \"X\";\n sField[5][6] = \"X\";\n sField[6][6] = \"X\";\n sField[7][6] = \".\";\n \n sField[1][5] = \"O\";\n sField[1][6] = \"O\";\n sField[1][7] = \".\";\n sField[1][8] = \"O\";\n }",
"final String getResourceName(int resid) {\n if (am == null)\n return null;\n ResTable.resource_name name = new ResTable.resource_name(null, null, null);\n if (!am.getResources(false).getResourceName(resid, name)) {\n return null;\n }\n String str = null;\n if (name.mPackage != null) {\n str = name.mPackage;\n }\n\n if (name.mType != null) {\n if (str.length() > 0) {\n str += \":\";\n }\n str += name.mType;\n }\n\n if (name.mName != null) {\n if (str.length() > 0) {\n str += \"/\";\n }\n str += name.mName;\n }\n\n return str;\n }",
"public void setRegulations(String regulations) {\n this.regulations = regulations;\n }",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_4() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tint[][] response = roc.generateIntegerSequences(3, 5, 0, 10, false, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tint[][] response2 = roc.generateIntegerSequences(3, 5, 0, 10, false, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(3, 5, 0, 10, false, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(3, 5, 0, 10, false, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"@Test\r\n\tpublic void testPositiveGenerateStrings_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString[] response = roc.generateStrings(10, 5, \"abcd\", false, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tString[] response2 = roc.generateStrings(10, 5, \"abcd\", false, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\r\n\t\t\t\tresponse = roc.generateStrings(10, 5, \"abcd\", false, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateStrings(10, 5, \"abcd\", false, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"private List<String> generateN3Required(VitroRequest vreq) {\n \tList<String> n3Required = list(\n \t getPrefixesString() + \"\\n\" +\n \t \"?subject ?predicate ?conceptNode .\\n\"\n \t);\n \tList<String> inversePredicate = getInversePredicate(vreq);\n\t\t//Adding inverse predicate if it exists\n\t\tif(inversePredicate.size() > 0) {\n\t\t\tn3Required.add(\"?conceptNode <\" + inversePredicate.get(0) + \"> ?subject .\");\n\t\t}\n \treturn n3Required;\n }",
"public static String getResidSnippet(String resident) {\n String snippet = null;\n try {\n JSONObject jsonObject = new JSONObject(resident);\n snippet = jsonObject.getString(\"resid\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n return snippet;\n }",
"@Test public void testParseManyDigits3() {\n String pows10 =\n \"0.00000000000001\\n\"+\n \"1000001\\n\"+\n \"2000001\\n\"+\n \"\";\n double[][] pows10_exp = new double[][] {\n ard(1e-14),\n ard(1000001L),\n ard(2000001L),\n };\n Key k = FVecFactory.makeByteVec(pows10);\n Key r1 = Key.make(\"r1\");\n ParseDataset.parse(r1, k);\n testParsed(r1,pows10_exp);\n }",
"@Test\r\n\tpublic void testPositiveGenerateSignedIntegerSequences_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tHashMap<String,Object> o = roc.generateSignedIntegerSequences(3, 5, 0, 10, false, 16, userData);\r\n\t\t\t\t\r\n\t\t\t\tthis.signedValueTester(roc, i, o, String[][].class, true);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"void mo11024a(int i, int i2, String str);",
"@Override\r\n\tpublic vec3 get3(String ponits) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic List getListByResId(Integer resid) {\n\t\tString sql = \"select g.resid from GroupFunres g where resid = '\" + resid + \"'\";\n\t\tList list = this.queryForList(sql);\n\t\tList idList=new ArrayList();\n\t\tif (list != null && list.size() > 0) {\n\t\t\tfor(int i=0;i<list.size();i++){\n\t\t\t\tidList.add(list.get(i));\n\t\t\t}\n\t\t\treturn idList;\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n\tpublic int resid() {\n\t\treturn currnet().resid();\n\t}",
"private String insertarCartaNaturalResources() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 0,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 5,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n true,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }",
"public static int[][] AssetCreater(String srt) {\n\r\n\t\tint Length = ArrLength(srt);\r\n\r\n\t\tint[][] TempArr = new int[5][Length];\r\n\r\n\t\tint Xoffset = 0;\r\n\r\n\t\t// goes through entire word and if any letter corrisponds with a letter it's\r\n\t\t// testing for\r\n\t\t// it calls a function to add the new symbol to 2d array\r\n\r\n\t\t// I considered commenting all this but I think it's pretty self explanitory\r\n\r\n\t\tfor (int k = 0; k < srt.length(); k++) {\r\n\r\n\t\t\tif (srt.charAt(k) == '0') {\r\n\t\t\t\t// if it's 0 add Zero Matrix to the matrix\r\n\t\t\t\tTempArr = AddToArr(TempArr, Zero, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '1') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, One, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '2') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Two, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '3') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Three, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '4') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Four, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '5') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Five, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '6') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Six, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '7') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Seven, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '8') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Eight, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '9') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Nine, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'a') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ALetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'b') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, BLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'c') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, CLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'd') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, DLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'e') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ELetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'f') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, FLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'g') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, GLetter, 4, Xoffset);\r\n\r\n\t\t\t\t// G is a bigger number so I just add 1 to offset\r\n\t\t\t\tXoffset += 1;\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'h') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, HLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'i') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ILetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'j') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, JLetter, 4, Xoffset);\r\n\r\n\t\t\t\tXoffset += 1;\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'k') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, KLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'l') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, LLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'm') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, MLetter, 5, Xoffset);\r\n\r\n\t\t\t\tXoffset += 2;\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'n') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, NLetter, 4, Xoffset);\r\n\r\n\t\t\t\tXoffset += 1;\r\n\t\t\t} else if (srt.charAt(k) == 'o') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, OLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'p') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, PLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'q') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, QLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'r') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, RLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 's') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, SLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 't') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, TLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'u') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ULetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'v') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, VLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'w') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, WLetter, 5, Xoffset);\r\n\r\n\t\t\t\tXoffset += 2;\r\n\t\t\t} else if (srt.charAt(k) == 'x') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, XLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'y') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, YLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'z') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ZLetter, 4, Xoffset);\r\n\r\n\t\t\t\tXoffset += 1;\r\n\t\t\t} else if (srt.charAt(k) == ' ') {\r\n\t\t\t\tXoffset -= 2;\r\n\t\t\t\t// space is too big number so I just sub 2 from offset\r\n\r\n\t\t\t} else if (srt.charAt(k) == '-') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, DashLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == ':') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ColonLetter, 3, Xoffset);\r\n\r\n\t\t\t}\r\n\r\n\t\t\tXoffset += 4;\r\n\t\t}\r\n\t\treturn TempArr;\r\n\t}",
"private static void initSet1(String[] set1) {\n\t\tset1[0] = \"rs36129689\";\n\t\tset1[1] = \"rs36153986\";\n\t\tset1[2] = \"rs493934\";\n\t\tset1[3] = \"rs36146958\";\n\t\tset1[4] = \"rs36197089\";\n\t\tset1[5] = \"rs35773247\";\n\t\tset1[6] = \"rs35346884\";\n\t\tset1[7] = \"rs493040\";\n\t\tset1[8] = \"rs35473000\";\n\t\tset1[9] = \"rs123456\";\n\t\tset1[10] = \"rs1234567\";\n\t\tset1[11] = \"rs12345678\";\n\t\tset1[12] = \"rs1234234\";\n\t\tset1[13] = \"rs492232\";\n\t\tset1[14] = \"rs492184\";\n\t\tset1[15] = \"rs123123\";\n\t}",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_5() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString[][] response = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tString[][] response2 = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void setText(String text) {\n \tif (_assocModel == null) return;\n\t\tString mult;\n\t\tPattern p = Pattern.compile(\"([\\\\d]|\\\\Q*\\\\E)([.]{2}+([\\\\d]|\\\\Q*\\\\E))?\");\t// regex for multiplicities: (digit | *) + optional(.. (digit | *))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// can use a Collection to handle multiplicities of *; we really only care about\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the upper bound also\n\t\tMatcher m = p.matcher(text);\n\t\t// regex didn't find anything, so we'll assign a default multiplicity\n\t\tif (!m.find() || m.group().length() < 0) {\n\t\t\tmult=\"1\";\n\t\t}\n\t\telse mult = m.group();\n\t\t_assocModel.setMultiplicity(mult);\n\t\tsuper.setText(mult);\n\t}",
"public Integer getResnr() {\n\t\treturn this.resnr;\n\t}",
"static void perform_xri(String passed){\n\t\tint type = type_of_xri(passed);\n\t\tif(type==1)\n\t\t\txri_with_acc(passed);\n\t}",
"private void inzsr() {\n\t\tid1Ctdta = 1;\n\t\tstrCtdta = \"Each KGS \";\n\t\tfor (int idxCtdta = 1; idxCtdta <= 1; idxCtdta++) {\n\t\t\tum[idxCtdta] = subString(strCtdta, id1Ctdta, 11);\n\t\t\tid1Ctdta = Integer.valueOf(id1Ctdta + 11);\n\t\t}\n\t\t// Initialise message subfile\n\t\tnmfkpinds.setPgmInd32(true);\n\t\tstateVariable.setZzpgm(replaceStr(stateVariable.getZzpgm(), 1, 8, \"WWCONDET\"));\n\t\t// - Set date\n\t\tstateVariable.setZzdate(getDate().toInt());\n\t\t// -\n\t\t// - CONTRACT\n\t\tcontractHeader.retrieve(stateVariable.getXwordn());\n\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t// - CUSTOMER\n\t\tpurchases.retrieve(stateVariable.getXwbccd());\n\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t// BR00012 Debtor not found on Purchases\n\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\tstateVariable.setXwg4tx(all(\"-\", 40));\n\t\t}\n\t\t// - REPRESENTATIVE\n\t\tsalespersons.retrieve(stateVariable.getPerson());\n\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t// BR00013 Rep not found on Salespersons\n\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\tstateVariable.setPname(all(\"-\", 34));\n\t\t}\n\t\t// - STATUS\n\t\torderStatusDescription.retrieve(stateVariable.getXwstat());\n\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t// BR00014 Status not found on Order_status_description\n\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\tstateVariable.setXwsdsc(all(\"-\", 20));\n\t\t}\n\t}",
"public String designPN(String nr)\r\n {\r\n String newStr=\"(\";\r\n if(nr.length()!=10){return null;}\r\n else\r\n {\r\n newStr=newStr+nr.substring(0,4)+\")-\";\r\n // System.out.println(\"phase 1 \"+ newStr);\r\n newStr=newStr+nr.substring(4,7)+\"-\";\r\n // System.out.println(\"phase 2 \"+ newStr);\r\n newStr=newStr+nr.substring(7,10);\r\n // System.out.println(\"phase 3 \"+ newStr);\r\n }\r\n return newStr;\r\n\r\n }",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_7() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(4, LENGTH, MIN, MAX, REPLACEMENT), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"public static String guessResidueTypeFromFeatureLength(int seqLength,\n int featureLength) {\n float basepairsPerResidue = (Math.abs((float)featureLength/\n (float)seqLength));\n return (basepairsPerResidue > 2.0 ? SequenceI.AA : SequenceI.DNA);\n }",
"public void readArmies(){\n\n for ( j= 0;j<countriesArmyLines.size();j++) {\n String [] armyLine = countriesArmyLines.get(j).split(\" \");\n vertices.get(Integer.parseInt(armyLine[1])-1).addArmies(Integer.parseInt(armyLine[2]));\n System.out.println(\"army \"+vertices.get(j).getNumberArmies());\n }\n // Read countries armies for AI agents\n\n for ( j= 0;j<countriesArmyLines.size();j++) {\n String [] armyLine = countriesArmyLines.get(j).split(\" \");\n allSCountries.get(Integer.parseInt(armyLine[1])).setNumberArmies(Integer.parseInt(armyLine[2]));\n // System.out.println(\"army \"+vertices.get(j).getNumberArmies());\n }\n NState.globalState.allCountries=allSCountries;\n }",
"void adobe_coeff( CharPtr make, CharPtr model) {\n \n adobe_coeff( make.toString(), model.toString());\n}",
"private static String lllIIllIl(short IIIlIIlllllIIll, String IIIIlIlllllIIll) {\n }",
"public String getRelationIdString(SpatialElement se1, String se1Role, SpatialElement se2, String se2Role, SpatialElement se3, String se3Role) {\n String idString = \"\";\n if (se1 != null && se2 != null && se3 != null) {\n se1.role = se1Role;\n se2.role = se2Role;\n se3.role = se3Role;\n idString = se1.id+\"-\"+se2.id+\"-\"+se3.id;\n }\n else if (se1 != null && se2 != null) {\n se1.role = se1Role;\n se2.role = se2Role;\n idString = se1.id+\"-\"+se2.id+\"-null\";\n }\n else if (se1 != null && se3 != null) {\n se1.role = se1Role;\n se3.role = se3Role;\n idString = se1.id+\"-null-\"+se3.id;\n }\n else if (se2 != null && se3 != null) {\n se2.role = se2Role;\n se3.role = se3Role;\n idString = \"null-\"+se2.id+\"-\"+se3.id;\n }\n return idString;\n }",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_9() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tint[][] response = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tint[][] response2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"public String[] getVariants_ru(int[] randIds){\n Cursor crs;\n String[] variants_ru = new String[4];\n for(int i = 0; i< 4; i++){\n String[] args = new String[1];\n args[0] = Integer.toString(randIds[i]+1);\n crs = aniDB.getReadableDatabase().rawQuery(\"SELECT name_ru FROM titles WHERE id = ?\",args);\n if(crs.moveToFirst()) {\n variants_ru[i] = crs.getString(crs.getColumnIndex(\"name_ru\"));\n }\n crs.close();\n }\n return variants_ru;\n }",
"public void setSpare3(String spare3) {\r\n this.spare3 = spare3;\r\n }",
"public void restricciones(String oraciones){\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Restricciones semanticas\");\n alert.setHeaderText(oraciones);\n alert.showAndWait();\n }",
"void mo8715r(String str, String str2, String str3);",
"static int type_of_inr(String passed){\n\t\tif(general_registers.contains(passed.charAt(4)))\n\t\t\treturn 1;\n\t\telse if(passed.charAt(4)=='M')\n\t\t\treturn 2;\n\t\telse\n\t\t\treturn 0;\n\t}",
"public void setRemark3(java.lang.String _remark3)\r\n {\r\n this._remark3 = _remark3;\r\n }",
"public /* synthetic */ CinemaDescriptionItem(String str, int i2, int i3, f fVar) {\n this(str, (i3 & 2) != 0 ? 3 : i2);\n }",
"public Recipe(String[] in)\r\n {\r\n double temp;\r\n if (in.length == 3){\r\n this.origQty = in[0];\r\n this.measure = in[1];\r\n this.ingredient = in[2];\r\n this.w_qty = makeDecimal(in[0]);\r\n }\r\n else {if (in.length == 5) {\r\n this.origQty = in[0] + \" \" + in[1];\r\n this.measure = in[2];\r\n this.ingredient = in[3] + \" \" + in[4];\r\n temp = makeDecimal(in[1]);\r\n this.w_qty = Double.parseDouble(in[0])+ temp;\r\n }\r\n else if (in.length == 4) {\r\n if (in[1].contains(\"/\")) {\r\n this.origQty = in[0] + \" \" + in[1];\r\n this.measure = in[2];\r\n this.ingredient = in[3];\r\n temp = makeDecimal(in[1]);\r\n this.w_qty = temp + Double.parseDouble(in[0]);}\r\n else {\r\n this.origQty = in[0];\r\n this.measure = in[1];\r\n this.ingredient = in[2] + \" \" + in[3];\r\n this.w_qty = makeDecimal(in[0]);}\r\n }\r\n }\r\n this.working_measure = measure;\r\n this.final_measure = measure;\r\n }",
"private static int _addPossibleValues(int rowNumber, int y, int x, short[][] spareMatrix,String[] rowIds, SudokuModel model) {\r\n\r\n\t\tfor(short i = 0; i <9; i++){\r\n\t\t\tif(!model.restrictionIsSatisfied(y, x, i+1))\r\n\t\t\trowNumber = _addRestrictions(rowNumber,y,x,i,spareMatrix,rowIds);\r\n\t\t}\r\n\t\t\r\n\t\treturn rowNumber;\r\n\t}",
"public TextPropDefaultViewModel_ textWithDefaultQuantityRes(@PluralsRes int pluralRes,\n int quantity, Object... formatArgs) {\n onMutation();\n assignedAttributes_epoxyGeneratedModel.set(0);\n textWithDefault_StringAttributeData.setValue(pluralRes, quantity, formatArgs);\n return this;\n }",
"public static void loadMatric(int matr[][]) throws IOException{\n\n\t\tfor(int i=0;i<7;i++){\n\t\t\tfor(int j=0;j<6;j++){\n\t\t\t\tSystem.out.print(\"INSERISCI\"+i+j+\": \");\n\t\t\t\tSystem.out.flush();\n\t\t\t\tmatr[i][j]=System.in.read()-'0';\n\t\t\t\tSystem.in.skip(2);\n\t\t\t}}}",
"public boolean restrizione14()\r\n\t\tthrows RestrizioniSpecException\r\n\t\t{\r\n\t\tfor (int i = 0; i < this.equivalenzeInput.size(); i++)\r\n\t\t\t{\r\n\t\t\t// si preleva il nome dell'interazione di output connessa a questa componente\r\n\t\t\tAttacDecl attacDecl = this.attacsDeclInput.get(i);\r\n\t\t\tString string = attacDecl.getOutputInteraction();\r\n\t\t\t// si preleva la relativa equivalenza\r\n\t\t\tIEquivalenza equivalenza = this.equivalenzeInput.get(i);\r\n\t\t\t// si preleva l'azione corrispondente a string\r\n\t\t\tAction action = equivalenza.getActionFromName(string);\r\n\t\t\tif (action == null)\r\n\t\t\t\t{\r\n\t\t\t\tString string2 = equivalenza.getAEIdecl().getName();\r\n\t\t\t\tthrow new RestrizioniSpecException(\"The \"+string+\" action of instance \"+\r\n\t\t\t\t\t\tstring2+\" don't found\");\r\n\t\t\t\t}\r\n\t\t\tActionRate actionRate = action.getRate();\r\n\t\t\tif (!(actionRate instanceof RateInf))\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\treturn true;\r\n\t\t}",
"public void setNoOfRelevantLines(int norl) { this.noOfRelevantLines = norl; }",
"void playYearOfPlentyCard(String resource1, String resource2);",
"java.lang.String getNum1();",
"public int cuantosRenglones() \r\n\t{\r\n\t\tString respuesta = JOptionPane.showInputDialog(\"cuantas renglones quiere\");\r\n\t\tint respuesta1 = Integer.parseInt(respuesta);\r\n\t\treturn respuesta1;\r\n\t}",
"static int size_of_rrc(String passed){\n\t\treturn 1;\n\t}",
"public boolean hasResidues() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public void int3_m() {\n\t\t\n\t}",
"public void agregarpal(String n) {\n\n switch (pos) {\n case 0:\n pal1 = n;\n case 1:\n pal2 = n;\n case 2:\n pal3 = n;\n case 3:\n pal4 = n;\n case 4:\n pal5 = n;\n break;\n }//fin switch\n\n pos++;\n }",
"public static void muestraArreglo(int[] arreglo) {\r\n\t\tfor (int i = 0; i < arreglo.length; i++) {\r\n\t\t\tescribir(\"[\" + arreglo[i] + \"]\", false);\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n\t\tRandom rand = new Random();\n\t\tint first = rand.nextInt(7);\n\t\tint second = rand.nextInt(7);\n\t\tint third = rand.nextInt(7);\n\t\t\n\t\tint middle = rand.nextInt(741);\n\t\t\n\t\tint last = rand.nextInt(9999);\n\t\t\n\t\tString middleString= Integer.toString(middle);\n\t\tString lastString = Integer.toString(last); \n\t\tString firstString = Integer.toString(first);\n\t\tString secondString = Integer.toString(second);\n\t\tString thirdString = Integer.toString(third);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\twhile (middleString.length()<3) {\n\t\t\tmiddleString = \"0\" + middleString;\n\t\t\t\n\t\t}\n\t\t\n\t\twhile (lastString.length()<4){\n\t\t\tlastString = \"0\" + lastString;\n\t\t}\n\t\t\n\t\tSystem.out.println(firstString + secondString + thirdString + \"-\"+ middleString +\"-\"+ lastString);\n\t\t\n\t\t\n\t}",
"public boolean hasResidues() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_8() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(4, LENGTH, MIN, MAX, REPLACEMENT, BASE), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"public String getChoice3(int a){\n String choice2 = choices[a][2];\n return choice2;\n }",
"@Override\n\tpublic void setStreet3(java.lang.String street3) {\n\t\t_candidate.setStreet3(street3);\n\t}",
"static void initSample4(){\n // put values into the sField\n sField[5][4] = \"X\";\n sField[4][5] = \".\";\n sField[3][6] = \"X\";\n sField[2][7] = \"X\";\n sField[1][8] = \"X\";\n \n sField[1][5] = \"O\";\n sField[1][6] = \"O\";\n sField[1][7] = \".\"; \n }",
"private String theFunctionThatSolvesAllProblems(String input) throws IOException {\n\n first = new MyInt[9];\n second = new MyInt[9];\n third = new MyInt[9];\n myPointers = new MyIntPointer[7];\n\n M = new MyInt();\n D = new MyInt();\n C = new MyInt();\n L = new MyInt();\n X = new MyInt();\n V = new MyInt();\n I = new MyInt();\n\n hasI = false;\n hasX = false;\n hasC = false;\n hasM = false;\n hasV = false;\n hasL = false;\n hasD = false;\n\n firstLength = 0;\n secondLength = 0;\n thirdLength = 0;\n\n initializeEquation(input);\n\n return arabic();\n\n }",
"public StrumInstrument(String type, String manufacturer, int nrStrings, double stringSize) {\n super(type, manufacturer);\n this.nrStrings = nrStrings;\n this.stringSize = stringSize;\n }",
"public int[] contarCodons(String seq){\n int [] countCodons=new int[65];\n for (int i=0;i<seq.length()-2;i=i+3){\n String c=seq.substring(i, i+3);\n int j=0;\n while (j<nameCodon.length && nameCodon[j].compareTo(c)!=0) j++;\n if (j<nameCodon.length)\n countCodons[j]++;\n else\n countCodons[64]++;\n }\n return countCodons;\n\n }",
"public void setSecondary3(java.lang.String secondary3) {\n this.secondary3 = secondary3;\n }",
"@Test\n public void execute_nricParameter() throws ParseException {\n //No user input\n execute_parameterPredicate_test(0, \" \", \"nric\", true, false, Collections.emptyList());\n //Single keyword, ignore case, person found.\n execute_parameterPredicate_test(1, \"s1234567A\", \"nric\", true, false, Arrays.asList(ALICE));\n //Single keyword, case sensitive, no one found.\n execute_parameterPredicate_test(0, \"s1234567A\", \"nric\", false, false, Collections.emptyList());\n //Multiple keywords, ignore case, or condition, multiple people found\n execute_parameterPredicate_test(2, \"S1234567a S5234569A\", \"nric\", true, false, Arrays.asList(ALICE, GEORGE));\n //Multiple keywords, ignore case, and condition, no one found\n execute_parameterPredicate_test(0, \"S1234567a S5234569A\", \"nric\", true, true, Collections.emptyList());\n //Multiple keywords, case sensitive, or condition, one person found\n execute_parameterPredicate_test(1, \"S1234567a S5234569A\", \"nric\", false, false, Arrays.asList(GEORGE));\n //Multiple keywords, case sensitive, and condition, no one found\n execute_parameterPredicate_test(0, \"S1234567a S5234569A\", \"nric\", false, true, Collections.emptyList());\n }",
"@Nullable public abstract String loadVerseText(int ari);",
"public void setIDINTERNODC(int value) {\n this.idinternodc = value;\n }",
"static void lxi_to_reg_pair(String passed){\n\t\tchar fourth = passed.charAt(4);\n\t\tif(fourth=='B'){\n\t\t\tregisters.put('B', passed.substring(6,8));\n\t\t\tregisters.put('C', passed.substring(8));\n\t\t}\n\t\telse if(fourth=='D'){\n\t\t\tregisters.put('D', passed.substring(6,8));\n\t\t\tregisters.put('E', passed.substring(8));\n\t\t}\n\t\telse if(fourth=='H'){\n\t\t\tregisters.put('H', passed.substring(6,8));\n\t\t\tregisters.put('L', passed.substring(8));\n\t\t}\n\t}",
"public int getImageResourceIdForExercise(Context context){\n\n TypedArray imagesArray = context.getResources().obtainTypedArray(R.array.images_array);\n int id = 0;\n\n if(musclePart == 1) {\n return imagesArray.getResourceId((exeNumber -1),0);\n }else {\n for (int i = 1; i < imagesArray.length(); i++) {\n if(i == (((musclePart - 1) * 6) + exeNumber) - 1){\n id = imagesArray.getResourceId(i,0);\n break;\n }\n }\n }\n imagesArray.recycle();\n return id;\n }",
"public void mo32111rr(int i) {\n }",
"static int size_of_lxi(String passed){\n\t\treturn 3;\n\t}",
"public void setResearchno(String researchno) {\r\n\t\tthis.researchno = researchno;\r\n\t}",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_10() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString[][] response = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, BASE, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tString[][] response2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, BASE, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, BASE, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, BASE, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n //The letters are randomly chosen through this block of code with use of ASCII code.\n char let1 = (char) ((int)(Math.random() * 26 + 65));\n char let2 = (char) ((int)(Math.random() * 26 + 65));\n char let3 = (char) ((int)(Math.random() * 26 + 65));\n \n //This generates a number of four digits to follow the letters. \n int num = (int)(Math.random() * 9000 + 999);\n \n //The combination is now printed to the screen through this. \n System.out.println(\"The plate number is \" + let1 + let2 +let3 + num); \n }"
] | [
"0.6327813",
"0.6192469",
"0.54701954",
"0.54318446",
"0.53435236",
"0.517985",
"0.51273394",
"0.49388522",
"0.4843686",
"0.47237444",
"0.47163254",
"0.4672512",
"0.46661896",
"0.46322954",
"0.46011934",
"0.4569921",
"0.45437083",
"0.45296323",
"0.45279846",
"0.45203218",
"0.45189357",
"0.448949",
"0.44783738",
"0.44738823",
"0.4448853",
"0.44484988",
"0.44427297",
"0.44364527",
"0.4433593",
"0.44193015",
"0.441404",
"0.4399441",
"0.4376159",
"0.4368925",
"0.4364866",
"0.4362959",
"0.4357302",
"0.43427482",
"0.43348527",
"0.43325981",
"0.43311843",
"0.4325681",
"0.43061322",
"0.43053252",
"0.4292421",
"0.42918912",
"0.42805928",
"0.42690328",
"0.4265863",
"0.4261377",
"0.42598525",
"0.42585045",
"0.42498323",
"0.42467907",
"0.42458472",
"0.42452836",
"0.4242436",
"0.4234264",
"0.42334983",
"0.42330155",
"0.42293504",
"0.4227454",
"0.42257997",
"0.42255232",
"0.42251506",
"0.42247605",
"0.42231393",
"0.42229062",
"0.42220333",
"0.4220982",
"0.4219076",
"0.42158842",
"0.42102906",
"0.4204864",
"0.42048565",
"0.42022958",
"0.42021188",
"0.41942436",
"0.41938663",
"0.41903755",
"0.4186586",
"0.41846168",
"0.41824836",
"0.41813582",
"0.41777498",
"0.41771463",
"0.4175399",
"0.41727102",
"0.41639477",
"0.41636065",
"0.4162537",
"0.4157625",
"0.41564998",
"0.4151467",
"0.41509706",
"0.41508955",
"0.41437665",
"0.41414803",
"0.41412947",
"0.41412067"
] | 0.46710652 | 12 |
optional int32 target_pos = 5; optional int32 target_pos = 5; Index in target protein that this decoy protein is from | boolean hasTargetPos(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getTargetPos();",
"public int getTargetPos() {\n return targetPos_;\n }",
"public int getTargetPos() {\n return targetPos_;\n }",
"@Override\n public int getTargetPosition() {\n return 0;\n }",
"public void setTargetPos(final int target) {\n \n switch(target){\n // Set target position right from current position\n case T_RIGHT:\n if(this.columnT < this.buffer.get(lineT).size()) // Check if position exists\n this.columnT++;\n break;\n // Set target position left from current position\n case T_LEFT:\n if(this.columnT > 0) // Check if position exists\n this.columnT--;\n break;\n // Set target position up from current position\n case T_UP:\n if(this.lineT > 0) { // Check if position exists\n this.lineT--;\n if(this.columnT > this.buffer.get(lineT).size()) // Check for correct positioning\n this.columnT = this.buffer.get(lineT).size();\n }\n break;\n // Set target position down from current position\n case T_DOWN:\n if(this.lineT < this.buffer.size() - 1) { // Check if position exists\n this.lineT++;\n if(this.columnT > this.buffer.get(lineT).size()) // Check for correct positioning\n this.columnT = this.buffer.get(lineT).size();\n }\n break;\n // Set target position to first position\n case T_HOME:\n this.columnT = 0;\n break;\n // Set target position to last position\n case T_END:\n this.columnT = this.buffer.get(lineT).size();\n break;\n default:\n System.out.println(\"Invalid target position\");\n break;\n }\n }",
"public Contig getTarget() { return target; }",
"N getTarget();",
"@InVertex\n Object getTarget();",
"TrgPlace getTarget();",
"public void setTargetPosition(double position){\n targetPosition = position;\n }",
"@Override\n public Vertex getTarget() {\n return targetVertex;\n }",
"public ObjectSequentialNumber getTarget() {\n return target;\n }",
"public int getTargetArgIndex() {\n\t\treturn this.targetArgIndex;\n\t}",
"private Vector2 findTarget() \r\n\t{\r\n\t\tVector2 tempVector = new Vector2(1,1);\r\n\t\ttempVector.setLength(Constants.RANGEDSPEED); //TODO make so it can be changed when level difficulty increases\r\n\t\ttempVector.setAngle(rotation + 90);\r\n\t\treturn tempVector;\r\n\t}",
"public Builder setTargetPos(int value) {\n bitField0_ |= 0x00000008;\n targetPos_ = value;\n onChanged();\n return this;\n }",
"private int getIndex(T target) {\r\n for (int i = 0; i < SIZE; i++) {\r\n if (tree[i] == target) {\r\n return i;\r\n }\r\n }\r\n return -1;\r\n }",
"public EntityID nextTarget(Set<StandardEntity> victims) {\n\n// Clustering clustering = this.moduleManager.getModule(SampleModuleKey.AMBULANCE_MODULE_CLUSTERING);\n\n// if (this.clusterIndex == -1) {\n this.clusterIndex = clustering.getClusterIndex(this.agentInfo.getID());\n// }\n\n\n Collection<StandardEntity> elements = clustering.getClusterEntities(this.clusterIndex);\n\n calculateMapCenters(this.clusterIndex, elements);\n\n\n targetsMap.clear();\n\n if (previousTarget != null && !victims.contains(worldInfo.getEntity(previousTarget.getVictimID()))) {\n previousTarget = null;\n }\n\n\n refreshTargetsMap(victims, targetsMap);\n\n calculateDecisionParameters(victims, targetsMap);\n\n calculateVictimsCostValue();\n\n\n AmbulanceTarget bestTarget = null;\n bestTarget = findBestVictim(targetsMap, elements);\n\n //considering inertia for the current target to prevent loop in target selection\n if (previousTarget != null && victims.contains(worldInfo.getEntity(previousTarget.getVictimID()))) {\n if (bestTarget != null && !bestTarget.getVictimID().equals(previousTarget.getVictimID())) {\n Human bestHuman = (Human) worldInfo.getEntity(bestTarget.getVictimID());\n Human previousHuman = (Human) worldInfo.getEntity(previousTarget.getVictimID());\n\n double bestHumanCost = pathPlanning.setFrom(agentInfo.getPosition()).setDestination(bestHuman.getPosition()).calc().getDistance();\n double previousHumanCost = pathPlanning.setFrom(agentInfo.getPosition()).setDestination(previousHuman.getPosition()).calc().getDistance();\n if (previousHumanCost < bestHumanCost) {\n bestTarget = previousTarget;\n }\n }\n }\n\n previousTarget = bestTarget;\n\n if (bestTarget != null) {\n return bestTarget.getVictimID();\n } else {\n return null;\n }\n\n }",
"BlockPos getPosTarget() {\n BlockPosDim loc = LocationGpsCard.getPosition(inventory.getStackInSlot(0));\n if (loc != null && loc.getPos() != null) {\n return loc.getPos();\n }\n return this.getBlockPos();\n }",
"public Integer getTargetID()\r\n\t\t{ return mapping.getTargetId(); }",
"@Test\n\t\t\tpublic void testTargetOneStep()\n\t\t\t{\n\t\t\t\t//Test one step and check for the right space\n\t\t\t\tboard.calcTargets(0, 7, 1);\n\t\t\t\tSet<BoardCell> targets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(1, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(1, 7)));\n\n\t\t\t\t// Test one step near a door with the incorrect direction\n\t\t\t\tboard.calcTargets(13, 6, 1);\n\t\t\t\ttargets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(3, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(14, 6)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(13, 5)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(13, 7)));\n\t\t\t\t\n\t\t\t\t\n\t\t\t}",
"public int advanceStartPosition(int target) throws IOException {\n // Naive implementations; subclasses may provide a faster version.\n int pos;\n do {\n pos = nextStartPosition();\n } while (pos < target && pos != NO_MORE_POSITIONS);\n return pos;\n }",
"@Override\n\tpublic int getTargetParameter() {\n\t\treturn 0;\n\t}",
"public Vector getTargets(){\n return targets;\n }",
"@Test\n\t\t\tpublic void testTargetsThreeSteps() {\n\t\t\t\t//Using walkway space that will go near a door with the wrong direction\n\t\t\t\tboard.calcTargets(8, 16, 2);\n\t\t\t\tSet<BoardCell> targets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(4, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(6, 16)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(10, 16)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(7, 15)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(9, 15)));\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t}",
"private TrackingResult followTarget(Rect target)\n\t{\n\t\t// Clear any existing target rectangle.\n\t\tcamera.addTarget(null);\n\t\t\n\t\t// Outline the target being tracked.\n\t\tcamera.addTarget(target);\n\t\t\n\t\t// This is field of view size.\n\t\tSize imageSize = camera.getImageSize();\n\t\t\n\t\t// get size of target outline area.\n\t\tint targetArea = target.height * target.width;\n\t\t\n\t\t// If we have just acquired target, record initial size. Size comparison\n\t\t// is how we determine distance to target.\n\t\t\n\t\tif (initialTargetArea == 0) initialTargetArea = targetArea;\n\t\t\n\t\t// Compute center point of target in the camera view image.\n\t\tint targetCenterX = target.x + target.width / 2;\n\t\tint imageCenterX = (int) (imageSize.width / 2);\n\t\t\n\t\t// offset minus indicates target is left of image center,\n\t\t// plus to the right. If target is left, drone needs to turn\n\t\t// left to center the target in the image which is a minus yaw value.\n\t\t\n\t\tint offset = targetCenterX - imageCenterX;\n\n\t\tlogger.fine(\"offset=\" + offset);\n\t\t\n\t\toffset *= .25;\t// Scale offset down;\n\t\t\n\t\t// Determine change in distance from last target acquisition.\n\t\t\n\t\tdouble distance = initialTargetArea - targetArea;\n\t\t\n\t\tlogger.fine(String.format(\"ia=%d ta=%d dist=%.0f\", initialTargetArea, targetArea, distance));\n\t\t\n\t\t//initialTargetArea = targetArea;\n\t\t\n\t\tdouble scaleFactor = 0.0;\n\t\t\n\t\t// If distance is small, call it good otherwise the drone\n\t\t// hunts back and forth. Value must be determined by testing.\n\t\t\n\t\tif (Math.abs(distance) < 2000.0) \n\t\t\tdistance = 0.0;\n\t\telse\n\t\t{\n\t\t\t// Scale distance change to a fwd/back movement value of 20% for flyRC command.\n\t\t\t// For some unknown reason, need more power to fly forward than back and even\n\t\t\t// with 30%, forward seems not reliable.\n\t\t\t// scaleFactor must be positive to preserve the sign of distance value.\n\t\t\t\n\t\t\tscaleFactor = 20.0 / Math.abs(distance);\n\t\t\n\t\t\tdistance = distance * scaleFactor;\n\t\t}\n\t\t\n\t\tlogger.fine(String.format(\"dist=%.1f fact=%f\", distance, scaleFactor));\n\t\t\n\t\treturn new TrackingResult(offset, (int) distance);\n\t}",
"public void SetTargetOffset(int target_offset) {\n target_offset_ = target_offset;\n }",
"public abstract int getSourceIndex(int index);",
"@Override\n\tpublic void findTarget(List<Combat> other) {\n\t}",
"public Living getTarget();",
"public CPointer<BlenderObject> getTarget() throws IOException\n\t{\n\t\tlong __dna__targetAddress;\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__dna__targetAddress = __io__block.readLong(__io__address + 128);\n\t\t} else {\n\t\t\t__dna__targetAddress = __io__block.readLong(__io__address + 104);\n\t\t}\n\t\tClass<?>[] __dna__targetTypes = new Class[]{BlenderObject.class};\n\t\treturn new CPointer<BlenderObject>(__dna__targetAddress, __dna__targetTypes, __io__blockTable.getBlock(__dna__targetAddress, BlenderObject.__DNA__SDNA_INDEX), __io__blockTable);\n\t}",
"public static void testDiGui(int[] candidates, int target, int start) {\n\n if (target == 0) {\n return;\n } else if (target < 0) {\n return;\n } else {\n for (int i = start; i < candidates.length && candidates[i] > 0; i++) {\n\n System.out.println(candidates[i]);\n target = candidates[i];\n i++;\n testDiGui(candidates, target, i);\n target = -1;\n }\n }\n\n System.out.println(target);\n }",
"public void setTarget(ObjectSequentialNumber target) {\n this.target = target;\n }",
"public void setTargetPosition(float x, float y){\r\n this.targetX = x;\r\n this.targetY = y;\r\n }",
"@Override\r\n\t\r\n\t\r\n\t\r\n\tpublic int[] locate(int target) {\r\n\t\tint low = 0; \r\n\t\tint high = length()- 1;\r\n\t\t\r\n\t\twhile ( low <= high) {\r\n\t\t\tint mid = ((low + high)/2);\r\n\t\t\tint value = inspect(mid,0);\r\n\t\t\t\t\t\r\n\t\t\tif ( value == target) {\r\n\t\t\t\treturn new int[] {mid,0};\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\telse if (value < target) {\r\n\t\t\t\tlow = mid +1;\r\n\t\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\thigh = mid -1;\r\n\t\t}\r\n\t\t\r\n\t}\r\n\t\treturn binarySearch(high, target);\r\n\t}",
"private Position computeTargetConsideringLead(Position sourcePos, TargetGridElement targetGridElement) {\r\n\r\n // Target-Position & velocity-Vector\r\n Position targetPosition = targetGridElement.getCurrentGridElementPosition();\r\n Direction targetPosDirection = Directions.of(targetPosition.getDirection(), targetGridElement.getTargetVelocity());\r\n\r\n // Source-Position & velocity-Vector\r\n double angleBetweenSourceAndTarget = sourcePos.calcAngleRelativeTo(targetPosition);\r\n sourcePos = sourcePos.rotate(angleBetweenSourceAndTarget);\r\n Direction sourcePosDirection = Directions.of(sourcePos.getDirection(), velocity);\r\n\r\n Float64Vector targetVMinusSourceV = targetPosition.getVector().minus(sourcePos.getVector());\r\n double a = targetPosDirection.getVector().normValue() * targetPosDirection.getVector().normValue()\r\n - (sourcePosDirection.getVector().normValue() * sourcePosDirection.getVector().normValue());\r\n double b = 2 * targetVMinusSourceV.times(targetPosDirection.getVector()).doubleValue();\r\n double c = targetVMinusSourceV.normValue() * targetVMinusSourceV.normValue();\r\n\r\n if (a >= 0) {\r\n return targetPosition;\r\n }\r\n double sqrt = Math.sqrt(b * b - 4 * a * c);\r\n double dt1 = solveQuadraticFormula(a, b, sqrt, -1);\r\n double dt = computeDeltaT(a, b, sqrt, dt1);\r\n Float64Vector targetDirVectorWithTime = targetPosDirection.getVector().times(dt);\r\n return Positions.of(targetPosition.getX() + targetDirVectorWithTime.getValue(0), targetPosition.getY() + targetDirVectorWithTime.getValue(1),\r\n sourcePos.getZ());\r\n }",
"final int getNextBuildTarget(int difficulty) {\n/* 1970 */ difficulty = Math.min(5, difficulty);\n/* 1971 */ int start = difficulty * 3;\n/* 1972 */ int templateFound = -1;\n/* */ int x;\n/* 1974 */ for (x = start; x < 17; x++) {\n/* */ \n/* 1976 */ if (this.epicTargetItems[x] <= 0L) {\n/* */ \n/* 1978 */ templateFound = x;\n/* */ \n/* */ break;\n/* */ } \n/* */ } \n/* 1983 */ if (templateFound == -1)\n/* */ {\n/* */ \n/* 1986 */ for (x = start; x > 0; x--) {\n/* */ \n/* 1988 */ if (this.epicTargetItems[x] <= 0L) {\n/* */ \n/* 1990 */ templateFound = x;\n/* */ \n/* */ break;\n/* */ } \n/* */ } \n/* */ }\n/* 1996 */ if (templateFound > -1) {\n/* */ \n/* 1998 */ if (templateFound < 3)\n/* 1999 */ return 717; \n/* 2000 */ if (templateFound < 6)\n/* 2001 */ return 714; \n/* 2002 */ if (templateFound < 9)\n/* 2003 */ return 713; \n/* 2004 */ if (templateFound < 12)\n/* 2005 */ return 715; \n/* 2006 */ if (templateFound < 15) {\n/* 2007 */ return 712;\n/* */ }\n/* 2009 */ return 716;\n/* */ } \n/* 2011 */ return -1;\n/* */ }",
"private <T> void getPossibleTargets(TargetingScheme<T> t, TargetList<T> current, List<? extends T> searchSpace, int startInd,\n List<TargetList<T>> outputList) {\n if (t.isFullyTargeted(current)) {\n outputList.add(current);\n return;\n }\n if (startInd >= searchSpace.size()) {\n System.out.println(\"this shouldn't happen lmao\");\n }\n int numToSelect = Math.min(searchSpace.size(), t.getMaxTargets());\n for (int i = startInd; i < searchSpace.size() - (numToSelect - current.targeted.size() - 1); i++) {\n T c = searchSpace.get(i);\n if (!current.targeted.contains(c)) {\n TargetList<T> copy = current.clone();\n copy.targeted.add(c);\n this.getPossibleTargets(t, copy, searchSpace, i + 1, outputList);\n }\n }\n }",
"public Point getTarget() {\n\t\treturn _target;\n\t}",
"public void setTargeted() {\n targeted ++;\n }",
"public void toSelectingAttackTarget() {\n }",
"Point2D getNextMove(Point2D target, boolean pursuit, Set<Point2D> map);",
"public Integer getTargetid() {\n return targetid;\n }",
"protected void FacetoTarget(Character pc, Object target) {\n int dx, dy;\n if (target instanceof Character) {\n dx = ((Character) target).x - pc.x;\n dy = ((Character) target).y - pc.y;\n } else if (target instanceof Envir_Item) {\n dx = ((Envir_Item) target).getX() - bottom_screen.left - pc.x;\n dy = ((Envir_Item) target).getY() - bottom_screen.top - pc.y;\n } else {\n return;\n }\n\n if (Math.abs(dx) >= Math.abs(dy)) {\n if (dx > 0) {\n pc.setDir(2);\n } else {\n pc.setDir(1);\n }\n } else {\n if (dy > 0) {\n pc.setDir(0);\n } else {\n pc.setDir(3);\n }\n }\n }",
"@VisibleForTesting\n int[] findMatches(Token[] source, Token[] target) {\n final LevenshteinDistance table = new LevenshteinDistance(source, target);\n table.calculate();\n final int targetLen = target.length;\n final int[] result = new int[targetLen];\n LevenshteinDistance.EditOperation[] ops = table.getTargetOperations();\n for (int i = 0; i < targetLen; ++i) {\n if (ops[i].getType() == LevenshteinDistance.EDIT_UNCHANGED) {\n result[i] = ops[i].getPosition();\n } else {\n result[i] = -1;\n }\n }\n return result;\n }",
"private static int[] searchRange2(int[] nums, int target) {\n int targetPos = findTargetPosition(nums, target);\n if (targetPos == -1) {\n return new int[] {-1, -1};\n }\n int leftPos = findLeftTargetPos(nums, target, targetPos);\n int rightPos = findRightTargetPos(nums, target, targetPos);\n\n return new int[] {leftPos, rightPos};\n }",
"public DNode getTo() { return targetnode; }",
"public Iterator<Point> getPointAt(ModelObject target, int pos);",
"private int findPos(byte[] contents, String target)\n {\n String contentsStr = null;\n try\n {\n contentsStr = new String(contents, \"ISO-8859-1\");\n }\n catch (UnsupportedEncodingException e)\n {\n e.printStackTrace();\n }\n return contentsStr.indexOf(target);\n }",
"public StateID GetTarget()\n {\n return targetID;\n }",
"private TargetInformation findPeg(Mat image) {\r\n\t\tTargetInformation ret = new TargetInformation();\r\n\t\tret.targetingPeg = true;\r\n\t\t\r\n\t long[] xsums = sums(image, true);\r\n\t long[] ysums = sums(image, false);\r\n\t \r\n\t List<PeakLoc> ypeaks = findPeaks(ysums);\r\n\t List<PeakLoc> xpeaks = findPeaks(xsums);\r\n\t\t\r\n\t\t/////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t\t//vvvvvvvvvvvvvvvvvvv FUTURE YEARS LOOK HERE, THIS IS WHAT YOU WILL WANT TO REPLACE vvvvvvvvvvvvvvvvvvv//\r\n\t\t/////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t \r\n\t // Target is only found if we have exactly 2 x peaks, representing both of the pieces of tape\r\n\t if ((xpeaks.size() == 2) && (ypeaks.size() > 0)){\r\n\t \tret.targetFound = true;\r\n\t \tret.x = (xpeaks.get(1).getStart() + xpeaks.get(0).getStop()) / 2;\r\n\t \tret.gap = xpeaks.get(1).getStart() - xpeaks.get(0).getStop();\r\n\t \tret.width = xpeaks.get(1).getStop() - xpeaks.get(0).getStart();\r\n\t \tret.height = ypeaks.get(0).getStop() - ypeaks.get(0).getStart();\r\n\t \tret.y = ypeaks.get(0).getStart() + ret.height/2;\r\n\t \tret.rightOfTarget = xpeaks.get(0).maxValue < xpeaks.get(1).maxValue;\r\n\t \t\r\n \t\tret.pixelsPerInch = ret.height / pegHeightInches;\r\n \t\t\r\n\t \tret.aimX = ret.x + cameraOffsetInches * ret.pixelsPerInch;\r\n\t \t\r\n\t \tret.correctionAngle = (double)((ret.aimX - image.cols() / 2)) / pixelsPerXDegree;\r\n\t }\r\n\t else\r\n\t {\r\n\t \tret.targetFound = false;\r\n\t }\r\n\t\t/////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t\t//^^^^^^^^^^^^^^^^^^^ FUTURE YEARS LOOK HERE, THIS IS WHAT YOU WILL WANT TO REPLACE ^^^^^^^^^^^^^^^^^^^//\r\n\t\t/////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t \r\n\t return ret;\r\n\t}",
"public void setTargetid(Integer targetid) {\n this.targetid = targetid;\n }",
"com.google.protobuf.ByteString getTargetBytes();",
"private byte[] getTarget( byte[] buffer ){\n \tbyte target[] = new byte[Constants.TARGET_ID_LEN];\n \tfor (int i=0; i<Constants.TARGET_ID_LEN; i++){\n \t\ttarget[i] = buffer[i + Constants.MESSAGE_ID_LEN + 1];\n \t}\n \treturn target;\n }",
"private void setNewTarget() {\n startPoint = new Circle(targetPoint);\n projection.addShift(this.targetGenerator.shiftX(startPoint), this.targetGenerator.shiftY(startPoint),\n this.targetGenerator.gridManager);\n this.targetPoint = new Circle(this.targetGenerator.generateTarget(startPoint), this.targetGenerator.gridManager.pointSize);\n projection.convertFromPixels(this.targetPoint);\n \n gameListeners.addedNewLine(startPoint, targetPoint);\n \n // TODO make probability upgradeable to spawn a new pickup\n if (Math.random() < pickupSpawnProbability) {\n generateNewPickup(); \n }\n }",
"public T getPater(T target) {\r\n int index = getIndex(target);\r\n if (index * 2 + 1 >= SIZE) {\r\n return null;\r\n } else if (tree[index * 2 + 1] == null) {\r\n return null;\r\n } else {\r\n return tree[index * 2 + 1];\r\n }\r\n }",
"private void populateGUI(TargetDecoyMap targetDecoyMap) {\n\n ValidationQcParameters validationQCPreferences = identificationParameters.getIdValidationParameters().getValidationQCParameters();\n\n // Validation level\n validationLevelJComboBox.setSelectedItem(psParameter.getMatchValidationLevel().getName());\n\n // Database info\n FastaParameters fastaParameters = identificationParameters.getFastaParameters();\n boolean targetDecoy = fastaParameters.isTargetDecoy();\n\n if (!targetDecoy) {\n\n targetDecoyLbl.setText(\"Target only\");\n targetDecoyLbl.setForeground(Color.red);\n\n } else {\n\n targetDecoyLbl.setForeground(GREEN);\n\n }\n\n try {\n\n FastaSummary fastaSummary = FastaSummary.getSummary(fastaFile, fastaParameters, null);\n int nTarget = fastaSummary.nTarget;\n nTargetLbl.setText(nTarget + \" target sequences\");\n\n if (nTarget < 10000) {\n\n nTargetLbl.setForeground(Color.red);\n\n } else if (nTarget > 1000000) {\n\n nTargetLbl.setForeground(ORANGE);\n\n } else {\n\n nTargetLbl.setForeground(GREEN);\n\n }\n\n } catch (IOException iOException) {\n\n nTargetLbl.setText(\"Database size not available\");\n nTargetLbl.setForeground(Color.red);\n\n }\n\n // Target/Decoy group\n ((TitledBorder) targetDecoyGroupPanel.getBorder()).setTitle(\"Target/Decoy Distributions\");\n targetDecoyGroupPanel.repaint();\n if (targetDecoy) {\n int nTargetOnly = targetDecoyMap.getnTargetOnly();\n matchesBeforeFirstDecoyLbl.setText(nTargetOnly + \" matches before the first decoy hit\");\n\n TargetDecoyResults targetDecoyResults = targetDecoyMap.getTargetDecoyResults();\n double desiredThreshold = targetDecoyResults.getUserInput();\n double nTargetLimit = 100.0 / desiredThreshold;\n if (nTargetOnly < nTargetLimit) {\n matchesBeforeFirstDecoyLbl.setForeground(Color.red);\n } else {\n matchesBeforeFirstDecoyLbl.setForeground(GREEN);\n }\n recommendedNumberOfTargetHitsLbl.setText(\"Recommended: \" + Util.roundDouble(nTargetLimit, 0) + \" matches before the first decoy hit\");\n\n double resolution = targetDecoyMap.getResolution();\n confidenceResolutionLbl.setText(\"PEP/Confidence resolution of \" + Util.roundDouble(resolution, 2) + \"%\");\n\n double minResolution = desiredThreshold;\n if (resolution > 10 * minResolution) {\n confidenceResolutionLbl.setForeground(Color.red);\n } else if (resolution > minResolution) {\n confidenceResolutionLbl.setForeground(ORANGE);\n } else {\n confidenceResolutionLbl.setForeground(GREEN);\n }\n recommendedResolutionLbl.setText(\"Recommended: resolution < \" + Util.roundDouble(minResolution, 2) + \"%\");\n } else {\n matchesBeforeFirstDecoyLbl.setText(\"No decoy\");\n matchesBeforeFirstDecoyLbl.setForeground(Color.gray);\n confidenceResolutionLbl.setText(\"Impossible to estimate confidence resolution\");\n confidenceResolutionLbl.setForeground(Color.gray);\n }\n\n // Target/decoy results\n if (targetDecoy) {\n \n double confidence = psParameter.getConfidence();\n MatchValidationLevel matchValidationLevel = psParameter.getMatchValidationLevel();\n validationStatusLbl.setText(\"Validation Status: \" + matchValidationLevel.getName());\n\n switch (matchValidationLevel) {\n case confident:\n validationStatusLbl.setForeground(GREEN);\n break;\n \n case doubtful:\n validationStatusLbl.setForeground(ORANGE);\n break;\n\n case not_validated:\n validationStatusLbl.setForeground(Color.red);\n break;\n\n case none:\n validationStatusLbl.setForeground(Color.gray);\n }\n\n TargetDecoyResults targetDecoyResults = targetDecoyMap.getTargetDecoyResults();\n String validationThresholdTxt = \"\";\n double threshold = targetDecoyResults.getUserInput();\n int thresholdType = targetDecoyResults.getInputType();\n if (thresholdType == 0) {\n validationThresholdTxt += \"Validation Threshold: \" + Util.roundDouble(threshold, 2) + \"%\";\n } else if (targetDecoyResults.getInputType() == 1) {\n validationThresholdTxt += \"FDR Threshold: \" + Util.roundDouble(threshold, 2) + \"%\";\n } else if (targetDecoyResults.getInputType() == 2) {\n validationThresholdTxt += \"FNR Threshold: \" + Util.roundDouble(threshold, 2) + \"%\";\n }\n validationThresholdLbl.setText(validationThresholdTxt);\n\n confidenceLbl.setText(\"Confidence: \" + Util.roundDouble(confidence, 2) + \"%\");\n double validationThreshold = targetDecoyResults.getConfidenceLimit();\n confidenceThresholdLbl.setText(\"Expected Confidence: \" + Util.roundDouble(validationThreshold, 2) + \"%\");\n double margin = validationQCPreferences.getConfidenceMargin() * targetDecoyMap.getResolution();\n double confidenceThreshold = validationThreshold + margin;\n if (confidenceThreshold > 100) {\n confidenceThreshold = 100;\n }\n confidenceThresholdLbl.setText(\"Confident confidence: \" + Util.roundDouble(confidenceThreshold, 2) + \"%\");\n if (confidence < validationThreshold) {\n confidenceLbl.setForeground(Color.red);\n } else if (confidence < confidenceThreshold) {\n confidenceLbl.setForeground(ORANGE);\n } else {\n confidenceLbl.setForeground(GREEN);\n }\n } else {\n validationStatusLbl.setText(\"Validation Status: \" + psParameter.getMatchValidationLevel().getName());\n validationThresholdLbl.setText(\"Impossible to estimate validation threshold\");\n confidenceLbl.setText(\"Impossible to estimate confidence\");\n confidenceThresholdLbl.setText(\"Impossible to estimate confidence threshold\");\n validationStatusLbl.setForeground(Color.gray);\n confidenceLbl.setForeground(Color.gray);\n }\n\n // Quality filters\n final DefaultTableModel tableModel = new FiltersTableModel();\n qualityFiltersTable.setModel(tableModel);\n qualityFiltersTable.getColumn(\"\").setMaxWidth(50);\n qualityFiltersTable.getColumn(\" \").setMaxWidth(50);\n qualityFiltersTable.getColumn(\" \").setCellRenderer(new TrueFalseIconRenderer(\n new ImageIcon(this.getClass().getResource(\"/icons/accept-new.png\")),\n new ImageIcon(this.getClass().getResource(\"/icons/error-new.png\")),\n \"Yes\", \"No\"));\n\n int valid = 0;\n for (String qcCheck : psParameter.getQcCriteria()) {\n if (psParameter.isQcPassed(qcCheck)) {\n valid++;\n }\n }\n ((TitledBorder) qualityFiltersPanel.getBorder()).setTitle(\"Quality Filters (\" + valid + \"/\" + psParameter.getQcCriteria().size() + \")\");\n }",
"public Point getTarget()\n\t{\n\t\treturn this.target;\n\t}",
"@Test\n\t\t\tpublic void testTargetsTwoSteps() {\n\t\t\t\t//Length of 2\n\t\t\t\tboard.calcTargets(8, 16, 2);\n\t\t\t\tSet<BoardCell> targets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(4, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(6, 16)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(10, 16)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(7, 15)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(9, 15)));\n\t\t\t\t//Length of 2\n\t\t\t\tboard.calcTargets(15, 15, 2);\n\t\t\t\ttargets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(4, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(13, 15)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(17, 15)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(14, 16)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(15, 17)));\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t}",
"public abstract int positionBonus();",
"abstract public int findTargetToReplace(MemRef r);",
"public Entity.ID getTargetID() {\n return targetID;\n }",
"public int findPosition(int[] nums, int target) {\n // write your code here\n if (nums == null || nums.length == 0) return -1;\n int start = 0, end = nums.length - 1;\n while (start <= end) {\n int mid = start + (end - start) / 2;\n if (nums[mid] == target) return mid;\n if (nums[mid] < target)\n start = mid + 1;\n else\n end = mid - 1;\n }\n return -1;\n }",
"@Override\n\tpublic void setChaseTarget(){\n\t\tthis.setTarget(_pacman.getX()+Constants.SQUARE_SIDE,_pacman.getY()-(4*Constants.SQUARE_SIDE));\n\t}",
"String getTarget();",
"String getTarget();",
"@Test\r\n\tpublic void testTargetsFourSteps() {\r\n\t\tboard.calcTargets(24, 0, 4);\r\n\t\tSet<BoardCell> targets= board.getTargets();\r\n\t\tassertEquals(4, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(24, 4)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(23, 3)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(24, 2)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(23, 1)));\r\n\t\t\r\n\t\tboard.calcTargets(0, 20, 4);\r\n\t\ttargets = board.getTargets();\r\n\t\tassertEquals(4, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(1, 19)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(2, 20)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(3, 19)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(4, 20)));\r\n\t\t\r\n\t\t// Includes a path that doesn't have enough length plus one door\r\n\t\tboard.calcTargets(9, 0, 4);\r\n\t\ttargets= board.getTargets();\r\n\t\tassertEquals(8, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(9, 4)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(9, 2)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(10, 3)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(10, 1)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(11, 2)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(12, 1)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(8, 2)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(11, 0)));\t\r\n\t}",
"@Override\n\tpublic int[] locate(int target) {\n\t\tint n = this.length(); //number of rows\n\t\tint min = 0;\n\t\tint max = n-1;\n\t\tint mid = 0;\n\t\tint mid_element = 0;\n\t\twhile(min <= max){\n\t\t\tmid = (min + max)/2;\n\t\t\tmid_element = inspect(mid,mid);\n\t\t\tif(mid_element == target){\n\t\t\t\treturn new int[]{mid, mid};\n\t\t\t}\n\t\t\telse if(mid_element < target){\n\t\t\t\tmin = mid + 1;\n\t\t\t}\n\t\t\telse if(mid_element > target){\n\t\t\t\tmax = mid - 1;\n\t\t\t}\n\t\t}\n\t\tif(target < mid_element){\n\t\t\tif(target <= inspect(0, max)){\n\t\t\t\tfor(int r = 0; r < max; r++){\n\t\t\t\t\tif(inspect(r, max) == target){\n\t\t\t\t\t\treturn new int[]{r,max};\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfor(int c = 0; c <= mid; c++){\n\t\t\t\t\tif(inspect(mid, c) == target){\n\t\t\t\t\t\treturn new int[]{mid,c};\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tif(target > inspect(0, n-1)){\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\telse if(target <= inspect(0, max)){\n\t\t\t\tfor(int r = 0; r < max; r++){\n\t\t\t\t\tif(inspect(r, max) == target){\n\t\t\t\t\t\treturn new int[]{r, max};\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfor(int c = 0; c < min; c++){\n\t\t\t\t\tif(inspect(min, c) == target){\n\t\t\t\t\t\treturn new int[]{min, c};\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public long getTargetId() {\n return targetId;\n }",
"private static int predictDistance(Position source, Position target) {\n int x = source.getX() - target.getX();\n int y = source.getY() - target.getY();\n int c = (int)Math.ceil(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)));\n return c;\n }",
"@Test\n\tpublic void testTargetsFourSteps() {\n\t\tboard.calcTargets(14, 24, 4);\n\t\tSet<BoardCell> targets= board.getTargets();\n\t\tassertEquals(7, targets.size());\n\t\tassertTrue(targets.contains(board.getCellAt(14, 20)));\n\t\tassertTrue(targets.contains(board.getCellAt(15, 21)));\n\t\tassertTrue(targets.contains(board.getCellAt(16, 22)));\n\t\tassertTrue(targets.contains(board.getCellAt(17, 23)));\t\t\t\n\t\tassertTrue(targets.contains(board.getCellAt(15, 23)));\n\t\tassertTrue(targets.contains(board.getCellAt(16, 24)));\t\t\t\n\t\tassertTrue(targets.contains(board.getCellAt(14, 22)));\n\t}",
"Object getTarget();",
"Object getTarget();",
"private void thinkAboutNext(ArrayList<Point> pos, boolean hit, boolean destroyedIt) {\n if (!searching && hit) {\n betweenTwo = false;\n System.out.println(\"WAS A NEW TARGET\");\n if(!destroyedIt) {\n int[] d = Direction.DOWN.getDirectionVector();\n Point n = new Point(justBefore.x + d[0], justBefore.y + d[1]);\n if (inBounds(n) && pos.contains(n))\n directionsToGo.add(Direction.DOWN);\n\n d = Direction.UP.getDirectionVector();\n n = new Point(justBefore.x + d[0], justBefore.y + d[1]);\n if (inBounds(n) && pos.contains(n))\n directionsToGo.add(Direction.UP);\n\n d = Direction.LEFT.getDirectionVector();\n n = new Point(justBefore.x + d[0], justBefore.y + d[1]);\n if (inBounds(n) && pos.contains(n))\n directionsToGo.add(Direction.LEFT);\n\n d = Direction.RIGHT.getDirectionVector();\n n = new Point(justBefore.x + d[0], justBefore.y + d[1]);\n if (inBounds(n) && pos.contains(n))\n directionsToGo.add(Direction.RIGHT);\n\n directionLooking = directionsToGo.get(directionsToGo.size() - 1);\n }\n }\n else if (searching) {\n //FILTER OUT ALREADY ATTACKED\n\n System.out.println(\"WAS AN OLD TARGET\");\n\n //FAILED\n if(!hit) {\n justBefore = firstHit;\n int size = directionsToGo.size();\n\n for(int i = size - 1; i >= 0; i--){\n Point n = new Point(justBefore.x + directionsToGo.get(i).getDirectionVector()[0],\n justBefore.y + directionsToGo.get(i).getDirectionVector()[1]);\n if(!pos.contains(n))\n directionsToGo.remove(i);\n }\n directionLooking = directionsToGo.get(0);\n }\n else\n if(!pos.contains(pWD(justBefore, directionLooking))) {\n justBefore = firstHit;\n directionLooking = directionLooking.getOpposite();\n }\n\n }\n if(hit) {\n searching = !destroyedIt;\n }\n }",
"public Spatial getTarget() {\r\n return target;\r\n }",
"public Map<Integer, TargetDef> getTargetQueries();",
"public void setTarget_table(String target_table) {\n this.target_table = target_table;\n }",
"public void processTargetTracker (Entity squad, Entity target, boolean contactEnd) {\n\t}",
"public EntityID getTarget() {\n\t\treturn target.getValue();\n\t}",
"@Override\r\n\tprotected void processTarget() {\n\r\n\t}",
"@Override\r\n\tprotected void processTarget() {\n\r\n\t}",
"public int search(int target)\n {\n for(int i = 0; i<list.length; i++)\n {\n if(target == list[i])\n {\n return i;\n }\n }\n }",
"@Test\n\t\t\tpublic void testTargetsFourSteps() {\n\t\t\t\t//Using random walkway space\n\t\t\t\tboard.calcTargets(5, 18, 3);\n\t\t\t\tSet<BoardCell> targets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(10, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(5, 21)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(6, 20)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(4, 20)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(5, 19)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(3, 17)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(6, 16)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(4, 16)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(5, 17)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(4, 18)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(6, 18)));\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t}",
"@Test\r\n\tpublic void testTargetsTwoSteps() {\r\n\t\tboard.calcTargets(10, 1, 2);\r\n\t\tSet<BoardCell> targets= board.getTargets();\r\n\t\tassertEquals(6, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(9, 0)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(11, 2)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(11, 0)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(9, 2)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(12, 1)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(10, 3)));\r\n\t\t\r\n\t\tboard.calcTargets(17, 13, 2);\r\n\t\ttargets= board.getTargets();\r\n\t\tassertEquals(5, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(17, 15)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(18, 14)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(16, 14)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(16, 12)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(15, 13)));\r\n\t}",
"private int getPosition(int[][] matrix, int target) {\n int rows = matrix.length;\n int columns = matrix[0].length;\n // Indices to traverse the matrix\n int i = rows - 1;\n int j = 0;\n // Position of the element\n int position = 0;\n // Loop until we are inside the boundary of the matrix\n while (i >= 0 && j < columns) {\n if (target >= matrix[i][j]) {\n position += i + 1;\n j++;\n } else {\n i--;\n }\n }\n return position;\n }",
"public Move(int index, Target target){\r\n this.handIndex = index;\r\n this.target = target;\r\n }",
"private int getParentIdx(int pos) {\n return (pos - 1) / 2;\n }",
"public Integer getTargetId() {\n\t\treturn targetId;\n\t}",
"@Override\n public ControllerViewEvent getTargetEffectOne() {\n ArrayList<Square> possibleTarget = new ArrayList<>();\n for (int i = 0; i < 4; i++) {\n if (getOwner().getPosition().checkDirection(i) && !getOwner().getPosition().getNextSquare(i).getSquareColour().equals(getOwner().getPosition().getSquareColour()) && !getOwner().getPosition().getNextSquare(i).findRoomPlayers().isEmpty())\n possibleTarget.add(getOwner().getPosition().getNextSquare(i));\n }\n return new TargetSquareRequestEvent(getOwner().getUsername(), Encoder.encodeSquareTargetsX(possibleTarget), Encoder.encodeSquareTargetsY(possibleTarget));\n }",
"public Formula encodeTarget() {\n\t\tConjunction result = new Conjunction(\"target\");\n\t\tSet<CArgument> T = CAF.getTarget();\n\t\tfor(CArgument t : T) {\n\t\t\tresult.addSubformula(new Atom(\"acc_\" + t.getName()));\n\t\t}\n\t\treturn result;\n\t}",
"public Player getTarget() {\n return target;\n }",
"@Test\r\n\tpublic void testTargetsSixSteps() {\r\n\t\tboard.calcTargets(24, 17, 6);\r\n\t\tSet<BoardCell> targets= board.getTargets();\r\n\t\tassertEquals(8, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(18, 17)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(20, 17)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(22, 17)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(19, 18)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(21, 18)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(23, 18)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(22, 19)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(22, 17)));\r\n\t\t\r\n\t}",
"java.lang.String getTarget();",
"java.lang.String getTarget();",
"@Override\r\n \tpublic final int getStartPos() {\r\n \t\treturn sourceStart;\r\n \t}",
"public Long getTargetId() {\r\n return targetId;\r\n }",
"@Test\r\n\tpublic void testTargetsOneStep() {\r\n\t\tboard.calcTargets(24, 17, 1);\r\n\t\tSet<BoardCell> targets= board.getTargets();\r\n\t\tassertEquals(2, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(23, 17)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(24, 18)));\t\r\n\t\t\r\n\t\tboard.calcTargets(10, 24, 1);\r\n\t\ttargets= board.getTargets();\r\n\t\tassertEquals(2, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(11, 24)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(10, 23)));\t\t\t\r\n\t}",
"public boolean hasTargetPos() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"@Test\n\tpublic void testTargetsOneStep() {\n\t\tboard.calcTargets(7, 6, 1);\n\t\tSet<BoardCell> targets= board.getTargets();\n\t\tassertEquals(4, targets.size());\n\t\tassertTrue(targets.contains(board.getCellAt(7, 7)));\n\t\tassertTrue(targets.contains(board.getCellAt(7, 5)));\t\n\t\tassertTrue(targets.contains(board.getCellAt(6, 6)));\t\n\t\tassertTrue(targets.contains(board.getCellAt(8, 6)));\t\n\n\n\t\tboard.calcTargets(14, 24, 1);\n\t\ttargets= board.getTargets();\n\t\tassertEquals(2, targets.size());\n\t\tassertTrue(targets.contains(board.getCellAt(15, 24)));\n\t\tassertTrue(targets.contains(board.getCellAt(14, 23)));\t\t\t\n\t}",
"public void checkForTarget(ArrayList<String> arrayCheck, String queueHead)\n\t{\n\t\tif(arrayCheck.contains(this.targetWord))\n\t\t{\n\t\t\tgenerated.add(this.targetWord);\n\t\t\t//generated.add(this.srcWord);\n\t\t\twordParent = this.targetWord;\n\t\t\t//give target word a parent so can travese back up\n\t\t\tWordCost wordCost = new WordCost();\n\t\t\twordCost.setParent(queueHead);\n\t\t\twordsFromWord.put(this.targetWord, wordCost);\n\t\t\twhile(!(wordParent.equals(this.srcWord)))\n\t\t\t{\n\t\t\t\twordParent = wordsFromWord.get(wordParent).getParent();\n\t\t\t\tgenerated.add(wordParent);\t\n\t\t\t}\n\t\t\tCollections.reverse(generated);\n\t\t\tSystem.out.println(generated);\n\t\t\twordsFromWord.clear();\n\t\t\tuserInter.optionSelect();\n\t\t}\n\t}",
"@Test\n\tpublic void testTargetsTwoSteps() {\n\t\tboard.calcTargets(7, 6, 2);\n\t\tSet<BoardCell> targets= board.getTargets();\n\t\tassertEquals(7, targets.size());\n\t\tassertTrue(targets.contains(board.getCellAt(5, 6)));\n\t\tassertTrue(targets.contains(board.getCellAt(6, 7)));\n\t\tassertTrue(targets.contains(board.getCellAt(6, 5)));\n\t\tassertTrue(targets.contains(board.getCellAt(8, 7)));\n\t\tassertTrue(targets.contains(board.getCellAt(8, 5)));\n\t\tassertTrue(targets.contains(board.getCellAt(9, 6)));\n\t\tassertTrue(targets.contains(board.getCellAt(7, 4)));\n\t\tboard.calcTargets(14, 24, 2);\n\t\ttargets= board.getTargets();\n\t\tassertEquals(3, targets.size());\n\t\tassertTrue(targets.contains(board.getCellAt(14, 22)));\n\t\tassertTrue(targets.contains(board.getCellAt(15, 23)));\t\n\t\tassertTrue(targets.contains(board.getCellAt(16, 24)));\t\t\t\n\t}"
] | [
"0.7046045",
"0.67126375",
"0.657286",
"0.643083",
"0.63265824",
"0.62057316",
"0.6194662",
"0.60666156",
"0.60061854",
"0.5889972",
"0.5732122",
"0.57251924",
"0.57086873",
"0.5626416",
"0.5606181",
"0.55972534",
"0.5545642",
"0.5520039",
"0.547091",
"0.5469641",
"0.5441355",
"0.5439564",
"0.5398907",
"0.53510684",
"0.53486407",
"0.5338726",
"0.53377455",
"0.53314227",
"0.5239913",
"0.52386916",
"0.52303153",
"0.52267236",
"0.5224619",
"0.52182466",
"0.5217033",
"0.5213939",
"0.5210074",
"0.51952314",
"0.51828575",
"0.5177218",
"0.5174212",
"0.5168478",
"0.51625437",
"0.5162316",
"0.5157144",
"0.5146915",
"0.5145295",
"0.51399124",
"0.5139691",
"0.5130984",
"0.51290584",
"0.5127318",
"0.5120637",
"0.51175237",
"0.5113443",
"0.5113069",
"0.51101637",
"0.50995654",
"0.5098518",
"0.509734",
"0.5092466",
"0.5091423",
"0.5083208",
"0.5075488",
"0.5075488",
"0.50679076",
"0.5058862",
"0.50536996",
"0.50534695",
"0.50514144",
"0.50338435",
"0.50338435",
"0.5026136",
"0.5023728",
"0.5016991",
"0.5009285",
"0.5008277",
"0.5007622",
"0.50000954",
"0.50000954",
"0.4998473",
"0.49770576",
"0.49666142",
"0.4961684",
"0.49608424",
"0.4957287",
"0.49567553",
"0.49552798",
"0.4951258",
"0.49500152",
"0.49330348",
"0.49309587",
"0.49309587",
"0.49290556",
"0.49288395",
"0.49287105",
"0.49286693",
"0.49274915",
"0.49198008",
"0.49194667"
] | 0.5474967 | 18 |
optional int32 target_pos = 5; Index in target protein that this decoy protein is from | int getTargetPos(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getTargetPos() {\n return targetPos_;\n }",
"public int getTargetPos() {\n return targetPos_;\n }",
"public void setTargetPos(final int target) {\n \n switch(target){\n // Set target position right from current position\n case T_RIGHT:\n if(this.columnT < this.buffer.get(lineT).size()) // Check if position exists\n this.columnT++;\n break;\n // Set target position left from current position\n case T_LEFT:\n if(this.columnT > 0) // Check if position exists\n this.columnT--;\n break;\n // Set target position up from current position\n case T_UP:\n if(this.lineT > 0) { // Check if position exists\n this.lineT--;\n if(this.columnT > this.buffer.get(lineT).size()) // Check for correct positioning\n this.columnT = this.buffer.get(lineT).size();\n }\n break;\n // Set target position down from current position\n case T_DOWN:\n if(this.lineT < this.buffer.size() - 1) { // Check if position exists\n this.lineT++;\n if(this.columnT > this.buffer.get(lineT).size()) // Check for correct positioning\n this.columnT = this.buffer.get(lineT).size();\n }\n break;\n // Set target position to first position\n case T_HOME:\n this.columnT = 0;\n break;\n // Set target position to last position\n case T_END:\n this.columnT = this.buffer.get(lineT).size();\n break;\n default:\n System.out.println(\"Invalid target position\");\n break;\n }\n }",
"@Override\n public int getTargetPosition() {\n return 0;\n }",
"public Contig getTarget() { return target; }",
"N getTarget();",
"public void setTargetPosition(double position){\n targetPosition = position;\n }",
"@InVertex\n Object getTarget();",
"public ObjectSequentialNumber getTarget() {\n return target;\n }",
"public int getTargetArgIndex() {\n\t\treturn this.targetArgIndex;\n\t}",
"TrgPlace getTarget();",
"public Builder setTargetPos(int value) {\n bitField0_ |= 0x00000008;\n targetPos_ = value;\n onChanged();\n return this;\n }",
"private int getIndex(T target) {\r\n for (int i = 0; i < SIZE; i++) {\r\n if (tree[i] == target) {\r\n return i;\r\n }\r\n }\r\n return -1;\r\n }",
"public Integer getTargetID()\r\n\t\t{ return mapping.getTargetId(); }",
"BlockPos getPosTarget() {\n BlockPosDim loc = LocationGpsCard.getPosition(inventory.getStackInSlot(0));\n if (loc != null && loc.getPos() != null) {\n return loc.getPos();\n }\n return this.getBlockPos();\n }",
"@Override\n public Vertex getTarget() {\n return targetVertex;\n }",
"public void SetTargetOffset(int target_offset) {\n target_offset_ = target_offset;\n }",
"public int advanceStartPosition(int target) throws IOException {\n // Naive implementations; subclasses may provide a faster version.\n int pos;\n do {\n pos = nextStartPosition();\n } while (pos < target && pos != NO_MORE_POSITIONS);\n return pos;\n }",
"private Vector2 findTarget() \r\n\t{\r\n\t\tVector2 tempVector = new Vector2(1,1);\r\n\t\ttempVector.setLength(Constants.RANGEDSPEED); //TODO make so it can be changed when level difficulty increases\r\n\t\ttempVector.setAngle(rotation + 90);\r\n\t\treturn tempVector;\r\n\t}",
"public EntityID nextTarget(Set<StandardEntity> victims) {\n\n// Clustering clustering = this.moduleManager.getModule(SampleModuleKey.AMBULANCE_MODULE_CLUSTERING);\n\n// if (this.clusterIndex == -1) {\n this.clusterIndex = clustering.getClusterIndex(this.agentInfo.getID());\n// }\n\n\n Collection<StandardEntity> elements = clustering.getClusterEntities(this.clusterIndex);\n\n calculateMapCenters(this.clusterIndex, elements);\n\n\n targetsMap.clear();\n\n if (previousTarget != null && !victims.contains(worldInfo.getEntity(previousTarget.getVictimID()))) {\n previousTarget = null;\n }\n\n\n refreshTargetsMap(victims, targetsMap);\n\n calculateDecisionParameters(victims, targetsMap);\n\n calculateVictimsCostValue();\n\n\n AmbulanceTarget bestTarget = null;\n bestTarget = findBestVictim(targetsMap, elements);\n\n //considering inertia for the current target to prevent loop in target selection\n if (previousTarget != null && victims.contains(worldInfo.getEntity(previousTarget.getVictimID()))) {\n if (bestTarget != null && !bestTarget.getVictimID().equals(previousTarget.getVictimID())) {\n Human bestHuman = (Human) worldInfo.getEntity(bestTarget.getVictimID());\n Human previousHuman = (Human) worldInfo.getEntity(previousTarget.getVictimID());\n\n double bestHumanCost = pathPlanning.setFrom(agentInfo.getPosition()).setDestination(bestHuman.getPosition()).calc().getDistance();\n double previousHumanCost = pathPlanning.setFrom(agentInfo.getPosition()).setDestination(previousHuman.getPosition()).calc().getDistance();\n if (previousHumanCost < bestHumanCost) {\n bestTarget = previousTarget;\n }\n }\n }\n\n previousTarget = bestTarget;\n\n if (bestTarget != null) {\n return bestTarget.getVictimID();\n } else {\n return null;\n }\n\n }",
"boolean hasTargetPos();",
"public Integer getTargetid() {\n return targetid;\n }",
"public Point getTarget() {\n\t\treturn _target;\n\t}",
"@Test\n\t\t\tpublic void testTargetOneStep()\n\t\t\t{\n\t\t\t\t//Test one step and check for the right space\n\t\t\t\tboard.calcTargets(0, 7, 1);\n\t\t\t\tSet<BoardCell> targets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(1, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(1, 7)));\n\n\t\t\t\t// Test one step near a door with the incorrect direction\n\t\t\t\tboard.calcTargets(13, 6, 1);\n\t\t\t\ttargets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(3, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(14, 6)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(13, 5)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(13, 7)));\n\t\t\t\t\n\t\t\t\t\n\t\t\t}",
"private TrackingResult followTarget(Rect target)\n\t{\n\t\t// Clear any existing target rectangle.\n\t\tcamera.addTarget(null);\n\t\t\n\t\t// Outline the target being tracked.\n\t\tcamera.addTarget(target);\n\t\t\n\t\t// This is field of view size.\n\t\tSize imageSize = camera.getImageSize();\n\t\t\n\t\t// get size of target outline area.\n\t\tint targetArea = target.height * target.width;\n\t\t\n\t\t// If we have just acquired target, record initial size. Size comparison\n\t\t// is how we determine distance to target.\n\t\t\n\t\tif (initialTargetArea == 0) initialTargetArea = targetArea;\n\t\t\n\t\t// Compute center point of target in the camera view image.\n\t\tint targetCenterX = target.x + target.width / 2;\n\t\tint imageCenterX = (int) (imageSize.width / 2);\n\t\t\n\t\t// offset minus indicates target is left of image center,\n\t\t// plus to the right. If target is left, drone needs to turn\n\t\t// left to center the target in the image which is a minus yaw value.\n\t\t\n\t\tint offset = targetCenterX - imageCenterX;\n\n\t\tlogger.fine(\"offset=\" + offset);\n\t\t\n\t\toffset *= .25;\t// Scale offset down;\n\t\t\n\t\t// Determine change in distance from last target acquisition.\n\t\t\n\t\tdouble distance = initialTargetArea - targetArea;\n\t\t\n\t\tlogger.fine(String.format(\"ia=%d ta=%d dist=%.0f\", initialTargetArea, targetArea, distance));\n\t\t\n\t\t//initialTargetArea = targetArea;\n\t\t\n\t\tdouble scaleFactor = 0.0;\n\t\t\n\t\t// If distance is small, call it good otherwise the drone\n\t\t// hunts back and forth. Value must be determined by testing.\n\t\t\n\t\tif (Math.abs(distance) < 2000.0) \n\t\t\tdistance = 0.0;\n\t\telse\n\t\t{\n\t\t\t// Scale distance change to a fwd/back movement value of 20% for flyRC command.\n\t\t\t// For some unknown reason, need more power to fly forward than back and even\n\t\t\t// with 30%, forward seems not reliable.\n\t\t\t// scaleFactor must be positive to preserve the sign of distance value.\n\t\t\t\n\t\t\tscaleFactor = 20.0 / Math.abs(distance);\n\t\t\n\t\t\tdistance = distance * scaleFactor;\n\t\t}\n\t\t\n\t\tlogger.fine(String.format(\"dist=%.1f fact=%f\", distance, scaleFactor));\n\t\t\n\t\treturn new TrackingResult(offset, (int) distance);\n\t}",
"public long getTargetId() {\n return targetId;\n }",
"@Override\r\n\t\r\n\t\r\n\t\r\n\tpublic int[] locate(int target) {\r\n\t\tint low = 0; \r\n\t\tint high = length()- 1;\r\n\t\t\r\n\t\twhile ( low <= high) {\r\n\t\t\tint mid = ((low + high)/2);\r\n\t\t\tint value = inspect(mid,0);\r\n\t\t\t\t\t\r\n\t\t\tif ( value == target) {\r\n\t\t\t\treturn new int[] {mid,0};\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\telse if (value < target) {\r\n\t\t\t\tlow = mid +1;\r\n\t\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\thigh = mid -1;\r\n\t\t}\r\n\t\t\r\n\t}\r\n\t\treturn binarySearch(high, target);\r\n\t}",
"public void setTargeted() {\n targeted ++;\n }",
"public void setTarget(ObjectSequentialNumber target) {\n this.target = target;\n }",
"public Point getTarget()\n\t{\n\t\treturn this.target;\n\t}",
"public Living getTarget();",
"public void setTargetid(Integer targetid) {\n this.targetid = targetid;\n }",
"public Entity.ID getTargetID() {\n return targetID;\n }",
"public EntityID getTarget() {\n\t\treturn target.getValue();\n\t}",
"public abstract int getSourceIndex(int index);",
"private int findPos(byte[] contents, String target)\n {\n String contentsStr = null;\n try\n {\n contentsStr = new String(contents, \"ISO-8859-1\");\n }\n catch (UnsupportedEncodingException e)\n {\n e.printStackTrace();\n }\n return contentsStr.indexOf(target);\n }",
"@Override\n\tpublic int getTargetParameter() {\n\t\treturn 0;\n\t}",
"public Integer getTargetId() {\n\t\treturn targetId;\n\t}",
"public static void testDiGui(int[] candidates, int target, int start) {\n\n if (target == 0) {\n return;\n } else if (target < 0) {\n return;\n } else {\n for (int i = start; i < candidates.length && candidates[i] > 0; i++) {\n\n System.out.println(candidates[i]);\n target = candidates[i];\n i++;\n testDiGui(candidates, target, i);\n target = -1;\n }\n }\n\n System.out.println(target);\n }",
"public StateID GetTarget()\n {\n return targetID;\n }",
"public int findPosition(int[] nums, int target) {\n // write your code here\n if (nums == null || nums.length == 0) return -1;\n int start = 0, end = nums.length - 1;\n while (start <= end) {\n int mid = start + (end - start) / 2;\n if (nums[mid] == target) return mid;\n if (nums[mid] < target)\n start = mid + 1;\n else\n end = mid - 1;\n }\n return -1;\n }",
"public void setTargetPosition(float x, float y){\r\n this.targetX = x;\r\n this.targetY = y;\r\n }",
"public Long getTargetId() {\r\n return targetId;\r\n }",
"String getTarget();",
"String getTarget();",
"public Player getTarget() {\n return target;\n }",
"public Vector getTargets(){\n return targets;\n }",
"private int getPosition(int[][] matrix, int target) {\n int rows = matrix.length;\n int columns = matrix[0].length;\n // Indices to traverse the matrix\n int i = rows - 1;\n int j = 0;\n // Position of the element\n int position = 0;\n // Loop until we are inside the boundary of the matrix\n while (i >= 0 && j < columns) {\n if (target >= matrix[i][j]) {\n position += i + 1;\n j++;\n } else {\n i--;\n }\n }\n return position;\n }",
"public int search(int target)\n {\n for(int i = 0; i<list.length; i++)\n {\n if(target == list[i])\n {\n return i;\n }\n }\n }",
"@Override\n\tpublic void findTarget(List<Combat> other) {\n\t}",
"@Override\n\tpublic int[] locate(int target) {\n\t\tint n = this.length(); //number of rows\n\t\tint min = 0;\n\t\tint max = n-1;\n\t\tint mid = 0;\n\t\tint mid_element = 0;\n\t\twhile(min <= max){\n\t\t\tmid = (min + max)/2;\n\t\t\tmid_element = inspect(mid,mid);\n\t\t\tif(mid_element == target){\n\t\t\t\treturn new int[]{mid, mid};\n\t\t\t}\n\t\t\telse if(mid_element < target){\n\t\t\t\tmin = mid + 1;\n\t\t\t}\n\t\t\telse if(mid_element > target){\n\t\t\t\tmax = mid - 1;\n\t\t\t}\n\t\t}\n\t\tif(target < mid_element){\n\t\t\tif(target <= inspect(0, max)){\n\t\t\t\tfor(int r = 0; r < max; r++){\n\t\t\t\t\tif(inspect(r, max) == target){\n\t\t\t\t\t\treturn new int[]{r,max};\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfor(int c = 0; c <= mid; c++){\n\t\t\t\t\tif(inspect(mid, c) == target){\n\t\t\t\t\t\treturn new int[]{mid,c};\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tif(target > inspect(0, n-1)){\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\telse if(target <= inspect(0, max)){\n\t\t\t\tfor(int r = 0; r < max; r++){\n\t\t\t\t\tif(inspect(r, max) == target){\n\t\t\t\t\t\treturn new int[]{r, max};\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfor(int c = 0; c < min; c++){\n\t\t\t\t\tif(inspect(min, c) == target){\n\t\t\t\t\t\treturn new int[]{min, c};\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"@Test\n\t\t\tpublic void testTargetsThreeSteps() {\n\t\t\t\t//Using walkway space that will go near a door with the wrong direction\n\t\t\t\tboard.calcTargets(8, 16, 2);\n\t\t\t\tSet<BoardCell> targets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(4, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(6, 16)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(10, 16)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(7, 15)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(9, 15)));\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t}",
"private static int[] searchRange2(int[] nums, int target) {\n int targetPos = findTargetPosition(nums, target);\n if (targetPos == -1) {\n return new int[] {-1, -1};\n }\n int leftPos = findLeftTargetPos(nums, target, targetPos);\n int rightPos = findRightTargetPos(nums, target, targetPos);\n\n return new int[] {leftPos, rightPos};\n }",
"public CPointer<BlenderObject> getTarget() throws IOException\n\t{\n\t\tlong __dna__targetAddress;\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__dna__targetAddress = __io__block.readLong(__io__address + 128);\n\t\t} else {\n\t\t\t__dna__targetAddress = __io__block.readLong(__io__address + 104);\n\t\t}\n\t\tClass<?>[] __dna__targetTypes = new Class[]{BlenderObject.class};\n\t\treturn new CPointer<BlenderObject>(__dna__targetAddress, __dna__targetTypes, __io__blockTable.getBlock(__dna__targetAddress, BlenderObject.__DNA__SDNA_INDEX), __io__blockTable);\n\t}",
"public static Direction offsetTarget(MapLocation target) throws GameActionException {\n\t\tfloat offsetDistMax = 2.5f;\n\t\tMapLocation newTarget = null;\n\t\tint c = 0;\n\t\twhile (newTarget == null) {\n\t\t\tc++;\n\t\t\ttry{\n\t\t\t\tDirection dir = myLoc.directionTo(target);\n\t\t\t\t\n\t\t\t\tif (c > 5) {\n\t\t\t\t\tdir = myLoc.directionTo(target);\n\t\t\t\t\tnewTarget = target;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif (Math.random() > 0.5) dir = dir.rotateLeftDegrees(90);\n\t\t\t\telse dir = dir.rotateRightDegrees(90);\n\t\t\t\t\n\t\t\t\tfloat offsetDist = (float) (Math.random()*offsetDistMax);\n\n\t\t\t\tnewTarget = target.add(dir, offsetDist);\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tdebug_print(\"blah: \" + e.getMessage());\n\t\t\t\te.getMessage();\n\t\t\t}\n\n\t\t}\n\t\tdebug_dot(newTarget, 225, 100, 0);\n\t\treturn myLoc.directionTo(newTarget);\n\t}",
"public java.lang.String getTargetNumber() {\r\n return targetNumber;\r\n }",
"private void setNewTarget() {\n startPoint = new Circle(targetPoint);\n projection.addShift(this.targetGenerator.shiftX(startPoint), this.targetGenerator.shiftY(startPoint),\n this.targetGenerator.gridManager);\n this.targetPoint = new Circle(this.targetGenerator.generateTarget(startPoint), this.targetGenerator.gridManager.pointSize);\n projection.convertFromPixels(this.targetPoint);\n \n gameListeners.addedNewLine(startPoint, targetPoint);\n \n // TODO make probability upgradeable to spawn a new pickup\n if (Math.random() < pickupSpawnProbability) {\n generateNewPickup(); \n }\n }",
"public DNode getTo() { return targetnode; }",
"public void toSelectingAttackTarget() {\n }",
"public double getTargetX() {\n return m_targetX;\n }",
"public Spatial getTarget() {\r\n return target;\r\n }",
"com.google.protobuf.ByteString getTargetBytes();",
"private static int predictDistance(Position source, Position target) {\n int x = source.getX() - target.getX();\n int y = source.getY() - target.getY();\n int c = (int)Math.ceil(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)));\n return c;\n }",
"public void setTarget_table(String target_table) {\n this.target_table = target_table;\n }",
"private byte[] getTarget( byte[] buffer ){\n \tbyte target[] = new byte[Constants.TARGET_ID_LEN];\n \tfor (int i=0; i<Constants.TARGET_ID_LEN; i++){\n \t\ttarget[i] = buffer[i + Constants.MESSAGE_ID_LEN + 1];\n \t}\n \treturn target;\n }",
"@Test\n\tpublic void testTargetsFourSteps() {\n\t\tboard.calcTargets(14, 24, 4);\n\t\tSet<BoardCell> targets= board.getTargets();\n\t\tassertEquals(7, targets.size());\n\t\tassertTrue(targets.contains(board.getCellAt(14, 20)));\n\t\tassertTrue(targets.contains(board.getCellAt(15, 21)));\n\t\tassertTrue(targets.contains(board.getCellAt(16, 22)));\n\t\tassertTrue(targets.contains(board.getCellAt(17, 23)));\t\t\t\n\t\tassertTrue(targets.contains(board.getCellAt(15, 23)));\n\t\tassertTrue(targets.contains(board.getCellAt(16, 24)));\t\t\t\n\t\tassertTrue(targets.contains(board.getCellAt(14, 22)));\n\t}",
"public Iterator<Point> getPointAt(ModelObject target, int pos);",
"Object getTarget();",
"Object getTarget();",
"private Position computeTargetConsideringLead(Position sourcePos, TargetGridElement targetGridElement) {\r\n\r\n // Target-Position & velocity-Vector\r\n Position targetPosition = targetGridElement.getCurrentGridElementPosition();\r\n Direction targetPosDirection = Directions.of(targetPosition.getDirection(), targetGridElement.getTargetVelocity());\r\n\r\n // Source-Position & velocity-Vector\r\n double angleBetweenSourceAndTarget = sourcePos.calcAngleRelativeTo(targetPosition);\r\n sourcePos = sourcePos.rotate(angleBetweenSourceAndTarget);\r\n Direction sourcePosDirection = Directions.of(sourcePos.getDirection(), velocity);\r\n\r\n Float64Vector targetVMinusSourceV = targetPosition.getVector().minus(sourcePos.getVector());\r\n double a = targetPosDirection.getVector().normValue() * targetPosDirection.getVector().normValue()\r\n - (sourcePosDirection.getVector().normValue() * sourcePosDirection.getVector().normValue());\r\n double b = 2 * targetVMinusSourceV.times(targetPosDirection.getVector()).doubleValue();\r\n double c = targetVMinusSourceV.normValue() * targetVMinusSourceV.normValue();\r\n\r\n if (a >= 0) {\r\n return targetPosition;\r\n }\r\n double sqrt = Math.sqrt(b * b - 4 * a * c);\r\n double dt1 = solveQuadraticFormula(a, b, sqrt, -1);\r\n double dt = computeDeltaT(a, b, sqrt, dt1);\r\n Float64Vector targetDirVectorWithTime = targetPosDirection.getVector().times(dt);\r\n return Positions.of(targetPosition.getX() + targetDirVectorWithTime.getValue(0), targetPosition.getY() + targetDirVectorWithTime.getValue(1),\r\n sourcePos.getZ());\r\n }",
"public boolean hasTargetPos() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"@VisibleForTesting\n int[] findMatches(Token[] source, Token[] target) {\n final LevenshteinDistance table = new LevenshteinDistance(source, target);\n table.calculate();\n final int targetLen = target.length;\n final int[] result = new int[targetLen];\n LevenshteinDistance.EditOperation[] ops = table.getTargetOperations();\n for (int i = 0; i < targetLen; ++i) {\n if (ops[i].getType() == LevenshteinDistance.EDIT_UNCHANGED) {\n result[i] = ops[i].getPosition();\n } else {\n result[i] = -1;\n }\n }\n return result;\n }",
"private void populateGUI(TargetDecoyMap targetDecoyMap) {\n\n ValidationQcParameters validationQCPreferences = identificationParameters.getIdValidationParameters().getValidationQCParameters();\n\n // Validation level\n validationLevelJComboBox.setSelectedItem(psParameter.getMatchValidationLevel().getName());\n\n // Database info\n FastaParameters fastaParameters = identificationParameters.getFastaParameters();\n boolean targetDecoy = fastaParameters.isTargetDecoy();\n\n if (!targetDecoy) {\n\n targetDecoyLbl.setText(\"Target only\");\n targetDecoyLbl.setForeground(Color.red);\n\n } else {\n\n targetDecoyLbl.setForeground(GREEN);\n\n }\n\n try {\n\n FastaSummary fastaSummary = FastaSummary.getSummary(fastaFile, fastaParameters, null);\n int nTarget = fastaSummary.nTarget;\n nTargetLbl.setText(nTarget + \" target sequences\");\n\n if (nTarget < 10000) {\n\n nTargetLbl.setForeground(Color.red);\n\n } else if (nTarget > 1000000) {\n\n nTargetLbl.setForeground(ORANGE);\n\n } else {\n\n nTargetLbl.setForeground(GREEN);\n\n }\n\n } catch (IOException iOException) {\n\n nTargetLbl.setText(\"Database size not available\");\n nTargetLbl.setForeground(Color.red);\n\n }\n\n // Target/Decoy group\n ((TitledBorder) targetDecoyGroupPanel.getBorder()).setTitle(\"Target/Decoy Distributions\");\n targetDecoyGroupPanel.repaint();\n if (targetDecoy) {\n int nTargetOnly = targetDecoyMap.getnTargetOnly();\n matchesBeforeFirstDecoyLbl.setText(nTargetOnly + \" matches before the first decoy hit\");\n\n TargetDecoyResults targetDecoyResults = targetDecoyMap.getTargetDecoyResults();\n double desiredThreshold = targetDecoyResults.getUserInput();\n double nTargetLimit = 100.0 / desiredThreshold;\n if (nTargetOnly < nTargetLimit) {\n matchesBeforeFirstDecoyLbl.setForeground(Color.red);\n } else {\n matchesBeforeFirstDecoyLbl.setForeground(GREEN);\n }\n recommendedNumberOfTargetHitsLbl.setText(\"Recommended: \" + Util.roundDouble(nTargetLimit, 0) + \" matches before the first decoy hit\");\n\n double resolution = targetDecoyMap.getResolution();\n confidenceResolutionLbl.setText(\"PEP/Confidence resolution of \" + Util.roundDouble(resolution, 2) + \"%\");\n\n double minResolution = desiredThreshold;\n if (resolution > 10 * minResolution) {\n confidenceResolutionLbl.setForeground(Color.red);\n } else if (resolution > minResolution) {\n confidenceResolutionLbl.setForeground(ORANGE);\n } else {\n confidenceResolutionLbl.setForeground(GREEN);\n }\n recommendedResolutionLbl.setText(\"Recommended: resolution < \" + Util.roundDouble(minResolution, 2) + \"%\");\n } else {\n matchesBeforeFirstDecoyLbl.setText(\"No decoy\");\n matchesBeforeFirstDecoyLbl.setForeground(Color.gray);\n confidenceResolutionLbl.setText(\"Impossible to estimate confidence resolution\");\n confidenceResolutionLbl.setForeground(Color.gray);\n }\n\n // Target/decoy results\n if (targetDecoy) {\n \n double confidence = psParameter.getConfidence();\n MatchValidationLevel matchValidationLevel = psParameter.getMatchValidationLevel();\n validationStatusLbl.setText(\"Validation Status: \" + matchValidationLevel.getName());\n\n switch (matchValidationLevel) {\n case confident:\n validationStatusLbl.setForeground(GREEN);\n break;\n \n case doubtful:\n validationStatusLbl.setForeground(ORANGE);\n break;\n\n case not_validated:\n validationStatusLbl.setForeground(Color.red);\n break;\n\n case none:\n validationStatusLbl.setForeground(Color.gray);\n }\n\n TargetDecoyResults targetDecoyResults = targetDecoyMap.getTargetDecoyResults();\n String validationThresholdTxt = \"\";\n double threshold = targetDecoyResults.getUserInput();\n int thresholdType = targetDecoyResults.getInputType();\n if (thresholdType == 0) {\n validationThresholdTxt += \"Validation Threshold: \" + Util.roundDouble(threshold, 2) + \"%\";\n } else if (targetDecoyResults.getInputType() == 1) {\n validationThresholdTxt += \"FDR Threshold: \" + Util.roundDouble(threshold, 2) + \"%\";\n } else if (targetDecoyResults.getInputType() == 2) {\n validationThresholdTxt += \"FNR Threshold: \" + Util.roundDouble(threshold, 2) + \"%\";\n }\n validationThresholdLbl.setText(validationThresholdTxt);\n\n confidenceLbl.setText(\"Confidence: \" + Util.roundDouble(confidence, 2) + \"%\");\n double validationThreshold = targetDecoyResults.getConfidenceLimit();\n confidenceThresholdLbl.setText(\"Expected Confidence: \" + Util.roundDouble(validationThreshold, 2) + \"%\");\n double margin = validationQCPreferences.getConfidenceMargin() * targetDecoyMap.getResolution();\n double confidenceThreshold = validationThreshold + margin;\n if (confidenceThreshold > 100) {\n confidenceThreshold = 100;\n }\n confidenceThresholdLbl.setText(\"Confident confidence: \" + Util.roundDouble(confidenceThreshold, 2) + \"%\");\n if (confidence < validationThreshold) {\n confidenceLbl.setForeground(Color.red);\n } else if (confidence < confidenceThreshold) {\n confidenceLbl.setForeground(ORANGE);\n } else {\n confidenceLbl.setForeground(GREEN);\n }\n } else {\n validationStatusLbl.setText(\"Validation Status: \" + psParameter.getMatchValidationLevel().getName());\n validationThresholdLbl.setText(\"Impossible to estimate validation threshold\");\n confidenceLbl.setText(\"Impossible to estimate confidence\");\n confidenceThresholdLbl.setText(\"Impossible to estimate confidence threshold\");\n validationStatusLbl.setForeground(Color.gray);\n confidenceLbl.setForeground(Color.gray);\n }\n\n // Quality filters\n final DefaultTableModel tableModel = new FiltersTableModel();\n qualityFiltersTable.setModel(tableModel);\n qualityFiltersTable.getColumn(\"\").setMaxWidth(50);\n qualityFiltersTable.getColumn(\" \").setMaxWidth(50);\n qualityFiltersTable.getColumn(\" \").setCellRenderer(new TrueFalseIconRenderer(\n new ImageIcon(this.getClass().getResource(\"/icons/accept-new.png\")),\n new ImageIcon(this.getClass().getResource(\"/icons/error-new.png\")),\n \"Yes\", \"No\"));\n\n int valid = 0;\n for (String qcCheck : psParameter.getQcCriteria()) {\n if (psParameter.isQcPassed(qcCheck)) {\n valid++;\n }\n }\n ((TitledBorder) qualityFiltersPanel.getBorder()).setTitle(\"Quality Filters (\" + valid + \"/\" + psParameter.getQcCriteria().size() + \")\");\n }",
"public String getTarget()\r\n\t{\r\n\t\treturn _target;\r\n\t}",
"public T getPater(T target) {\r\n int index = getIndex(target);\r\n if (index * 2 + 1 >= SIZE) {\r\n return null;\r\n } else if (tree[index * 2 + 1] == null) {\r\n return null;\r\n } else {\r\n return tree[index * 2 + 1];\r\n }\r\n }",
"@objid (\"19651663-f981-4f11-802a-d5d7cbd6f88a\")\n Instance getTarget();",
"java.lang.String getTarget();",
"java.lang.String getTarget();",
"protected void FacetoTarget(Character pc, Object target) {\n int dx, dy;\n if (target instanceof Character) {\n dx = ((Character) target).x - pc.x;\n dy = ((Character) target).y - pc.y;\n } else if (target instanceof Envir_Item) {\n dx = ((Envir_Item) target).getX() - bottom_screen.left - pc.x;\n dy = ((Envir_Item) target).getY() - bottom_screen.top - pc.y;\n } else {\n return;\n }\n\n if (Math.abs(dx) >= Math.abs(dy)) {\n if (dx > 0) {\n pc.setDir(2);\n } else {\n pc.setDir(1);\n }\n } else {\n if (dy > 0) {\n pc.setDir(0);\n } else {\n pc.setDir(3);\n }\n }\n }",
"public String targetId() {\n return this.targetId;\n }",
"public void processTargetTracker (Entity squad, Entity target, boolean contactEnd) {\n\t}",
"final int getNextBuildTarget(int difficulty) {\n/* 1970 */ difficulty = Math.min(5, difficulty);\n/* 1971 */ int start = difficulty * 3;\n/* 1972 */ int templateFound = -1;\n/* */ int x;\n/* 1974 */ for (x = start; x < 17; x++) {\n/* */ \n/* 1976 */ if (this.epicTargetItems[x] <= 0L) {\n/* */ \n/* 1978 */ templateFound = x;\n/* */ \n/* */ break;\n/* */ } \n/* */ } \n/* 1983 */ if (templateFound == -1)\n/* */ {\n/* */ \n/* 1986 */ for (x = start; x > 0; x--) {\n/* */ \n/* 1988 */ if (this.epicTargetItems[x] <= 0L) {\n/* */ \n/* 1990 */ templateFound = x;\n/* */ \n/* */ break;\n/* */ } \n/* */ } \n/* */ }\n/* 1996 */ if (templateFound > -1) {\n/* */ \n/* 1998 */ if (templateFound < 3)\n/* 1999 */ return 717; \n/* 2000 */ if (templateFound < 6)\n/* 2001 */ return 714; \n/* 2002 */ if (templateFound < 9)\n/* 2003 */ return 713; \n/* 2004 */ if (templateFound < 12)\n/* 2005 */ return 715; \n/* 2006 */ if (templateFound < 15) {\n/* 2007 */ return 712;\n/* */ }\n/* 2009 */ return 716;\n/* */ } \n/* 2011 */ return -1;\n/* */ }",
"@Override\n\tpublic void setChaseTarget(){\n\t\tthis.setTarget(_pacman.getX()+Constants.SQUARE_SIDE,_pacman.getY()-(4*Constants.SQUARE_SIDE));\n\t}",
"void setTarget(String target) {\n try {\n int value = Integer.valueOf(target);\n game.setTarget(value);\n } catch (NumberFormatException e) {\n // caused by inputting strings\n } catch (IllegalArgumentException e) {\n // caused by number < 6.\n game.setTarget(10);\n }\n }",
"public boolean hasTargetPos() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"private <T> void getPossibleTargets(TargetingScheme<T> t, TargetList<T> current, List<? extends T> searchSpace, int startInd,\n List<TargetList<T>> outputList) {\n if (t.isFullyTargeted(current)) {\n outputList.add(current);\n return;\n }\n if (startInd >= searchSpace.size()) {\n System.out.println(\"this shouldn't happen lmao\");\n }\n int numToSelect = Math.min(searchSpace.size(), t.getMaxTargets());\n for (int i = startInd; i < searchSpace.size() - (numToSelect - current.targeted.size() - 1); i++) {\n T c = searchSpace.get(i);\n if (!current.targeted.contains(c)) {\n TargetList<T> copy = current.clone();\n copy.targeted.add(c);\n this.getPossibleTargets(t, copy, searchSpace, i + 1, outputList);\n }\n }\n }",
"@Test\n\t\t\tpublic void testTargetsFourSteps() {\n\t\t\t\t//Using random walkway space\n\t\t\t\tboard.calcTargets(5, 18, 3);\n\t\t\t\tSet<BoardCell> targets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(10, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(5, 21)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(6, 20)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(4, 20)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(5, 19)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(3, 17)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(6, 16)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(4, 16)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(5, 17)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(4, 18)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(6, 18)));\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t}",
"public int indexOf(E target) {\n\t\tint first = 0;\n\t\tint last = data.size() - 1;\n\n\t\twhile (first <= last) {\n\t\t\tint mid = (first + last) / 2;\n\t\t\tif (cmp.compare(target, data.get(mid)) == 0) {\n\t\t\t\treturn mid;\n\t\t\t}\n\t\t\telse if (cmp.compare(target, data.get(mid)) < 0) {\n\t\t\t\tlast = mid - 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tfirst = mid + 1;\n\t\t\t}\n\t\t}\n\n\t\treturn -1;\n\t}",
"@Test\r\n\tpublic void testTargetsFourSteps() {\r\n\t\tboard.calcTargets(24, 0, 4);\r\n\t\tSet<BoardCell> targets= board.getTargets();\r\n\t\tassertEquals(4, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(24, 4)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(23, 3)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(24, 2)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(23, 1)));\r\n\t\t\r\n\t\tboard.calcTargets(0, 20, 4);\r\n\t\ttargets = board.getTargets();\r\n\t\tassertEquals(4, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(1, 19)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(2, 20)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(3, 19)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(4, 20)));\r\n\t\t\r\n\t\t// Includes a path that doesn't have enough length plus one door\r\n\t\tboard.calcTargets(9, 0, 4);\r\n\t\ttargets= board.getTargets();\r\n\t\tassertEquals(8, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(9, 4)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(9, 2)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(10, 3)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(10, 1)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(11, 2)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(12, 1)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(8, 2)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(11, 0)));\t\r\n\t}",
"public RaceCar getTarget() {\n return target;\n }",
"public String getTarget() {\n return this.target;\n }",
"@Test\r\n\tpublic void testTargetsSixSteps() {\r\n\t\tboard.calcTargets(24, 17, 6);\r\n\t\tSet<BoardCell> targets= board.getTargets();\r\n\t\tassertEquals(8, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(18, 17)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(20, 17)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(22, 17)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(19, 18)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(21, 18)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(23, 18)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(22, 19)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(22, 17)));\r\n\t\t\r\n\t}",
"public Map<Integer, TargetDef> getTargetQueries();",
"public int pacmanMoves(List<Integer> target){\n int numOfmoves = 0;\n //counts the steps to get to the target\n for(int i=target.get(0);i>0;i--){\n numOfmoves++;\n }\n for(int i=target.get(1);i>0;i--){\n numOfmoves++;\n }\n return numOfmoves;\n }",
"private boolean reachX(Position target) {\n return position.x == target.x;\n }",
"@Override\n public ControllerViewEvent getTargetEffectOne() {\n ArrayList<Square> possibleTarget = new ArrayList<>();\n for (int i = 0; i < 4; i++) {\n if (getOwner().getPosition().checkDirection(i) && !getOwner().getPosition().getNextSquare(i).getSquareColour().equals(getOwner().getPosition().getSquareColour()) && !getOwner().getPosition().getNextSquare(i).findRoomPlayers().isEmpty())\n possibleTarget.add(getOwner().getPosition().getNextSquare(i));\n }\n return new TargetSquareRequestEvent(getOwner().getUsername(), Encoder.encodeSquareTargetsX(possibleTarget), Encoder.encodeSquareTargetsY(possibleTarget));\n }",
"public Move(int index, Target target){\r\n this.handIndex = index;\r\n this.target = target;\r\n }",
"abstract public int findTargetToReplace(MemRef r);",
"@Test\n\t\t\tpublic void testTargetsTwoSteps() {\n\t\t\t\t//Length of 2\n\t\t\t\tboard.calcTargets(8, 16, 2);\n\t\t\t\tSet<BoardCell> targets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(4, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(6, 16)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(10, 16)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(7, 15)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(9, 15)));\n\t\t\t\t//Length of 2\n\t\t\t\tboard.calcTargets(15, 15, 2);\n\t\t\t\ttargets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(4, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(13, 15)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(17, 15)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(14, 16)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(15, 17)));\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t}",
"public Object getTargetValue(int idx, Object def);"
] | [
"0.711838",
"0.7026227",
"0.6587456",
"0.6540184",
"0.63887453",
"0.6240099",
"0.60881144",
"0.60421956",
"0.60260797",
"0.59927416",
"0.5961661",
"0.5951217",
"0.5929538",
"0.5864982",
"0.5806449",
"0.57913244",
"0.5777108",
"0.57526284",
"0.5707325",
"0.56631124",
"0.56596076",
"0.55706894",
"0.5553167",
"0.5550857",
"0.5544616",
"0.55020076",
"0.54722196",
"0.545999",
"0.54580796",
"0.5455644",
"0.54523754",
"0.5440916",
"0.5437973",
"0.5423368",
"0.54180104",
"0.54173386",
"0.5415172",
"0.5412724",
"0.54115814",
"0.53849953",
"0.53788877",
"0.537144",
"0.5369927",
"0.5362503",
"0.5362503",
"0.5338059",
"0.5331119",
"0.53288203",
"0.5326971",
"0.5326226",
"0.5316535",
"0.5306508",
"0.5304909",
"0.530147",
"0.52970266",
"0.5291735",
"0.52872056",
"0.5277293",
"0.52696824",
"0.52694315",
"0.5264898",
"0.5264582",
"0.52636695",
"0.52605814",
"0.5255733",
"0.5249242",
"0.52484304",
"0.52367175",
"0.52367175",
"0.52348226",
"0.5230993",
"0.52270764",
"0.5221397",
"0.5202773",
"0.5195396",
"0.5188123",
"0.51800674",
"0.51800674",
"0.5177376",
"0.51749456",
"0.5158779",
"0.51570404",
"0.51548624",
"0.51479465",
"0.514179",
"0.51369697",
"0.51334816",
"0.5132537",
"0.51316065",
"0.5130061",
"0.51290584",
"0.51271945",
"0.512173",
"0.5117925",
"0.51127553",
"0.511223",
"0.5107555",
"0.50928557",
"0.5091661",
"0.5086859"
] | 0.7208216 | 0 |
Use Protein.newBuilder() to construct. | private Protein(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Before\r\n\tpublic void constructObj (){\r\n\t\tproteinSeq = new ProteinSequence(new char[]{'A','A','T','G','C','C','A','G','T','C','A','G','C','A','T','A','G','C','G'});\r\n\t}",
"private InTotoProvenance(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public PrimaryProteinSequence(String sequence) {\n setSequence(sequence);\n }",
"public IdentificationProteinBean(IdentificationProteinBean identificationProteinBean) {\n this.accession = identificationProteinBean.getAccession();\n this.Description = identificationProteinBean.getDescription();\n this.validated = identificationProteinBean.isValidated();\n this.otherProteins = identificationProteinBean.getOtherProteins();\n this.proteinInferenceClass = identificationProteinBean.getProteinInferenceClass();\n this.sequenceCoverage = identificationProteinBean.getSequenceCoverage();\n this.observableCoverage = identificationProteinBean.getObservableCoverage();\n this.confidentPtmSites = identificationProteinBean.getConfidentPtmSites();\n this.numberConfident = identificationProteinBean.getNumberConfident();\n this.otherPtmSites = identificationProteinBean.getOtherPtmSites();\n this.numberOfOther = identificationProteinBean.getNumberOfOther();\n this.numberValidatedPeptides = identificationProteinBean.getNumberValidatedPeptides();\n this.numberValidatedSpectra = identificationProteinBean.getNumberValidatedSpectra();\n this.emPai = identificationProteinBean.getEmPai();\n this.nsaf = identificationProteinBean.getNsaf();\n this.mw_kDa = identificationProteinBean.getMw_kDa();\n this.score = identificationProteinBean.getScore();\n this.confidence = identificationProteinBean.getConfidence();\n this.Starred = identificationProteinBean.isStarred();\n this.peptideFractionSpread_lower_range_kDa = identificationProteinBean.getPeptideFractionSpread_lower_range_kDa();\n this.peptideFractionSpread_upper_range_kDa = identificationProteinBean.getPeptideFractionSpread_upper_range_kDa();\n this.spectrumFractionSpread_lower_range_kDa = identificationProteinBean.getSpectrumFractionSpread_lower_range_kDa();\n this.spectrumFractionSpread_upper_range_kDa = identificationProteinBean.getSpectrumFractionSpread_upper_range_kDa();\n this.nonEnzymaticPeptides = identificationProteinBean.isNonEnzymaticPeptides();\n this.geneName = identificationProteinBean.getGeneName();\n this.chromosomeNumber = identificationProteinBean.getChromosomeNumber();\n this.numberPeptides = identificationProteinBean.getNumberPeptides();\n this.numberSpectra = identificationProteinBean.getNumberSpectra();\n this.expId = identificationProteinBean.getDatasetId();\n this.decoy = identificationProteinBean.getDecoy();\n this.protGroupId = identificationProteinBean.getProtGroupId();\n\n }",
"private static void protein_init () {\n dna_to_code = new Hashtable();\r\n code_to_dna = new Hashtable();\r\n code_to_name = new Hashtable();\r\n Vector v;\r\n\r\n dna_to_code.put(\"AAA\", \"K\");\r\n dna_to_code.put(\"AAC\", \"N\");\r\n dna_to_code.put(\"AAG\", \"K\");\r\n dna_to_code.put(\"AAT\", \"N\");\r\n dna_to_code.put(\"ACA\", \"T\");\r\n dna_to_code.put(\"ACC\", \"T\");\r\n dna_to_code.put(\"ACG\", \"T\");\r\n dna_to_code.put(\"ACT\", \"T\");\r\n dna_to_code.put(\"AGA\", \"R\");\r\n dna_to_code.put(\"AGC\", \"S\");\r\n dna_to_code.put(\"AGG\", \"R\");\r\n dna_to_code.put(\"AGT\", \"S\");\r\n dna_to_code.put(\"ATA\", \"I\");\r\n dna_to_code.put(\"ATC\", \"I\");\r\n dna_to_code.put(\"ATG\", \"M\");\r\n dna_to_code.put(\"ATT\", \"I\");\r\n dna_to_code.put(\"CAA\", \"Q\");\r\n dna_to_code.put(\"CAC\", \"H\");\r\n dna_to_code.put(\"CAG\", \"Q\");\r\n dna_to_code.put(\"CAT\", \"H\");\r\n dna_to_code.put(\"CCA\", \"P\");\r\n dna_to_code.put(\"CCC\", \"P\");\r\n dna_to_code.put(\"CCG\", \"P\");\r\n dna_to_code.put(\"CCT\", \"P\");\r\n dna_to_code.put(\"CGA\", \"R\");\r\n dna_to_code.put(\"CGC\", \"R\");\r\n dna_to_code.put(\"CGG\", \"R\");\r\n dna_to_code.put(\"CGT\", \"R\");\r\n dna_to_code.put(\"CTA\", \"L\");\r\n dna_to_code.put(\"CTC\", \"L\");\r\n dna_to_code.put(\"CTG\", \"L\");\r\n dna_to_code.put(\"CTT\", \"L\");\r\n dna_to_code.put(\"GAA\", \"E\");\r\n dna_to_code.put(\"GAC\", \"D\");\r\n dna_to_code.put(\"GAG\", \"E\");\r\n dna_to_code.put(\"GAT\", \"D\");\r\n dna_to_code.put(\"GCA\", \"A\");\r\n dna_to_code.put(\"GCC\", \"A\");\r\n dna_to_code.put(\"GCG\", \"A\");\r\n dna_to_code.put(\"GCT\", \"A\");\r\n dna_to_code.put(\"GGA\", \"G\");\r\n dna_to_code.put(\"GGC\", \"G\");\r\n dna_to_code.put(\"GGG\", \"G\");\r\n dna_to_code.put(\"GGT\", \"G\");\r\n dna_to_code.put(\"GTA\", \"V\");\r\n dna_to_code.put(\"GTC\", \"V\");\r\n dna_to_code.put(\"GTG\", \"V\");\r\n dna_to_code.put(\"GTT\", \"V\");\r\n dna_to_code.put(\"TAA\", \"end\");\r\n dna_to_code.put(\"TAC\", \"Y\");\r\n dna_to_code.put(\"TAG\", \"end\");\r\n dna_to_code.put(\"TAT\", \"Y\");\r\n dna_to_code.put(\"TCA\", \"S\");\r\n dna_to_code.put(\"TCC\", \"S\");\r\n dna_to_code.put(\"TCG\", \"S\");\r\n dna_to_code.put(\"TCT\", \"S\");\r\n dna_to_code.put(\"TGA\", \"end\");\r\n dna_to_code.put(\"TGC\", \"C\");\r\n dna_to_code.put(\"TGG\", \"W\");\r\n dna_to_code.put(\"TGT\", \"C\");\r\n dna_to_code.put(\"TTA\", \"L\");\r\n dna_to_code.put(\"TTC\", \"F\");\r\n dna_to_code.put(\"TTG\", \"L\");\r\n dna_to_code.put(\"TTT\", \"F\");\r\n\r\n code_to_name.put(\"A\", \"Ala\");\r\n code_to_name.put(\"C\", \"Cys\");\r\n code_to_name.put(\"D\", \"Asp\");\r\n code_to_name.put(\"E\", \"Glu\");\r\n code_to_name.put(\"F\", \"Phe\");\r\n code_to_name.put(\"G\", \"Gly\");\r\n code_to_name.put(\"H\", \"His\");\r\n code_to_name.put(\"I\", \"Ile\");\r\n code_to_name.put(\"K\", \"Lys\");\r\n code_to_name.put(\"L\", \"Leu\");\r\n code_to_name.put(\"M\", \"Met\");\r\n code_to_name.put(\"N\", \"Asn\");\r\n code_to_name.put(\"P\", \"Pro\");\r\n code_to_name.put(\"Q\", \"Gln\");\r\n code_to_name.put(\"R\", \"Arg\");\r\n code_to_name.put(\"S\", \"Ser\");\r\n code_to_name.put(\"T\", \"Thr\");\r\n code_to_name.put(\"V\", \"Val\");\r\n code_to_name.put(\"W\", \"Trp\");\r\n code_to_name.put(\"Y\", \"Tyr\");\r\n code_to_name.put(\"end\", \"Ter\");\r\n v = new Vector();\r\n v.addElement(\"GCT\");\r\n v.addElement(\"GCC\");\r\n v.addElement(\"GCA\");\r\n v.addElement(\"GCG\");\r\n code_to_dna.put(\"A\", v);\r\n\r\n v = new Vector();\r\n v.addElement(\"TGT\");\r\n v.addElement(\"TGC\");\r\n code_to_dna.put(\"C\", v);\r\n\r\n v = new Vector();\r\n v.addElement(\"GAT\");\r\n v.addElement(\"GAC\");\r\n code_to_dna.put(\"D\", v);\r\n\r\n v = new Vector();\r\n v.addElement(\"GAA\");\r\n v.addElement(\"GAG\");\r\n code_to_dna.put(\"E\", v);\r\n\r\n v = new Vector();\r\n v.addElement(\"TTT\");\r\n v.addElement(\"TTC\");\r\n code_to_dna.put(\"F\", v);\r\n\r\n v = new Vector();\r\n v.addElement(\"GGT\");\r\n v.addElement(\"GGC\");\r\n v.addElement(\"GGA\");\r\n v.addElement(\"GGG\");\r\n code_to_dna.put(\"G\", v);\r\n\r\n v = new Vector();\r\n v.addElement(\"CAT\");\r\n v.addElement(\"CAC\");\r\n code_to_dna.put(\"H\", v);\r\n\r\n v = new Vector();\r\n v.addElement(\"ATT\");\r\n v.addElement(\"ATC\");\r\n v.addElement(\"ATA\");\r\n code_to_dna.put(\"I\", v);\r\n\r\n v = new Vector();\r\n v.addElement(\"AAA\");\r\n v.addElement(\"AAG\");\r\n code_to_dna.put(\"K\", v);\r\n\r\n v = new Vector();\r\n v.addElement(\"TTA\");\r\n v.addElement(\"TTG\");\r\n v.addElement(\"CTT\");\r\n v.addElement(\"CTC\");\r\n v.addElement(\"CTA\");\r\n v.addElement(\"CTG\");\r\n code_to_dna.put(\"L\", v);\r\n\r\n v = new Vector();\r\n v.addElement(\"ATG\");\r\n code_to_dna.put(\"M\", v);\r\n\r\n v = new Vector();\r\n v.addElement(\"AAT\");\r\n v.addElement(\"AAC\");\r\n code_to_dna.put(\"N\", v);\r\n\r\n v = new Vector();\r\n v.addElement(\"CCT\");\r\n v.addElement(\"CCC\");\r\n v.addElement(\"CCA\");\r\n v.addElement(\"CCG\");\r\n code_to_dna.put(\"P\", v);\r\n\r\n v = new Vector();\r\n v.addElement(\"CAA\");\r\n v.addElement(\"CAG\");\r\n code_to_dna.put(\"Q\", v);\r\n\r\n v = new Vector();\r\n v.addElement(\"CGT\");\r\n v.addElement(\"CGC\");\r\n v.addElement(\"CGA\");\r\n v.addElement(\"CGG\");\r\n v.addElement(\"AGA\");\r\n v.addElement(\"AGG\");\r\n code_to_dna.put(\"R\", v);\r\n\r\n v = new Vector();\r\n v.addElement(\"TCT\");\r\n v.addElement(\"TCC\");\r\n v.addElement(\"TCA\");\r\n v.addElement(\"TCG\");\r\n v.addElement(\"AGT\");\r\n v.addElement(\"AGC\");\r\n code_to_dna.put(\"S\", v);\r\n\r\n v = new Vector();\r\n v.addElement(\"ACT\");\r\n v.addElement(\"ACC\");\r\n v.addElement(\"ACA\");\r\n v.addElement(\"ACG\");\r\n code_to_dna.put(\"T\", v);\r\n\r\n v = new Vector();\r\n v.addElement(\"GTT\");\r\n v.addElement(\"GTC\");\r\n v.addElement(\"GTA\");\r\n v.addElement(\"GTG\");\r\n code_to_dna.put(\"V\", v);\r\n\r\n v = new Vector();\r\n v.addElement(\"TGG\");\r\n code_to_dna.put(\"W\", v);\r\n\r\n v = new Vector();\r\n v.addElement(\"TAT\");\r\n v.addElement(\"TAC\");\r\n code_to_dna.put(\"Y\", v);\r\n\r\n v = new Vector();\r\n v.addElement(\"TAA\");\r\n v.addElement(\"TGA\");\r\n v.addElement(\"TAG\");\r\n code_to_dna.put(\"end\", v);\r\n }",
"public void setProtein(double protein) {\n\t\tthis.protein = protein;\n\t}",
"private PrizePro(Builder builder) {\n super(builder);\n }",
"@NotNull public Builder proteinContent(@NotNull Mass.Builder mass) {\n putValue(\"proteinContent\", mass.build());\n return this;\n }",
"public ProteinIdentifier getProteinIdentifier() {\n return proteinIdentifier;\n }",
"@NotNull public Builder proteinContent(@NotNull Mass mass) {\n putValue(\"proteinContent\", mass);\n return this;\n }",
"public void setProtein_id(java.lang.String protein_id) {\n this.protein_id = protein_id;\n }",
"private CreateProofRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"Paranormal(String name, String origin, int dangerrating, String foodType, int foodAmt){\n super(name, origin, dangerrating);\n foodType = \"meat\";\n foodAmt = 5;\n }",
"private static String getProteinHeader() {\r\n return \"Protein Family No.\" + SEP\r\n + \"Protein Family Name\" + SEP\r\n + \"Spectral Count\" + SEP\r\n + \"Protein No.\" + SEP\r\n + \"Accession\" + SEP\r\n + \"Description\" + SEP\r\n + \"Species\" + SEP\r\n + \"MW [kDa]\" + SEP;\r\n }",
"public boolean isProtein() {\n return this.placement.getSeqId().startsWith(\"NP_\");\n }",
"public GeneticSequenceRecord() {\n\t\tsuper(jp.scid.bio.store.jooq.tables.GeneticSequence.GENETIC_SEQUENCE);\n\t}",
"public double getProtein() {\n\t\treturn protein;\n\t}",
"public abstract Map<String, Protein> getProteins();",
"private BoxPro(Builder builder) {\n super(builder);\n }",
"public static com.politrons.avro.AvroPerson.Builder newBuilder() {\n return new com.politrons.avro.AvroPerson.Builder();\n }",
"public Potencial() {\r\n }",
"@Override\n public SpesaObject createFromParcel(Parcel in) {\n return new SpesaObject(in);\n }",
"public Produto() {}",
"private PassageRecord(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public void setProtein_length(int protein_length) {\n this.protein_length = protein_length;\n }",
"public Plato(){\n\t\t\n\t}",
"public OTFModelGeneration(Program program) {\n\t\tsuper();\n\t\tthis.program = program;\n\t}",
"public Pair() {\r\n\t}",
"private Person(final Parcel in) {\n super();\n readFromParcel(in);\n }",
"private Student(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public GeneTAG(int addr, TOP_Type type) {\n super(addr, type);\n readObject();\n }",
"private TrainingPhrase(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public static br.unb.cic.bionimbus.avro.gen.JobInfo.Builder newBuilder() {\n return new br.unb.cic.bionimbus.avro.gen.JobInfo.Builder();\n }",
"@Override\n public Stanza createFromParcel(Parcel source) {\n return new Stanza(source);\n }",
"public GantBuilder ( ) { }",
"public Pam() { //you dont need anything in this bc its only relvent for the class Alignment \n\n }",
"private void createInitialPopulation() throws InterruptedException, TimeoutException {\n\n\t\tProteinDatabase ident = new ProteinDatabase();\n\t\tident.parseInput(\"proteins.fasta\");\n\t\tList<Protein> database = ident.getDatabase();\n\n\t\tfor (Protein data : database) {\n\t\t\tdata.setExperimental(es);\n\t\t}\n\n\t\tList<Protein> candidates = new ArrayList<Protein>();\n\t\tfor (Protein p : database)\n\t\t{\n\t\t\tTheoreticalSpectrum theoreticalSpectrum = new TheoreticalSpectrum(p.getAminoAcidsequence());\n\t\t\tif (Math.abs(parentMass - theoreticalSpectrum.getParentMass()) <= parentMassThreshold) {\n\t\t\t\tcandidates.add(p);\n\t\t\t}\n\t\t}\n\n\t\trunInitialFitnessCalculations(candidates);\n\n\t\tCollections.sort(candidates, new ProteinFitnessComparator());\n\t\tdebug(candidates, 0);\n\n\n\t\tpopulation = new ArrayList<Protein>(populationSize);\n\n\t\tpopulationActualSize = 0;\n\t\tfor (Protein p : candidates)\n\t\t{\n\t\t\tpopulation.add(p);\n\t\t\tpopulationActualSize++;\n\t\t\tif (populationActualSize == populationSize)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public void constructWith(LzzFileInfo pro) {\n\t\tthis.id = pro.getId ();\n\n\t\tthis.fname = pro.getFname ();\n\n\t\tthis.ftype = pro.getFtype ();\n\n\t\tthis.fsavepath = pro.getFsavepath ();\n\n\t\tthis.furlpath = pro.getFurlpath ();\n\n\t\tthis.createTime = pro.getCreateTime ();\n\n\t\tthis.modifyTime = pro.getModifyTime ();\n\n\t\tthis.def1 = pro.getDef1 ();\n\n\t\tthis.def2 = pro.getDef2 ();\n\n\t\tthis.def3 = pro.getDef3 ();\n\n\t\tthis.def4 = pro.getDef4 ();\n\n\t\tthis.def5 = pro.getDef5 ();\n\n\t\tthis.def6 = pro.getDef6 ();\n\n\t\tthis.def7 = pro.getDef7 ();\n\n\t\tthis.def8 = pro.getDef8 ();\n\n\t\tthis.def9 = pro.getDef9 ();\n\n\t\tthis.def10 = pro.getDef10 ();\n\n\t\tthis.dr = pro.getDr ();\n\n\t}",
"public Phrase() {\n this(16);\n }",
"private DbLocus readAlternativeProtein() {\n String prAcc = null;\n String prDescr = null;\n char preResidue = 0;\n char postResidue = 0;\n int numEnzymaticTermini = 0;\n\n for (int i = 0; i < reader.getAttributeCount(); i++) {\n String attrib = reader.getAttributeLocalName(i);\n String val = reader.getAttributeValue(i);\n if (attrib.equalsIgnoreCase(\"protein\"))\n prAcc = val;\n else if (attrib.equalsIgnoreCase(\"protein_descr\"))\n prDescr = val;\n else if (attrib.equalsIgnoreCase(\"peptide_prev_aa\"))\n preResidue = Character.valueOf(val.charAt(0));\n else if (attrib.equalsIgnoreCase(\"peptide_next_aa\"))\n postResidue = Character.valueOf(val.charAt(0));\n else if (attrib.equalsIgnoreCase(\"num_tol_term\")) \n numEnzymaticTermini = Integer.parseInt(val);\n }\n DbLocus locus = new DbLocus(prAcc, prDescr);\n locus.setNtermResidue(preResidue);\n locus.setCtermResidue(postResidue);\n locus.setNumEnzymaticTermini(numEnzymaticTermini);\n return locus;\n }",
"public Pair() {\n // nothing to do here\n }",
"public Chromosome(){\n super();\n }",
"public CoinsuperPair() {}",
"private Student(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n\t\t\tsuper(builder);\n\t\t}",
"private PUserInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public static baconhep.TTau.Builder newBuilder() {\n return new baconhep.TTau.Builder();\n }",
"public Tip() { ; }",
"public Poem(){}",
"public Pair(A primer, B segon) {\n this.primer = primer;\n this.segon = segon;\n }",
"public BArbol(NodoArbol primero) {\n this.primero = primero;\n }",
"public Individual()\r\n\t{\r\n\t}",
"Parcelle createParcelle();",
"public Pub build() {\n return new Pub(keyId, algo, keyLen, creationDate, expirationDate, flags);\n }",
"public Mass getProteinContent() throws ClassCastException;",
"public Prova() {}",
"private PeerInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public static gr.grnet.aquarium.message.avro.gen.UserAgreementMsg.Builder newBuilder() {\n return new gr.grnet.aquarium.message.avro.gen.UserAgreementMsg.Builder();\n }",
"protected Prediction(Parcel in) {\n this.tagId = in.readString();\n this._tag = in.readString();\n this.probability = in.readDouble();\n }",
"private Profile(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public PennCnvSeq() {\n }",
"public GantBuilder ( final Project project ) { super ( project ) ; }",
"private Resume(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Pizza() {\n this(\"small\", 1, 1, 1);\n }",
"private Basis(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"@Override\n\t\tpublic Info createFromParcel(Parcel source) {\n\t\t\treturn new Info(source);\n\t\t}",
"private Person(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public TreeNode createTree(IGPProgram a_prog)\n throws InvalidConfigurationException {\n if (a_prog == null) {\n return null;\n }\n ProgramChromosome master = new ProgramChromosome(m_conf);\n master.setIndividual(a_prog);\n TreeNode tree;\n if (a_prog.size() > 1) {\n Class[] types = new Class[a_prog.size()];\n for (int i = 0; i < a_prog.size(); i++) {\n types[i] = CommandGene.VoidClass; //this is arbitrary\n }\n master.setGene(0, new SubProgram(m_conf, types));\n int index = 1;\n for (int i = 0; i < a_prog.size(); i++) {\n ProgramChromosome child = a_prog.getChromosome(i);\n for (int j = 0; j < child.size(); j++) {\n master.setGene(index++, child.getGene(j));\n }\n }\n master.redepth();\n tree = new JGAPTreeNode(master, 0);\n }\n else {\n tree = new JGAPTreeNode(a_prog.getChromosome(0), 0);\n }\n return tree;\n }",
"@Ignore\n public Proba() {\n }",
"private Builder() {\n super(br.unb.cic.bionimbus.avro.gen.JobInfo.SCHEMA$);\n }",
"private CreateProofResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Builder() {\n super(gr.grnet.aquarium.message.avro.gen.UserAgreementMsg.SCHEMA$);\n }",
"private Parking(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private TradeMsgPileInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Puppy() {\n\t\t//TODO\n\t}",
"static Builder newBuilder() {\n return new Builder();\n }",
"public Genetic() {\r\n }",
"public abstract void setProteins(Map<String, Protein> proteins);",
"private END1001U02GrdPurposeInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private GeneProduct createGeneProduct( Gene gene ) {\n GeneProduct geneProduct = GeneProduct.Factory.newInstance();\n geneProduct.setGene( gene );\n geneProduct.setName( gene.getName() );\n geneProduct.setDescription( \"Gene product placeholder\" );\n return geneProduct;\n }",
"public IndividualAddress(final byte[] address)\n\t{\n\t\tsuper(address);\n\t}",
"public static io.confluent.developer.InterceptTest.Builder newBuilder() {\n return new io.confluent.developer.InterceptTest.Builder();\n }",
"public OWLAnonymousIndividualHGDB()\r\n\t{\r\n\r\n\t}",
"public static void main(String[] args) {\n Pessoa p1 = new Pessoa();\n p1.nome = \"João\";\n p1.rg = \"12345678910\";\n \n // Criando uma primeira conta para associar com a primeira pessoa\n Conta c1 = new Conta();\n c1.agencia = \"0872-9\";\n c1.numero = 887878;\n c1.cliente = p1; // Associando a pessoa com a conta\n }",
"public PdfFontProgram() {\n super();\n }",
"private Education(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public void setProteinList(Map<String, ProteinBean> proteinList) {\n this.proteinList = proteinList;\n }",
"@Override\n\tpublic MSIIdentifiedPeptide adapt() {\n\n\t\tfinal MSIIdentifiedPeptide identifiedPeptideXML = factory.createMSIIdentifiedPeptide();\n\t\tString idString = \"\";\n\t\tint id = identifiedPeptide.getId();\n\t\tif (id == -1) {\n\t\t\tid = MiapeIdentifierCounter.increaseCounter();\n\t\t\tidString = MiapeXmlUtil.IdentifierPrefixes.PEPTIDE.getPrefix() + id;\n\t\t} else {\n\t\t\tidString = MiapeXmlUtil.IdentifierPrefixes.PEPTIDE.getPrefix() + identifiedPeptide.getId();\n\t\t}\n\t\tidentifiedPeptideXML.setId(idString);\n\t\tidentifiedPeptideXML.setCharge(identifiedPeptide.getCharge());\n\t\tidentifiedPeptideXML.setMassDeviation(identifiedPeptide.getMassDesviation());\n\t\tfinal Set<PeptideModification> modifications = identifiedPeptide.getModifications();\n\t\tif (modifications != null) {\n\t\t\tfor (final PeptideModification modification : modifications) {\n\t\t\t\tidentifiedPeptideXML.getMSIPeptideModification()\n\t\t\t\t\t\t.add(new PeptideModificationAdapter(modification, factory, cvFactory).adapt());\n\t\t\t}\n\t\t}\n\n\t\tfinal int rank = identifiedPeptide.getRank();\n\t\tif (rank > 0) {\n\t\t\tidentifiedPeptideXML.setRank(rank);\n\t\t}\n\t\t// PRotein References\n\t\tfinal List<IdentifiedProtein> identifiedProteins = identifiedPeptide.getIdentifiedProteins();\n\t\tif (identifiedProteins != null && !identifiedProteins.isEmpty()) {\n\t\t\t// log.info(\"Adapting peptide \" + identifiedPeptide.getSequence() +\n\t\t\t// \" with \"\n\t\t\t// + identifiedPeptide.getIdentifiedProteins().size() +\n\t\t\t// \" proteins\");\n\n\t\t\tfinal ProteinRefs protRefs = factory.createProteinRefs();\n\n\t\t\tint i = 1;\n\t\t\tfor (final IdentifiedProtein protein : identifiedProteins) {\n\t\t\t\tfinal Ref ref = factory.createRef();\n\t\t\t\tref.setId(MiapeXmlUtil.IdentifierPrefixes.PROTEIN.getPrefix() + protein.getId());\n\t\t\t\tlog.debug(\"Adapting protein (\" + i + \"/\" + identifiedProteins.size() + \") \" + protein.getAccession());\n\t\t\t\tprotRefs.getRef().add(ref);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tif (!protRefs.getRef().isEmpty()) {\n\t\t\t\tidentifiedPeptideXML.setProteinRefs(protRefs);\n\t\t\t} else {\n\t\t\t\tlog.warn(\"Peptide with no proteins!\");\n\t\t\t}\n\t\t}\n\n\t\tfinal String spectrumRef = identifiedPeptide.getSpectrumRef();\n\t\tif (spectrumRef != null) {\n\t\t\tidentifiedPeptideXML.setSpectrumRef(spectrumRef);\n\t\t}\n\n\t\tfinal Set<PeptideScore> scores = identifiedPeptide.getScores();\n\t\tif (scores != null) {\n\t\t\tfor (final PeptideScore peptideScore : scores) {\n\t\t\t\tidentifiedPeptideXML.getPeptideScore().add(cvFactory.createCV(peptideScore.getName(),\n\t\t\t\t\t\tpeptideScore.getValue(), Score.getInstance(cvFactory.getCvManager())));\n\t\t\t}\n\t\t}\n\n\t\tidentifiedPeptideXML.setSequence(identifiedPeptide.getSequence());\n\t\tfinal InputData inputData = identifiedPeptide.getInputData();\n\t\tif (inputData != null) {\n\t\t\tidentifiedPeptideXML\n\t\t\t\t\t.setInputDataRef(MiapeXmlUtil.IdentifierPrefixes.INPUTDATA.getPrefix() + inputData.getId());\n\t\t}\n\t\ttry {\n\t\t\tidentifiedPeptideXML.setRT(Double.valueOf(identifiedPeptide.getRetentionTimeInSeconds()));\n\t\t} catch (final Exception e) {\n\t\t\t// do nothing\n\t\t}\n\t\treturn identifiedPeptideXML;\n\t}",
"private UniqueChromosomeReconstructor() { }",
"public PeerBuilder(final KeyPair keyPair) {\n\t\tthis.keyPair = keyPair;\n\t\tthis.peerId = Utils.makeSHAHash(keyPair.getPublic().getEncoded());\n\t}",
"public EnvioPersonaPK() {\r\n }",
"private ReqPairingProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private MsgInstantiateContract(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Proposal(String value) {\n this(value, null);\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"private Experience(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public ProgramItemDTO(PersonalProgramDTO pp) {\n this((TotaraProgramDTO) pp);\n this.shared = true;\n }",
"public Pippo(Context context) {super(context);}",
"public abstract void createGenome(Genome newGenome);"
] | [
"0.61633486",
"0.6119803",
"0.5882147",
"0.5533963",
"0.5445197",
"0.53767276",
"0.52857924",
"0.52823484",
"0.51701105",
"0.5137047",
"0.5111234",
"0.5068884",
"0.50557715",
"0.50557476",
"0.50543547",
"0.50491863",
"0.50389075",
"0.50260675",
"0.50101346",
"0.49996436",
"0.4980683",
"0.49769512",
"0.49753097",
"0.49724692",
"0.49648413",
"0.4921855",
"0.49208283",
"0.49198875",
"0.49179283",
"0.4916942",
"0.49100608",
"0.49025148",
"0.48978359",
"0.48946694",
"0.48917258",
"0.48885855",
"0.48769283",
"0.48710212",
"0.4850663",
"0.48503",
"0.4838295",
"0.48352832",
"0.4830225",
"0.4820621",
"0.48200592",
"0.48154318",
"0.4813622",
"0.47954032",
"0.47879776",
"0.4779013",
"0.47677746",
"0.47672394",
"0.47663733",
"0.47616327",
"0.47592422",
"0.47589165",
"0.47547677",
"0.47493613",
"0.4727766",
"0.4717913",
"0.47111443",
"0.47106475",
"0.4708443",
"0.4702909",
"0.46969053",
"0.46909314",
"0.46867573",
"0.4683224",
"0.46822384",
"0.4682176",
"0.46801448",
"0.46622226",
"0.46616334",
"0.46502864",
"0.4648662",
"0.4648104",
"0.46474615",
"0.4634728",
"0.4631552",
"0.46269378",
"0.46199948",
"0.46177214",
"0.4614236",
"0.46094024",
"0.46085632",
"0.4602793",
"0.4594983",
"0.4591998",
"0.4590531",
"0.45865852",
"0.45852542",
"0.45841897",
"0.45827535",
"0.45790872",
"0.45790872",
"0.45790872",
"0.4578288",
"0.45763552",
"0.4571373",
"0.45705348"
] | 0.71585727 | 0 |
optional string name = 1; | public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String name){this.name = name;}",
"public void setName(String name){this.name=name;}",
"public void setName(String n){ name=n; }",
"public void setName(String name) {\n if (!name.equals(\"\")) {\r\n this.name = name;\r\n }\r\n\r\n\r\n\r\n\r\n }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name)\n/* */ {\n/* 84 */ this._name = name;\n/* */ }",
"public void setName(String name)\n/* */ {\n/* 53 */ this.name = name;\n/* */ }",
"public String getName(){return name;}",
"public String getName(){return name;}",
"public String getName(){return name;}",
"public String getName(){return name;}",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name)\n {\n _name = name;\n }",
"public String getName(){ return name; }",
"public void setName(final String pName){this.aName = pName;}",
"public final void setName(String name) {_name = name;}",
"public void setName(String name)\n {\n this.name=name;\n }",
"abstract String name();",
"void getName(String name);",
"public void setName(final String name);",
"String getName( String name );",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"void setName(String name)\n\t{\n\t\t\tthis.name = name;\n\t}",
"public void setName(String name) \n {\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String n);",
"public String getName(){return this.name;}",
"void setName(String name)\n {\n this.name = name;\n }",
"public String getName() { return name; }",
"public String getName()\n/* */ {\n/* 59 */ return this.name;\n/* */ }",
"public String getName() \n{\n\treturn name;\n}",
"public void setName(java.lang.String aName);",
"void setName(java.lang.String name);",
"void setName(java.lang.String name);",
"void setName(java.lang.String name);",
"public String getName ()\n {\n return name;\n }",
"public String getName()\n/* */ {\n/* 62 */ return this.name;\n/* */ }",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public String name() { return name; }",
"@Override\n public void setName(String name) {\n \n }",
"public String getName()\n {\n return name;\n}",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"public String getName(){\n return name;\r\n }",
"@Override\n\tpublic void setName(String name) {\n\t\t\n\t}",
"public void setName(String name) {\n fName= name;\n }",
"public String getName() { return _name; }",
"void setName(String name) {\n this.name = name;\n }",
"public void setName(String name)\r\n/* */ {\r\n/* 137 */ this.name = name;\r\n/* */ }",
"public void setName(String name)\r\n/* 29: */ {\r\n/* 30:23 */ this.name = name;\r\n/* 31: */ }",
"public void setName(String name) {\n this.name = name;\n }",
"public String getName(){\n return name;\n}",
"@Override\n public void setName(String name) {\n\n }",
"public String getName()\n/* */ {\n/* 60 */ return this.name;\n/* */ }",
"public String getName(){return this.aName;}",
"public String getName() { return name;}",
"@Override\n\tpublic void setName(String arg0) {\n\n\t}",
"String getName(){return this.name;}",
"public String getName(){\n return name; \n }",
"public String getName() {\n/* 57 */ return this.name;\n/* */ }",
"@Override\r\n public String getFirstArg() {\n return name;\r\n }",
"void setName(String name_);",
"public void setname(String name) {\n this.name = name;\n }",
"public String getName() {return name;}",
"public String getName() {return name;}",
"public String getName() {return name;}",
"public void setName(String name){\n \t\tthis.name = name;\n \t}",
"void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name1) {\r\n this.name = name1;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName (String Name);",
"public void setName (String Name);",
"public void setName (String Name);",
"public String getName(){\n return name;\n }"
] | [
"0.74141526",
"0.7393322",
"0.7291197",
"0.7224721",
"0.71405584",
"0.71405584",
"0.71405584",
"0.71405584",
"0.7123966",
"0.7040823",
"0.7034966",
"0.7034966",
"0.7034966",
"0.7034966",
"0.70301276",
"0.6968112",
"0.696168",
"0.695565",
"0.6945353",
"0.693079",
"0.6924449",
"0.6922394",
"0.69175106",
"0.69150096",
"0.6900264",
"0.6900264",
"0.6900264",
"0.68825734",
"0.68622136",
"0.68552387",
"0.68552387",
"0.68552387",
"0.68552387",
"0.68552387",
"0.68552387",
"0.68552387",
"0.6850503",
"0.6847457",
"0.6825841",
"0.68234867",
"0.6821565",
"0.68114525",
"0.6811141",
"0.68056595",
"0.68056595",
"0.68056595",
"0.6805285",
"0.6803301",
"0.68025523",
"0.68025523",
"0.68025523",
"0.68025523",
"0.68025523",
"0.68025523",
"0.68025523",
"0.68025523",
"0.68025523",
"0.68025523",
"0.68025523",
"0.6793531",
"0.67800295",
"0.67685485",
"0.6767684",
"0.6767684",
"0.6767684",
"0.6760867",
"0.6759007",
"0.6758689",
"0.67575085",
"0.67572856",
"0.67547494",
"0.67517024",
"0.67499566",
"0.67475075",
"0.6745644",
"0.6740849",
"0.67392343",
"0.6738759",
"0.67358834",
"0.673135",
"0.67286396",
"0.6728434",
"0.6728158",
"0.67277014",
"0.6722236",
"0.6719115",
"0.6719115",
"0.6719115",
"0.67112213",
"0.6709939",
"0.6698419",
"0.6698419",
"0.66976327",
"0.6695681",
"0.6695681",
"0.6695681",
"0.6695681",
"0.6686113",
"0.6686113",
"0.6686113",
"0.66859156"
] | 0.0 | -1 |
optional string name = 1; | public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String name){this.name = name;}",
"public void setName(String name){this.name=name;}",
"public void setName(String n){ name=n; }",
"public void setName(String name) {\n if (!name.equals(\"\")) {\r\n this.name = name;\r\n }\r\n\r\n\r\n\r\n\r\n }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name)\n/* */ {\n/* 84 */ this._name = name;\n/* */ }",
"public void setName(String name)\n/* */ {\n/* 53 */ this.name = name;\n/* */ }",
"public String getName(){return name;}",
"public String getName(){return name;}",
"public String getName(){return name;}",
"public String getName(){return name;}",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name)\n {\n _name = name;\n }",
"public String getName(){ return name; }",
"public void setName(final String pName){this.aName = pName;}",
"public final void setName(String name) {_name = name;}",
"public void setName(String name)\n {\n this.name=name;\n }",
"abstract String name();",
"void getName(String name);",
"public void setName(final String name);",
"String getName( String name );",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"void setName(String name)\n\t{\n\t\t\tthis.name = name;\n\t}",
"public void setName(String name) \n {\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String n);",
"public String getName(){return this.name;}",
"void setName(String name)\n {\n this.name = name;\n }",
"public String getName() { return name; }",
"public String getName()\n/* */ {\n/* 59 */ return this.name;\n/* */ }",
"public String getName() \n{\n\treturn name;\n}",
"public void setName(java.lang.String aName);",
"void setName(java.lang.String name);",
"void setName(java.lang.String name);",
"void setName(java.lang.String name);",
"public String getName ()\n {\n return name;\n }",
"public String getName()\n/* */ {\n/* 62 */ return this.name;\n/* */ }",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public String name() { return name; }",
"@Override\n public void setName(String name) {\n \n }",
"public String getName()\n {\n return name;\n}",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"public String getName(){\n return name;\r\n }",
"@Override\n\tpublic void setName(String name) {\n\t\t\n\t}",
"public void setName(String name) {\n fName= name;\n }",
"void setName(String name) {\n this.name = name;\n }",
"public String getName() { return _name; }",
"public void setName(String name)\r\n/* */ {\r\n/* 137 */ this.name = name;\r\n/* */ }",
"public void setName(String name)\r\n/* 29: */ {\r\n/* 30:23 */ this.name = name;\r\n/* 31: */ }",
"public void setName(String name) {\n this.name = name;\n }",
"public String getName(){\n return name;\n}",
"@Override\n public void setName(String name) {\n\n }",
"public String getName()\n/* */ {\n/* 60 */ return this.name;\n/* */ }",
"public String getName(){return this.aName;}",
"public String getName() { return name;}",
"@Override\n\tpublic void setName(String arg0) {\n\n\t}",
"String getName(){return this.name;}",
"public String getName(){\n return name; \n }",
"public String getName() {\n/* 57 */ return this.name;\n/* */ }",
"void setName(String name_);",
"@Override\r\n public String getFirstArg() {\n return name;\r\n }",
"public void setname(String name) {\n this.name = name;\n }",
"public String getName() {return name;}",
"public String getName() {return name;}",
"public String getName() {return name;}",
"public void setName(String name){\n \t\tthis.name = name;\n \t}",
"void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name1) {\r\n this.name = name1;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public String getName(){\n return name;\n }",
"public String getName(){\n return name;\n }",
"public void setName (String Name);",
"public void setName (String Name);"
] | [
"0.74156314",
"0.73947275",
"0.72931343",
"0.722587",
"0.71425295",
"0.71425295",
"0.71425295",
"0.71425295",
"0.71254766",
"0.7042126",
"0.7036526",
"0.7036526",
"0.7036526",
"0.7036526",
"0.7032075",
"0.69701284",
"0.6963385",
"0.695678",
"0.69470596",
"0.6932955",
"0.6926615",
"0.6924372",
"0.69193673",
"0.6917011",
"0.69024205",
"0.69024205",
"0.69024205",
"0.68846864",
"0.6864317",
"0.6857414",
"0.6857414",
"0.6857414",
"0.6857414",
"0.6857414",
"0.6857414",
"0.6857414",
"0.6851823",
"0.6849109",
"0.6827988",
"0.68255794",
"0.68231934",
"0.68132335",
"0.6812315",
"0.68072385",
"0.68072385",
"0.68072385",
"0.6807046",
"0.68050075",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6795918",
"0.67817914",
"0.6770219",
"0.6768334",
"0.6768334",
"0.6768334",
"0.676285",
"0.67607033",
"0.67601925",
"0.6759551",
"0.67595273",
"0.67561615",
"0.6753157",
"0.6752148",
"0.67491335",
"0.6747233",
"0.6742414",
"0.6740996",
"0.67407084",
"0.6736447",
"0.6733133",
"0.6730651",
"0.67302257",
"0.67291254",
"0.6727981",
"0.67250055",
"0.67211264",
"0.67211264",
"0.67211264",
"0.67131555",
"0.6712134",
"0.6700538",
"0.6700538",
"0.6698792",
"0.6697874",
"0.6697874",
"0.6697874",
"0.6697874",
"0.66878164",
"0.66878164",
"0.6687206",
"0.6687206"
] | 0.0 | -1 |
optional string name = 1; | public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String name){this.name = name;}",
"public void setName(String name){this.name=name;}",
"public void setName(String n){ name=n; }",
"public void setName(String name) {\n if (!name.equals(\"\")) {\r\n this.name = name;\r\n }\r\n\r\n\r\n\r\n\r\n }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name)\n/* */ {\n/* 84 */ this._name = name;\n/* */ }",
"public void setName(String name)\n/* */ {\n/* 53 */ this.name = name;\n/* */ }",
"public String getName(){return name;}",
"public String getName(){return name;}",
"public String getName(){return name;}",
"public String getName(){return name;}",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name)\n {\n _name = name;\n }",
"public String getName(){ return name; }",
"public void setName(final String pName){this.aName = pName;}",
"public final void setName(String name) {_name = name;}",
"public void setName(String name)\n {\n this.name=name;\n }",
"abstract String name();",
"void getName(String name);",
"public void setName(final String name);",
"String getName( String name );",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"void setName(String name)\n\t{\n\t\t\tthis.name = name;\n\t}",
"public void setName(String name) \n {\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String n);",
"public String getName(){return this.name;}",
"void setName(String name)\n {\n this.name = name;\n }",
"public String getName() { return name; }",
"public String getName()\n/* */ {\n/* 59 */ return this.name;\n/* */ }",
"public String getName() \n{\n\treturn name;\n}",
"public void setName(java.lang.String aName);",
"void setName(java.lang.String name);",
"void setName(java.lang.String name);",
"void setName(java.lang.String name);",
"public String getName ()\n {\n return name;\n }",
"public String getName()\n/* */ {\n/* 62 */ return this.name;\n/* */ }",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public String name() { return name; }",
"@Override\n public void setName(String name) {\n \n }",
"public String getName()\n {\n return name;\n}",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"public String getName(){\n return name;\r\n }",
"@Override\n\tpublic void setName(String name) {\n\t\t\n\t}",
"public void setName(String name) {\n fName= name;\n }",
"void setName(String name) {\n this.name = name;\n }",
"public String getName() { return _name; }",
"public void setName(String name)\r\n/* */ {\r\n/* 137 */ this.name = name;\r\n/* */ }",
"public void setName(String name)\r\n/* 29: */ {\r\n/* 30:23 */ this.name = name;\r\n/* 31: */ }",
"public void setName(String name) {\n this.name = name;\n }",
"public String getName(){\n return name;\n}",
"@Override\n public void setName(String name) {\n\n }",
"public String getName()\n/* */ {\n/* 60 */ return this.name;\n/* */ }",
"public String getName(){return this.aName;}",
"public String getName() { return name;}",
"@Override\n\tpublic void setName(String arg0) {\n\n\t}",
"String getName(){return this.name;}",
"public String getName(){\n return name; \n }",
"public String getName() {\n/* 57 */ return this.name;\n/* */ }",
"void setName(String name_);",
"@Override\r\n public String getFirstArg() {\n return name;\r\n }",
"public void setname(String name) {\n this.name = name;\n }",
"public String getName() {return name;}",
"public String getName() {return name;}",
"public String getName() {return name;}",
"public void setName(String name){\n \t\tthis.name = name;\n \t}",
"void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name1) {\r\n this.name = name1;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public String getName(){\n return name;\n }",
"public String getName(){\n return name;\n }",
"public void setName (String Name);",
"public void setName (String Name);"
] | [
"0.74156314",
"0.73947275",
"0.72931343",
"0.722587",
"0.71425295",
"0.71425295",
"0.71425295",
"0.71425295",
"0.71254766",
"0.7042126",
"0.7036526",
"0.7036526",
"0.7036526",
"0.7036526",
"0.7032075",
"0.69701284",
"0.6963385",
"0.695678",
"0.69470596",
"0.6932955",
"0.6926615",
"0.6924372",
"0.69193673",
"0.6917011",
"0.69024205",
"0.69024205",
"0.69024205",
"0.68846864",
"0.6864317",
"0.6857414",
"0.6857414",
"0.6857414",
"0.6857414",
"0.6857414",
"0.6857414",
"0.6857414",
"0.6851823",
"0.6849109",
"0.6827988",
"0.68255794",
"0.68231934",
"0.68132335",
"0.6812315",
"0.68072385",
"0.68072385",
"0.68072385",
"0.6807046",
"0.68050075",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6795918",
"0.67817914",
"0.6770219",
"0.6768334",
"0.6768334",
"0.6768334",
"0.676285",
"0.67607033",
"0.67601925",
"0.6759551",
"0.67595273",
"0.67561615",
"0.6753157",
"0.6752148",
"0.67491335",
"0.6747233",
"0.6742414",
"0.6740996",
"0.67407084",
"0.6736447",
"0.6733133",
"0.6730651",
"0.67302257",
"0.67291254",
"0.6727981",
"0.67250055",
"0.67211264",
"0.67211264",
"0.67211264",
"0.67131555",
"0.6712134",
"0.6700538",
"0.6700538",
"0.6698792",
"0.6697874",
"0.6697874",
"0.6697874",
"0.6697874",
"0.66878164",
"0.66878164",
"0.6687206",
"0.6687206"
] | 0.0 | -1 |
optional int32 id = 2; In a file of records of type Protein ids will | public boolean hasId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void idlize() throws IOException {\r\n\t\t/**give mid who has name a id, for other mid, keep using mid to identify them*/\r\n\t\t//\t\tHashMap<String, Integer> namedmid2name = new HashMap<String, Integer>(20000000);\r\n\t\t//\t\tHashMap<String, Integer> relationname2id = new HashMap<String, Integer>(1000000);\r\n\t\t//\t\tDelimitedWriter dw = new DelimitedWriter(Main.dir + \"/visible_idize\");\r\n\t\t//\t\tDelimitedWriter dw_debug = new DelimitedWriter(Main.dir + \"/visible_debug\");\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_fbenglishname);\r\n\t\t//\t\t\tString[] l;\r\n\t\t//\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t//\t\t\t\tnamedmid2name.put(l[0], namedmid2name.size());\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tD.p(\"load mid2name finished\");\r\n\t\t//\t\t\tdr.close();\r\n\t\t//\t\t}\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_visible_str);\r\n\t\t//\t\t\tString[] l;\r\n\t\t//\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t//\t\t\t\tString mid = l[0];\r\n\t\t//\t\t\t\tInteger gid = namedmid2name.get(mid);\r\n\t\t//\t\t\t\tif (gid == null) {\r\n\t\t//\t\t\t\t\tdw_debug.write(l);\r\n\t\t//\t\t\t\t\tcontinue;\r\n\t\t//\t\t\t\t}\r\n\t\t//\t\t\t\tString relationname = l[2];\r\n\t\t//\t\t\t\tif (!relationname2id.containsKey(relationname)) {\r\n\t\t//\t\t\t\t\trelationname2id.put(relationname, relationname2id.size());\r\n\t\t//\t\t\t\t}\r\n\t\t//\t\t\t\tint relid = relationname2id.get(relationname);\r\n\t\t//\t\t\t\tdw.write(l[1], gid, relid, l[3]);\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tdr.close();\r\n\t\t//\t\t}\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_visible_str);\r\n\t\t//\t\t\tString[] l;\r\n\t\t//\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t//\t\t\t\tString mid1 = l[0];\r\n\t\t//\t\t\t\tString mid2 = l[3];\r\n\t\t//\t\t\t\tInteger gid1 = namedmid2name.get(mid1);\r\n\t\t//\t\t\t\tInteger gid2 = namedmid2name.get(mid2);\r\n\t\t//\t\t\t\tif (gid1 == null || gid2 == null) {\r\n\t\t//\t\t\t\t\tdw_debug.write(l);\r\n\t\t//\t\t\t\t\tcontinue;\r\n\t\t//\t\t\t\t}\r\n\t\t//\t\t\t\tString relationname = l[2];\r\n\t\t//\t\t\t\tif (!relationname2id.containsKey(relationname)) {\r\n\t\t//\t\t\t\t\trelationname2id.put(relationname, relationname2id.size());\r\n\t\t//\t\t\t\t}\r\n\t\t//\t\t\t\tint relid = relationname2id.get(relationname);\r\n\t\t//\t\t\t\tdw.write(l[1], gid1, relid, gid2, l[3]);\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tdr.close();\r\n\t\t//\t\t}\r\n\t\t//\t\tdw.close();\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedWriter dwrel = new DelimitedWriter(Main.dir + \"/visible_relations.temp\");\r\n\t\t//\t\t\tfor (Entry<String, Integer> e : relationname2id.entrySet()) {\r\n\t\t//\t\t\t\tdwrel.write(e.getValue(), e.getKey());\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tdwrel.close();\r\n\t\t//\t\t\tSort.sort(Main.dir + \"/visible_relations.temp\", Main.dir + \"/visible_relations\", Main.dir,\r\n\t\t//\t\t\t\t\tnew Comparator<String[]>() {\r\n\t\t//\t\t\t\t\t\t@Override\r\n\t\t//\t\t\t\t\t\tpublic int compare(String[] o1, String[] o2) {\r\n\t\t//\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t//\t\t\t\t\t\t\treturn Integer.parseInt(o1[0]) - Integer.parseInt(o2[0]);\r\n\t\t//\t\t\t\t\t\t}\r\n\t\t//\r\n\t\t//\t\t\t\t\t});\r\n\t\t//\t\t}\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedWriter dwmid = new DelimitedWriter(Main.dir + \"/visible_mid2gid.temp\");\r\n\t\t//\t\t\tfor (Entry<String, Integer> e : namedmid2name.entrySet()) {\r\n\t\t//\t\t\t\tdwmid.write(e.getValue(), e.getKey());\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tdwmid.close();\r\n\t\t//\t\t\tSort.sort(Main.dir + \"/visible_mid2gid.temp\", Main.dir + \"/visible_mid2gid\", Main.dir,\r\n\t\t//\t\t\t\t\tnew Comparator<String[]>() {\r\n\t\t//\t\t\t\t\t\t@Override\r\n\t\t//\t\t\t\t\t\tpublic int compare(String[] o1, String[] o2) {\r\n\t\t//\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t//\t\t\t\t\t\t\treturn Integer.parseInt(o1[0]) - Integer.parseInt(o2[0]);\r\n\t\t//\t\t\t\t\t\t}\r\n\t\t//\r\n\t\t//\t\t\t\t\t});\r\n\t\t//\t\t}\r\n\t}",
"public PlantID(String line){\r\n\t\tScanner sc = new Scanner(line);\r\n\t\tthis.id = sc.next();\r\n\t\tthis.name = (sc.next()+\" \" +sc.next());\r\n\t\tsc.close();\r\n\t}",
"public void createIDMap()\n {\n IDMap = new HashMap<>();\n idFile.open(\"idpassword.txt\");\n String line = idFile.getNextLine();\n\n\n\n while(line!=null) {\n String[] fields = line.split(\",\");\n IDMap.put(fields[0], fields[1]);\n\n line = idFile.getNextLine();\n\n }\n\n }",
"public void setProtein_id(java.lang.String protein_id) {\n this.protein_id = protein_id;\n }",
"public void setID() throws IOException;",
"int getIDS(String ids) throws IOException {\n String lines=\"\";\n String aux;\n int i = 0, j = 0, k = 0;\n\n BufferedReader br = new BufferedReader(new FileReader(ids)); /* Read all file adding to string */\n try {\n StringBuilder sb = new StringBuilder();\n String line = br.readLine();\n while (line != null) {\n sb.append(line);\n sb.append(System.lineSeparator());\n line = br.readLine();\n }\n lines = sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n br.close();\n }\n\n /* Add each each id to array and get the number of ids */\n i = lines.indexOf(\"id#:[\");\n k = lines.indexOf(\"]\");\n while (i >= 0) {\n /* AllPos[j] = Integer.parseInt(lines.substring(i+5,k));*/\n attrib_int(j, Integer.parseInt(lines.substring(i+5,k)));\n lines = lines.substring(k+1);\n i = lines.indexOf(\"id#:[\");\n if (i>=0)\n {\n aux = lines.substring(i);\n k = aux.indexOf(\"]\") + i;\n }\n j++;\n\n }\n ids_quantity=j;\n return (0);\n }",
"int insertSelective(EhrPersonFile record);",
"int insertSelective(DiaryFile record);",
"int insert(DiaryFile record);",
"public void setFileid(Integer fileid) {\n this.fileid = fileid;\n }",
"@Override\n\tpublic FileModel getId(Long id) {\n\t\treturn fm.getOne(id);\n\t}",
"public void setId(byte id){this.id = id;}",
"@Override\r\n\tpublic void read(Object id) {\n\t\t\r\n\t}",
"EhrPersonFile selectByPrimaryKey(Long id);",
"public void setID(String idIn) {this.id = idIn;}",
"public static void loadTargetTerm2IdMapping(File input) throws IOException {\n\t\t\tm_namesMap = new SimpleBidirectionalMap<String, Integer>();\n\t\t\tString encoding = FileUtils.getFileEncoding(input);\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(input), encoding));\n\t\t\tString line = reader.readLine();\n\t\t\tint lineNum = 1;\n\t\t\tboolean testFormat = false;\n\t\t\tif(StringUtils.checkIfNumber(line.split(\"\\t\")[0]))\n\t\t\t\ttestFormat = true;\n\t\t\twhile(line!= null) {\n\t\t\t\tif(line.equals(\"@@@\"))\n\t\t\t\t\tbreak;\n\t\t\t\tif(testFormat) {\n\t\t\t\t\tString num = line.split(\"\\t\")[0];\n\t\t\t\t\tSystem.out.println(\"key: \"+line.trim().substring(num.length()+1) + \" value: \" + Integer.parseInt(num));\n\t\t\t\t\tm_namesMap.put(line.trim().substring(num.length()+1), Integer.parseInt(num));\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"key????\" + lineNum + \"instead of \" + line.split(\"\\t\")[0]);\n\t\t\t\t\tm_namesMap.put(line.trim(), lineNum);\n\t\t\t\t}\n\t\t\t\tline = reader.readLine();\n\t\t\t\tlineNum ++;\n\t\t\t}\n\t\t}",
"public abstract String getLineupId();",
"private void processGeneFile(String inputFilename, String taxonID) throws IOException {\n BufferedReader reader = createInputFileReader(inputFilename);\n String line;\n String[] columns;\n \n \t// Skip the first line\n line = reader.readLine();\n while (reader.ready()) {\n line = reader.readLine();\n \t\t//writeToDebugFile(line);\n \t\tif (line.substring(0,1).equals(\"#\")) {\n \t\twriteToErrorFile(line, \"Comment\");\n \t\t\tcontinue;\n \t\t}\n columns = line.split(INPUT_COLUMN_DELIM);\n \n String rgdID = columns[0].trim();\n \n // If line contains column names (usually first line), skip it\n if (rgdID.equals(\"GENE_RGD_ID\")) continue;\n \n String geneSymbol = columns[1].trim();\n String chromosome = columns[6].trim(); \n \n \t\t// columns[14] == start base pair\n \t\t// columns[15] == end base pair\n \t\t// columns[16] == strand (- or +)\n \n String mapLocation = getMapLocation(columns[14], columns[15], columns[16].trim());\n \n // The following columns may contain multiple items\n String[] entrezGeneIDs = splitListColumn(columns[20]);\n String[] swissProtIDs = splitListColumn(columns[21]);\n String[] genBankRNAIDs = splitListColumn(columns[23]);\n String[] genBankProteinIDs = splitListColumn(columns[25]);\n String[] unigeneIDs = splitListColumn(columns[26]);\n String[] ensemblIDs;\n \n // if columns.length < 38, the last column (Ensembl ID) is missing\n // from the input file\n if (columns.length < 38) {\n // since there are no EnsemblIDs, set the variable to an empty array,\n // which is what splitListColumn() would do\n ensemblIDs = EMPTY_STRING_ARRAY;\n } else {\n //ensemblIDs = columns[37].split(INPUT_LIST_DELIM);\n ensemblIDs = splitListColumn(columns[37]);\n }\n \n // Write RGD Info\n writeToInfoFile(taxonID, RGD_ID_TYPE, rgdID, chromosome, mapLocation);\n \n // Write Gene Symbol and Ensembl ID Info and Links\n if (!geneSymbol.equals(\"\")) {\n writeToInfoFile(taxonID, \"Gene Symbol\", geneSymbol, chromosome, mapLocation);\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"Gene Symbol\",geneSymbol);\n }\n for (int i = 0; i < ensemblIDs.length; i++) {\n writeToInfoFile(taxonID, \"Ensembl ID\", ensemblIDs[i], chromosome, mapLocation);\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"Ensembl ID\",ensemblIDs[i]);\n }\n \n // Handle NCBI RefSeq and non-RefSeq IDs (both RNA and Protein)\n for (int i = 0; i < genBankRNAIDs.length; i++) {\n String genBankRNAID = genBankRNAIDs[i];\n if (isRefSeq(genBankRNAID)) {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"RefSeq RNA ID\",genBankRNAIDs[i]);\n } else {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"NCBI RNA ID\",genBankRNAIDs[i]);\n }\n }\n for (int i = 0; i < genBankProteinIDs.length; i++) {\n String genBankProteinID = genBankProteinIDs[i];\n if (isRefSeq(genBankProteinID)) {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"RefSeq Protein ID\",genBankProteinIDs[i]);\n } else {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"NCBI Protein ID\",genBankProteinIDs[i]);\n }\n } \n \n // create Links entries for the rest\n writeCollectionToLinksFile(RGD_ID_TYPE,rgdID,\"Entrez Gene ID\",Arrays.asList(entrezGeneIDs));\n writeCollectionToLinksFile(RGD_ID_TYPE,rgdID,\"SwissProt ID\",Arrays.asList(swissProtIDs));\n writeCollectionToLinksFile(RGD_ID_TYPE,rgdID,\"UniGene ID\",Arrays.asList(unigeneIDs));\n } \n reader.close();\n }",
"FileRecordAdmin selectByPrimaryKey(String id);",
"@Import(\"id\")\n\tint getId();",
"public String getIdString(CharSequence line) {\n\t\tList<String> values = parseCsvLine(line);\n\t\treturn values.get(id);\n\t}",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"int insert(EhrPersonFile record);",
"@Override\r\n\tpublic Newstrategypojo getline(int id) {\n\t\treturn dao.getline(id);\r\n\t}",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"public Readln(String id)\n {\n this.id = id;\n }",
"public ReadModelEntity(Guid id)\n {\n this.Id = MakeId(this.GetType(), id);\n this.AggregateId = id;\n }",
"public byte getId() {\n return 2;\n }",
"com.google.protobuf.ByteString getIdBytes();",
"com.google.protobuf.ByteString getIdBytes();",
"com.google.protobuf.ByteString getIdBytes();",
"com.google.protobuf.ByteString getIdBytes();",
"DiaryFile selectByPrimaryKey(String maperId);",
"byte[] getId();",
"public void importFile(String filename) throws IOException, BadEntryException, ImportFileException{\n try{\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n String line;\n line = reader.readLine();\n\n while(line != null){\n String[] fields = line.split(\"\\\\|\");\n int id = Integer.parseInt(fields[1]);\n if(_persons.get(id) != null){\n throw new BadEntryException(fields[0]);\n }\n\n if(fields[0].equals(\"FUNCIONÁRIO\")){\n registerAdministrative(fields);\n line = reader.readLine();\n }else if(fields[0].equals(\"DOCENTE\")){\n Professor _professor = new Professor(id, fields[2], fields[3]);\n _professors.put(id, _professor);\n _persons.put(id, (Person) _professor);\n\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n while((line != null) && (fields[0].charAt(0) == '#')){\n String course = fields[0].substring(2);\n String discipline = fields[1];\n Course _course = _courses.get(course);\n \n if(_course == null){\n _course = new Course(course);\n _disciplineCourse.put(course, new HashMap<String, Discipline>());\n _courses.put(course, _course);\n }\n\n if(_professor.getDisciplineCourses().get(course) == null){\n _professor.getDisciplineCourses().put(course, new HashMap<String, Discipline>());\n }\n\n Discipline _discipline = _disciplines.get(discipline);\n if(_discipline == null){\n _discipline = new Discipline(discipline,_course);\n _disciplines.put(discipline, _discipline);\n _course.getDisciplines().put(discipline, _discipline);\n }\n _discipline.registerObserver(_professor, id);\n _disciplineCourse.get(course).put(discipline, _discipline);\n\n if(_professor.getDisciplines() != null){\n _professor.getDisciplines().put(discipline, _discipline);\n _professor.getDisciplineCourses().get(course).put(discipline, _discipline); \n }\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n\n }\n }\n }\n }else if(fields[0].equals(\"DELEGADO\")){\n Student _student = new Student(id, fields[2], fields[3]);\n _students.put(id, _student);\n _persons.put(id, (Person) _student);\n\n line = reader.readLine();\n fields = line.split(\"\\\\|\");\n while((line != null) && (fields[0].charAt(0) == '#')){\n String course = fields[0].substring(2);\n String discipline = fields[1];\n Course _course = _courses.get(course);\n if(_course == null){\n _course = new Course(course);\n _disciplineCourse.put(course, new HashMap<String, Discipline>());\n _courses.put(course,_course);\n }\n if(_course.getRepresentatives().size() == 8){\n System.out.println(id);\n throw new BadEntryException(course);\n }else{\n _course.getRepresentatives().put(id,_student);\n }\n _student.setCourse(_course);\n Discipline _discipline = _disciplines.get(discipline);\n if(_discipline == null){\n _discipline = new Discipline(discipline, _course);\n _disciplines.put(discipline,_discipline);\n _course.getDisciplines().put(discipline, _discipline);\n }\n if(_student.getDisciplines().size() == 6){\n throw new BadEntryException(discipline);\n }else{\n if(_discipline.getStudents().size() == 100){\n throw new BadEntryException(discipline);\n }else{\n _student.getDisciplines().put(discipline,_discipline);\n _discipline.getStudents().put(id,_student);\n }\n }\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n }\n }\n }else if(fields[0].equals(\"ALUNO\")){\n Student _student = new Student(id, fields[2], fields[3]);\n _students.put(id, _student);\n _persons.put(id, (Person) _student);\n\n line = reader.readLine();\n fields = line.split(\"\\\\|\");\n while((line != null) && (fields[0].charAt(0) == '#')){\n String course = fields[0].substring(2);\n String discipline = fields[1];\n Course _course = _courses.get(course);\n if(_course == null){\n _course = new Course(course);\n _disciplineCourse.put(course, new HashMap<String, Discipline>());\n _courses.put(course, _course);\n }\n _student.setCourse(_course);\n Discipline _discipline = _disciplines.get(discipline);\n if(_discipline == null){\n _discipline = new Discipline(discipline, _course);\n _disciplines.put(discipline, _discipline);\n _course.getDisciplines().put(discipline, _discipline);\n }\n _discipline.registerObserver(_student, id);\n if(_student.getDisciplines().size() == 6){\n throw new BadEntryException(discipline);\n }else{\n _student.getDisciplines().put(discipline,_discipline);\n if(_discipline.getStudents().size() == 100){\n throw new BadEntryException(discipline);\n }else{\n _discipline.getStudents().put(id,_student);\n }\n }\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n }\n }\n\n }else{\n throw new BadEntryException(fields[0]);\n }\n }\n for(Course course: _courses.values()){\n HashMap<Integer,Student> representatives = course.getRepresentatives();\n HashMap<String, Discipline> disciplines = course.getDisciplines();\n for(Discipline discipline: disciplines.values()){\n for(Student representative: representatives.values()){\n discipline.registerObserver(representative, representative.getId());\n }\n }\n \n } \n reader.close();\n }catch(BadEntryException e){\n throw new ImportFileException(e);\n }catch(IOException e){\n throw new ImportFileException(e);\n }\n }",
"java.lang.String getID();",
"public Fila carregar(int id) throws IOException{\t\t\n\t\treturn dao.carregar(id);\n\t}",
"public String getFeatureID(long offset) throws IOException {\n\t\tdataBase.seek(offset);\n\t\tString[] array = dataBase.readLine().split(\"\\\\|\");\n\t\treturn array[0];\n\t}",
"public void setID(String id){\n this.id = id;\n }",
"protected abstract String getId();",
"IDType getID();"
] | [
"0.60092556",
"0.5881239",
"0.58381104",
"0.56293046",
"0.5548622",
"0.54523504",
"0.54284674",
"0.54136115",
"0.5342356",
"0.53369534",
"0.5336932",
"0.5334068",
"0.53036773",
"0.52810013",
"0.52784264",
"0.5263812",
"0.5237166",
"0.5224378",
"0.5222973",
"0.5215472",
"0.519589",
"0.5188506",
"0.5188506",
"0.5188506",
"0.5188506",
"0.5188506",
"0.5188506",
"0.5188506",
"0.5188506",
"0.5188506",
"0.5188506",
"0.5188506",
"0.5188506",
"0.5188506",
"0.5188506",
"0.5188506",
"0.5188506",
"0.5188506",
"0.5188506",
"0.5188506",
"0.5179969",
"0.5164521",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5162564",
"0.51477593",
"0.514544",
"0.5127089",
"0.5127089",
"0.5127089",
"0.5127089",
"0.5126945",
"0.5123726",
"0.51184654",
"0.51143634",
"0.5108209",
"0.51016134",
"0.5086424",
"0.5078274",
"0.5076724"
] | 0.0 | -1 |
optional int32 id = 2; In a file of records of type Protein ids will | public int getId() {
return id_;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void idlize() throws IOException {\r\n\t\t/**give mid who has name a id, for other mid, keep using mid to identify them*/\r\n\t\t//\t\tHashMap<String, Integer> namedmid2name = new HashMap<String, Integer>(20000000);\r\n\t\t//\t\tHashMap<String, Integer> relationname2id = new HashMap<String, Integer>(1000000);\r\n\t\t//\t\tDelimitedWriter dw = new DelimitedWriter(Main.dir + \"/visible_idize\");\r\n\t\t//\t\tDelimitedWriter dw_debug = new DelimitedWriter(Main.dir + \"/visible_debug\");\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_fbenglishname);\r\n\t\t//\t\t\tString[] l;\r\n\t\t//\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t//\t\t\t\tnamedmid2name.put(l[0], namedmid2name.size());\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tD.p(\"load mid2name finished\");\r\n\t\t//\t\t\tdr.close();\r\n\t\t//\t\t}\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_visible_str);\r\n\t\t//\t\t\tString[] l;\r\n\t\t//\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t//\t\t\t\tString mid = l[0];\r\n\t\t//\t\t\t\tInteger gid = namedmid2name.get(mid);\r\n\t\t//\t\t\t\tif (gid == null) {\r\n\t\t//\t\t\t\t\tdw_debug.write(l);\r\n\t\t//\t\t\t\t\tcontinue;\r\n\t\t//\t\t\t\t}\r\n\t\t//\t\t\t\tString relationname = l[2];\r\n\t\t//\t\t\t\tif (!relationname2id.containsKey(relationname)) {\r\n\t\t//\t\t\t\t\trelationname2id.put(relationname, relationname2id.size());\r\n\t\t//\t\t\t\t}\r\n\t\t//\t\t\t\tint relid = relationname2id.get(relationname);\r\n\t\t//\t\t\t\tdw.write(l[1], gid, relid, l[3]);\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tdr.close();\r\n\t\t//\t\t}\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_visible_str);\r\n\t\t//\t\t\tString[] l;\r\n\t\t//\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t//\t\t\t\tString mid1 = l[0];\r\n\t\t//\t\t\t\tString mid2 = l[3];\r\n\t\t//\t\t\t\tInteger gid1 = namedmid2name.get(mid1);\r\n\t\t//\t\t\t\tInteger gid2 = namedmid2name.get(mid2);\r\n\t\t//\t\t\t\tif (gid1 == null || gid2 == null) {\r\n\t\t//\t\t\t\t\tdw_debug.write(l);\r\n\t\t//\t\t\t\t\tcontinue;\r\n\t\t//\t\t\t\t}\r\n\t\t//\t\t\t\tString relationname = l[2];\r\n\t\t//\t\t\t\tif (!relationname2id.containsKey(relationname)) {\r\n\t\t//\t\t\t\t\trelationname2id.put(relationname, relationname2id.size());\r\n\t\t//\t\t\t\t}\r\n\t\t//\t\t\t\tint relid = relationname2id.get(relationname);\r\n\t\t//\t\t\t\tdw.write(l[1], gid1, relid, gid2, l[3]);\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tdr.close();\r\n\t\t//\t\t}\r\n\t\t//\t\tdw.close();\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedWriter dwrel = new DelimitedWriter(Main.dir + \"/visible_relations.temp\");\r\n\t\t//\t\t\tfor (Entry<String, Integer> e : relationname2id.entrySet()) {\r\n\t\t//\t\t\t\tdwrel.write(e.getValue(), e.getKey());\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tdwrel.close();\r\n\t\t//\t\t\tSort.sort(Main.dir + \"/visible_relations.temp\", Main.dir + \"/visible_relations\", Main.dir,\r\n\t\t//\t\t\t\t\tnew Comparator<String[]>() {\r\n\t\t//\t\t\t\t\t\t@Override\r\n\t\t//\t\t\t\t\t\tpublic int compare(String[] o1, String[] o2) {\r\n\t\t//\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t//\t\t\t\t\t\t\treturn Integer.parseInt(o1[0]) - Integer.parseInt(o2[0]);\r\n\t\t//\t\t\t\t\t\t}\r\n\t\t//\r\n\t\t//\t\t\t\t\t});\r\n\t\t//\t\t}\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedWriter dwmid = new DelimitedWriter(Main.dir + \"/visible_mid2gid.temp\");\r\n\t\t//\t\t\tfor (Entry<String, Integer> e : namedmid2name.entrySet()) {\r\n\t\t//\t\t\t\tdwmid.write(e.getValue(), e.getKey());\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tdwmid.close();\r\n\t\t//\t\t\tSort.sort(Main.dir + \"/visible_mid2gid.temp\", Main.dir + \"/visible_mid2gid\", Main.dir,\r\n\t\t//\t\t\t\t\tnew Comparator<String[]>() {\r\n\t\t//\t\t\t\t\t\t@Override\r\n\t\t//\t\t\t\t\t\tpublic int compare(String[] o1, String[] o2) {\r\n\t\t//\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t//\t\t\t\t\t\t\treturn Integer.parseInt(o1[0]) - Integer.parseInt(o2[0]);\r\n\t\t//\t\t\t\t\t\t}\r\n\t\t//\r\n\t\t//\t\t\t\t\t});\r\n\t\t//\t\t}\r\n\t}",
"public PlantID(String line){\r\n\t\tScanner sc = new Scanner(line);\r\n\t\tthis.id = sc.next();\r\n\t\tthis.name = (sc.next()+\" \" +sc.next());\r\n\t\tsc.close();\r\n\t}",
"public void createIDMap()\n {\n IDMap = new HashMap<>();\n idFile.open(\"idpassword.txt\");\n String line = idFile.getNextLine();\n\n\n\n while(line!=null) {\n String[] fields = line.split(\",\");\n IDMap.put(fields[0], fields[1]);\n\n line = idFile.getNextLine();\n\n }\n\n }",
"public void setProtein_id(java.lang.String protein_id) {\n this.protein_id = protein_id;\n }",
"public void setID() throws IOException;",
"int getIDS(String ids) throws IOException {\n String lines=\"\";\n String aux;\n int i = 0, j = 0, k = 0;\n\n BufferedReader br = new BufferedReader(new FileReader(ids)); /* Read all file adding to string */\n try {\n StringBuilder sb = new StringBuilder();\n String line = br.readLine();\n while (line != null) {\n sb.append(line);\n sb.append(System.lineSeparator());\n line = br.readLine();\n }\n lines = sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n br.close();\n }\n\n /* Add each each id to array and get the number of ids */\n i = lines.indexOf(\"id#:[\");\n k = lines.indexOf(\"]\");\n while (i >= 0) {\n /* AllPos[j] = Integer.parseInt(lines.substring(i+5,k));*/\n attrib_int(j, Integer.parseInt(lines.substring(i+5,k)));\n lines = lines.substring(k+1);\n i = lines.indexOf(\"id#:[\");\n if (i>=0)\n {\n aux = lines.substring(i);\n k = aux.indexOf(\"]\") + i;\n }\n j++;\n\n }\n ids_quantity=j;\n return (0);\n }",
"int insertSelective(EhrPersonFile record);",
"int insertSelective(DiaryFile record);",
"int insert(DiaryFile record);",
"public void setFileid(Integer fileid) {\n this.fileid = fileid;\n }",
"@Override\n\tpublic FileModel getId(Long id) {\n\t\treturn fm.getOne(id);\n\t}",
"public void setId(byte id){this.id = id;}",
"@Override\r\n\tpublic void read(Object id) {\n\t\t\r\n\t}",
"EhrPersonFile selectByPrimaryKey(Long id);",
"public void setID(String idIn) {this.id = idIn;}",
"public static void loadTargetTerm2IdMapping(File input) throws IOException {\n\t\t\tm_namesMap = new SimpleBidirectionalMap<String, Integer>();\n\t\t\tString encoding = FileUtils.getFileEncoding(input);\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(input), encoding));\n\t\t\tString line = reader.readLine();\n\t\t\tint lineNum = 1;\n\t\t\tboolean testFormat = false;\n\t\t\tif(StringUtils.checkIfNumber(line.split(\"\\t\")[0]))\n\t\t\t\ttestFormat = true;\n\t\t\twhile(line!= null) {\n\t\t\t\tif(line.equals(\"@@@\"))\n\t\t\t\t\tbreak;\n\t\t\t\tif(testFormat) {\n\t\t\t\t\tString num = line.split(\"\\t\")[0];\n\t\t\t\t\tSystem.out.println(\"key: \"+line.trim().substring(num.length()+1) + \" value: \" + Integer.parseInt(num));\n\t\t\t\t\tm_namesMap.put(line.trim().substring(num.length()+1), Integer.parseInt(num));\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"key????\" + lineNum + \"instead of \" + line.split(\"\\t\")[0]);\n\t\t\t\t\tm_namesMap.put(line.trim(), lineNum);\n\t\t\t\t}\n\t\t\t\tline = reader.readLine();\n\t\t\t\tlineNum ++;\n\t\t\t}\n\t\t}",
"public abstract String getLineupId();",
"private void processGeneFile(String inputFilename, String taxonID) throws IOException {\n BufferedReader reader = createInputFileReader(inputFilename);\n String line;\n String[] columns;\n \n \t// Skip the first line\n line = reader.readLine();\n while (reader.ready()) {\n line = reader.readLine();\n \t\t//writeToDebugFile(line);\n \t\tif (line.substring(0,1).equals(\"#\")) {\n \t\twriteToErrorFile(line, \"Comment\");\n \t\t\tcontinue;\n \t\t}\n columns = line.split(INPUT_COLUMN_DELIM);\n \n String rgdID = columns[0].trim();\n \n // If line contains column names (usually first line), skip it\n if (rgdID.equals(\"GENE_RGD_ID\")) continue;\n \n String geneSymbol = columns[1].trim();\n String chromosome = columns[6].trim(); \n \n \t\t// columns[14] == start base pair\n \t\t// columns[15] == end base pair\n \t\t// columns[16] == strand (- or +)\n \n String mapLocation = getMapLocation(columns[14], columns[15], columns[16].trim());\n \n // The following columns may contain multiple items\n String[] entrezGeneIDs = splitListColumn(columns[20]);\n String[] swissProtIDs = splitListColumn(columns[21]);\n String[] genBankRNAIDs = splitListColumn(columns[23]);\n String[] genBankProteinIDs = splitListColumn(columns[25]);\n String[] unigeneIDs = splitListColumn(columns[26]);\n String[] ensemblIDs;\n \n // if columns.length < 38, the last column (Ensembl ID) is missing\n // from the input file\n if (columns.length < 38) {\n // since there are no EnsemblIDs, set the variable to an empty array,\n // which is what splitListColumn() would do\n ensemblIDs = EMPTY_STRING_ARRAY;\n } else {\n //ensemblIDs = columns[37].split(INPUT_LIST_DELIM);\n ensemblIDs = splitListColumn(columns[37]);\n }\n \n // Write RGD Info\n writeToInfoFile(taxonID, RGD_ID_TYPE, rgdID, chromosome, mapLocation);\n \n // Write Gene Symbol and Ensembl ID Info and Links\n if (!geneSymbol.equals(\"\")) {\n writeToInfoFile(taxonID, \"Gene Symbol\", geneSymbol, chromosome, mapLocation);\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"Gene Symbol\",geneSymbol);\n }\n for (int i = 0; i < ensemblIDs.length; i++) {\n writeToInfoFile(taxonID, \"Ensembl ID\", ensemblIDs[i], chromosome, mapLocation);\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"Ensembl ID\",ensemblIDs[i]);\n }\n \n // Handle NCBI RefSeq and non-RefSeq IDs (both RNA and Protein)\n for (int i = 0; i < genBankRNAIDs.length; i++) {\n String genBankRNAID = genBankRNAIDs[i];\n if (isRefSeq(genBankRNAID)) {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"RefSeq RNA ID\",genBankRNAIDs[i]);\n } else {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"NCBI RNA ID\",genBankRNAIDs[i]);\n }\n }\n for (int i = 0; i < genBankProteinIDs.length; i++) {\n String genBankProteinID = genBankProteinIDs[i];\n if (isRefSeq(genBankProteinID)) {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"RefSeq Protein ID\",genBankProteinIDs[i]);\n } else {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"NCBI Protein ID\",genBankProteinIDs[i]);\n }\n } \n \n // create Links entries for the rest\n writeCollectionToLinksFile(RGD_ID_TYPE,rgdID,\"Entrez Gene ID\",Arrays.asList(entrezGeneIDs));\n writeCollectionToLinksFile(RGD_ID_TYPE,rgdID,\"SwissProt ID\",Arrays.asList(swissProtIDs));\n writeCollectionToLinksFile(RGD_ID_TYPE,rgdID,\"UniGene ID\",Arrays.asList(unigeneIDs));\n } \n reader.close();\n }",
"FileRecordAdmin selectByPrimaryKey(String id);",
"@Import(\"id\")\n\tint getId();",
"public String getIdString(CharSequence line) {\n\t\tList<String> values = parseCsvLine(line);\n\t\treturn values.get(id);\n\t}",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"int insert(EhrPersonFile record);",
"@Override\r\n\tpublic Newstrategypojo getline(int id) {\n\t\treturn dao.getline(id);\r\n\t}",
"public Readln(String id)\n {\n this.id = id;\n }",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"public ReadModelEntity(Guid id)\n {\n this.Id = MakeId(this.GetType(), id);\n this.AggregateId = id;\n }",
"public byte getId() {\n return 2;\n }",
"DiaryFile selectByPrimaryKey(String maperId);",
"com.google.protobuf.ByteString getIdBytes();",
"com.google.protobuf.ByteString getIdBytes();",
"com.google.protobuf.ByteString getIdBytes();",
"com.google.protobuf.ByteString getIdBytes();",
"byte[] getId();",
"public void importFile(String filename) throws IOException, BadEntryException, ImportFileException{\n try{\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n String line;\n line = reader.readLine();\n\n while(line != null){\n String[] fields = line.split(\"\\\\|\");\n int id = Integer.parseInt(fields[1]);\n if(_persons.get(id) != null){\n throw new BadEntryException(fields[0]);\n }\n\n if(fields[0].equals(\"FUNCIONÁRIO\")){\n registerAdministrative(fields);\n line = reader.readLine();\n }else if(fields[0].equals(\"DOCENTE\")){\n Professor _professor = new Professor(id, fields[2], fields[3]);\n _professors.put(id, _professor);\n _persons.put(id, (Person) _professor);\n\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n while((line != null) && (fields[0].charAt(0) == '#')){\n String course = fields[0].substring(2);\n String discipline = fields[1];\n Course _course = _courses.get(course);\n \n if(_course == null){\n _course = new Course(course);\n _disciplineCourse.put(course, new HashMap<String, Discipline>());\n _courses.put(course, _course);\n }\n\n if(_professor.getDisciplineCourses().get(course) == null){\n _professor.getDisciplineCourses().put(course, new HashMap<String, Discipline>());\n }\n\n Discipline _discipline = _disciplines.get(discipline);\n if(_discipline == null){\n _discipline = new Discipline(discipline,_course);\n _disciplines.put(discipline, _discipline);\n _course.getDisciplines().put(discipline, _discipline);\n }\n _discipline.registerObserver(_professor, id);\n _disciplineCourse.get(course).put(discipline, _discipline);\n\n if(_professor.getDisciplines() != null){\n _professor.getDisciplines().put(discipline, _discipline);\n _professor.getDisciplineCourses().get(course).put(discipline, _discipline); \n }\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n\n }\n }\n }\n }else if(fields[0].equals(\"DELEGADO\")){\n Student _student = new Student(id, fields[2], fields[3]);\n _students.put(id, _student);\n _persons.put(id, (Person) _student);\n\n line = reader.readLine();\n fields = line.split(\"\\\\|\");\n while((line != null) && (fields[0].charAt(0) == '#')){\n String course = fields[0].substring(2);\n String discipline = fields[1];\n Course _course = _courses.get(course);\n if(_course == null){\n _course = new Course(course);\n _disciplineCourse.put(course, new HashMap<String, Discipline>());\n _courses.put(course,_course);\n }\n if(_course.getRepresentatives().size() == 8){\n System.out.println(id);\n throw new BadEntryException(course);\n }else{\n _course.getRepresentatives().put(id,_student);\n }\n _student.setCourse(_course);\n Discipline _discipline = _disciplines.get(discipline);\n if(_discipline == null){\n _discipline = new Discipline(discipline, _course);\n _disciplines.put(discipline,_discipline);\n _course.getDisciplines().put(discipline, _discipline);\n }\n if(_student.getDisciplines().size() == 6){\n throw new BadEntryException(discipline);\n }else{\n if(_discipline.getStudents().size() == 100){\n throw new BadEntryException(discipline);\n }else{\n _student.getDisciplines().put(discipline,_discipline);\n _discipline.getStudents().put(id,_student);\n }\n }\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n }\n }\n }else if(fields[0].equals(\"ALUNO\")){\n Student _student = new Student(id, fields[2], fields[3]);\n _students.put(id, _student);\n _persons.put(id, (Person) _student);\n\n line = reader.readLine();\n fields = line.split(\"\\\\|\");\n while((line != null) && (fields[0].charAt(0) == '#')){\n String course = fields[0].substring(2);\n String discipline = fields[1];\n Course _course = _courses.get(course);\n if(_course == null){\n _course = new Course(course);\n _disciplineCourse.put(course, new HashMap<String, Discipline>());\n _courses.put(course, _course);\n }\n _student.setCourse(_course);\n Discipline _discipline = _disciplines.get(discipline);\n if(_discipline == null){\n _discipline = new Discipline(discipline, _course);\n _disciplines.put(discipline, _discipline);\n _course.getDisciplines().put(discipline, _discipline);\n }\n _discipline.registerObserver(_student, id);\n if(_student.getDisciplines().size() == 6){\n throw new BadEntryException(discipline);\n }else{\n _student.getDisciplines().put(discipline,_discipline);\n if(_discipline.getStudents().size() == 100){\n throw new BadEntryException(discipline);\n }else{\n _discipline.getStudents().put(id,_student);\n }\n }\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n }\n }\n\n }else{\n throw new BadEntryException(fields[0]);\n }\n }\n for(Course course: _courses.values()){\n HashMap<Integer,Student> representatives = course.getRepresentatives();\n HashMap<String, Discipline> disciplines = course.getDisciplines();\n for(Discipline discipline: disciplines.values()){\n for(Student representative: representatives.values()){\n discipline.registerObserver(representative, representative.getId());\n }\n }\n \n } \n reader.close();\n }catch(BadEntryException e){\n throw new ImportFileException(e);\n }catch(IOException e){\n throw new ImportFileException(e);\n }\n }",
"java.lang.String getID();",
"public Fila carregar(int id) throws IOException{\t\t\n\t\treturn dao.carregar(id);\n\t}",
"public String getFeatureID(long offset) throws IOException {\n\t\tdataBase.seek(offset);\n\t\tString[] array = dataBase.readLine().split(\"\\\\|\");\n\t\treturn array[0];\n\t}",
"public void setID(String id){\n this.id = id;\n }",
"protected abstract String getId();",
"IDType getID();"
] | [
"0.6010556",
"0.5881097",
"0.5839398",
"0.56289124",
"0.5548525",
"0.5454386",
"0.5428288",
"0.5413728",
"0.5342824",
"0.5338796",
"0.5338127",
"0.5332949",
"0.5302755",
"0.52813387",
"0.5277661",
"0.5264038",
"0.5235287",
"0.52260107",
"0.5222706",
"0.5213473",
"0.5195747",
"0.5186693",
"0.5186693",
"0.5186693",
"0.5186693",
"0.5186693",
"0.5186693",
"0.5186693",
"0.5186693",
"0.5186693",
"0.5186693",
"0.5186693",
"0.5186693",
"0.5186693",
"0.5186693",
"0.5186693",
"0.5186693",
"0.5186693",
"0.5186693",
"0.5186693",
"0.5179969",
"0.51647204",
"0.5162911",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51466876",
"0.51427233",
"0.5127538",
"0.5126149",
"0.5126149",
"0.5126149",
"0.5126149",
"0.512228",
"0.5119534",
"0.5112613",
"0.5108199",
"0.5101432",
"0.5085656",
"0.50764495",
"0.5074621"
] | 0.0 | -1 |
optional string residues = 3; usually be numbered sequentially. | public boolean hasResidues() {
return ((bitField0_ & 0x00000004) == 0x00000004);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getResidues();",
"public Builder setResidues(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n residues_ = value;\n onChanged();\n return this;\n }",
"public java.lang.String getResidues() {\n java.lang.Object ref = residues_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n residues_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getResidues() {\n java.lang.Object ref = residues_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n residues_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getResiduesBytes() {\n java.lang.Object ref = residues_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n residues_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getResiduesBytes() {\n java.lang.Object ref = residues_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n residues_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Builder setResiduesBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n residues_ = value;\n onChanged();\n return this;\n }",
"private List<String> generateN3Optional() {\n\t\treturn list(\n\t\t\t\t\t\"?conceptNode <\" + VitroVocabulary.RDF_TYPE + \"> <\" + SKOSConceptType + \"> .\\n\" +\n\t\t\t\t\t\"?conceptNode <\" + label + \"> ?conceptLabel .\"\n\t \t);\n\n }",
"private void assignMissingResidueIds() {\n \t\tfor (Atom atom: atomVector) {\n \t\t\tif (atom.residue_id == Integer.MIN_VALUE) {\n \t\t\t\tatom.residue_id = atom.authorResidue_id;\n \t\t\t\tatom.nonpolymer = true;\n \t\t\t}\n \t\t}\n \t}",
"boolean hasResidues();",
"static int size_of_xri(String passed){\n\t\treturn 2;\n\t}",
"public void setReserve3(java.lang.String reserve3) {\n this.reserve3 = reserve3;\n }",
"com.google.protobuf.ByteString\n getResiduesBytes();",
"@Test\n void multiConstruct() {\n var multicons = \"(define conCar_a (cons 1 2))(define conCar_b (cons 3 conCar_a))(define conCar_c (cons conCar_b 4))(define conCar_d (cons conCar_b conCar_c))\";\n Main.parseInputString(multicons);\n assertEquals(\"(3 1 . 2)\", Main.parseInputString(\"(display (car conCar_d)) \"));\n }",
"String slotOfCar(String regNumber);",
"public GI3( String[] textParms )\n {\n super( textParms );\n }",
"private void setInstruc(int[] instruc2) \n\t{\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"static int setCon(String input){\n if (input.equals(\"little\")||input.equals(\"1\")) return 1;\n if (input.equals(\"average\")||input.equals(\"2\"))return 2;\n if (input.equals(\"lot\") || input.equals(\"3\")) return 3;\n if (input.equals(\"manual\") || input.equals(\"4\")) return 4;\n throw new RuntimeException(\n \"Illigal second paramter on command line, use : <little,average,lot>\");\n }",
"public Recurso(int idRecurso, String descripcionRecurso){\n this.idRecurso = idRecurso; //Recibimos el numero \n this.descripcionRecurso = descripcionRecurso; //Material que deseamos\n }",
"public void setResidue(char residue)\r\n {\n if (residue == '[')\r\n this.residue = 'n';\r\n else if (residue == ']')\r\n this.residue = 'c';\r\n else\r\n this.residue = residue;\r\n\r\n if (this.residue == 'n' || this.residue == 'c')\r\n throw new IllegalArgumentException(\"N-terminal and C-terminal labels are not currently supported\");\r\n }",
"public void printResiduals(double t, double resid1, double resid2);",
"@Override\n\tpublic Instruction parseInstruction(InstructionSequence seq, State state) \n\t{\n\t\treturn new Iconst3();\n\t}",
"static int size_of_rlc(String passed){\n\t\treturn 1;\n\t}",
"public void setRsv3(String rsv3) {\r\n this.rsv3 = rsv3;\r\n }",
"private void parsePlateau(String s) {\r\n String[] parsedString = s.split(\" \");\r\n plateau[0] = Integer.parseInt(parsedString[0]);\r\n plateau[1] = Integer.parseInt(parsedString[1]);\r\n }",
"public boolean checkR3(String candidateSolution){\n\t\t//Split the string to a number of 9 digits\n\t\tString []candSol = candidateSolution.split(\"(?<=\\\\G.........)\");\n\t\tint candSolIndex = 0;\n\t\t\n\t\twhile(candSolIndex < 9){\n\n\t\t\tString testPart = candSol[candSolIndex];\n\t\t\t//R2 part\n\t\t\tboolean ok = checkIfDublicate(testPart);\n\t\t\tcandSolIndex++;\n\t\t\tif(ok){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\treturn true;\t\t\t\t\n\t\t}\n\t\treturn false;\n\t}",
"public void setExtra3(String extra3) {\n this.extra3 = extra3;\n }",
"public void init() {\n\t\tinit(\"1,0 3,0 5,0 7,0 9,0 0,1 2,1 4,1 6,1 8,1 1,2 3,2 5,2 7,2 9,2 0,3 2,3 4,3 6,3 8,3\", \n\t\t\t \"1,6 3,6 5,6 7,6 9,6 0,7 2,7 4,7 6,7 8,7 1,8 3,8 5,8 7,8 9,8 0,9 2,9 4,9 6,9 8,9\"); \n }",
"public void setIDINTERNOPE1(int value) {\n this.idinternope1 = value;\n }",
"void mo19167a(String str, String str2, int i, String str3, int i2);",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(3, 5, 0, 10, false, 16), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"static void initSample3(){\n // put values into the sField\n sField[3][6] = \"X\";\n sField[4][6] = \"X\";\n sField[5][6] = \"X\";\n sField[6][6] = \"X\";\n sField[7][6] = \".\";\n \n sField[1][5] = \"O\";\n sField[1][6] = \"O\";\n sField[1][7] = \".\";\n sField[1][8] = \"O\";\n }",
"final String getResourceName(int resid) {\n if (am == null)\n return null;\n ResTable.resource_name name = new ResTable.resource_name(null, null, null);\n if (!am.getResources(false).getResourceName(resid, name)) {\n return null;\n }\n String str = null;\n if (name.mPackage != null) {\n str = name.mPackage;\n }\n\n if (name.mType != null) {\n if (str.length() > 0) {\n str += \":\";\n }\n str += name.mType;\n }\n\n if (name.mName != null) {\n if (str.length() > 0) {\n str += \"/\";\n }\n str += name.mName;\n }\n\n return str;\n }",
"public void setRegulations(String regulations) {\n this.regulations = regulations;\n }",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_4() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tint[][] response = roc.generateIntegerSequences(3, 5, 0, 10, false, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tint[][] response2 = roc.generateIntegerSequences(3, 5, 0, 10, false, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(3, 5, 0, 10, false, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(3, 5, 0, 10, false, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"@Test\r\n\tpublic void testPositiveGenerateStrings_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString[] response = roc.generateStrings(10, 5, \"abcd\", false, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tString[] response2 = roc.generateStrings(10, 5, \"abcd\", false, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\r\n\t\t\t\tresponse = roc.generateStrings(10, 5, \"abcd\", false, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateStrings(10, 5, \"abcd\", false, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"private List<String> generateN3Required(VitroRequest vreq) {\n \tList<String> n3Required = list(\n \t getPrefixesString() + \"\\n\" +\n \t \"?subject ?predicate ?conceptNode .\\n\"\n \t);\n \tList<String> inversePredicate = getInversePredicate(vreq);\n\t\t//Adding inverse predicate if it exists\n\t\tif(inversePredicate.size() > 0) {\n\t\t\tn3Required.add(\"?conceptNode <\" + inversePredicate.get(0) + \"> ?subject .\");\n\t\t}\n \treturn n3Required;\n }",
"public static String getResidSnippet(String resident) {\n String snippet = null;\n try {\n JSONObject jsonObject = new JSONObject(resident);\n snippet = jsonObject.getString(\"resid\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n return snippet;\n }",
"@Test public void testParseManyDigits3() {\n String pows10 =\n \"0.00000000000001\\n\"+\n \"1000001\\n\"+\n \"2000001\\n\"+\n \"\";\n double[][] pows10_exp = new double[][] {\n ard(1e-14),\n ard(1000001L),\n ard(2000001L),\n };\n Key k = FVecFactory.makeByteVec(pows10);\n Key r1 = Key.make(\"r1\");\n ParseDataset.parse(r1, k);\n testParsed(r1,pows10_exp);\n }",
"@Test\r\n\tpublic void testPositiveGenerateSignedIntegerSequences_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tHashMap<String,Object> o = roc.generateSignedIntegerSequences(3, 5, 0, 10, false, 16, userData);\r\n\t\t\t\t\r\n\t\t\t\tthis.signedValueTester(roc, i, o, String[][].class, true);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"void mo11024a(int i, int i2, String str);",
"@Override\r\n\tpublic vec3 get3(String ponits) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic List getListByResId(Integer resid) {\n\t\tString sql = \"select g.resid from GroupFunres g where resid = '\" + resid + \"'\";\n\t\tList list = this.queryForList(sql);\n\t\tList idList=new ArrayList();\n\t\tif (list != null && list.size() > 0) {\n\t\t\tfor(int i=0;i<list.size();i++){\n\t\t\t\tidList.add(list.get(i));\n\t\t\t}\n\t\t\treturn idList;\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n\tpublic int resid() {\n\t\treturn currnet().resid();\n\t}",
"private String insertarCartaNaturalResources() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 0,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 5,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n true,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }",
"public static int[][] AssetCreater(String srt) {\n\r\n\t\tint Length = ArrLength(srt);\r\n\r\n\t\tint[][] TempArr = new int[5][Length];\r\n\r\n\t\tint Xoffset = 0;\r\n\r\n\t\t// goes through entire word and if any letter corrisponds with a letter it's\r\n\t\t// testing for\r\n\t\t// it calls a function to add the new symbol to 2d array\r\n\r\n\t\t// I considered commenting all this but I think it's pretty self explanitory\r\n\r\n\t\tfor (int k = 0; k < srt.length(); k++) {\r\n\r\n\t\t\tif (srt.charAt(k) == '0') {\r\n\t\t\t\t// if it's 0 add Zero Matrix to the matrix\r\n\t\t\t\tTempArr = AddToArr(TempArr, Zero, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '1') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, One, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '2') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Two, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '3') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Three, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '4') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Four, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '5') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Five, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '6') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Six, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '7') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Seven, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '8') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Eight, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '9') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Nine, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'a') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ALetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'b') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, BLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'c') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, CLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'd') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, DLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'e') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ELetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'f') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, FLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'g') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, GLetter, 4, Xoffset);\r\n\r\n\t\t\t\t// G is a bigger number so I just add 1 to offset\r\n\t\t\t\tXoffset += 1;\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'h') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, HLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'i') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ILetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'j') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, JLetter, 4, Xoffset);\r\n\r\n\t\t\t\tXoffset += 1;\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'k') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, KLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'l') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, LLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'm') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, MLetter, 5, Xoffset);\r\n\r\n\t\t\t\tXoffset += 2;\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'n') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, NLetter, 4, Xoffset);\r\n\r\n\t\t\t\tXoffset += 1;\r\n\t\t\t} else if (srt.charAt(k) == 'o') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, OLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'p') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, PLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'q') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, QLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'r') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, RLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 's') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, SLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 't') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, TLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'u') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ULetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'v') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, VLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'w') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, WLetter, 5, Xoffset);\r\n\r\n\t\t\t\tXoffset += 2;\r\n\t\t\t} else if (srt.charAt(k) == 'x') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, XLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'y') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, YLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'z') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ZLetter, 4, Xoffset);\r\n\r\n\t\t\t\tXoffset += 1;\r\n\t\t\t} else if (srt.charAt(k) == ' ') {\r\n\t\t\t\tXoffset -= 2;\r\n\t\t\t\t// space is too big number so I just sub 2 from offset\r\n\r\n\t\t\t} else if (srt.charAt(k) == '-') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, DashLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == ':') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ColonLetter, 3, Xoffset);\r\n\r\n\t\t\t}\r\n\r\n\t\t\tXoffset += 4;\r\n\t\t}\r\n\t\treturn TempArr;\r\n\t}",
"private static void initSet1(String[] set1) {\n\t\tset1[0] = \"rs36129689\";\n\t\tset1[1] = \"rs36153986\";\n\t\tset1[2] = \"rs493934\";\n\t\tset1[3] = \"rs36146958\";\n\t\tset1[4] = \"rs36197089\";\n\t\tset1[5] = \"rs35773247\";\n\t\tset1[6] = \"rs35346884\";\n\t\tset1[7] = \"rs493040\";\n\t\tset1[8] = \"rs35473000\";\n\t\tset1[9] = \"rs123456\";\n\t\tset1[10] = \"rs1234567\";\n\t\tset1[11] = \"rs12345678\";\n\t\tset1[12] = \"rs1234234\";\n\t\tset1[13] = \"rs492232\";\n\t\tset1[14] = \"rs492184\";\n\t\tset1[15] = \"rs123123\";\n\t}",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_5() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString[][] response = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tString[][] response2 = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void setText(String text) {\n \tif (_assocModel == null) return;\n\t\tString mult;\n\t\tPattern p = Pattern.compile(\"([\\\\d]|\\\\Q*\\\\E)([.]{2}+([\\\\d]|\\\\Q*\\\\E))?\");\t// regex for multiplicities: (digit | *) + optional(.. (digit | *))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// can use a Collection to handle multiplicities of *; we really only care about\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the upper bound also\n\t\tMatcher m = p.matcher(text);\n\t\t// regex didn't find anything, so we'll assign a default multiplicity\n\t\tif (!m.find() || m.group().length() < 0) {\n\t\t\tmult=\"1\";\n\t\t}\n\t\telse mult = m.group();\n\t\t_assocModel.setMultiplicity(mult);\n\t\tsuper.setText(mult);\n\t}",
"public Integer getResnr() {\n\t\treturn this.resnr;\n\t}",
"static void perform_xri(String passed){\n\t\tint type = type_of_xri(passed);\n\t\tif(type==1)\n\t\t\txri_with_acc(passed);\n\t}",
"private void inzsr() {\n\t\tid1Ctdta = 1;\n\t\tstrCtdta = \"Each KGS \";\n\t\tfor (int idxCtdta = 1; idxCtdta <= 1; idxCtdta++) {\n\t\t\tum[idxCtdta] = subString(strCtdta, id1Ctdta, 11);\n\t\t\tid1Ctdta = Integer.valueOf(id1Ctdta + 11);\n\t\t}\n\t\t// Initialise message subfile\n\t\tnmfkpinds.setPgmInd32(true);\n\t\tstateVariable.setZzpgm(replaceStr(stateVariable.getZzpgm(), 1, 8, \"WWCONDET\"));\n\t\t// - Set date\n\t\tstateVariable.setZzdate(getDate().toInt());\n\t\t// -\n\t\t// - CONTRACT\n\t\tcontractHeader.retrieve(stateVariable.getXwordn());\n\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t// - CUSTOMER\n\t\tpurchases.retrieve(stateVariable.getXwbccd());\n\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t// BR00012 Debtor not found on Purchases\n\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\tstateVariable.setXwg4tx(all(\"-\", 40));\n\t\t}\n\t\t// - REPRESENTATIVE\n\t\tsalespersons.retrieve(stateVariable.getPerson());\n\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t// BR00013 Rep not found on Salespersons\n\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\tstateVariable.setPname(all(\"-\", 34));\n\t\t}\n\t\t// - STATUS\n\t\torderStatusDescription.retrieve(stateVariable.getXwstat());\n\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t// BR00014 Status not found on Order_status_description\n\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\tstateVariable.setXwsdsc(all(\"-\", 20));\n\t\t}\n\t}",
"public String designPN(String nr)\r\n {\r\n String newStr=\"(\";\r\n if(nr.length()!=10){return null;}\r\n else\r\n {\r\n newStr=newStr+nr.substring(0,4)+\")-\";\r\n // System.out.println(\"phase 1 \"+ newStr);\r\n newStr=newStr+nr.substring(4,7)+\"-\";\r\n // System.out.println(\"phase 2 \"+ newStr);\r\n newStr=newStr+nr.substring(7,10);\r\n // System.out.println(\"phase 3 \"+ newStr);\r\n }\r\n return newStr;\r\n\r\n }",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_7() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(4, LENGTH, MIN, MAX, REPLACEMENT), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"public void readArmies(){\n\n for ( j= 0;j<countriesArmyLines.size();j++) {\n String [] armyLine = countriesArmyLines.get(j).split(\" \");\n vertices.get(Integer.parseInt(armyLine[1])-1).addArmies(Integer.parseInt(armyLine[2]));\n System.out.println(\"army \"+vertices.get(j).getNumberArmies());\n }\n // Read countries armies for AI agents\n\n for ( j= 0;j<countriesArmyLines.size();j++) {\n String [] armyLine = countriesArmyLines.get(j).split(\" \");\n allSCountries.get(Integer.parseInt(armyLine[1])).setNumberArmies(Integer.parseInt(armyLine[2]));\n // System.out.println(\"army \"+vertices.get(j).getNumberArmies());\n }\n NState.globalState.allCountries=allSCountries;\n }",
"public static String guessResidueTypeFromFeatureLength(int seqLength,\n int featureLength) {\n float basepairsPerResidue = (Math.abs((float)featureLength/\n (float)seqLength));\n return (basepairsPerResidue > 2.0 ? SequenceI.AA : SequenceI.DNA);\n }",
"void adobe_coeff( CharPtr make, CharPtr model) {\n \n adobe_coeff( make.toString(), model.toString());\n}",
"private static String lllIIllIl(short IIIlIIlllllIIll, String IIIIlIlllllIIll) {\n }",
"public String getRelationIdString(SpatialElement se1, String se1Role, SpatialElement se2, String se2Role, SpatialElement se3, String se3Role) {\n String idString = \"\";\n if (se1 != null && se2 != null && se3 != null) {\n se1.role = se1Role;\n se2.role = se2Role;\n se3.role = se3Role;\n idString = se1.id+\"-\"+se2.id+\"-\"+se3.id;\n }\n else if (se1 != null && se2 != null) {\n se1.role = se1Role;\n se2.role = se2Role;\n idString = se1.id+\"-\"+se2.id+\"-null\";\n }\n else if (se1 != null && se3 != null) {\n se1.role = se1Role;\n se3.role = se3Role;\n idString = se1.id+\"-null-\"+se3.id;\n }\n else if (se2 != null && se3 != null) {\n se2.role = se2Role;\n se3.role = se3Role;\n idString = \"null-\"+se2.id+\"-\"+se3.id;\n }\n return idString;\n }",
"public String[] getVariants_ru(int[] randIds){\n Cursor crs;\n String[] variants_ru = new String[4];\n for(int i = 0; i< 4; i++){\n String[] args = new String[1];\n args[0] = Integer.toString(randIds[i]+1);\n crs = aniDB.getReadableDatabase().rawQuery(\"SELECT name_ru FROM titles WHERE id = ?\",args);\n if(crs.moveToFirst()) {\n variants_ru[i] = crs.getString(crs.getColumnIndex(\"name_ru\"));\n }\n crs.close();\n }\n return variants_ru;\n }",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_9() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tint[][] response = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tint[][] response2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"public void setSpare3(String spare3) {\r\n this.spare3 = spare3;\r\n }",
"public void restricciones(String oraciones){\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Restricciones semanticas\");\n alert.setHeaderText(oraciones);\n alert.showAndWait();\n }",
"void mo8715r(String str, String str2, String str3);",
"static int type_of_inr(String passed){\n\t\tif(general_registers.contains(passed.charAt(4)))\n\t\t\treturn 1;\n\t\telse if(passed.charAt(4)=='M')\n\t\t\treturn 2;\n\t\telse\n\t\t\treturn 0;\n\t}",
"public void setRemark3(java.lang.String _remark3)\r\n {\r\n this._remark3 = _remark3;\r\n }",
"public Recipe(String[] in)\r\n {\r\n double temp;\r\n if (in.length == 3){\r\n this.origQty = in[0];\r\n this.measure = in[1];\r\n this.ingredient = in[2];\r\n this.w_qty = makeDecimal(in[0]);\r\n }\r\n else {if (in.length == 5) {\r\n this.origQty = in[0] + \" \" + in[1];\r\n this.measure = in[2];\r\n this.ingredient = in[3] + \" \" + in[4];\r\n temp = makeDecimal(in[1]);\r\n this.w_qty = Double.parseDouble(in[0])+ temp;\r\n }\r\n else if (in.length == 4) {\r\n if (in[1].contains(\"/\")) {\r\n this.origQty = in[0] + \" \" + in[1];\r\n this.measure = in[2];\r\n this.ingredient = in[3];\r\n temp = makeDecimal(in[1]);\r\n this.w_qty = temp + Double.parseDouble(in[0]);}\r\n else {\r\n this.origQty = in[0];\r\n this.measure = in[1];\r\n this.ingredient = in[2] + \" \" + in[3];\r\n this.w_qty = makeDecimal(in[0]);}\r\n }\r\n }\r\n this.working_measure = measure;\r\n this.final_measure = measure;\r\n }",
"public /* synthetic */ CinemaDescriptionItem(String str, int i2, int i3, f fVar) {\n this(str, (i3 & 2) != 0 ? 3 : i2);\n }",
"private static int _addPossibleValues(int rowNumber, int y, int x, short[][] spareMatrix,String[] rowIds, SudokuModel model) {\r\n\r\n\t\tfor(short i = 0; i <9; i++){\r\n\t\t\tif(!model.restrictionIsSatisfied(y, x, i+1))\r\n\t\t\trowNumber = _addRestrictions(rowNumber,y,x,i,spareMatrix,rowIds);\r\n\t\t}\r\n\t\t\r\n\t\treturn rowNumber;\r\n\t}",
"public static void loadMatric(int matr[][]) throws IOException{\n\n\t\tfor(int i=0;i<7;i++){\n\t\t\tfor(int j=0;j<6;j++){\n\t\t\t\tSystem.out.print(\"INSERISCI\"+i+j+\": \");\n\t\t\t\tSystem.out.flush();\n\t\t\t\tmatr[i][j]=System.in.read()-'0';\n\t\t\t\tSystem.in.skip(2);\n\t\t\t}}}",
"public TextPropDefaultViewModel_ textWithDefaultQuantityRes(@PluralsRes int pluralRes,\n int quantity, Object... formatArgs) {\n onMutation();\n assignedAttributes_epoxyGeneratedModel.set(0);\n textWithDefault_StringAttributeData.setValue(pluralRes, quantity, formatArgs);\n return this;\n }",
"public boolean restrizione14()\r\n\t\tthrows RestrizioniSpecException\r\n\t\t{\r\n\t\tfor (int i = 0; i < this.equivalenzeInput.size(); i++)\r\n\t\t\t{\r\n\t\t\t// si preleva il nome dell'interazione di output connessa a questa componente\r\n\t\t\tAttacDecl attacDecl = this.attacsDeclInput.get(i);\r\n\t\t\tString string = attacDecl.getOutputInteraction();\r\n\t\t\t// si preleva la relativa equivalenza\r\n\t\t\tIEquivalenza equivalenza = this.equivalenzeInput.get(i);\r\n\t\t\t// si preleva l'azione corrispondente a string\r\n\t\t\tAction action = equivalenza.getActionFromName(string);\r\n\t\t\tif (action == null)\r\n\t\t\t\t{\r\n\t\t\t\tString string2 = equivalenza.getAEIdecl().getName();\r\n\t\t\t\tthrow new RestrizioniSpecException(\"The \"+string+\" action of instance \"+\r\n\t\t\t\t\t\tstring2+\" don't found\");\r\n\t\t\t\t}\r\n\t\t\tActionRate actionRate = action.getRate();\r\n\t\t\tif (!(actionRate instanceof RateInf))\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\treturn true;\r\n\t\t}",
"public void setNoOfRelevantLines(int norl) { this.noOfRelevantLines = norl; }",
"void playYearOfPlentyCard(String resource1, String resource2);",
"public int cuantosRenglones() \r\n\t{\r\n\t\tString respuesta = JOptionPane.showInputDialog(\"cuantas renglones quiere\");\r\n\t\tint respuesta1 = Integer.parseInt(respuesta);\r\n\t\treturn respuesta1;\r\n\t}",
"java.lang.String getNum1();",
"static int size_of_rrc(String passed){\n\t\treturn 1;\n\t}",
"public void agregarpal(String n) {\n\n switch (pos) {\n case 0:\n pal1 = n;\n case 1:\n pal2 = n;\n case 2:\n pal3 = n;\n case 3:\n pal4 = n;\n case 4:\n pal5 = n;\n break;\n }//fin switch\n\n pos++;\n }",
"public void int3_m() {\n\t\t\n\t}",
"public static void muestraArreglo(int[] arreglo) {\r\n\t\tfor (int i = 0; i < arreglo.length; i++) {\r\n\t\t\tescribir(\"[\" + arreglo[i] + \"]\", false);\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n\t\tRandom rand = new Random();\n\t\tint first = rand.nextInt(7);\n\t\tint second = rand.nextInt(7);\n\t\tint third = rand.nextInt(7);\n\t\t\n\t\tint middle = rand.nextInt(741);\n\t\t\n\t\tint last = rand.nextInt(9999);\n\t\t\n\t\tString middleString= Integer.toString(middle);\n\t\tString lastString = Integer.toString(last); \n\t\tString firstString = Integer.toString(first);\n\t\tString secondString = Integer.toString(second);\n\t\tString thirdString = Integer.toString(third);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\twhile (middleString.length()<3) {\n\t\t\tmiddleString = \"0\" + middleString;\n\t\t\t\n\t\t}\n\t\t\n\t\twhile (lastString.length()<4){\n\t\t\tlastString = \"0\" + lastString;\n\t\t}\n\t\t\n\t\tSystem.out.println(firstString + secondString + thirdString + \"-\"+ middleString +\"-\"+ lastString);\n\t\t\n\t\t\n\t}",
"public boolean hasResidues() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_8() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(4, LENGTH, MIN, MAX, REPLACEMENT, BASE), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"public String getChoice3(int a){\n String choice2 = choices[a][2];\n return choice2;\n }",
"@Override\n\tpublic void setStreet3(java.lang.String street3) {\n\t\t_candidate.setStreet3(street3);\n\t}",
"static void initSample4(){\n // put values into the sField\n sField[5][4] = \"X\";\n sField[4][5] = \".\";\n sField[3][6] = \"X\";\n sField[2][7] = \"X\";\n sField[1][8] = \"X\";\n \n sField[1][5] = \"O\";\n sField[1][6] = \"O\";\n sField[1][7] = \".\"; \n }",
"private String theFunctionThatSolvesAllProblems(String input) throws IOException {\n\n first = new MyInt[9];\n second = new MyInt[9];\n third = new MyInt[9];\n myPointers = new MyIntPointer[7];\n\n M = new MyInt();\n D = new MyInt();\n C = new MyInt();\n L = new MyInt();\n X = new MyInt();\n V = new MyInt();\n I = new MyInt();\n\n hasI = false;\n hasX = false;\n hasC = false;\n hasM = false;\n hasV = false;\n hasL = false;\n hasD = false;\n\n firstLength = 0;\n secondLength = 0;\n thirdLength = 0;\n\n initializeEquation(input);\n\n return arabic();\n\n }",
"public StrumInstrument(String type, String manufacturer, int nrStrings, double stringSize) {\n super(type, manufacturer);\n this.nrStrings = nrStrings;\n this.stringSize = stringSize;\n }",
"public int[] contarCodons(String seq){\n int [] countCodons=new int[65];\n for (int i=0;i<seq.length()-2;i=i+3){\n String c=seq.substring(i, i+3);\n int j=0;\n while (j<nameCodon.length && nameCodon[j].compareTo(c)!=0) j++;\n if (j<nameCodon.length)\n countCodons[j]++;\n else\n countCodons[64]++;\n }\n return countCodons;\n\n }",
"public void setSecondary3(java.lang.String secondary3) {\n this.secondary3 = secondary3;\n }",
"@Test\n public void execute_nricParameter() throws ParseException {\n //No user input\n execute_parameterPredicate_test(0, \" \", \"nric\", true, false, Collections.emptyList());\n //Single keyword, ignore case, person found.\n execute_parameterPredicate_test(1, \"s1234567A\", \"nric\", true, false, Arrays.asList(ALICE));\n //Single keyword, case sensitive, no one found.\n execute_parameterPredicate_test(0, \"s1234567A\", \"nric\", false, false, Collections.emptyList());\n //Multiple keywords, ignore case, or condition, multiple people found\n execute_parameterPredicate_test(2, \"S1234567a S5234569A\", \"nric\", true, false, Arrays.asList(ALICE, GEORGE));\n //Multiple keywords, ignore case, and condition, no one found\n execute_parameterPredicate_test(0, \"S1234567a S5234569A\", \"nric\", true, true, Collections.emptyList());\n //Multiple keywords, case sensitive, or condition, one person found\n execute_parameterPredicate_test(1, \"S1234567a S5234569A\", \"nric\", false, false, Arrays.asList(GEORGE));\n //Multiple keywords, case sensitive, and condition, no one found\n execute_parameterPredicate_test(0, \"S1234567a S5234569A\", \"nric\", false, true, Collections.emptyList());\n }",
"@Nullable public abstract String loadVerseText(int ari);",
"public void setIDINTERNODC(int value) {\n this.idinternodc = value;\n }",
"public int getImageResourceIdForExercise(Context context){\n\n TypedArray imagesArray = context.getResources().obtainTypedArray(R.array.images_array);\n int id = 0;\n\n if(musclePart == 1) {\n return imagesArray.getResourceId((exeNumber -1),0);\n }else {\n for (int i = 1; i < imagesArray.length(); i++) {\n if(i == (((musclePart - 1) * 6) + exeNumber) - 1){\n id = imagesArray.getResourceId(i,0);\n break;\n }\n }\n }\n imagesArray.recycle();\n return id;\n }",
"static void lxi_to_reg_pair(String passed){\n\t\tchar fourth = passed.charAt(4);\n\t\tif(fourth=='B'){\n\t\t\tregisters.put('B', passed.substring(6,8));\n\t\t\tregisters.put('C', passed.substring(8));\n\t\t}\n\t\telse if(fourth=='D'){\n\t\t\tregisters.put('D', passed.substring(6,8));\n\t\t\tregisters.put('E', passed.substring(8));\n\t\t}\n\t\telse if(fourth=='H'){\n\t\t\tregisters.put('H', passed.substring(6,8));\n\t\t\tregisters.put('L', passed.substring(8));\n\t\t}\n\t}",
"public void mo32111rr(int i) {\n }",
"static int size_of_lxi(String passed){\n\t\treturn 3;\n\t}",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_10() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString[][] response = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, BASE, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tString[][] response2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, BASE, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, BASE, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, BASE, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"public void setResearchno(String researchno) {\r\n\t\tthis.researchno = researchno;\r\n\t}",
"public static void main(String[] args) {\n //The letters are randomly chosen through this block of code with use of ASCII code.\n char let1 = (char) ((int)(Math.random() * 26 + 65));\n char let2 = (char) ((int)(Math.random() * 26 + 65));\n char let3 = (char) ((int)(Math.random() * 26 + 65));\n \n //This generates a number of four digits to follow the letters. \n int num = (int)(Math.random() * 9000 + 999);\n \n //The combination is now printed to the screen through this. \n System.out.println(\"The plate number is \" + let1 + let2 +let3 + num); \n }"
] | [
"0.6329081",
"0.6194227",
"0.54719037",
"0.5433558",
"0.53454846",
"0.518184",
"0.5128492",
"0.49376035",
"0.48442668",
"0.4724605",
"0.47152042",
"0.46729997",
"0.46720904",
"0.46649334",
"0.46318775",
"0.45997924",
"0.45697337",
"0.4542916",
"0.45292935",
"0.4528893",
"0.4520108",
"0.4519737",
"0.44881666",
"0.44780436",
"0.44735065",
"0.44489574",
"0.44477877",
"0.444215",
"0.44362456",
"0.44323435",
"0.44189802",
"0.44128108",
"0.44005463",
"0.4376711",
"0.43688625",
"0.43648276",
"0.43617478",
"0.43591163",
"0.43416727",
"0.4335052",
"0.43315908",
"0.4329952",
"0.43269566",
"0.43071407",
"0.43052205",
"0.4292204",
"0.4291854",
"0.42805734",
"0.4268324",
"0.42664614",
"0.42613685",
"0.42600182",
"0.42569944",
"0.4249713",
"0.42468822",
"0.42467374",
"0.42442796",
"0.4241471",
"0.42339703",
"0.4233759",
"0.42332256",
"0.42295268",
"0.42280847",
"0.4224324",
"0.42241433",
"0.42238563",
"0.42236635",
"0.42236212",
"0.4223061",
"0.4221378",
"0.42211592",
"0.42188528",
"0.42151642",
"0.4209863",
"0.42045972",
"0.42028436",
"0.42011267",
"0.41935775",
"0.41925663",
"0.4190933",
"0.41856375",
"0.4185583",
"0.418238",
"0.4180645",
"0.4177586",
"0.41763222",
"0.41750142",
"0.4172534",
"0.4164202",
"0.41633672",
"0.41617814",
"0.4157633",
"0.41560853",
"0.4150837",
"0.4150766",
"0.4150187",
"0.41422424",
"0.41411856",
"0.4141147",
"0.4139943"
] | 0.42030525 | 75 |
optional string residues = 3; usually be numbered sequentially. | public java.lang.String getResidues() {
java.lang.Object ref = residues_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
residues_ = s;
}
return s;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getResidues();",
"public Builder setResidues(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n residues_ = value;\n onChanged();\n return this;\n }",
"public java.lang.String getResidues() {\n java.lang.Object ref = residues_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n residues_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getResiduesBytes() {\n java.lang.Object ref = residues_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n residues_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getResiduesBytes() {\n java.lang.Object ref = residues_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n residues_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Builder setResiduesBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n residues_ = value;\n onChanged();\n return this;\n }",
"private List<String> generateN3Optional() {\n\t\treturn list(\n\t\t\t\t\t\"?conceptNode <\" + VitroVocabulary.RDF_TYPE + \"> <\" + SKOSConceptType + \"> .\\n\" +\n\t\t\t\t\t\"?conceptNode <\" + label + \"> ?conceptLabel .\"\n\t \t);\n\n }",
"private void assignMissingResidueIds() {\n \t\tfor (Atom atom: atomVector) {\n \t\t\tif (atom.residue_id == Integer.MIN_VALUE) {\n \t\t\t\tatom.residue_id = atom.authorResidue_id;\n \t\t\t\tatom.nonpolymer = true;\n \t\t\t}\n \t\t}\n \t}",
"boolean hasResidues();",
"static int size_of_xri(String passed){\n\t\treturn 2;\n\t}",
"public void setReserve3(java.lang.String reserve3) {\n this.reserve3 = reserve3;\n }",
"com.google.protobuf.ByteString\n getResiduesBytes();",
"@Test\n void multiConstruct() {\n var multicons = \"(define conCar_a (cons 1 2))(define conCar_b (cons 3 conCar_a))(define conCar_c (cons conCar_b 4))(define conCar_d (cons conCar_b conCar_c))\";\n Main.parseInputString(multicons);\n assertEquals(\"(3 1 . 2)\", Main.parseInputString(\"(display (car conCar_d)) \"));\n }",
"String slotOfCar(String regNumber);",
"public GI3( String[] textParms )\n {\n super( textParms );\n }",
"private void setInstruc(int[] instruc2) \n\t{\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"static int setCon(String input){\n if (input.equals(\"little\")||input.equals(\"1\")) return 1;\n if (input.equals(\"average\")||input.equals(\"2\"))return 2;\n if (input.equals(\"lot\") || input.equals(\"3\")) return 3;\n if (input.equals(\"manual\") || input.equals(\"4\")) return 4;\n throw new RuntimeException(\n \"Illigal second paramter on command line, use : <little,average,lot>\");\n }",
"public Recurso(int idRecurso, String descripcionRecurso){\n this.idRecurso = idRecurso; //Recibimos el numero \n this.descripcionRecurso = descripcionRecurso; //Material que deseamos\n }",
"public void setResidue(char residue)\r\n {\n if (residue == '[')\r\n this.residue = 'n';\r\n else if (residue == ']')\r\n this.residue = 'c';\r\n else\r\n this.residue = residue;\r\n\r\n if (this.residue == 'n' || this.residue == 'c')\r\n throw new IllegalArgumentException(\"N-terminal and C-terminal labels are not currently supported\");\r\n }",
"public void printResiduals(double t, double resid1, double resid2);",
"@Override\n\tpublic Instruction parseInstruction(InstructionSequence seq, State state) \n\t{\n\t\treturn new Iconst3();\n\t}",
"static int size_of_rlc(String passed){\n\t\treturn 1;\n\t}",
"public void setRsv3(String rsv3) {\r\n this.rsv3 = rsv3;\r\n }",
"private void parsePlateau(String s) {\r\n String[] parsedString = s.split(\" \");\r\n plateau[0] = Integer.parseInt(parsedString[0]);\r\n plateau[1] = Integer.parseInt(parsedString[1]);\r\n }",
"public boolean checkR3(String candidateSolution){\n\t\t//Split the string to a number of 9 digits\n\t\tString []candSol = candidateSolution.split(\"(?<=\\\\G.........)\");\n\t\tint candSolIndex = 0;\n\t\t\n\t\twhile(candSolIndex < 9){\n\n\t\t\tString testPart = candSol[candSolIndex];\n\t\t\t//R2 part\n\t\t\tboolean ok = checkIfDublicate(testPart);\n\t\t\tcandSolIndex++;\n\t\t\tif(ok){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\treturn true;\t\t\t\t\n\t\t}\n\t\treturn false;\n\t}",
"public void setExtra3(String extra3) {\n this.extra3 = extra3;\n }",
"public void init() {\n\t\tinit(\"1,0 3,0 5,0 7,0 9,0 0,1 2,1 4,1 6,1 8,1 1,2 3,2 5,2 7,2 9,2 0,3 2,3 4,3 6,3 8,3\", \n\t\t\t \"1,6 3,6 5,6 7,6 9,6 0,7 2,7 4,7 6,7 8,7 1,8 3,8 5,8 7,8 9,8 0,9 2,9 4,9 6,9 8,9\"); \n }",
"public void setIDINTERNOPE1(int value) {\n this.idinternope1 = value;\n }",
"void mo19167a(String str, String str2, int i, String str3, int i2);",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(3, 5, 0, 10, false, 16), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"static void initSample3(){\n // put values into the sField\n sField[3][6] = \"X\";\n sField[4][6] = \"X\";\n sField[5][6] = \"X\";\n sField[6][6] = \"X\";\n sField[7][6] = \".\";\n \n sField[1][5] = \"O\";\n sField[1][6] = \"O\";\n sField[1][7] = \".\";\n sField[1][8] = \"O\";\n }",
"final String getResourceName(int resid) {\n if (am == null)\n return null;\n ResTable.resource_name name = new ResTable.resource_name(null, null, null);\n if (!am.getResources(false).getResourceName(resid, name)) {\n return null;\n }\n String str = null;\n if (name.mPackage != null) {\n str = name.mPackage;\n }\n\n if (name.mType != null) {\n if (str.length() > 0) {\n str += \":\";\n }\n str += name.mType;\n }\n\n if (name.mName != null) {\n if (str.length() > 0) {\n str += \"/\";\n }\n str += name.mName;\n }\n\n return str;\n }",
"public void setRegulations(String regulations) {\n this.regulations = regulations;\n }",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_4() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tint[][] response = roc.generateIntegerSequences(3, 5, 0, 10, false, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tint[][] response2 = roc.generateIntegerSequences(3, 5, 0, 10, false, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(3, 5, 0, 10, false, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(3, 5, 0, 10, false, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"@Test\r\n\tpublic void testPositiveGenerateStrings_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString[] response = roc.generateStrings(10, 5, \"abcd\", false, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tString[] response2 = roc.generateStrings(10, 5, \"abcd\", false, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\r\n\t\t\t\tresponse = roc.generateStrings(10, 5, \"abcd\", false, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateStrings(10, 5, \"abcd\", false, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"private List<String> generateN3Required(VitroRequest vreq) {\n \tList<String> n3Required = list(\n \t getPrefixesString() + \"\\n\" +\n \t \"?subject ?predicate ?conceptNode .\\n\"\n \t);\n \tList<String> inversePredicate = getInversePredicate(vreq);\n\t\t//Adding inverse predicate if it exists\n\t\tif(inversePredicate.size() > 0) {\n\t\t\tn3Required.add(\"?conceptNode <\" + inversePredicate.get(0) + \"> ?subject .\");\n\t\t}\n \treturn n3Required;\n }",
"public static String getResidSnippet(String resident) {\n String snippet = null;\n try {\n JSONObject jsonObject = new JSONObject(resident);\n snippet = jsonObject.getString(\"resid\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n return snippet;\n }",
"@Test public void testParseManyDigits3() {\n String pows10 =\n \"0.00000000000001\\n\"+\n \"1000001\\n\"+\n \"2000001\\n\"+\n \"\";\n double[][] pows10_exp = new double[][] {\n ard(1e-14),\n ard(1000001L),\n ard(2000001L),\n };\n Key k = FVecFactory.makeByteVec(pows10);\n Key r1 = Key.make(\"r1\");\n ParseDataset.parse(r1, k);\n testParsed(r1,pows10_exp);\n }",
"@Test\r\n\tpublic void testPositiveGenerateSignedIntegerSequences_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tHashMap<String,Object> o = roc.generateSignedIntegerSequences(3, 5, 0, 10, false, 16, userData);\r\n\t\t\t\t\r\n\t\t\t\tthis.signedValueTester(roc, i, o, String[][].class, true);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"void mo11024a(int i, int i2, String str);",
"@Override\r\n\tpublic vec3 get3(String ponits) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic List getListByResId(Integer resid) {\n\t\tString sql = \"select g.resid from GroupFunres g where resid = '\" + resid + \"'\";\n\t\tList list = this.queryForList(sql);\n\t\tList idList=new ArrayList();\n\t\tif (list != null && list.size() > 0) {\n\t\t\tfor(int i=0;i<list.size();i++){\n\t\t\t\tidList.add(list.get(i));\n\t\t\t}\n\t\t\treturn idList;\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n\tpublic int resid() {\n\t\treturn currnet().resid();\n\t}",
"private String insertarCartaNaturalResources() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 0,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 5,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n true,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }",
"public static int[][] AssetCreater(String srt) {\n\r\n\t\tint Length = ArrLength(srt);\r\n\r\n\t\tint[][] TempArr = new int[5][Length];\r\n\r\n\t\tint Xoffset = 0;\r\n\r\n\t\t// goes through entire word and if any letter corrisponds with a letter it's\r\n\t\t// testing for\r\n\t\t// it calls a function to add the new symbol to 2d array\r\n\r\n\t\t// I considered commenting all this but I think it's pretty self explanitory\r\n\r\n\t\tfor (int k = 0; k < srt.length(); k++) {\r\n\r\n\t\t\tif (srt.charAt(k) == '0') {\r\n\t\t\t\t// if it's 0 add Zero Matrix to the matrix\r\n\t\t\t\tTempArr = AddToArr(TempArr, Zero, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '1') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, One, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '2') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Two, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '3') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Three, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '4') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Four, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '5') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Five, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '6') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Six, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '7') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Seven, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '8') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Eight, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '9') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Nine, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'a') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ALetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'b') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, BLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'c') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, CLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'd') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, DLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'e') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ELetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'f') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, FLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'g') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, GLetter, 4, Xoffset);\r\n\r\n\t\t\t\t// G is a bigger number so I just add 1 to offset\r\n\t\t\t\tXoffset += 1;\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'h') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, HLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'i') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ILetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'j') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, JLetter, 4, Xoffset);\r\n\r\n\t\t\t\tXoffset += 1;\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'k') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, KLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'l') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, LLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'm') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, MLetter, 5, Xoffset);\r\n\r\n\t\t\t\tXoffset += 2;\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'n') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, NLetter, 4, Xoffset);\r\n\r\n\t\t\t\tXoffset += 1;\r\n\t\t\t} else if (srt.charAt(k) == 'o') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, OLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'p') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, PLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'q') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, QLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'r') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, RLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 's') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, SLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 't') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, TLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'u') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ULetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'v') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, VLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'w') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, WLetter, 5, Xoffset);\r\n\r\n\t\t\t\tXoffset += 2;\r\n\t\t\t} else if (srt.charAt(k) == 'x') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, XLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'y') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, YLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'z') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ZLetter, 4, Xoffset);\r\n\r\n\t\t\t\tXoffset += 1;\r\n\t\t\t} else if (srt.charAt(k) == ' ') {\r\n\t\t\t\tXoffset -= 2;\r\n\t\t\t\t// space is too big number so I just sub 2 from offset\r\n\r\n\t\t\t} else if (srt.charAt(k) == '-') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, DashLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == ':') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ColonLetter, 3, Xoffset);\r\n\r\n\t\t\t}\r\n\r\n\t\t\tXoffset += 4;\r\n\t\t}\r\n\t\treturn TempArr;\r\n\t}",
"private static void initSet1(String[] set1) {\n\t\tset1[0] = \"rs36129689\";\n\t\tset1[1] = \"rs36153986\";\n\t\tset1[2] = \"rs493934\";\n\t\tset1[3] = \"rs36146958\";\n\t\tset1[4] = \"rs36197089\";\n\t\tset1[5] = \"rs35773247\";\n\t\tset1[6] = \"rs35346884\";\n\t\tset1[7] = \"rs493040\";\n\t\tset1[8] = \"rs35473000\";\n\t\tset1[9] = \"rs123456\";\n\t\tset1[10] = \"rs1234567\";\n\t\tset1[11] = \"rs12345678\";\n\t\tset1[12] = \"rs1234234\";\n\t\tset1[13] = \"rs492232\";\n\t\tset1[14] = \"rs492184\";\n\t\tset1[15] = \"rs123123\";\n\t}",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_5() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString[][] response = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tString[][] response2 = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void setText(String text) {\n \tif (_assocModel == null) return;\n\t\tString mult;\n\t\tPattern p = Pattern.compile(\"([\\\\d]|\\\\Q*\\\\E)([.]{2}+([\\\\d]|\\\\Q*\\\\E))?\");\t// regex for multiplicities: (digit | *) + optional(.. (digit | *))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// can use a Collection to handle multiplicities of *; we really only care about\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the upper bound also\n\t\tMatcher m = p.matcher(text);\n\t\t// regex didn't find anything, so we'll assign a default multiplicity\n\t\tif (!m.find() || m.group().length() < 0) {\n\t\t\tmult=\"1\";\n\t\t}\n\t\telse mult = m.group();\n\t\t_assocModel.setMultiplicity(mult);\n\t\tsuper.setText(mult);\n\t}",
"public Integer getResnr() {\n\t\treturn this.resnr;\n\t}",
"static void perform_xri(String passed){\n\t\tint type = type_of_xri(passed);\n\t\tif(type==1)\n\t\t\txri_with_acc(passed);\n\t}",
"private void inzsr() {\n\t\tid1Ctdta = 1;\n\t\tstrCtdta = \"Each KGS \";\n\t\tfor (int idxCtdta = 1; idxCtdta <= 1; idxCtdta++) {\n\t\t\tum[idxCtdta] = subString(strCtdta, id1Ctdta, 11);\n\t\t\tid1Ctdta = Integer.valueOf(id1Ctdta + 11);\n\t\t}\n\t\t// Initialise message subfile\n\t\tnmfkpinds.setPgmInd32(true);\n\t\tstateVariable.setZzpgm(replaceStr(stateVariable.getZzpgm(), 1, 8, \"WWCONDET\"));\n\t\t// - Set date\n\t\tstateVariable.setZzdate(getDate().toInt());\n\t\t// -\n\t\t// - CONTRACT\n\t\tcontractHeader.retrieve(stateVariable.getXwordn());\n\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t// - CUSTOMER\n\t\tpurchases.retrieve(stateVariable.getXwbccd());\n\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t// BR00012 Debtor not found on Purchases\n\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\tstateVariable.setXwg4tx(all(\"-\", 40));\n\t\t}\n\t\t// - REPRESENTATIVE\n\t\tsalespersons.retrieve(stateVariable.getPerson());\n\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t// BR00013 Rep not found on Salespersons\n\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\tstateVariable.setPname(all(\"-\", 34));\n\t\t}\n\t\t// - STATUS\n\t\torderStatusDescription.retrieve(stateVariable.getXwstat());\n\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t// BR00014 Status not found on Order_status_description\n\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\tstateVariable.setXwsdsc(all(\"-\", 20));\n\t\t}\n\t}",
"public String designPN(String nr)\r\n {\r\n String newStr=\"(\";\r\n if(nr.length()!=10){return null;}\r\n else\r\n {\r\n newStr=newStr+nr.substring(0,4)+\")-\";\r\n // System.out.println(\"phase 1 \"+ newStr);\r\n newStr=newStr+nr.substring(4,7)+\"-\";\r\n // System.out.println(\"phase 2 \"+ newStr);\r\n newStr=newStr+nr.substring(7,10);\r\n // System.out.println(\"phase 3 \"+ newStr);\r\n }\r\n return newStr;\r\n\r\n }",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_7() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(4, LENGTH, MIN, MAX, REPLACEMENT), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"public void readArmies(){\n\n for ( j= 0;j<countriesArmyLines.size();j++) {\n String [] armyLine = countriesArmyLines.get(j).split(\" \");\n vertices.get(Integer.parseInt(armyLine[1])-1).addArmies(Integer.parseInt(armyLine[2]));\n System.out.println(\"army \"+vertices.get(j).getNumberArmies());\n }\n // Read countries armies for AI agents\n\n for ( j= 0;j<countriesArmyLines.size();j++) {\n String [] armyLine = countriesArmyLines.get(j).split(\" \");\n allSCountries.get(Integer.parseInt(armyLine[1])).setNumberArmies(Integer.parseInt(armyLine[2]));\n // System.out.println(\"army \"+vertices.get(j).getNumberArmies());\n }\n NState.globalState.allCountries=allSCountries;\n }",
"public static String guessResidueTypeFromFeatureLength(int seqLength,\n int featureLength) {\n float basepairsPerResidue = (Math.abs((float)featureLength/\n (float)seqLength));\n return (basepairsPerResidue > 2.0 ? SequenceI.AA : SequenceI.DNA);\n }",
"void adobe_coeff( CharPtr make, CharPtr model) {\n \n adobe_coeff( make.toString(), model.toString());\n}",
"private static String lllIIllIl(short IIIlIIlllllIIll, String IIIIlIlllllIIll) {\n }",
"public String getRelationIdString(SpatialElement se1, String se1Role, SpatialElement se2, String se2Role, SpatialElement se3, String se3Role) {\n String idString = \"\";\n if (se1 != null && se2 != null && se3 != null) {\n se1.role = se1Role;\n se2.role = se2Role;\n se3.role = se3Role;\n idString = se1.id+\"-\"+se2.id+\"-\"+se3.id;\n }\n else if (se1 != null && se2 != null) {\n se1.role = se1Role;\n se2.role = se2Role;\n idString = se1.id+\"-\"+se2.id+\"-null\";\n }\n else if (se1 != null && se3 != null) {\n se1.role = se1Role;\n se3.role = se3Role;\n idString = se1.id+\"-null-\"+se3.id;\n }\n else if (se2 != null && se3 != null) {\n se2.role = se2Role;\n se3.role = se3Role;\n idString = \"null-\"+se2.id+\"-\"+se3.id;\n }\n return idString;\n }",
"public String[] getVariants_ru(int[] randIds){\n Cursor crs;\n String[] variants_ru = new String[4];\n for(int i = 0; i< 4; i++){\n String[] args = new String[1];\n args[0] = Integer.toString(randIds[i]+1);\n crs = aniDB.getReadableDatabase().rawQuery(\"SELECT name_ru FROM titles WHERE id = ?\",args);\n if(crs.moveToFirst()) {\n variants_ru[i] = crs.getString(crs.getColumnIndex(\"name_ru\"));\n }\n crs.close();\n }\n return variants_ru;\n }",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_9() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tint[][] response = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tint[][] response2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"public void setSpare3(String spare3) {\r\n this.spare3 = spare3;\r\n }",
"public void restricciones(String oraciones){\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Restricciones semanticas\");\n alert.setHeaderText(oraciones);\n alert.showAndWait();\n }",
"void mo8715r(String str, String str2, String str3);",
"static int type_of_inr(String passed){\n\t\tif(general_registers.contains(passed.charAt(4)))\n\t\t\treturn 1;\n\t\telse if(passed.charAt(4)=='M')\n\t\t\treturn 2;\n\t\telse\n\t\t\treturn 0;\n\t}",
"public void setRemark3(java.lang.String _remark3)\r\n {\r\n this._remark3 = _remark3;\r\n }",
"public Recipe(String[] in)\r\n {\r\n double temp;\r\n if (in.length == 3){\r\n this.origQty = in[0];\r\n this.measure = in[1];\r\n this.ingredient = in[2];\r\n this.w_qty = makeDecimal(in[0]);\r\n }\r\n else {if (in.length == 5) {\r\n this.origQty = in[0] + \" \" + in[1];\r\n this.measure = in[2];\r\n this.ingredient = in[3] + \" \" + in[4];\r\n temp = makeDecimal(in[1]);\r\n this.w_qty = Double.parseDouble(in[0])+ temp;\r\n }\r\n else if (in.length == 4) {\r\n if (in[1].contains(\"/\")) {\r\n this.origQty = in[0] + \" \" + in[1];\r\n this.measure = in[2];\r\n this.ingredient = in[3];\r\n temp = makeDecimal(in[1]);\r\n this.w_qty = temp + Double.parseDouble(in[0]);}\r\n else {\r\n this.origQty = in[0];\r\n this.measure = in[1];\r\n this.ingredient = in[2] + \" \" + in[3];\r\n this.w_qty = makeDecimal(in[0]);}\r\n }\r\n }\r\n this.working_measure = measure;\r\n this.final_measure = measure;\r\n }",
"public /* synthetic */ CinemaDescriptionItem(String str, int i2, int i3, f fVar) {\n this(str, (i3 & 2) != 0 ? 3 : i2);\n }",
"private static int _addPossibleValues(int rowNumber, int y, int x, short[][] spareMatrix,String[] rowIds, SudokuModel model) {\r\n\r\n\t\tfor(short i = 0; i <9; i++){\r\n\t\t\tif(!model.restrictionIsSatisfied(y, x, i+1))\r\n\t\t\trowNumber = _addRestrictions(rowNumber,y,x,i,spareMatrix,rowIds);\r\n\t\t}\r\n\t\t\r\n\t\treturn rowNumber;\r\n\t}",
"public static void loadMatric(int matr[][]) throws IOException{\n\n\t\tfor(int i=0;i<7;i++){\n\t\t\tfor(int j=0;j<6;j++){\n\t\t\t\tSystem.out.print(\"INSERISCI\"+i+j+\": \");\n\t\t\t\tSystem.out.flush();\n\t\t\t\tmatr[i][j]=System.in.read()-'0';\n\t\t\t\tSystem.in.skip(2);\n\t\t\t}}}",
"public TextPropDefaultViewModel_ textWithDefaultQuantityRes(@PluralsRes int pluralRes,\n int quantity, Object... formatArgs) {\n onMutation();\n assignedAttributes_epoxyGeneratedModel.set(0);\n textWithDefault_StringAttributeData.setValue(pluralRes, quantity, formatArgs);\n return this;\n }",
"public boolean restrizione14()\r\n\t\tthrows RestrizioniSpecException\r\n\t\t{\r\n\t\tfor (int i = 0; i < this.equivalenzeInput.size(); i++)\r\n\t\t\t{\r\n\t\t\t// si preleva il nome dell'interazione di output connessa a questa componente\r\n\t\t\tAttacDecl attacDecl = this.attacsDeclInput.get(i);\r\n\t\t\tString string = attacDecl.getOutputInteraction();\r\n\t\t\t// si preleva la relativa equivalenza\r\n\t\t\tIEquivalenza equivalenza = this.equivalenzeInput.get(i);\r\n\t\t\t// si preleva l'azione corrispondente a string\r\n\t\t\tAction action = equivalenza.getActionFromName(string);\r\n\t\t\tif (action == null)\r\n\t\t\t\t{\r\n\t\t\t\tString string2 = equivalenza.getAEIdecl().getName();\r\n\t\t\t\tthrow new RestrizioniSpecException(\"The \"+string+\" action of instance \"+\r\n\t\t\t\t\t\tstring2+\" don't found\");\r\n\t\t\t\t}\r\n\t\t\tActionRate actionRate = action.getRate();\r\n\t\t\tif (!(actionRate instanceof RateInf))\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\treturn true;\r\n\t\t}",
"public void setNoOfRelevantLines(int norl) { this.noOfRelevantLines = norl; }",
"void playYearOfPlentyCard(String resource1, String resource2);",
"public int cuantosRenglones() \r\n\t{\r\n\t\tString respuesta = JOptionPane.showInputDialog(\"cuantas renglones quiere\");\r\n\t\tint respuesta1 = Integer.parseInt(respuesta);\r\n\t\treturn respuesta1;\r\n\t}",
"public boolean hasResidues() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"java.lang.String getNum1();",
"static int size_of_rrc(String passed){\n\t\treturn 1;\n\t}",
"public void agregarpal(String n) {\n\n switch (pos) {\n case 0:\n pal1 = n;\n case 1:\n pal2 = n;\n case 2:\n pal3 = n;\n case 3:\n pal4 = n;\n case 4:\n pal5 = n;\n break;\n }//fin switch\n\n pos++;\n }",
"public void int3_m() {\n\t\t\n\t}",
"public static void muestraArreglo(int[] arreglo) {\r\n\t\tfor (int i = 0; i < arreglo.length; i++) {\r\n\t\t\tescribir(\"[\" + arreglo[i] + \"]\", false);\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n\t\tRandom rand = new Random();\n\t\tint first = rand.nextInt(7);\n\t\tint second = rand.nextInt(7);\n\t\tint third = rand.nextInt(7);\n\t\t\n\t\tint middle = rand.nextInt(741);\n\t\t\n\t\tint last = rand.nextInt(9999);\n\t\t\n\t\tString middleString= Integer.toString(middle);\n\t\tString lastString = Integer.toString(last); \n\t\tString firstString = Integer.toString(first);\n\t\tString secondString = Integer.toString(second);\n\t\tString thirdString = Integer.toString(third);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\twhile (middleString.length()<3) {\n\t\t\tmiddleString = \"0\" + middleString;\n\t\t\t\n\t\t}\n\t\t\n\t\twhile (lastString.length()<4){\n\t\t\tlastString = \"0\" + lastString;\n\t\t}\n\t\t\n\t\tSystem.out.println(firstString + secondString + thirdString + \"-\"+ middleString +\"-\"+ lastString);\n\t\t\n\t\t\n\t}",
"public boolean hasResidues() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_8() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(4, LENGTH, MIN, MAX, REPLACEMENT, BASE), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"public String getChoice3(int a){\n String choice2 = choices[a][2];\n return choice2;\n }",
"@Override\n\tpublic void setStreet3(java.lang.String street3) {\n\t\t_candidate.setStreet3(street3);\n\t}",
"static void initSample4(){\n // put values into the sField\n sField[5][4] = \"X\";\n sField[4][5] = \".\";\n sField[3][6] = \"X\";\n sField[2][7] = \"X\";\n sField[1][8] = \"X\";\n \n sField[1][5] = \"O\";\n sField[1][6] = \"O\";\n sField[1][7] = \".\"; \n }",
"private String theFunctionThatSolvesAllProblems(String input) throws IOException {\n\n first = new MyInt[9];\n second = new MyInt[9];\n third = new MyInt[9];\n myPointers = new MyIntPointer[7];\n\n M = new MyInt();\n D = new MyInt();\n C = new MyInt();\n L = new MyInt();\n X = new MyInt();\n V = new MyInt();\n I = new MyInt();\n\n hasI = false;\n hasX = false;\n hasC = false;\n hasM = false;\n hasV = false;\n hasL = false;\n hasD = false;\n\n firstLength = 0;\n secondLength = 0;\n thirdLength = 0;\n\n initializeEquation(input);\n\n return arabic();\n\n }",
"public StrumInstrument(String type, String manufacturer, int nrStrings, double stringSize) {\n super(type, manufacturer);\n this.nrStrings = nrStrings;\n this.stringSize = stringSize;\n }",
"public int[] contarCodons(String seq){\n int [] countCodons=new int[65];\n for (int i=0;i<seq.length()-2;i=i+3){\n String c=seq.substring(i, i+3);\n int j=0;\n while (j<nameCodon.length && nameCodon[j].compareTo(c)!=0) j++;\n if (j<nameCodon.length)\n countCodons[j]++;\n else\n countCodons[64]++;\n }\n return countCodons;\n\n }",
"public void setSecondary3(java.lang.String secondary3) {\n this.secondary3 = secondary3;\n }",
"@Test\n public void execute_nricParameter() throws ParseException {\n //No user input\n execute_parameterPredicate_test(0, \" \", \"nric\", true, false, Collections.emptyList());\n //Single keyword, ignore case, person found.\n execute_parameterPredicate_test(1, \"s1234567A\", \"nric\", true, false, Arrays.asList(ALICE));\n //Single keyword, case sensitive, no one found.\n execute_parameterPredicate_test(0, \"s1234567A\", \"nric\", false, false, Collections.emptyList());\n //Multiple keywords, ignore case, or condition, multiple people found\n execute_parameterPredicate_test(2, \"S1234567a S5234569A\", \"nric\", true, false, Arrays.asList(ALICE, GEORGE));\n //Multiple keywords, ignore case, and condition, no one found\n execute_parameterPredicate_test(0, \"S1234567a S5234569A\", \"nric\", true, true, Collections.emptyList());\n //Multiple keywords, case sensitive, or condition, one person found\n execute_parameterPredicate_test(1, \"S1234567a S5234569A\", \"nric\", false, false, Arrays.asList(GEORGE));\n //Multiple keywords, case sensitive, and condition, no one found\n execute_parameterPredicate_test(0, \"S1234567a S5234569A\", \"nric\", false, true, Collections.emptyList());\n }",
"@Nullable public abstract String loadVerseText(int ari);",
"public void setIDINTERNODC(int value) {\n this.idinternodc = value;\n }",
"public int getImageResourceIdForExercise(Context context){\n\n TypedArray imagesArray = context.getResources().obtainTypedArray(R.array.images_array);\n int id = 0;\n\n if(musclePart == 1) {\n return imagesArray.getResourceId((exeNumber -1),0);\n }else {\n for (int i = 1; i < imagesArray.length(); i++) {\n if(i == (((musclePart - 1) * 6) + exeNumber) - 1){\n id = imagesArray.getResourceId(i,0);\n break;\n }\n }\n }\n imagesArray.recycle();\n return id;\n }",
"static void lxi_to_reg_pair(String passed){\n\t\tchar fourth = passed.charAt(4);\n\t\tif(fourth=='B'){\n\t\t\tregisters.put('B', passed.substring(6,8));\n\t\t\tregisters.put('C', passed.substring(8));\n\t\t}\n\t\telse if(fourth=='D'){\n\t\t\tregisters.put('D', passed.substring(6,8));\n\t\t\tregisters.put('E', passed.substring(8));\n\t\t}\n\t\telse if(fourth=='H'){\n\t\t\tregisters.put('H', passed.substring(6,8));\n\t\t\tregisters.put('L', passed.substring(8));\n\t\t}\n\t}",
"public void mo32111rr(int i) {\n }",
"static int size_of_lxi(String passed){\n\t\treturn 3;\n\t}",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_10() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString[][] response = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, BASE, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tString[][] response2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, BASE, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, BASE, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, BASE, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"public void setResearchno(String researchno) {\r\n\t\tthis.researchno = researchno;\r\n\t}",
"public static void main(String[] args) {\n //The letters are randomly chosen through this block of code with use of ASCII code.\n char let1 = (char) ((int)(Math.random() * 26 + 65));\n char let2 = (char) ((int)(Math.random() * 26 + 65));\n char let3 = (char) ((int)(Math.random() * 26 + 65));\n \n //This generates a number of four digits to follow the letters. \n int num = (int)(Math.random() * 9000 + 999);\n \n //The combination is now printed to the screen through this. \n System.out.println(\"The plate number is \" + let1 + let2 +let3 + num); \n }"
] | [
"0.6329081",
"0.6194227",
"0.5433558",
"0.53454846",
"0.518184",
"0.5128492",
"0.49376035",
"0.48442668",
"0.4724605",
"0.47152042",
"0.46729997",
"0.46720904",
"0.46649334",
"0.46318775",
"0.45997924",
"0.45697337",
"0.4542916",
"0.45292935",
"0.4528893",
"0.4520108",
"0.4519737",
"0.44881666",
"0.44780436",
"0.44735065",
"0.44489574",
"0.44477877",
"0.444215",
"0.44362456",
"0.44323435",
"0.44189802",
"0.44128108",
"0.44005463",
"0.4376711",
"0.43688625",
"0.43648276",
"0.43617478",
"0.43591163",
"0.43416727",
"0.4335052",
"0.43315908",
"0.4329952",
"0.43269566",
"0.43071407",
"0.43052205",
"0.4292204",
"0.4291854",
"0.42805734",
"0.4268324",
"0.42664614",
"0.42613685",
"0.42600182",
"0.42569944",
"0.4249713",
"0.42468822",
"0.42467374",
"0.42442796",
"0.4241471",
"0.42339703",
"0.4233759",
"0.42332256",
"0.42295268",
"0.42280847",
"0.4224324",
"0.42241433",
"0.42238563",
"0.42236635",
"0.42236212",
"0.4223061",
"0.4221378",
"0.42211592",
"0.42188528",
"0.42151642",
"0.4209863",
"0.42045972",
"0.42030525",
"0.42028436",
"0.42011267",
"0.41935775",
"0.41925663",
"0.4190933",
"0.41856375",
"0.4185583",
"0.418238",
"0.4180645",
"0.4177586",
"0.41763222",
"0.41750142",
"0.4172534",
"0.4164202",
"0.41633672",
"0.41617814",
"0.4157633",
"0.41560853",
"0.4150837",
"0.4150766",
"0.4150187",
"0.41422424",
"0.41411856",
"0.4141147",
"0.4139943"
] | 0.54719037 | 2 |
optional string residues = 3; usually be numbered sequentially. | public com.google.protobuf.ByteString
getResiduesBytes() {
java.lang.Object ref = residues_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
residues_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getResidues();",
"public Builder setResidues(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n residues_ = value;\n onChanged();\n return this;\n }",
"public java.lang.String getResidues() {\n java.lang.Object ref = residues_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n residues_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getResidues() {\n java.lang.Object ref = residues_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n residues_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getResiduesBytes() {\n java.lang.Object ref = residues_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n residues_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Builder setResiduesBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n residues_ = value;\n onChanged();\n return this;\n }",
"private List<String> generateN3Optional() {\n\t\treturn list(\n\t\t\t\t\t\"?conceptNode <\" + VitroVocabulary.RDF_TYPE + \"> <\" + SKOSConceptType + \"> .\\n\" +\n\t\t\t\t\t\"?conceptNode <\" + label + \"> ?conceptLabel .\"\n\t \t);\n\n }",
"private void assignMissingResidueIds() {\n \t\tfor (Atom atom: atomVector) {\n \t\t\tif (atom.residue_id == Integer.MIN_VALUE) {\n \t\t\t\tatom.residue_id = atom.authorResidue_id;\n \t\t\t\tatom.nonpolymer = true;\n \t\t\t}\n \t\t}\n \t}",
"boolean hasResidues();",
"static int size_of_xri(String passed){\n\t\treturn 2;\n\t}",
"public void setReserve3(java.lang.String reserve3) {\n this.reserve3 = reserve3;\n }",
"com.google.protobuf.ByteString\n getResiduesBytes();",
"@Test\n void multiConstruct() {\n var multicons = \"(define conCar_a (cons 1 2))(define conCar_b (cons 3 conCar_a))(define conCar_c (cons conCar_b 4))(define conCar_d (cons conCar_b conCar_c))\";\n Main.parseInputString(multicons);\n assertEquals(\"(3 1 . 2)\", Main.parseInputString(\"(display (car conCar_d)) \"));\n }",
"String slotOfCar(String regNumber);",
"public GI3( String[] textParms )\n {\n super( textParms );\n }",
"private void setInstruc(int[] instruc2) \n\t{\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"static int setCon(String input){\n if (input.equals(\"little\")||input.equals(\"1\")) return 1;\n if (input.equals(\"average\")||input.equals(\"2\"))return 2;\n if (input.equals(\"lot\") || input.equals(\"3\")) return 3;\n if (input.equals(\"manual\") || input.equals(\"4\")) return 4;\n throw new RuntimeException(\n \"Illigal second paramter on command line, use : <little,average,lot>\");\n }",
"public void setResidue(char residue)\r\n {\n if (residue == '[')\r\n this.residue = 'n';\r\n else if (residue == ']')\r\n this.residue = 'c';\r\n else\r\n this.residue = residue;\r\n\r\n if (this.residue == 'n' || this.residue == 'c')\r\n throw new IllegalArgumentException(\"N-terminal and C-terminal labels are not currently supported\");\r\n }",
"public Recurso(int idRecurso, String descripcionRecurso){\n this.idRecurso = idRecurso; //Recibimos el numero \n this.descripcionRecurso = descripcionRecurso; //Material que deseamos\n }",
"@Override\n\tpublic Instruction parseInstruction(InstructionSequence seq, State state) \n\t{\n\t\treturn new Iconst3();\n\t}",
"public void printResiduals(double t, double resid1, double resid2);",
"static int size_of_rlc(String passed){\n\t\treturn 1;\n\t}",
"public void setRsv3(String rsv3) {\r\n this.rsv3 = rsv3;\r\n }",
"private void parsePlateau(String s) {\r\n String[] parsedString = s.split(\" \");\r\n plateau[0] = Integer.parseInt(parsedString[0]);\r\n plateau[1] = Integer.parseInt(parsedString[1]);\r\n }",
"public void setExtra3(String extra3) {\n this.extra3 = extra3;\n }",
"public boolean checkR3(String candidateSolution){\n\t\t//Split the string to a number of 9 digits\n\t\tString []candSol = candidateSolution.split(\"(?<=\\\\G.........)\");\n\t\tint candSolIndex = 0;\n\t\t\n\t\twhile(candSolIndex < 9){\n\n\t\t\tString testPart = candSol[candSolIndex];\n\t\t\t//R2 part\n\t\t\tboolean ok = checkIfDublicate(testPart);\n\t\t\tcandSolIndex++;\n\t\t\tif(ok){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\treturn true;\t\t\t\t\n\t\t}\n\t\treturn false;\n\t}",
"public void init() {\n\t\tinit(\"1,0 3,0 5,0 7,0 9,0 0,1 2,1 4,1 6,1 8,1 1,2 3,2 5,2 7,2 9,2 0,3 2,3 4,3 6,3 8,3\", \n\t\t\t \"1,6 3,6 5,6 7,6 9,6 0,7 2,7 4,7 6,7 8,7 1,8 3,8 5,8 7,8 9,8 0,9 2,9 4,9 6,9 8,9\"); \n }",
"public void setIDINTERNOPE1(int value) {\n this.idinternope1 = value;\n }",
"void mo19167a(String str, String str2, int i, String str3, int i2);",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(3, 5, 0, 10, false, 16), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"static void initSample3(){\n // put values into the sField\n sField[3][6] = \"X\";\n sField[4][6] = \"X\";\n sField[5][6] = \"X\";\n sField[6][6] = \"X\";\n sField[7][6] = \".\";\n \n sField[1][5] = \"O\";\n sField[1][6] = \"O\";\n sField[1][7] = \".\";\n sField[1][8] = \"O\";\n }",
"final String getResourceName(int resid) {\n if (am == null)\n return null;\n ResTable.resource_name name = new ResTable.resource_name(null, null, null);\n if (!am.getResources(false).getResourceName(resid, name)) {\n return null;\n }\n String str = null;\n if (name.mPackage != null) {\n str = name.mPackage;\n }\n\n if (name.mType != null) {\n if (str.length() > 0) {\n str += \":\";\n }\n str += name.mType;\n }\n\n if (name.mName != null) {\n if (str.length() > 0) {\n str += \"/\";\n }\n str += name.mName;\n }\n\n return str;\n }",
"public void setRegulations(String regulations) {\n this.regulations = regulations;\n }",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_4() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tint[][] response = roc.generateIntegerSequences(3, 5, 0, 10, false, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tint[][] response2 = roc.generateIntegerSequences(3, 5, 0, 10, false, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(3, 5, 0, 10, false, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(3, 5, 0, 10, false, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"@Test\r\n\tpublic void testPositiveGenerateStrings_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString[] response = roc.generateStrings(10, 5, \"abcd\", false, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tString[] response2 = roc.generateStrings(10, 5, \"abcd\", false, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\r\n\t\t\t\tresponse = roc.generateStrings(10, 5, \"abcd\", false, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateStrings(10, 5, \"abcd\", false, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"private List<String> generateN3Required(VitroRequest vreq) {\n \tList<String> n3Required = list(\n \t getPrefixesString() + \"\\n\" +\n \t \"?subject ?predicate ?conceptNode .\\n\"\n \t);\n \tList<String> inversePredicate = getInversePredicate(vreq);\n\t\t//Adding inverse predicate if it exists\n\t\tif(inversePredicate.size() > 0) {\n\t\t\tn3Required.add(\"?conceptNode <\" + inversePredicate.get(0) + \"> ?subject .\");\n\t\t}\n \treturn n3Required;\n }",
"public static String getResidSnippet(String resident) {\n String snippet = null;\n try {\n JSONObject jsonObject = new JSONObject(resident);\n snippet = jsonObject.getString(\"resid\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n return snippet;\n }",
"@Test public void testParseManyDigits3() {\n String pows10 =\n \"0.00000000000001\\n\"+\n \"1000001\\n\"+\n \"2000001\\n\"+\n \"\";\n double[][] pows10_exp = new double[][] {\n ard(1e-14),\n ard(1000001L),\n ard(2000001L),\n };\n Key k = FVecFactory.makeByteVec(pows10);\n Key r1 = Key.make(\"r1\");\n ParseDataset.parse(r1, k);\n testParsed(r1,pows10_exp);\n }",
"@Test\r\n\tpublic void testPositiveGenerateSignedIntegerSequences_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tHashMap<String,Object> o = roc.generateSignedIntegerSequences(3, 5, 0, 10, false, 16, userData);\r\n\t\t\t\t\r\n\t\t\t\tthis.signedValueTester(roc, i, o, String[][].class, true);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"void mo11024a(int i, int i2, String str);",
"@Override\r\n\tpublic vec3 get3(String ponits) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic List getListByResId(Integer resid) {\n\t\tString sql = \"select g.resid from GroupFunres g where resid = '\" + resid + \"'\";\n\t\tList list = this.queryForList(sql);\n\t\tList idList=new ArrayList();\n\t\tif (list != null && list.size() > 0) {\n\t\t\tfor(int i=0;i<list.size();i++){\n\t\t\t\tidList.add(list.get(i));\n\t\t\t}\n\t\t\treturn idList;\n\t\t}\n\t\treturn null;\n\t}",
"private String insertarCartaNaturalResources() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 0,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 5,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n true,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }",
"@Override\n\tpublic int resid() {\n\t\treturn currnet().resid();\n\t}",
"public static int[][] AssetCreater(String srt) {\n\r\n\t\tint Length = ArrLength(srt);\r\n\r\n\t\tint[][] TempArr = new int[5][Length];\r\n\r\n\t\tint Xoffset = 0;\r\n\r\n\t\t// goes through entire word and if any letter corrisponds with a letter it's\r\n\t\t// testing for\r\n\t\t// it calls a function to add the new symbol to 2d array\r\n\r\n\t\t// I considered commenting all this but I think it's pretty self explanitory\r\n\r\n\t\tfor (int k = 0; k < srt.length(); k++) {\r\n\r\n\t\t\tif (srt.charAt(k) == '0') {\r\n\t\t\t\t// if it's 0 add Zero Matrix to the matrix\r\n\t\t\t\tTempArr = AddToArr(TempArr, Zero, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '1') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, One, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '2') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Two, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '3') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Three, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '4') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Four, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '5') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Five, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '6') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Six, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '7') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Seven, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '8') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Eight, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '9') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Nine, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'a') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ALetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'b') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, BLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'c') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, CLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'd') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, DLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'e') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ELetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'f') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, FLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'g') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, GLetter, 4, Xoffset);\r\n\r\n\t\t\t\t// G is a bigger number so I just add 1 to offset\r\n\t\t\t\tXoffset += 1;\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'h') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, HLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'i') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ILetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'j') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, JLetter, 4, Xoffset);\r\n\r\n\t\t\t\tXoffset += 1;\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'k') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, KLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'l') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, LLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'm') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, MLetter, 5, Xoffset);\r\n\r\n\t\t\t\tXoffset += 2;\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'n') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, NLetter, 4, Xoffset);\r\n\r\n\t\t\t\tXoffset += 1;\r\n\t\t\t} else if (srt.charAt(k) == 'o') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, OLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'p') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, PLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'q') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, QLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'r') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, RLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 's') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, SLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 't') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, TLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'u') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ULetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'v') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, VLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'w') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, WLetter, 5, Xoffset);\r\n\r\n\t\t\t\tXoffset += 2;\r\n\t\t\t} else if (srt.charAt(k) == 'x') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, XLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'y') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, YLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'z') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ZLetter, 4, Xoffset);\r\n\r\n\t\t\t\tXoffset += 1;\r\n\t\t\t} else if (srt.charAt(k) == ' ') {\r\n\t\t\t\tXoffset -= 2;\r\n\t\t\t\t// space is too big number so I just sub 2 from offset\r\n\r\n\t\t\t} else if (srt.charAt(k) == '-') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, DashLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == ':') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ColonLetter, 3, Xoffset);\r\n\r\n\t\t\t}\r\n\r\n\t\t\tXoffset += 4;\r\n\t\t}\r\n\t\treturn TempArr;\r\n\t}",
"private static void initSet1(String[] set1) {\n\t\tset1[0] = \"rs36129689\";\n\t\tset1[1] = \"rs36153986\";\n\t\tset1[2] = \"rs493934\";\n\t\tset1[3] = \"rs36146958\";\n\t\tset1[4] = \"rs36197089\";\n\t\tset1[5] = \"rs35773247\";\n\t\tset1[6] = \"rs35346884\";\n\t\tset1[7] = \"rs493040\";\n\t\tset1[8] = \"rs35473000\";\n\t\tset1[9] = \"rs123456\";\n\t\tset1[10] = \"rs1234567\";\n\t\tset1[11] = \"rs12345678\";\n\t\tset1[12] = \"rs1234234\";\n\t\tset1[13] = \"rs492232\";\n\t\tset1[14] = \"rs492184\";\n\t\tset1[15] = \"rs123123\";\n\t}",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_5() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString[][] response = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tString[][] response2 = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void setText(String text) {\n \tif (_assocModel == null) return;\n\t\tString mult;\n\t\tPattern p = Pattern.compile(\"([\\\\d]|\\\\Q*\\\\E)([.]{2}+([\\\\d]|\\\\Q*\\\\E))?\");\t// regex for multiplicities: (digit | *) + optional(.. (digit | *))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// can use a Collection to handle multiplicities of *; we really only care about\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the upper bound also\n\t\tMatcher m = p.matcher(text);\n\t\t// regex didn't find anything, so we'll assign a default multiplicity\n\t\tif (!m.find() || m.group().length() < 0) {\n\t\t\tmult=\"1\";\n\t\t}\n\t\telse mult = m.group();\n\t\t_assocModel.setMultiplicity(mult);\n\t\tsuper.setText(mult);\n\t}",
"public Integer getResnr() {\n\t\treturn this.resnr;\n\t}",
"static void perform_xri(String passed){\n\t\tint type = type_of_xri(passed);\n\t\tif(type==1)\n\t\t\txri_with_acc(passed);\n\t}",
"public String designPN(String nr)\r\n {\r\n String newStr=\"(\";\r\n if(nr.length()!=10){return null;}\r\n else\r\n {\r\n newStr=newStr+nr.substring(0,4)+\")-\";\r\n // System.out.println(\"phase 1 \"+ newStr);\r\n newStr=newStr+nr.substring(4,7)+\"-\";\r\n // System.out.println(\"phase 2 \"+ newStr);\r\n newStr=newStr+nr.substring(7,10);\r\n // System.out.println(\"phase 3 \"+ newStr);\r\n }\r\n return newStr;\r\n\r\n }",
"private void inzsr() {\n\t\tid1Ctdta = 1;\n\t\tstrCtdta = \"Each KGS \";\n\t\tfor (int idxCtdta = 1; idxCtdta <= 1; idxCtdta++) {\n\t\t\tum[idxCtdta] = subString(strCtdta, id1Ctdta, 11);\n\t\t\tid1Ctdta = Integer.valueOf(id1Ctdta + 11);\n\t\t}\n\t\t// Initialise message subfile\n\t\tnmfkpinds.setPgmInd32(true);\n\t\tstateVariable.setZzpgm(replaceStr(stateVariable.getZzpgm(), 1, 8, \"WWCONDET\"));\n\t\t// - Set date\n\t\tstateVariable.setZzdate(getDate().toInt());\n\t\t// -\n\t\t// - CONTRACT\n\t\tcontractHeader.retrieve(stateVariable.getXwordn());\n\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t// - CUSTOMER\n\t\tpurchases.retrieve(stateVariable.getXwbccd());\n\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t// BR00012 Debtor not found on Purchases\n\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\tstateVariable.setXwg4tx(all(\"-\", 40));\n\t\t}\n\t\t// - REPRESENTATIVE\n\t\tsalespersons.retrieve(stateVariable.getPerson());\n\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t// BR00013 Rep not found on Salespersons\n\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\tstateVariable.setPname(all(\"-\", 34));\n\t\t}\n\t\t// - STATUS\n\t\torderStatusDescription.retrieve(stateVariable.getXwstat());\n\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t// BR00014 Status not found on Order_status_description\n\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\tstateVariable.setXwsdsc(all(\"-\", 20));\n\t\t}\n\t}",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_7() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(4, LENGTH, MIN, MAX, REPLACEMENT), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"public static String guessResidueTypeFromFeatureLength(int seqLength,\n int featureLength) {\n float basepairsPerResidue = (Math.abs((float)featureLength/\n (float)seqLength));\n return (basepairsPerResidue > 2.0 ? SequenceI.AA : SequenceI.DNA);\n }",
"void adobe_coeff( CharPtr make, CharPtr model) {\n \n adobe_coeff( make.toString(), model.toString());\n}",
"public void readArmies(){\n\n for ( j= 0;j<countriesArmyLines.size();j++) {\n String [] armyLine = countriesArmyLines.get(j).split(\" \");\n vertices.get(Integer.parseInt(armyLine[1])-1).addArmies(Integer.parseInt(armyLine[2]));\n System.out.println(\"army \"+vertices.get(j).getNumberArmies());\n }\n // Read countries armies for AI agents\n\n for ( j= 0;j<countriesArmyLines.size();j++) {\n String [] armyLine = countriesArmyLines.get(j).split(\" \");\n allSCountries.get(Integer.parseInt(armyLine[1])).setNumberArmies(Integer.parseInt(armyLine[2]));\n // System.out.println(\"army \"+vertices.get(j).getNumberArmies());\n }\n NState.globalState.allCountries=allSCountries;\n }",
"private static String lllIIllIl(short IIIlIIlllllIIll, String IIIIlIlllllIIll) {\n }",
"public String getRelationIdString(SpatialElement se1, String se1Role, SpatialElement se2, String se2Role, SpatialElement se3, String se3Role) {\n String idString = \"\";\n if (se1 != null && se2 != null && se3 != null) {\n se1.role = se1Role;\n se2.role = se2Role;\n se3.role = se3Role;\n idString = se1.id+\"-\"+se2.id+\"-\"+se3.id;\n }\n else if (se1 != null && se2 != null) {\n se1.role = se1Role;\n se2.role = se2Role;\n idString = se1.id+\"-\"+se2.id+\"-null\";\n }\n else if (se1 != null && se3 != null) {\n se1.role = se1Role;\n se3.role = se3Role;\n idString = se1.id+\"-null-\"+se3.id;\n }\n else if (se2 != null && se3 != null) {\n se2.role = se2Role;\n se3.role = se3Role;\n idString = \"null-\"+se2.id+\"-\"+se3.id;\n }\n return idString;\n }",
"public String[] getVariants_ru(int[] randIds){\n Cursor crs;\n String[] variants_ru = new String[4];\n for(int i = 0; i< 4; i++){\n String[] args = new String[1];\n args[0] = Integer.toString(randIds[i]+1);\n crs = aniDB.getReadableDatabase().rawQuery(\"SELECT name_ru FROM titles WHERE id = ?\",args);\n if(crs.moveToFirst()) {\n variants_ru[i] = crs.getString(crs.getColumnIndex(\"name_ru\"));\n }\n crs.close();\n }\n return variants_ru;\n }",
"public void setSpare3(String spare3) {\r\n this.spare3 = spare3;\r\n }",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_9() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tint[][] response = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tint[][] response2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"public void restricciones(String oraciones){\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Restricciones semanticas\");\n alert.setHeaderText(oraciones);\n alert.showAndWait();\n }",
"void mo8715r(String str, String str2, String str3);",
"public void setRemark3(java.lang.String _remark3)\r\n {\r\n this._remark3 = _remark3;\r\n }",
"public /* synthetic */ CinemaDescriptionItem(String str, int i2, int i3, f fVar) {\n this(str, (i3 & 2) != 0 ? 3 : i2);\n }",
"static int type_of_inr(String passed){\n\t\tif(general_registers.contains(passed.charAt(4)))\n\t\t\treturn 1;\n\t\telse if(passed.charAt(4)=='M')\n\t\t\treturn 2;\n\t\telse\n\t\t\treturn 0;\n\t}",
"public Recipe(String[] in)\r\n {\r\n double temp;\r\n if (in.length == 3){\r\n this.origQty = in[0];\r\n this.measure = in[1];\r\n this.ingredient = in[2];\r\n this.w_qty = makeDecimal(in[0]);\r\n }\r\n else {if (in.length == 5) {\r\n this.origQty = in[0] + \" \" + in[1];\r\n this.measure = in[2];\r\n this.ingredient = in[3] + \" \" + in[4];\r\n temp = makeDecimal(in[1]);\r\n this.w_qty = Double.parseDouble(in[0])+ temp;\r\n }\r\n else if (in.length == 4) {\r\n if (in[1].contains(\"/\")) {\r\n this.origQty = in[0] + \" \" + in[1];\r\n this.measure = in[2];\r\n this.ingredient = in[3];\r\n temp = makeDecimal(in[1]);\r\n this.w_qty = temp + Double.parseDouble(in[0]);}\r\n else {\r\n this.origQty = in[0];\r\n this.measure = in[1];\r\n this.ingredient = in[2] + \" \" + in[3];\r\n this.w_qty = makeDecimal(in[0]);}\r\n }\r\n }\r\n this.working_measure = measure;\r\n this.final_measure = measure;\r\n }",
"public TextPropDefaultViewModel_ textWithDefaultQuantityRes(@PluralsRes int pluralRes,\n int quantity, Object... formatArgs) {\n onMutation();\n assignedAttributes_epoxyGeneratedModel.set(0);\n textWithDefault_StringAttributeData.setValue(pluralRes, quantity, formatArgs);\n return this;\n }",
"private static int _addPossibleValues(int rowNumber, int y, int x, short[][] spareMatrix,String[] rowIds, SudokuModel model) {\r\n\r\n\t\tfor(short i = 0; i <9; i++){\r\n\t\t\tif(!model.restrictionIsSatisfied(y, x, i+1))\r\n\t\t\trowNumber = _addRestrictions(rowNumber,y,x,i,spareMatrix,rowIds);\r\n\t\t}\r\n\t\t\r\n\t\treturn rowNumber;\r\n\t}",
"public boolean restrizione14()\r\n\t\tthrows RestrizioniSpecException\r\n\t\t{\r\n\t\tfor (int i = 0; i < this.equivalenzeInput.size(); i++)\r\n\t\t\t{\r\n\t\t\t// si preleva il nome dell'interazione di output connessa a questa componente\r\n\t\t\tAttacDecl attacDecl = this.attacsDeclInput.get(i);\r\n\t\t\tString string = attacDecl.getOutputInteraction();\r\n\t\t\t// si preleva la relativa equivalenza\r\n\t\t\tIEquivalenza equivalenza = this.equivalenzeInput.get(i);\r\n\t\t\t// si preleva l'azione corrispondente a string\r\n\t\t\tAction action = equivalenza.getActionFromName(string);\r\n\t\t\tif (action == null)\r\n\t\t\t\t{\r\n\t\t\t\tString string2 = equivalenza.getAEIdecl().getName();\r\n\t\t\t\tthrow new RestrizioniSpecException(\"The \"+string+\" action of instance \"+\r\n\t\t\t\t\t\tstring2+\" don't found\");\r\n\t\t\t\t}\r\n\t\t\tActionRate actionRate = action.getRate();\r\n\t\t\tif (!(actionRate instanceof RateInf))\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\treturn true;\r\n\t\t}",
"public static void loadMatric(int matr[][]) throws IOException{\n\n\t\tfor(int i=0;i<7;i++){\n\t\t\tfor(int j=0;j<6;j++){\n\t\t\t\tSystem.out.print(\"INSERISCI\"+i+j+\": \");\n\t\t\t\tSystem.out.flush();\n\t\t\t\tmatr[i][j]=System.in.read()-'0';\n\t\t\t\tSystem.in.skip(2);\n\t\t\t}}}",
"public void setNoOfRelevantLines(int norl) { this.noOfRelevantLines = norl; }",
"void playYearOfPlentyCard(String resource1, String resource2);",
"public int cuantosRenglones() \r\n\t{\r\n\t\tString respuesta = JOptionPane.showInputDialog(\"cuantas renglones quiere\");\r\n\t\tint respuesta1 = Integer.parseInt(respuesta);\r\n\t\treturn respuesta1;\r\n\t}",
"java.lang.String getNum1();",
"static int size_of_rrc(String passed){\n\t\treturn 1;\n\t}",
"public boolean hasResidues() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public void agregarpal(String n) {\n\n switch (pos) {\n case 0:\n pal1 = n;\n case 1:\n pal2 = n;\n case 2:\n pal3 = n;\n case 3:\n pal4 = n;\n case 4:\n pal5 = n;\n break;\n }//fin switch\n\n pos++;\n }",
"public void int3_m() {\n\t\t\n\t}",
"public static void muestraArreglo(int[] arreglo) {\r\n\t\tfor (int i = 0; i < arreglo.length; i++) {\r\n\t\t\tescribir(\"[\" + arreglo[i] + \"]\", false);\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n\t\tRandom rand = new Random();\n\t\tint first = rand.nextInt(7);\n\t\tint second = rand.nextInt(7);\n\t\tint third = rand.nextInt(7);\n\t\t\n\t\tint middle = rand.nextInt(741);\n\t\t\n\t\tint last = rand.nextInt(9999);\n\t\t\n\t\tString middleString= Integer.toString(middle);\n\t\tString lastString = Integer.toString(last); \n\t\tString firstString = Integer.toString(first);\n\t\tString secondString = Integer.toString(second);\n\t\tString thirdString = Integer.toString(third);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\twhile (middleString.length()<3) {\n\t\t\tmiddleString = \"0\" + middleString;\n\t\t\t\n\t\t}\n\t\t\n\t\twhile (lastString.length()<4){\n\t\t\tlastString = \"0\" + lastString;\n\t\t}\n\t\t\n\t\tSystem.out.println(firstString + secondString + thirdString + \"-\"+ middleString +\"-\"+ lastString);\n\t\t\n\t\t\n\t}",
"public String getChoice3(int a){\n String choice2 = choices[a][2];\n return choice2;\n }",
"public boolean hasResidues() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"@Override\n\tpublic void setStreet3(java.lang.String street3) {\n\t\t_candidate.setStreet3(street3);\n\t}",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_8() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(4, LENGTH, MIN, MAX, REPLACEMENT, BASE), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"private String theFunctionThatSolvesAllProblems(String input) throws IOException {\n\n first = new MyInt[9];\n second = new MyInt[9];\n third = new MyInt[9];\n myPointers = new MyIntPointer[7];\n\n M = new MyInt();\n D = new MyInt();\n C = new MyInt();\n L = new MyInt();\n X = new MyInt();\n V = new MyInt();\n I = new MyInt();\n\n hasI = false;\n hasX = false;\n hasC = false;\n hasM = false;\n hasV = false;\n hasL = false;\n hasD = false;\n\n firstLength = 0;\n secondLength = 0;\n thirdLength = 0;\n\n initializeEquation(input);\n\n return arabic();\n\n }",
"static void initSample4(){\n // put values into the sField\n sField[5][4] = \"X\";\n sField[4][5] = \".\";\n sField[3][6] = \"X\";\n sField[2][7] = \"X\";\n sField[1][8] = \"X\";\n \n sField[1][5] = \"O\";\n sField[1][6] = \"O\";\n sField[1][7] = \".\"; \n }",
"public StrumInstrument(String type, String manufacturer, int nrStrings, double stringSize) {\n super(type, manufacturer);\n this.nrStrings = nrStrings;\n this.stringSize = stringSize;\n }",
"public void setSecondary3(java.lang.String secondary3) {\n this.secondary3 = secondary3;\n }",
"public int[] contarCodons(String seq){\n int [] countCodons=new int[65];\n for (int i=0;i<seq.length()-2;i=i+3){\n String c=seq.substring(i, i+3);\n int j=0;\n while (j<nameCodon.length && nameCodon[j].compareTo(c)!=0) j++;\n if (j<nameCodon.length)\n countCodons[j]++;\n else\n countCodons[64]++;\n }\n return countCodons;\n\n }",
"@Test\n public void execute_nricParameter() throws ParseException {\n //No user input\n execute_parameterPredicate_test(0, \" \", \"nric\", true, false, Collections.emptyList());\n //Single keyword, ignore case, person found.\n execute_parameterPredicate_test(1, \"s1234567A\", \"nric\", true, false, Arrays.asList(ALICE));\n //Single keyword, case sensitive, no one found.\n execute_parameterPredicate_test(0, \"s1234567A\", \"nric\", false, false, Collections.emptyList());\n //Multiple keywords, ignore case, or condition, multiple people found\n execute_parameterPredicate_test(2, \"S1234567a S5234569A\", \"nric\", true, false, Arrays.asList(ALICE, GEORGE));\n //Multiple keywords, ignore case, and condition, no one found\n execute_parameterPredicate_test(0, \"S1234567a S5234569A\", \"nric\", true, true, Collections.emptyList());\n //Multiple keywords, case sensitive, or condition, one person found\n execute_parameterPredicate_test(1, \"S1234567a S5234569A\", \"nric\", false, false, Arrays.asList(GEORGE));\n //Multiple keywords, case sensitive, and condition, no one found\n execute_parameterPredicate_test(0, \"S1234567a S5234569A\", \"nric\", false, true, Collections.emptyList());\n }",
"@Nullable public abstract String loadVerseText(int ari);",
"public void setIDINTERNODC(int value) {\n this.idinternodc = value;\n }",
"static void lxi_to_reg_pair(String passed){\n\t\tchar fourth = passed.charAt(4);\n\t\tif(fourth=='B'){\n\t\t\tregisters.put('B', passed.substring(6,8));\n\t\t\tregisters.put('C', passed.substring(8));\n\t\t}\n\t\telse if(fourth=='D'){\n\t\t\tregisters.put('D', passed.substring(6,8));\n\t\t\tregisters.put('E', passed.substring(8));\n\t\t}\n\t\telse if(fourth=='H'){\n\t\t\tregisters.put('H', passed.substring(6,8));\n\t\t\tregisters.put('L', passed.substring(8));\n\t\t}\n\t}",
"public int getImageResourceIdForExercise(Context context){\n\n TypedArray imagesArray = context.getResources().obtainTypedArray(R.array.images_array);\n int id = 0;\n\n if(musclePart == 1) {\n return imagesArray.getResourceId((exeNumber -1),0);\n }else {\n for (int i = 1; i < imagesArray.length(); i++) {\n if(i == (((musclePart - 1) * 6) + exeNumber) - 1){\n id = imagesArray.getResourceId(i,0);\n break;\n }\n }\n }\n imagesArray.recycle();\n return id;\n }",
"public void mo32111rr(int i) {\n }",
"static int size_of_lxi(String passed){\n\t\treturn 3;\n\t}",
"public static void main(String[] args) {\n //The letters are randomly chosen through this block of code with use of ASCII code.\n char let1 = (char) ((int)(Math.random() * 26 + 65));\n char let2 = (char) ((int)(Math.random() * 26 + 65));\n char let3 = (char) ((int)(Math.random() * 26 + 65));\n \n //This generates a number of four digits to follow the letters. \n int num = (int)(Math.random() * 9000 + 999);\n \n //The combination is now printed to the screen through this. \n System.out.println(\"The plate number is \" + let1 + let2 +let3 + num); \n }",
"public void setResearchno(String researchno) {\r\n\t\tthis.researchno = researchno;\r\n\t}",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_10() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString[][] response = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, BASE, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tString[][] response2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, BASE, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, BASE, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, BASE, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}"
] | [
"0.632804",
"0.6192523",
"0.54703444",
"0.54320204",
"0.53430146",
"0.512601",
"0.49395695",
"0.48429784",
"0.4722289",
"0.47159922",
"0.46766278",
"0.46699157",
"0.46671402",
"0.4631843",
"0.4602065",
"0.45691842",
"0.4545522",
"0.45275655",
"0.4526531",
"0.45224777",
"0.45165515",
"0.44878346",
"0.44798192",
"0.44746506",
"0.4452068",
"0.4451284",
"0.44419998",
"0.4435498",
"0.4435365",
"0.44183835",
"0.44146082",
"0.43992442",
"0.43743503",
"0.4366774",
"0.43646222",
"0.4363635",
"0.43602377",
"0.43424073",
"0.43341428",
"0.43334198",
"0.43322542",
"0.4321793",
"0.43049264",
"0.4304571",
"0.42924526",
"0.42903167",
"0.42785272",
"0.42693284",
"0.42629048",
"0.42606726",
"0.4259107",
"0.42573783",
"0.42485988",
"0.42480448",
"0.4245962",
"0.42444512",
"0.4242475",
"0.42358047",
"0.4231975",
"0.4231563",
"0.42311695",
"0.422844",
"0.42273057",
"0.42271665",
"0.42261523",
"0.4224413",
"0.42234236",
"0.4222285",
"0.42197564",
"0.42193034",
"0.42184776",
"0.42145425",
"0.42101064",
"0.4205031",
"0.42048913",
"0.42003375",
"0.4199567",
"0.41949332",
"0.41934097",
"0.4189292",
"0.41866213",
"0.4185099",
"0.4182001",
"0.41813993",
"0.41809544",
"0.4176753",
"0.417664",
"0.41718188",
"0.4167094",
"0.41648847",
"0.41612086",
"0.41609636",
"0.41544276",
"0.41524765",
"0.41507205",
"0.4148269",
"0.41443336",
"0.41425788",
"0.41406265",
"0.41387102"
] | 0.5179291 | 5 |
optional int32 target_pos = 5; Index in target protein that this decoy protein is from | public boolean hasTargetPos() {
return ((bitField0_ & 0x00000008) == 0x00000008);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getTargetPos();",
"public int getTargetPos() {\n return targetPos_;\n }",
"public int getTargetPos() {\n return targetPos_;\n }",
"public void setTargetPos(final int target) {\n \n switch(target){\n // Set target position right from current position\n case T_RIGHT:\n if(this.columnT < this.buffer.get(lineT).size()) // Check if position exists\n this.columnT++;\n break;\n // Set target position left from current position\n case T_LEFT:\n if(this.columnT > 0) // Check if position exists\n this.columnT--;\n break;\n // Set target position up from current position\n case T_UP:\n if(this.lineT > 0) { // Check if position exists\n this.lineT--;\n if(this.columnT > this.buffer.get(lineT).size()) // Check for correct positioning\n this.columnT = this.buffer.get(lineT).size();\n }\n break;\n // Set target position down from current position\n case T_DOWN:\n if(this.lineT < this.buffer.size() - 1) { // Check if position exists\n this.lineT++;\n if(this.columnT > this.buffer.get(lineT).size()) // Check for correct positioning\n this.columnT = this.buffer.get(lineT).size();\n }\n break;\n // Set target position to first position\n case T_HOME:\n this.columnT = 0;\n break;\n // Set target position to last position\n case T_END:\n this.columnT = this.buffer.get(lineT).size();\n break;\n default:\n System.out.println(\"Invalid target position\");\n break;\n }\n }",
"@Override\n public int getTargetPosition() {\n return 0;\n }",
"public Contig getTarget() { return target; }",
"N getTarget();",
"public void setTargetPosition(double position){\n targetPosition = position;\n }",
"@InVertex\n Object getTarget();",
"public ObjectSequentialNumber getTarget() {\n return target;\n }",
"public int getTargetArgIndex() {\n\t\treturn this.targetArgIndex;\n\t}",
"TrgPlace getTarget();",
"public Builder setTargetPos(int value) {\n bitField0_ |= 0x00000008;\n targetPos_ = value;\n onChanged();\n return this;\n }",
"private int getIndex(T target) {\r\n for (int i = 0; i < SIZE; i++) {\r\n if (tree[i] == target) {\r\n return i;\r\n }\r\n }\r\n return -1;\r\n }",
"public Integer getTargetID()\r\n\t\t{ return mapping.getTargetId(); }",
"BlockPos getPosTarget() {\n BlockPosDim loc = LocationGpsCard.getPosition(inventory.getStackInSlot(0));\n if (loc != null && loc.getPos() != null) {\n return loc.getPos();\n }\n return this.getBlockPos();\n }",
"@Override\n public Vertex getTarget() {\n return targetVertex;\n }",
"public void SetTargetOffset(int target_offset) {\n target_offset_ = target_offset;\n }",
"public int advanceStartPosition(int target) throws IOException {\n // Naive implementations; subclasses may provide a faster version.\n int pos;\n do {\n pos = nextStartPosition();\n } while (pos < target && pos != NO_MORE_POSITIONS);\n return pos;\n }",
"private Vector2 findTarget() \r\n\t{\r\n\t\tVector2 tempVector = new Vector2(1,1);\r\n\t\ttempVector.setLength(Constants.RANGEDSPEED); //TODO make so it can be changed when level difficulty increases\r\n\t\ttempVector.setAngle(rotation + 90);\r\n\t\treturn tempVector;\r\n\t}",
"public EntityID nextTarget(Set<StandardEntity> victims) {\n\n// Clustering clustering = this.moduleManager.getModule(SampleModuleKey.AMBULANCE_MODULE_CLUSTERING);\n\n// if (this.clusterIndex == -1) {\n this.clusterIndex = clustering.getClusterIndex(this.agentInfo.getID());\n// }\n\n\n Collection<StandardEntity> elements = clustering.getClusterEntities(this.clusterIndex);\n\n calculateMapCenters(this.clusterIndex, elements);\n\n\n targetsMap.clear();\n\n if (previousTarget != null && !victims.contains(worldInfo.getEntity(previousTarget.getVictimID()))) {\n previousTarget = null;\n }\n\n\n refreshTargetsMap(victims, targetsMap);\n\n calculateDecisionParameters(victims, targetsMap);\n\n calculateVictimsCostValue();\n\n\n AmbulanceTarget bestTarget = null;\n bestTarget = findBestVictim(targetsMap, elements);\n\n //considering inertia for the current target to prevent loop in target selection\n if (previousTarget != null && victims.contains(worldInfo.getEntity(previousTarget.getVictimID()))) {\n if (bestTarget != null && !bestTarget.getVictimID().equals(previousTarget.getVictimID())) {\n Human bestHuman = (Human) worldInfo.getEntity(bestTarget.getVictimID());\n Human previousHuman = (Human) worldInfo.getEntity(previousTarget.getVictimID());\n\n double bestHumanCost = pathPlanning.setFrom(agentInfo.getPosition()).setDestination(bestHuman.getPosition()).calc().getDistance();\n double previousHumanCost = pathPlanning.setFrom(agentInfo.getPosition()).setDestination(previousHuman.getPosition()).calc().getDistance();\n if (previousHumanCost < bestHumanCost) {\n bestTarget = previousTarget;\n }\n }\n }\n\n previousTarget = bestTarget;\n\n if (bestTarget != null) {\n return bestTarget.getVictimID();\n } else {\n return null;\n }\n\n }",
"boolean hasTargetPos();",
"public Integer getTargetid() {\n return targetid;\n }",
"public Point getTarget() {\n\t\treturn _target;\n\t}",
"@Test\n\t\t\tpublic void testTargetOneStep()\n\t\t\t{\n\t\t\t\t//Test one step and check for the right space\n\t\t\t\tboard.calcTargets(0, 7, 1);\n\t\t\t\tSet<BoardCell> targets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(1, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(1, 7)));\n\n\t\t\t\t// Test one step near a door with the incorrect direction\n\t\t\t\tboard.calcTargets(13, 6, 1);\n\t\t\t\ttargets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(3, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(14, 6)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(13, 5)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(13, 7)));\n\t\t\t\t\n\t\t\t\t\n\t\t\t}",
"private TrackingResult followTarget(Rect target)\n\t{\n\t\t// Clear any existing target rectangle.\n\t\tcamera.addTarget(null);\n\t\t\n\t\t// Outline the target being tracked.\n\t\tcamera.addTarget(target);\n\t\t\n\t\t// This is field of view size.\n\t\tSize imageSize = camera.getImageSize();\n\t\t\n\t\t// get size of target outline area.\n\t\tint targetArea = target.height * target.width;\n\t\t\n\t\t// If we have just acquired target, record initial size. Size comparison\n\t\t// is how we determine distance to target.\n\t\t\n\t\tif (initialTargetArea == 0) initialTargetArea = targetArea;\n\t\t\n\t\t// Compute center point of target in the camera view image.\n\t\tint targetCenterX = target.x + target.width / 2;\n\t\tint imageCenterX = (int) (imageSize.width / 2);\n\t\t\n\t\t// offset minus indicates target is left of image center,\n\t\t// plus to the right. If target is left, drone needs to turn\n\t\t// left to center the target in the image which is a minus yaw value.\n\t\t\n\t\tint offset = targetCenterX - imageCenterX;\n\n\t\tlogger.fine(\"offset=\" + offset);\n\t\t\n\t\toffset *= .25;\t// Scale offset down;\n\t\t\n\t\t// Determine change in distance from last target acquisition.\n\t\t\n\t\tdouble distance = initialTargetArea - targetArea;\n\t\t\n\t\tlogger.fine(String.format(\"ia=%d ta=%d dist=%.0f\", initialTargetArea, targetArea, distance));\n\t\t\n\t\t//initialTargetArea = targetArea;\n\t\t\n\t\tdouble scaleFactor = 0.0;\n\t\t\n\t\t// If distance is small, call it good otherwise the drone\n\t\t// hunts back and forth. Value must be determined by testing.\n\t\t\n\t\tif (Math.abs(distance) < 2000.0) \n\t\t\tdistance = 0.0;\n\t\telse\n\t\t{\n\t\t\t// Scale distance change to a fwd/back movement value of 20% for flyRC command.\n\t\t\t// For some unknown reason, need more power to fly forward than back and even\n\t\t\t// with 30%, forward seems not reliable.\n\t\t\t// scaleFactor must be positive to preserve the sign of distance value.\n\t\t\t\n\t\t\tscaleFactor = 20.0 / Math.abs(distance);\n\t\t\n\t\t\tdistance = distance * scaleFactor;\n\t\t}\n\t\t\n\t\tlogger.fine(String.format(\"dist=%.1f fact=%f\", distance, scaleFactor));\n\t\t\n\t\treturn new TrackingResult(offset, (int) distance);\n\t}",
"public long getTargetId() {\n return targetId;\n }",
"@Override\r\n\t\r\n\t\r\n\t\r\n\tpublic int[] locate(int target) {\r\n\t\tint low = 0; \r\n\t\tint high = length()- 1;\r\n\t\t\r\n\t\twhile ( low <= high) {\r\n\t\t\tint mid = ((low + high)/2);\r\n\t\t\tint value = inspect(mid,0);\r\n\t\t\t\t\t\r\n\t\t\tif ( value == target) {\r\n\t\t\t\treturn new int[] {mid,0};\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\telse if (value < target) {\r\n\t\t\t\tlow = mid +1;\r\n\t\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\thigh = mid -1;\r\n\t\t}\r\n\t\t\r\n\t}\r\n\t\treturn binarySearch(high, target);\r\n\t}",
"public void setTarget(ObjectSequentialNumber target) {\n this.target = target;\n }",
"public void setTargeted() {\n targeted ++;\n }",
"public Point getTarget()\n\t{\n\t\treturn this.target;\n\t}",
"public Living getTarget();",
"public void setTargetid(Integer targetid) {\n this.targetid = targetid;\n }",
"public Entity.ID getTargetID() {\n return targetID;\n }",
"public EntityID getTarget() {\n\t\treturn target.getValue();\n\t}",
"public abstract int getSourceIndex(int index);",
"private int findPos(byte[] contents, String target)\n {\n String contentsStr = null;\n try\n {\n contentsStr = new String(contents, \"ISO-8859-1\");\n }\n catch (UnsupportedEncodingException e)\n {\n e.printStackTrace();\n }\n return contentsStr.indexOf(target);\n }",
"@Override\n\tpublic int getTargetParameter() {\n\t\treturn 0;\n\t}",
"public Integer getTargetId() {\n\t\treturn targetId;\n\t}",
"public static void testDiGui(int[] candidates, int target, int start) {\n\n if (target == 0) {\n return;\n } else if (target < 0) {\n return;\n } else {\n for (int i = start; i < candidates.length && candidates[i] > 0; i++) {\n\n System.out.println(candidates[i]);\n target = candidates[i];\n i++;\n testDiGui(candidates, target, i);\n target = -1;\n }\n }\n\n System.out.println(target);\n }",
"public StateID GetTarget()\n {\n return targetID;\n }",
"public int findPosition(int[] nums, int target) {\n // write your code here\n if (nums == null || nums.length == 0) return -1;\n int start = 0, end = nums.length - 1;\n while (start <= end) {\n int mid = start + (end - start) / 2;\n if (nums[mid] == target) return mid;\n if (nums[mid] < target)\n start = mid + 1;\n else\n end = mid - 1;\n }\n return -1;\n }",
"public void setTargetPosition(float x, float y){\r\n this.targetX = x;\r\n this.targetY = y;\r\n }",
"public Long getTargetId() {\r\n return targetId;\r\n }",
"String getTarget();",
"String getTarget();",
"public Player getTarget() {\n return target;\n }",
"public Vector getTargets(){\n return targets;\n }",
"private int getPosition(int[][] matrix, int target) {\n int rows = matrix.length;\n int columns = matrix[0].length;\n // Indices to traverse the matrix\n int i = rows - 1;\n int j = 0;\n // Position of the element\n int position = 0;\n // Loop until we are inside the boundary of the matrix\n while (i >= 0 && j < columns) {\n if (target >= matrix[i][j]) {\n position += i + 1;\n j++;\n } else {\n i--;\n }\n }\n return position;\n }",
"@Override\n\tpublic void findTarget(List<Combat> other) {\n\t}",
"public int search(int target)\n {\n for(int i = 0; i<list.length; i++)\n {\n if(target == list[i])\n {\n return i;\n }\n }\n }",
"@Override\n\tpublic int[] locate(int target) {\n\t\tint n = this.length(); //number of rows\n\t\tint min = 0;\n\t\tint max = n-1;\n\t\tint mid = 0;\n\t\tint mid_element = 0;\n\t\twhile(min <= max){\n\t\t\tmid = (min + max)/2;\n\t\t\tmid_element = inspect(mid,mid);\n\t\t\tif(mid_element == target){\n\t\t\t\treturn new int[]{mid, mid};\n\t\t\t}\n\t\t\telse if(mid_element < target){\n\t\t\t\tmin = mid + 1;\n\t\t\t}\n\t\t\telse if(mid_element > target){\n\t\t\t\tmax = mid - 1;\n\t\t\t}\n\t\t}\n\t\tif(target < mid_element){\n\t\t\tif(target <= inspect(0, max)){\n\t\t\t\tfor(int r = 0; r < max; r++){\n\t\t\t\t\tif(inspect(r, max) == target){\n\t\t\t\t\t\treturn new int[]{r,max};\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfor(int c = 0; c <= mid; c++){\n\t\t\t\t\tif(inspect(mid, c) == target){\n\t\t\t\t\t\treturn new int[]{mid,c};\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tif(target > inspect(0, n-1)){\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\telse if(target <= inspect(0, max)){\n\t\t\t\tfor(int r = 0; r < max; r++){\n\t\t\t\t\tif(inspect(r, max) == target){\n\t\t\t\t\t\treturn new int[]{r, max};\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfor(int c = 0; c < min; c++){\n\t\t\t\t\tif(inspect(min, c) == target){\n\t\t\t\t\t\treturn new int[]{min, c};\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"@Test\n\t\t\tpublic void testTargetsThreeSteps() {\n\t\t\t\t//Using walkway space that will go near a door with the wrong direction\n\t\t\t\tboard.calcTargets(8, 16, 2);\n\t\t\t\tSet<BoardCell> targets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(4, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(6, 16)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(10, 16)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(7, 15)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(9, 15)));\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t}",
"private static int[] searchRange2(int[] nums, int target) {\n int targetPos = findTargetPosition(nums, target);\n if (targetPos == -1) {\n return new int[] {-1, -1};\n }\n int leftPos = findLeftTargetPos(nums, target, targetPos);\n int rightPos = findRightTargetPos(nums, target, targetPos);\n\n return new int[] {leftPos, rightPos};\n }",
"public CPointer<BlenderObject> getTarget() throws IOException\n\t{\n\t\tlong __dna__targetAddress;\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__dna__targetAddress = __io__block.readLong(__io__address + 128);\n\t\t} else {\n\t\t\t__dna__targetAddress = __io__block.readLong(__io__address + 104);\n\t\t}\n\t\tClass<?>[] __dna__targetTypes = new Class[]{BlenderObject.class};\n\t\treturn new CPointer<BlenderObject>(__dna__targetAddress, __dna__targetTypes, __io__blockTable.getBlock(__dna__targetAddress, BlenderObject.__DNA__SDNA_INDEX), __io__blockTable);\n\t}",
"public static Direction offsetTarget(MapLocation target) throws GameActionException {\n\t\tfloat offsetDistMax = 2.5f;\n\t\tMapLocation newTarget = null;\n\t\tint c = 0;\n\t\twhile (newTarget == null) {\n\t\t\tc++;\n\t\t\ttry{\n\t\t\t\tDirection dir = myLoc.directionTo(target);\n\t\t\t\t\n\t\t\t\tif (c > 5) {\n\t\t\t\t\tdir = myLoc.directionTo(target);\n\t\t\t\t\tnewTarget = target;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif (Math.random() > 0.5) dir = dir.rotateLeftDegrees(90);\n\t\t\t\telse dir = dir.rotateRightDegrees(90);\n\t\t\t\t\n\t\t\t\tfloat offsetDist = (float) (Math.random()*offsetDistMax);\n\n\t\t\t\tnewTarget = target.add(dir, offsetDist);\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tdebug_print(\"blah: \" + e.getMessage());\n\t\t\t\te.getMessage();\n\t\t\t}\n\n\t\t}\n\t\tdebug_dot(newTarget, 225, 100, 0);\n\t\treturn myLoc.directionTo(newTarget);\n\t}",
"public java.lang.String getTargetNumber() {\r\n return targetNumber;\r\n }",
"private void setNewTarget() {\n startPoint = new Circle(targetPoint);\n projection.addShift(this.targetGenerator.shiftX(startPoint), this.targetGenerator.shiftY(startPoint),\n this.targetGenerator.gridManager);\n this.targetPoint = new Circle(this.targetGenerator.generateTarget(startPoint), this.targetGenerator.gridManager.pointSize);\n projection.convertFromPixels(this.targetPoint);\n \n gameListeners.addedNewLine(startPoint, targetPoint);\n \n // TODO make probability upgradeable to spawn a new pickup\n if (Math.random() < pickupSpawnProbability) {\n generateNewPickup(); \n }\n }",
"public DNode getTo() { return targetnode; }",
"public double getTargetX() {\n return m_targetX;\n }",
"public void toSelectingAttackTarget() {\n }",
"com.google.protobuf.ByteString getTargetBytes();",
"public Spatial getTarget() {\r\n return target;\r\n }",
"private static int predictDistance(Position source, Position target) {\n int x = source.getX() - target.getX();\n int y = source.getY() - target.getY();\n int c = (int)Math.ceil(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)));\n return c;\n }",
"public void setTarget_table(String target_table) {\n this.target_table = target_table;\n }",
"private byte[] getTarget( byte[] buffer ){\n \tbyte target[] = new byte[Constants.TARGET_ID_LEN];\n \tfor (int i=0; i<Constants.TARGET_ID_LEN; i++){\n \t\ttarget[i] = buffer[i + Constants.MESSAGE_ID_LEN + 1];\n \t}\n \treturn target;\n }",
"@Test\n\tpublic void testTargetsFourSteps() {\n\t\tboard.calcTargets(14, 24, 4);\n\t\tSet<BoardCell> targets= board.getTargets();\n\t\tassertEquals(7, targets.size());\n\t\tassertTrue(targets.contains(board.getCellAt(14, 20)));\n\t\tassertTrue(targets.contains(board.getCellAt(15, 21)));\n\t\tassertTrue(targets.contains(board.getCellAt(16, 22)));\n\t\tassertTrue(targets.contains(board.getCellAt(17, 23)));\t\t\t\n\t\tassertTrue(targets.contains(board.getCellAt(15, 23)));\n\t\tassertTrue(targets.contains(board.getCellAt(16, 24)));\t\t\t\n\t\tassertTrue(targets.contains(board.getCellAt(14, 22)));\n\t}",
"public Iterator<Point> getPointAt(ModelObject target, int pos);",
"Object getTarget();",
"Object getTarget();",
"private Position computeTargetConsideringLead(Position sourcePos, TargetGridElement targetGridElement) {\r\n\r\n // Target-Position & velocity-Vector\r\n Position targetPosition = targetGridElement.getCurrentGridElementPosition();\r\n Direction targetPosDirection = Directions.of(targetPosition.getDirection(), targetGridElement.getTargetVelocity());\r\n\r\n // Source-Position & velocity-Vector\r\n double angleBetweenSourceAndTarget = sourcePos.calcAngleRelativeTo(targetPosition);\r\n sourcePos = sourcePos.rotate(angleBetweenSourceAndTarget);\r\n Direction sourcePosDirection = Directions.of(sourcePos.getDirection(), velocity);\r\n\r\n Float64Vector targetVMinusSourceV = targetPosition.getVector().minus(sourcePos.getVector());\r\n double a = targetPosDirection.getVector().normValue() * targetPosDirection.getVector().normValue()\r\n - (sourcePosDirection.getVector().normValue() * sourcePosDirection.getVector().normValue());\r\n double b = 2 * targetVMinusSourceV.times(targetPosDirection.getVector()).doubleValue();\r\n double c = targetVMinusSourceV.normValue() * targetVMinusSourceV.normValue();\r\n\r\n if (a >= 0) {\r\n return targetPosition;\r\n }\r\n double sqrt = Math.sqrt(b * b - 4 * a * c);\r\n double dt1 = solveQuadraticFormula(a, b, sqrt, -1);\r\n double dt = computeDeltaT(a, b, sqrt, dt1);\r\n Float64Vector targetDirVectorWithTime = targetPosDirection.getVector().times(dt);\r\n return Positions.of(targetPosition.getX() + targetDirVectorWithTime.getValue(0), targetPosition.getY() + targetDirVectorWithTime.getValue(1),\r\n sourcePos.getZ());\r\n }",
"public boolean hasTargetPos() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"@VisibleForTesting\n int[] findMatches(Token[] source, Token[] target) {\n final LevenshteinDistance table = new LevenshteinDistance(source, target);\n table.calculate();\n final int targetLen = target.length;\n final int[] result = new int[targetLen];\n LevenshteinDistance.EditOperation[] ops = table.getTargetOperations();\n for (int i = 0; i < targetLen; ++i) {\n if (ops[i].getType() == LevenshteinDistance.EDIT_UNCHANGED) {\n result[i] = ops[i].getPosition();\n } else {\n result[i] = -1;\n }\n }\n return result;\n }",
"private void populateGUI(TargetDecoyMap targetDecoyMap) {\n\n ValidationQcParameters validationQCPreferences = identificationParameters.getIdValidationParameters().getValidationQCParameters();\n\n // Validation level\n validationLevelJComboBox.setSelectedItem(psParameter.getMatchValidationLevel().getName());\n\n // Database info\n FastaParameters fastaParameters = identificationParameters.getFastaParameters();\n boolean targetDecoy = fastaParameters.isTargetDecoy();\n\n if (!targetDecoy) {\n\n targetDecoyLbl.setText(\"Target only\");\n targetDecoyLbl.setForeground(Color.red);\n\n } else {\n\n targetDecoyLbl.setForeground(GREEN);\n\n }\n\n try {\n\n FastaSummary fastaSummary = FastaSummary.getSummary(fastaFile, fastaParameters, null);\n int nTarget = fastaSummary.nTarget;\n nTargetLbl.setText(nTarget + \" target sequences\");\n\n if (nTarget < 10000) {\n\n nTargetLbl.setForeground(Color.red);\n\n } else if (nTarget > 1000000) {\n\n nTargetLbl.setForeground(ORANGE);\n\n } else {\n\n nTargetLbl.setForeground(GREEN);\n\n }\n\n } catch (IOException iOException) {\n\n nTargetLbl.setText(\"Database size not available\");\n nTargetLbl.setForeground(Color.red);\n\n }\n\n // Target/Decoy group\n ((TitledBorder) targetDecoyGroupPanel.getBorder()).setTitle(\"Target/Decoy Distributions\");\n targetDecoyGroupPanel.repaint();\n if (targetDecoy) {\n int nTargetOnly = targetDecoyMap.getnTargetOnly();\n matchesBeforeFirstDecoyLbl.setText(nTargetOnly + \" matches before the first decoy hit\");\n\n TargetDecoyResults targetDecoyResults = targetDecoyMap.getTargetDecoyResults();\n double desiredThreshold = targetDecoyResults.getUserInput();\n double nTargetLimit = 100.0 / desiredThreshold;\n if (nTargetOnly < nTargetLimit) {\n matchesBeforeFirstDecoyLbl.setForeground(Color.red);\n } else {\n matchesBeforeFirstDecoyLbl.setForeground(GREEN);\n }\n recommendedNumberOfTargetHitsLbl.setText(\"Recommended: \" + Util.roundDouble(nTargetLimit, 0) + \" matches before the first decoy hit\");\n\n double resolution = targetDecoyMap.getResolution();\n confidenceResolutionLbl.setText(\"PEP/Confidence resolution of \" + Util.roundDouble(resolution, 2) + \"%\");\n\n double minResolution = desiredThreshold;\n if (resolution > 10 * minResolution) {\n confidenceResolutionLbl.setForeground(Color.red);\n } else if (resolution > minResolution) {\n confidenceResolutionLbl.setForeground(ORANGE);\n } else {\n confidenceResolutionLbl.setForeground(GREEN);\n }\n recommendedResolutionLbl.setText(\"Recommended: resolution < \" + Util.roundDouble(minResolution, 2) + \"%\");\n } else {\n matchesBeforeFirstDecoyLbl.setText(\"No decoy\");\n matchesBeforeFirstDecoyLbl.setForeground(Color.gray);\n confidenceResolutionLbl.setText(\"Impossible to estimate confidence resolution\");\n confidenceResolutionLbl.setForeground(Color.gray);\n }\n\n // Target/decoy results\n if (targetDecoy) {\n \n double confidence = psParameter.getConfidence();\n MatchValidationLevel matchValidationLevel = psParameter.getMatchValidationLevel();\n validationStatusLbl.setText(\"Validation Status: \" + matchValidationLevel.getName());\n\n switch (matchValidationLevel) {\n case confident:\n validationStatusLbl.setForeground(GREEN);\n break;\n \n case doubtful:\n validationStatusLbl.setForeground(ORANGE);\n break;\n\n case not_validated:\n validationStatusLbl.setForeground(Color.red);\n break;\n\n case none:\n validationStatusLbl.setForeground(Color.gray);\n }\n\n TargetDecoyResults targetDecoyResults = targetDecoyMap.getTargetDecoyResults();\n String validationThresholdTxt = \"\";\n double threshold = targetDecoyResults.getUserInput();\n int thresholdType = targetDecoyResults.getInputType();\n if (thresholdType == 0) {\n validationThresholdTxt += \"Validation Threshold: \" + Util.roundDouble(threshold, 2) + \"%\";\n } else if (targetDecoyResults.getInputType() == 1) {\n validationThresholdTxt += \"FDR Threshold: \" + Util.roundDouble(threshold, 2) + \"%\";\n } else if (targetDecoyResults.getInputType() == 2) {\n validationThresholdTxt += \"FNR Threshold: \" + Util.roundDouble(threshold, 2) + \"%\";\n }\n validationThresholdLbl.setText(validationThresholdTxt);\n\n confidenceLbl.setText(\"Confidence: \" + Util.roundDouble(confidence, 2) + \"%\");\n double validationThreshold = targetDecoyResults.getConfidenceLimit();\n confidenceThresholdLbl.setText(\"Expected Confidence: \" + Util.roundDouble(validationThreshold, 2) + \"%\");\n double margin = validationQCPreferences.getConfidenceMargin() * targetDecoyMap.getResolution();\n double confidenceThreshold = validationThreshold + margin;\n if (confidenceThreshold > 100) {\n confidenceThreshold = 100;\n }\n confidenceThresholdLbl.setText(\"Confident confidence: \" + Util.roundDouble(confidenceThreshold, 2) + \"%\");\n if (confidence < validationThreshold) {\n confidenceLbl.setForeground(Color.red);\n } else if (confidence < confidenceThreshold) {\n confidenceLbl.setForeground(ORANGE);\n } else {\n confidenceLbl.setForeground(GREEN);\n }\n } else {\n validationStatusLbl.setText(\"Validation Status: \" + psParameter.getMatchValidationLevel().getName());\n validationThresholdLbl.setText(\"Impossible to estimate validation threshold\");\n confidenceLbl.setText(\"Impossible to estimate confidence\");\n confidenceThresholdLbl.setText(\"Impossible to estimate confidence threshold\");\n validationStatusLbl.setForeground(Color.gray);\n confidenceLbl.setForeground(Color.gray);\n }\n\n // Quality filters\n final DefaultTableModel tableModel = new FiltersTableModel();\n qualityFiltersTable.setModel(tableModel);\n qualityFiltersTable.getColumn(\"\").setMaxWidth(50);\n qualityFiltersTable.getColumn(\" \").setMaxWidth(50);\n qualityFiltersTable.getColumn(\" \").setCellRenderer(new TrueFalseIconRenderer(\n new ImageIcon(this.getClass().getResource(\"/icons/accept-new.png\")),\n new ImageIcon(this.getClass().getResource(\"/icons/error-new.png\")),\n \"Yes\", \"No\"));\n\n int valid = 0;\n for (String qcCheck : psParameter.getQcCriteria()) {\n if (psParameter.isQcPassed(qcCheck)) {\n valid++;\n }\n }\n ((TitledBorder) qualityFiltersPanel.getBorder()).setTitle(\"Quality Filters (\" + valid + \"/\" + psParameter.getQcCriteria().size() + \")\");\n }",
"public String getTarget()\r\n\t{\r\n\t\treturn _target;\r\n\t}",
"public T getPater(T target) {\r\n int index = getIndex(target);\r\n if (index * 2 + 1 >= SIZE) {\r\n return null;\r\n } else if (tree[index * 2 + 1] == null) {\r\n return null;\r\n } else {\r\n return tree[index * 2 + 1];\r\n }\r\n }",
"@objid (\"19651663-f981-4f11-802a-d5d7cbd6f88a\")\n Instance getTarget();",
"java.lang.String getTarget();",
"java.lang.String getTarget();",
"protected void FacetoTarget(Character pc, Object target) {\n int dx, dy;\n if (target instanceof Character) {\n dx = ((Character) target).x - pc.x;\n dy = ((Character) target).y - pc.y;\n } else if (target instanceof Envir_Item) {\n dx = ((Envir_Item) target).getX() - bottom_screen.left - pc.x;\n dy = ((Envir_Item) target).getY() - bottom_screen.top - pc.y;\n } else {\n return;\n }\n\n if (Math.abs(dx) >= Math.abs(dy)) {\n if (dx > 0) {\n pc.setDir(2);\n } else {\n pc.setDir(1);\n }\n } else {\n if (dy > 0) {\n pc.setDir(0);\n } else {\n pc.setDir(3);\n }\n }\n }",
"public String targetId() {\n return this.targetId;\n }",
"public void processTargetTracker (Entity squad, Entity target, boolean contactEnd) {\n\t}",
"final int getNextBuildTarget(int difficulty) {\n/* 1970 */ difficulty = Math.min(5, difficulty);\n/* 1971 */ int start = difficulty * 3;\n/* 1972 */ int templateFound = -1;\n/* */ int x;\n/* 1974 */ for (x = start; x < 17; x++) {\n/* */ \n/* 1976 */ if (this.epicTargetItems[x] <= 0L) {\n/* */ \n/* 1978 */ templateFound = x;\n/* */ \n/* */ break;\n/* */ } \n/* */ } \n/* 1983 */ if (templateFound == -1)\n/* */ {\n/* */ \n/* 1986 */ for (x = start; x > 0; x--) {\n/* */ \n/* 1988 */ if (this.epicTargetItems[x] <= 0L) {\n/* */ \n/* 1990 */ templateFound = x;\n/* */ \n/* */ break;\n/* */ } \n/* */ } \n/* */ }\n/* 1996 */ if (templateFound > -1) {\n/* */ \n/* 1998 */ if (templateFound < 3)\n/* 1999 */ return 717; \n/* 2000 */ if (templateFound < 6)\n/* 2001 */ return 714; \n/* 2002 */ if (templateFound < 9)\n/* 2003 */ return 713; \n/* 2004 */ if (templateFound < 12)\n/* 2005 */ return 715; \n/* 2006 */ if (templateFound < 15) {\n/* 2007 */ return 712;\n/* */ }\n/* 2009 */ return 716;\n/* */ } \n/* 2011 */ return -1;\n/* */ }",
"@Override\n\tpublic void setChaseTarget(){\n\t\tthis.setTarget(_pacman.getX()+Constants.SQUARE_SIDE,_pacman.getY()-(4*Constants.SQUARE_SIDE));\n\t}",
"void setTarget(String target) {\n try {\n int value = Integer.valueOf(target);\n game.setTarget(value);\n } catch (NumberFormatException e) {\n // caused by inputting strings\n } catch (IllegalArgumentException e) {\n // caused by number < 6.\n game.setTarget(10);\n }\n }",
"private <T> void getPossibleTargets(TargetingScheme<T> t, TargetList<T> current, List<? extends T> searchSpace, int startInd,\n List<TargetList<T>> outputList) {\n if (t.isFullyTargeted(current)) {\n outputList.add(current);\n return;\n }\n if (startInd >= searchSpace.size()) {\n System.out.println(\"this shouldn't happen lmao\");\n }\n int numToSelect = Math.min(searchSpace.size(), t.getMaxTargets());\n for (int i = startInd; i < searchSpace.size() - (numToSelect - current.targeted.size() - 1); i++) {\n T c = searchSpace.get(i);\n if (!current.targeted.contains(c)) {\n TargetList<T> copy = current.clone();\n copy.targeted.add(c);\n this.getPossibleTargets(t, copy, searchSpace, i + 1, outputList);\n }\n }\n }",
"@Test\n\t\t\tpublic void testTargetsFourSteps() {\n\t\t\t\t//Using random walkway space\n\t\t\t\tboard.calcTargets(5, 18, 3);\n\t\t\t\tSet<BoardCell> targets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(10, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(5, 21)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(6, 20)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(4, 20)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(5, 19)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(3, 17)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(6, 16)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(4, 16)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(5, 17)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(4, 18)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(6, 18)));\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t}",
"public RaceCar getTarget() {\n return target;\n }",
"@Test\r\n\tpublic void testTargetsFourSteps() {\r\n\t\tboard.calcTargets(24, 0, 4);\r\n\t\tSet<BoardCell> targets= board.getTargets();\r\n\t\tassertEquals(4, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(24, 4)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(23, 3)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(24, 2)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(23, 1)));\r\n\t\t\r\n\t\tboard.calcTargets(0, 20, 4);\r\n\t\ttargets = board.getTargets();\r\n\t\tassertEquals(4, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(1, 19)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(2, 20)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(3, 19)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(4, 20)));\r\n\t\t\r\n\t\t// Includes a path that doesn't have enough length plus one door\r\n\t\tboard.calcTargets(9, 0, 4);\r\n\t\ttargets= board.getTargets();\r\n\t\tassertEquals(8, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(9, 4)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(9, 2)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(10, 3)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(10, 1)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(11, 2)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(12, 1)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(8, 2)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(11, 0)));\t\r\n\t}",
"public int indexOf(E target) {\n\t\tint first = 0;\n\t\tint last = data.size() - 1;\n\n\t\twhile (first <= last) {\n\t\t\tint mid = (first + last) / 2;\n\t\t\tif (cmp.compare(target, data.get(mid)) == 0) {\n\t\t\t\treturn mid;\n\t\t\t}\n\t\t\telse if (cmp.compare(target, data.get(mid)) < 0) {\n\t\t\t\tlast = mid - 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tfirst = mid + 1;\n\t\t\t}\n\t\t}\n\n\t\treturn -1;\n\t}",
"public String getTarget() {\n return this.target;\n }",
"@Test\r\n\tpublic void testTargetsSixSteps() {\r\n\t\tboard.calcTargets(24, 17, 6);\r\n\t\tSet<BoardCell> targets= board.getTargets();\r\n\t\tassertEquals(8, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(18, 17)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(20, 17)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(22, 17)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(19, 18)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(21, 18)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(23, 18)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(22, 19)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(22, 17)));\r\n\t\t\r\n\t}",
"public Map<Integer, TargetDef> getTargetQueries();",
"public int pacmanMoves(List<Integer> target){\n int numOfmoves = 0;\n //counts the steps to get to the target\n for(int i=target.get(0);i>0;i--){\n numOfmoves++;\n }\n for(int i=target.get(1);i>0;i--){\n numOfmoves++;\n }\n return numOfmoves;\n }",
"private boolean reachX(Position target) {\n return position.x == target.x;\n }",
"@Override\n public ControllerViewEvent getTargetEffectOne() {\n ArrayList<Square> possibleTarget = new ArrayList<>();\n for (int i = 0; i < 4; i++) {\n if (getOwner().getPosition().checkDirection(i) && !getOwner().getPosition().getNextSquare(i).getSquareColour().equals(getOwner().getPosition().getSquareColour()) && !getOwner().getPosition().getNextSquare(i).findRoomPlayers().isEmpty())\n possibleTarget.add(getOwner().getPosition().getNextSquare(i));\n }\n return new TargetSquareRequestEvent(getOwner().getUsername(), Encoder.encodeSquareTargetsX(possibleTarget), Encoder.encodeSquareTargetsY(possibleTarget));\n }",
"public Move(int index, Target target){\r\n this.handIndex = index;\r\n this.target = target;\r\n }",
"abstract public int findTargetToReplace(MemRef r);",
"@Test\n\t\t\tpublic void testTargetsTwoSteps() {\n\t\t\t\t//Length of 2\n\t\t\t\tboard.calcTargets(8, 16, 2);\n\t\t\t\tSet<BoardCell> targets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(4, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(6, 16)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(10, 16)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(7, 15)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(9, 15)));\n\t\t\t\t//Length of 2\n\t\t\t\tboard.calcTargets(15, 15, 2);\n\t\t\t\ttargets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(4, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(13, 15)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(17, 15)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(14, 16)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(15, 17)));\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t}",
"public Object getTargetValue(int idx, Object def);"
] | [
"0.7206571",
"0.7117444",
"0.7025358",
"0.6587333",
"0.654027",
"0.6389806",
"0.6238807",
"0.6088033",
"0.6042456",
"0.6026513",
"0.5990601",
"0.596186",
"0.5950487",
"0.59256035",
"0.58652",
"0.58051986",
"0.5791811",
"0.5778122",
"0.5752512",
"0.5707377",
"0.56628066",
"0.56578076",
"0.55705696",
"0.5553402",
"0.5550476",
"0.55453557",
"0.55022377",
"0.54702526",
"0.54594177",
"0.5457834",
"0.54556626",
"0.54529303",
"0.5441363",
"0.5438267",
"0.5423198",
"0.54156786",
"0.5415017",
"0.5414559",
"0.54125375",
"0.5409692",
"0.5384799",
"0.53763807",
"0.537134",
"0.53702104",
"0.536234",
"0.536234",
"0.533871",
"0.53301316",
"0.5326372",
"0.5324716",
"0.5323353",
"0.53147966",
"0.53051144",
"0.5303109",
"0.5302729",
"0.5298493",
"0.5291774",
"0.5288417",
"0.5277727",
"0.52700394",
"0.52690774",
"0.5265777",
"0.526535",
"0.52631265",
"0.5261877",
"0.5256413",
"0.5248495",
"0.5247573",
"0.52366936",
"0.52366936",
"0.5234915",
"0.52302146",
"0.5225281",
"0.5222027",
"0.5203414",
"0.5196437",
"0.5188593",
"0.5180256",
"0.5180256",
"0.51783085",
"0.5175197",
"0.5157977",
"0.51560104",
"0.515589",
"0.5148793",
"0.5134453",
"0.5133053",
"0.5131375",
"0.5130805",
"0.5130157",
"0.5129761",
"0.5126217",
"0.51200306",
"0.5116111",
"0.51128805",
"0.51116383",
"0.51070386",
"0.50912166",
"0.5090113",
"0.50849116"
] | 0.51410234 | 85 |
optional int32 target_pos = 5; Index in target protein that this decoy protein is from | public int getTargetPos() {
return targetPos_;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getTargetPos();",
"public int getTargetPos() {\n return targetPos_;\n }",
"public void setTargetPos(final int target) {\n \n switch(target){\n // Set target position right from current position\n case T_RIGHT:\n if(this.columnT < this.buffer.get(lineT).size()) // Check if position exists\n this.columnT++;\n break;\n // Set target position left from current position\n case T_LEFT:\n if(this.columnT > 0) // Check if position exists\n this.columnT--;\n break;\n // Set target position up from current position\n case T_UP:\n if(this.lineT > 0) { // Check if position exists\n this.lineT--;\n if(this.columnT > this.buffer.get(lineT).size()) // Check for correct positioning\n this.columnT = this.buffer.get(lineT).size();\n }\n break;\n // Set target position down from current position\n case T_DOWN:\n if(this.lineT < this.buffer.size() - 1) { // Check if position exists\n this.lineT++;\n if(this.columnT > this.buffer.get(lineT).size()) // Check for correct positioning\n this.columnT = this.buffer.get(lineT).size();\n }\n break;\n // Set target position to first position\n case T_HOME:\n this.columnT = 0;\n break;\n // Set target position to last position\n case T_END:\n this.columnT = this.buffer.get(lineT).size();\n break;\n default:\n System.out.println(\"Invalid target position\");\n break;\n }\n }",
"@Override\n public int getTargetPosition() {\n return 0;\n }",
"public Contig getTarget() { return target; }",
"N getTarget();",
"public void setTargetPosition(double position){\n targetPosition = position;\n }",
"@InVertex\n Object getTarget();",
"public ObjectSequentialNumber getTarget() {\n return target;\n }",
"public int getTargetArgIndex() {\n\t\treturn this.targetArgIndex;\n\t}",
"TrgPlace getTarget();",
"public Builder setTargetPos(int value) {\n bitField0_ |= 0x00000008;\n targetPos_ = value;\n onChanged();\n return this;\n }",
"private int getIndex(T target) {\r\n for (int i = 0; i < SIZE; i++) {\r\n if (tree[i] == target) {\r\n return i;\r\n }\r\n }\r\n return -1;\r\n }",
"public Integer getTargetID()\r\n\t\t{ return mapping.getTargetId(); }",
"BlockPos getPosTarget() {\n BlockPosDim loc = LocationGpsCard.getPosition(inventory.getStackInSlot(0));\n if (loc != null && loc.getPos() != null) {\n return loc.getPos();\n }\n return this.getBlockPos();\n }",
"@Override\n public Vertex getTarget() {\n return targetVertex;\n }",
"public void SetTargetOffset(int target_offset) {\n target_offset_ = target_offset;\n }",
"public int advanceStartPosition(int target) throws IOException {\n // Naive implementations; subclasses may provide a faster version.\n int pos;\n do {\n pos = nextStartPosition();\n } while (pos < target && pos != NO_MORE_POSITIONS);\n return pos;\n }",
"private Vector2 findTarget() \r\n\t{\r\n\t\tVector2 tempVector = new Vector2(1,1);\r\n\t\ttempVector.setLength(Constants.RANGEDSPEED); //TODO make so it can be changed when level difficulty increases\r\n\t\ttempVector.setAngle(rotation + 90);\r\n\t\treturn tempVector;\r\n\t}",
"public EntityID nextTarget(Set<StandardEntity> victims) {\n\n// Clustering clustering = this.moduleManager.getModule(SampleModuleKey.AMBULANCE_MODULE_CLUSTERING);\n\n// if (this.clusterIndex == -1) {\n this.clusterIndex = clustering.getClusterIndex(this.agentInfo.getID());\n// }\n\n\n Collection<StandardEntity> elements = clustering.getClusterEntities(this.clusterIndex);\n\n calculateMapCenters(this.clusterIndex, elements);\n\n\n targetsMap.clear();\n\n if (previousTarget != null && !victims.contains(worldInfo.getEntity(previousTarget.getVictimID()))) {\n previousTarget = null;\n }\n\n\n refreshTargetsMap(victims, targetsMap);\n\n calculateDecisionParameters(victims, targetsMap);\n\n calculateVictimsCostValue();\n\n\n AmbulanceTarget bestTarget = null;\n bestTarget = findBestVictim(targetsMap, elements);\n\n //considering inertia for the current target to prevent loop in target selection\n if (previousTarget != null && victims.contains(worldInfo.getEntity(previousTarget.getVictimID()))) {\n if (bestTarget != null && !bestTarget.getVictimID().equals(previousTarget.getVictimID())) {\n Human bestHuman = (Human) worldInfo.getEntity(bestTarget.getVictimID());\n Human previousHuman = (Human) worldInfo.getEntity(previousTarget.getVictimID());\n\n double bestHumanCost = pathPlanning.setFrom(agentInfo.getPosition()).setDestination(bestHuman.getPosition()).calc().getDistance();\n double previousHumanCost = pathPlanning.setFrom(agentInfo.getPosition()).setDestination(previousHuman.getPosition()).calc().getDistance();\n if (previousHumanCost < bestHumanCost) {\n bestTarget = previousTarget;\n }\n }\n }\n\n previousTarget = bestTarget;\n\n if (bestTarget != null) {\n return bestTarget.getVictimID();\n } else {\n return null;\n }\n\n }",
"boolean hasTargetPos();",
"public Integer getTargetid() {\n return targetid;\n }",
"public Point getTarget() {\n\t\treturn _target;\n\t}",
"@Test\n\t\t\tpublic void testTargetOneStep()\n\t\t\t{\n\t\t\t\t//Test one step and check for the right space\n\t\t\t\tboard.calcTargets(0, 7, 1);\n\t\t\t\tSet<BoardCell> targets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(1, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(1, 7)));\n\n\t\t\t\t// Test one step near a door with the incorrect direction\n\t\t\t\tboard.calcTargets(13, 6, 1);\n\t\t\t\ttargets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(3, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(14, 6)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(13, 5)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(13, 7)));\n\t\t\t\t\n\t\t\t\t\n\t\t\t}",
"private TrackingResult followTarget(Rect target)\n\t{\n\t\t// Clear any existing target rectangle.\n\t\tcamera.addTarget(null);\n\t\t\n\t\t// Outline the target being tracked.\n\t\tcamera.addTarget(target);\n\t\t\n\t\t// This is field of view size.\n\t\tSize imageSize = camera.getImageSize();\n\t\t\n\t\t// get size of target outline area.\n\t\tint targetArea = target.height * target.width;\n\t\t\n\t\t// If we have just acquired target, record initial size. Size comparison\n\t\t// is how we determine distance to target.\n\t\t\n\t\tif (initialTargetArea == 0) initialTargetArea = targetArea;\n\t\t\n\t\t// Compute center point of target in the camera view image.\n\t\tint targetCenterX = target.x + target.width / 2;\n\t\tint imageCenterX = (int) (imageSize.width / 2);\n\t\t\n\t\t// offset minus indicates target is left of image center,\n\t\t// plus to the right. If target is left, drone needs to turn\n\t\t// left to center the target in the image which is a minus yaw value.\n\t\t\n\t\tint offset = targetCenterX - imageCenterX;\n\n\t\tlogger.fine(\"offset=\" + offset);\n\t\t\n\t\toffset *= .25;\t// Scale offset down;\n\t\t\n\t\t// Determine change in distance from last target acquisition.\n\t\t\n\t\tdouble distance = initialTargetArea - targetArea;\n\t\t\n\t\tlogger.fine(String.format(\"ia=%d ta=%d dist=%.0f\", initialTargetArea, targetArea, distance));\n\t\t\n\t\t//initialTargetArea = targetArea;\n\t\t\n\t\tdouble scaleFactor = 0.0;\n\t\t\n\t\t// If distance is small, call it good otherwise the drone\n\t\t// hunts back and forth. Value must be determined by testing.\n\t\t\n\t\tif (Math.abs(distance) < 2000.0) \n\t\t\tdistance = 0.0;\n\t\telse\n\t\t{\n\t\t\t// Scale distance change to a fwd/back movement value of 20% for flyRC command.\n\t\t\t// For some unknown reason, need more power to fly forward than back and even\n\t\t\t// with 30%, forward seems not reliable.\n\t\t\t// scaleFactor must be positive to preserve the sign of distance value.\n\t\t\t\n\t\t\tscaleFactor = 20.0 / Math.abs(distance);\n\t\t\n\t\t\tdistance = distance * scaleFactor;\n\t\t}\n\t\t\n\t\tlogger.fine(String.format(\"dist=%.1f fact=%f\", distance, scaleFactor));\n\t\t\n\t\treturn new TrackingResult(offset, (int) distance);\n\t}",
"public long getTargetId() {\n return targetId;\n }",
"@Override\r\n\t\r\n\t\r\n\t\r\n\tpublic int[] locate(int target) {\r\n\t\tint low = 0; \r\n\t\tint high = length()- 1;\r\n\t\t\r\n\t\twhile ( low <= high) {\r\n\t\t\tint mid = ((low + high)/2);\r\n\t\t\tint value = inspect(mid,0);\r\n\t\t\t\t\t\r\n\t\t\tif ( value == target) {\r\n\t\t\t\treturn new int[] {mid,0};\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\telse if (value < target) {\r\n\t\t\t\tlow = mid +1;\r\n\t\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\thigh = mid -1;\r\n\t\t}\r\n\t\t\r\n\t}\r\n\t\treturn binarySearch(high, target);\r\n\t}",
"public void setTargeted() {\n targeted ++;\n }",
"public void setTarget(ObjectSequentialNumber target) {\n this.target = target;\n }",
"public Point getTarget()\n\t{\n\t\treturn this.target;\n\t}",
"public Living getTarget();",
"public void setTargetid(Integer targetid) {\n this.targetid = targetid;\n }",
"public Entity.ID getTargetID() {\n return targetID;\n }",
"public EntityID getTarget() {\n\t\treturn target.getValue();\n\t}",
"public abstract int getSourceIndex(int index);",
"private int findPos(byte[] contents, String target)\n {\n String contentsStr = null;\n try\n {\n contentsStr = new String(contents, \"ISO-8859-1\");\n }\n catch (UnsupportedEncodingException e)\n {\n e.printStackTrace();\n }\n return contentsStr.indexOf(target);\n }",
"@Override\n\tpublic int getTargetParameter() {\n\t\treturn 0;\n\t}",
"public Integer getTargetId() {\n\t\treturn targetId;\n\t}",
"public static void testDiGui(int[] candidates, int target, int start) {\n\n if (target == 0) {\n return;\n } else if (target < 0) {\n return;\n } else {\n for (int i = start; i < candidates.length && candidates[i] > 0; i++) {\n\n System.out.println(candidates[i]);\n target = candidates[i];\n i++;\n testDiGui(candidates, target, i);\n target = -1;\n }\n }\n\n System.out.println(target);\n }",
"public StateID GetTarget()\n {\n return targetID;\n }",
"public int findPosition(int[] nums, int target) {\n // write your code here\n if (nums == null || nums.length == 0) return -1;\n int start = 0, end = nums.length - 1;\n while (start <= end) {\n int mid = start + (end - start) / 2;\n if (nums[mid] == target) return mid;\n if (nums[mid] < target)\n start = mid + 1;\n else\n end = mid - 1;\n }\n return -1;\n }",
"public void setTargetPosition(float x, float y){\r\n this.targetX = x;\r\n this.targetY = y;\r\n }",
"public Long getTargetId() {\r\n return targetId;\r\n }",
"String getTarget();",
"String getTarget();",
"public Player getTarget() {\n return target;\n }",
"public Vector getTargets(){\n return targets;\n }",
"private int getPosition(int[][] matrix, int target) {\n int rows = matrix.length;\n int columns = matrix[0].length;\n // Indices to traverse the matrix\n int i = rows - 1;\n int j = 0;\n // Position of the element\n int position = 0;\n // Loop until we are inside the boundary of the matrix\n while (i >= 0 && j < columns) {\n if (target >= matrix[i][j]) {\n position += i + 1;\n j++;\n } else {\n i--;\n }\n }\n return position;\n }",
"public int search(int target)\n {\n for(int i = 0; i<list.length; i++)\n {\n if(target == list[i])\n {\n return i;\n }\n }\n }",
"@Override\n\tpublic void findTarget(List<Combat> other) {\n\t}",
"@Override\n\tpublic int[] locate(int target) {\n\t\tint n = this.length(); //number of rows\n\t\tint min = 0;\n\t\tint max = n-1;\n\t\tint mid = 0;\n\t\tint mid_element = 0;\n\t\twhile(min <= max){\n\t\t\tmid = (min + max)/2;\n\t\t\tmid_element = inspect(mid,mid);\n\t\t\tif(mid_element == target){\n\t\t\t\treturn new int[]{mid, mid};\n\t\t\t}\n\t\t\telse if(mid_element < target){\n\t\t\t\tmin = mid + 1;\n\t\t\t}\n\t\t\telse if(mid_element > target){\n\t\t\t\tmax = mid - 1;\n\t\t\t}\n\t\t}\n\t\tif(target < mid_element){\n\t\t\tif(target <= inspect(0, max)){\n\t\t\t\tfor(int r = 0; r < max; r++){\n\t\t\t\t\tif(inspect(r, max) == target){\n\t\t\t\t\t\treturn new int[]{r,max};\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfor(int c = 0; c <= mid; c++){\n\t\t\t\t\tif(inspect(mid, c) == target){\n\t\t\t\t\t\treturn new int[]{mid,c};\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tif(target > inspect(0, n-1)){\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\telse if(target <= inspect(0, max)){\n\t\t\t\tfor(int r = 0; r < max; r++){\n\t\t\t\t\tif(inspect(r, max) == target){\n\t\t\t\t\t\treturn new int[]{r, max};\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfor(int c = 0; c < min; c++){\n\t\t\t\t\tif(inspect(min, c) == target){\n\t\t\t\t\t\treturn new int[]{min, c};\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"@Test\n\t\t\tpublic void testTargetsThreeSteps() {\n\t\t\t\t//Using walkway space that will go near a door with the wrong direction\n\t\t\t\tboard.calcTargets(8, 16, 2);\n\t\t\t\tSet<BoardCell> targets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(4, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(6, 16)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(10, 16)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(7, 15)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(9, 15)));\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t}",
"private static int[] searchRange2(int[] nums, int target) {\n int targetPos = findTargetPosition(nums, target);\n if (targetPos == -1) {\n return new int[] {-1, -1};\n }\n int leftPos = findLeftTargetPos(nums, target, targetPos);\n int rightPos = findRightTargetPos(nums, target, targetPos);\n\n return new int[] {leftPos, rightPos};\n }",
"public CPointer<BlenderObject> getTarget() throws IOException\n\t{\n\t\tlong __dna__targetAddress;\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__dna__targetAddress = __io__block.readLong(__io__address + 128);\n\t\t} else {\n\t\t\t__dna__targetAddress = __io__block.readLong(__io__address + 104);\n\t\t}\n\t\tClass<?>[] __dna__targetTypes = new Class[]{BlenderObject.class};\n\t\treturn new CPointer<BlenderObject>(__dna__targetAddress, __dna__targetTypes, __io__blockTable.getBlock(__dna__targetAddress, BlenderObject.__DNA__SDNA_INDEX), __io__blockTable);\n\t}",
"public static Direction offsetTarget(MapLocation target) throws GameActionException {\n\t\tfloat offsetDistMax = 2.5f;\n\t\tMapLocation newTarget = null;\n\t\tint c = 0;\n\t\twhile (newTarget == null) {\n\t\t\tc++;\n\t\t\ttry{\n\t\t\t\tDirection dir = myLoc.directionTo(target);\n\t\t\t\t\n\t\t\t\tif (c > 5) {\n\t\t\t\t\tdir = myLoc.directionTo(target);\n\t\t\t\t\tnewTarget = target;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif (Math.random() > 0.5) dir = dir.rotateLeftDegrees(90);\n\t\t\t\telse dir = dir.rotateRightDegrees(90);\n\t\t\t\t\n\t\t\t\tfloat offsetDist = (float) (Math.random()*offsetDistMax);\n\n\t\t\t\tnewTarget = target.add(dir, offsetDist);\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tdebug_print(\"blah: \" + e.getMessage());\n\t\t\t\te.getMessage();\n\t\t\t}\n\n\t\t}\n\t\tdebug_dot(newTarget, 225, 100, 0);\n\t\treturn myLoc.directionTo(newTarget);\n\t}",
"public java.lang.String getTargetNumber() {\r\n return targetNumber;\r\n }",
"private void setNewTarget() {\n startPoint = new Circle(targetPoint);\n projection.addShift(this.targetGenerator.shiftX(startPoint), this.targetGenerator.shiftY(startPoint),\n this.targetGenerator.gridManager);\n this.targetPoint = new Circle(this.targetGenerator.generateTarget(startPoint), this.targetGenerator.gridManager.pointSize);\n projection.convertFromPixels(this.targetPoint);\n \n gameListeners.addedNewLine(startPoint, targetPoint);\n \n // TODO make probability upgradeable to spawn a new pickup\n if (Math.random() < pickupSpawnProbability) {\n generateNewPickup(); \n }\n }",
"public DNode getTo() { return targetnode; }",
"public void toSelectingAttackTarget() {\n }",
"public double getTargetX() {\n return m_targetX;\n }",
"public Spatial getTarget() {\r\n return target;\r\n }",
"com.google.protobuf.ByteString getTargetBytes();",
"private static int predictDistance(Position source, Position target) {\n int x = source.getX() - target.getX();\n int y = source.getY() - target.getY();\n int c = (int)Math.ceil(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)));\n return c;\n }",
"public void setTarget_table(String target_table) {\n this.target_table = target_table;\n }",
"private byte[] getTarget( byte[] buffer ){\n \tbyte target[] = new byte[Constants.TARGET_ID_LEN];\n \tfor (int i=0; i<Constants.TARGET_ID_LEN; i++){\n \t\ttarget[i] = buffer[i + Constants.MESSAGE_ID_LEN + 1];\n \t}\n \treturn target;\n }",
"@Test\n\tpublic void testTargetsFourSteps() {\n\t\tboard.calcTargets(14, 24, 4);\n\t\tSet<BoardCell> targets= board.getTargets();\n\t\tassertEquals(7, targets.size());\n\t\tassertTrue(targets.contains(board.getCellAt(14, 20)));\n\t\tassertTrue(targets.contains(board.getCellAt(15, 21)));\n\t\tassertTrue(targets.contains(board.getCellAt(16, 22)));\n\t\tassertTrue(targets.contains(board.getCellAt(17, 23)));\t\t\t\n\t\tassertTrue(targets.contains(board.getCellAt(15, 23)));\n\t\tassertTrue(targets.contains(board.getCellAt(16, 24)));\t\t\t\n\t\tassertTrue(targets.contains(board.getCellAt(14, 22)));\n\t}",
"public Iterator<Point> getPointAt(ModelObject target, int pos);",
"Object getTarget();",
"Object getTarget();",
"private Position computeTargetConsideringLead(Position sourcePos, TargetGridElement targetGridElement) {\r\n\r\n // Target-Position & velocity-Vector\r\n Position targetPosition = targetGridElement.getCurrentGridElementPosition();\r\n Direction targetPosDirection = Directions.of(targetPosition.getDirection(), targetGridElement.getTargetVelocity());\r\n\r\n // Source-Position & velocity-Vector\r\n double angleBetweenSourceAndTarget = sourcePos.calcAngleRelativeTo(targetPosition);\r\n sourcePos = sourcePos.rotate(angleBetweenSourceAndTarget);\r\n Direction sourcePosDirection = Directions.of(sourcePos.getDirection(), velocity);\r\n\r\n Float64Vector targetVMinusSourceV = targetPosition.getVector().minus(sourcePos.getVector());\r\n double a = targetPosDirection.getVector().normValue() * targetPosDirection.getVector().normValue()\r\n - (sourcePosDirection.getVector().normValue() * sourcePosDirection.getVector().normValue());\r\n double b = 2 * targetVMinusSourceV.times(targetPosDirection.getVector()).doubleValue();\r\n double c = targetVMinusSourceV.normValue() * targetVMinusSourceV.normValue();\r\n\r\n if (a >= 0) {\r\n return targetPosition;\r\n }\r\n double sqrt = Math.sqrt(b * b - 4 * a * c);\r\n double dt1 = solveQuadraticFormula(a, b, sqrt, -1);\r\n double dt = computeDeltaT(a, b, sqrt, dt1);\r\n Float64Vector targetDirVectorWithTime = targetPosDirection.getVector().times(dt);\r\n return Positions.of(targetPosition.getX() + targetDirVectorWithTime.getValue(0), targetPosition.getY() + targetDirVectorWithTime.getValue(1),\r\n sourcePos.getZ());\r\n }",
"public boolean hasTargetPos() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"@VisibleForTesting\n int[] findMatches(Token[] source, Token[] target) {\n final LevenshteinDistance table = new LevenshteinDistance(source, target);\n table.calculate();\n final int targetLen = target.length;\n final int[] result = new int[targetLen];\n LevenshteinDistance.EditOperation[] ops = table.getTargetOperations();\n for (int i = 0; i < targetLen; ++i) {\n if (ops[i].getType() == LevenshteinDistance.EDIT_UNCHANGED) {\n result[i] = ops[i].getPosition();\n } else {\n result[i] = -1;\n }\n }\n return result;\n }",
"private void populateGUI(TargetDecoyMap targetDecoyMap) {\n\n ValidationQcParameters validationQCPreferences = identificationParameters.getIdValidationParameters().getValidationQCParameters();\n\n // Validation level\n validationLevelJComboBox.setSelectedItem(psParameter.getMatchValidationLevel().getName());\n\n // Database info\n FastaParameters fastaParameters = identificationParameters.getFastaParameters();\n boolean targetDecoy = fastaParameters.isTargetDecoy();\n\n if (!targetDecoy) {\n\n targetDecoyLbl.setText(\"Target only\");\n targetDecoyLbl.setForeground(Color.red);\n\n } else {\n\n targetDecoyLbl.setForeground(GREEN);\n\n }\n\n try {\n\n FastaSummary fastaSummary = FastaSummary.getSummary(fastaFile, fastaParameters, null);\n int nTarget = fastaSummary.nTarget;\n nTargetLbl.setText(nTarget + \" target sequences\");\n\n if (nTarget < 10000) {\n\n nTargetLbl.setForeground(Color.red);\n\n } else if (nTarget > 1000000) {\n\n nTargetLbl.setForeground(ORANGE);\n\n } else {\n\n nTargetLbl.setForeground(GREEN);\n\n }\n\n } catch (IOException iOException) {\n\n nTargetLbl.setText(\"Database size not available\");\n nTargetLbl.setForeground(Color.red);\n\n }\n\n // Target/Decoy group\n ((TitledBorder) targetDecoyGroupPanel.getBorder()).setTitle(\"Target/Decoy Distributions\");\n targetDecoyGroupPanel.repaint();\n if (targetDecoy) {\n int nTargetOnly = targetDecoyMap.getnTargetOnly();\n matchesBeforeFirstDecoyLbl.setText(nTargetOnly + \" matches before the first decoy hit\");\n\n TargetDecoyResults targetDecoyResults = targetDecoyMap.getTargetDecoyResults();\n double desiredThreshold = targetDecoyResults.getUserInput();\n double nTargetLimit = 100.0 / desiredThreshold;\n if (nTargetOnly < nTargetLimit) {\n matchesBeforeFirstDecoyLbl.setForeground(Color.red);\n } else {\n matchesBeforeFirstDecoyLbl.setForeground(GREEN);\n }\n recommendedNumberOfTargetHitsLbl.setText(\"Recommended: \" + Util.roundDouble(nTargetLimit, 0) + \" matches before the first decoy hit\");\n\n double resolution = targetDecoyMap.getResolution();\n confidenceResolutionLbl.setText(\"PEP/Confidence resolution of \" + Util.roundDouble(resolution, 2) + \"%\");\n\n double minResolution = desiredThreshold;\n if (resolution > 10 * minResolution) {\n confidenceResolutionLbl.setForeground(Color.red);\n } else if (resolution > minResolution) {\n confidenceResolutionLbl.setForeground(ORANGE);\n } else {\n confidenceResolutionLbl.setForeground(GREEN);\n }\n recommendedResolutionLbl.setText(\"Recommended: resolution < \" + Util.roundDouble(minResolution, 2) + \"%\");\n } else {\n matchesBeforeFirstDecoyLbl.setText(\"No decoy\");\n matchesBeforeFirstDecoyLbl.setForeground(Color.gray);\n confidenceResolutionLbl.setText(\"Impossible to estimate confidence resolution\");\n confidenceResolutionLbl.setForeground(Color.gray);\n }\n\n // Target/decoy results\n if (targetDecoy) {\n \n double confidence = psParameter.getConfidence();\n MatchValidationLevel matchValidationLevel = psParameter.getMatchValidationLevel();\n validationStatusLbl.setText(\"Validation Status: \" + matchValidationLevel.getName());\n\n switch (matchValidationLevel) {\n case confident:\n validationStatusLbl.setForeground(GREEN);\n break;\n \n case doubtful:\n validationStatusLbl.setForeground(ORANGE);\n break;\n\n case not_validated:\n validationStatusLbl.setForeground(Color.red);\n break;\n\n case none:\n validationStatusLbl.setForeground(Color.gray);\n }\n\n TargetDecoyResults targetDecoyResults = targetDecoyMap.getTargetDecoyResults();\n String validationThresholdTxt = \"\";\n double threshold = targetDecoyResults.getUserInput();\n int thresholdType = targetDecoyResults.getInputType();\n if (thresholdType == 0) {\n validationThresholdTxt += \"Validation Threshold: \" + Util.roundDouble(threshold, 2) + \"%\";\n } else if (targetDecoyResults.getInputType() == 1) {\n validationThresholdTxt += \"FDR Threshold: \" + Util.roundDouble(threshold, 2) + \"%\";\n } else if (targetDecoyResults.getInputType() == 2) {\n validationThresholdTxt += \"FNR Threshold: \" + Util.roundDouble(threshold, 2) + \"%\";\n }\n validationThresholdLbl.setText(validationThresholdTxt);\n\n confidenceLbl.setText(\"Confidence: \" + Util.roundDouble(confidence, 2) + \"%\");\n double validationThreshold = targetDecoyResults.getConfidenceLimit();\n confidenceThresholdLbl.setText(\"Expected Confidence: \" + Util.roundDouble(validationThreshold, 2) + \"%\");\n double margin = validationQCPreferences.getConfidenceMargin() * targetDecoyMap.getResolution();\n double confidenceThreshold = validationThreshold + margin;\n if (confidenceThreshold > 100) {\n confidenceThreshold = 100;\n }\n confidenceThresholdLbl.setText(\"Confident confidence: \" + Util.roundDouble(confidenceThreshold, 2) + \"%\");\n if (confidence < validationThreshold) {\n confidenceLbl.setForeground(Color.red);\n } else if (confidence < confidenceThreshold) {\n confidenceLbl.setForeground(ORANGE);\n } else {\n confidenceLbl.setForeground(GREEN);\n }\n } else {\n validationStatusLbl.setText(\"Validation Status: \" + psParameter.getMatchValidationLevel().getName());\n validationThresholdLbl.setText(\"Impossible to estimate validation threshold\");\n confidenceLbl.setText(\"Impossible to estimate confidence\");\n confidenceThresholdLbl.setText(\"Impossible to estimate confidence threshold\");\n validationStatusLbl.setForeground(Color.gray);\n confidenceLbl.setForeground(Color.gray);\n }\n\n // Quality filters\n final DefaultTableModel tableModel = new FiltersTableModel();\n qualityFiltersTable.setModel(tableModel);\n qualityFiltersTable.getColumn(\"\").setMaxWidth(50);\n qualityFiltersTable.getColumn(\" \").setMaxWidth(50);\n qualityFiltersTable.getColumn(\" \").setCellRenderer(new TrueFalseIconRenderer(\n new ImageIcon(this.getClass().getResource(\"/icons/accept-new.png\")),\n new ImageIcon(this.getClass().getResource(\"/icons/error-new.png\")),\n \"Yes\", \"No\"));\n\n int valid = 0;\n for (String qcCheck : psParameter.getQcCriteria()) {\n if (psParameter.isQcPassed(qcCheck)) {\n valid++;\n }\n }\n ((TitledBorder) qualityFiltersPanel.getBorder()).setTitle(\"Quality Filters (\" + valid + \"/\" + psParameter.getQcCriteria().size() + \")\");\n }",
"public String getTarget()\r\n\t{\r\n\t\treturn _target;\r\n\t}",
"public T getPater(T target) {\r\n int index = getIndex(target);\r\n if (index * 2 + 1 >= SIZE) {\r\n return null;\r\n } else if (tree[index * 2 + 1] == null) {\r\n return null;\r\n } else {\r\n return tree[index * 2 + 1];\r\n }\r\n }",
"@objid (\"19651663-f981-4f11-802a-d5d7cbd6f88a\")\n Instance getTarget();",
"java.lang.String getTarget();",
"java.lang.String getTarget();",
"protected void FacetoTarget(Character pc, Object target) {\n int dx, dy;\n if (target instanceof Character) {\n dx = ((Character) target).x - pc.x;\n dy = ((Character) target).y - pc.y;\n } else if (target instanceof Envir_Item) {\n dx = ((Envir_Item) target).getX() - bottom_screen.left - pc.x;\n dy = ((Envir_Item) target).getY() - bottom_screen.top - pc.y;\n } else {\n return;\n }\n\n if (Math.abs(dx) >= Math.abs(dy)) {\n if (dx > 0) {\n pc.setDir(2);\n } else {\n pc.setDir(1);\n }\n } else {\n if (dy > 0) {\n pc.setDir(0);\n } else {\n pc.setDir(3);\n }\n }\n }",
"public String targetId() {\n return this.targetId;\n }",
"public void processTargetTracker (Entity squad, Entity target, boolean contactEnd) {\n\t}",
"final int getNextBuildTarget(int difficulty) {\n/* 1970 */ difficulty = Math.min(5, difficulty);\n/* 1971 */ int start = difficulty * 3;\n/* 1972 */ int templateFound = -1;\n/* */ int x;\n/* 1974 */ for (x = start; x < 17; x++) {\n/* */ \n/* 1976 */ if (this.epicTargetItems[x] <= 0L) {\n/* */ \n/* 1978 */ templateFound = x;\n/* */ \n/* */ break;\n/* */ } \n/* */ } \n/* 1983 */ if (templateFound == -1)\n/* */ {\n/* */ \n/* 1986 */ for (x = start; x > 0; x--) {\n/* */ \n/* 1988 */ if (this.epicTargetItems[x] <= 0L) {\n/* */ \n/* 1990 */ templateFound = x;\n/* */ \n/* */ break;\n/* */ } \n/* */ } \n/* */ }\n/* 1996 */ if (templateFound > -1) {\n/* */ \n/* 1998 */ if (templateFound < 3)\n/* 1999 */ return 717; \n/* 2000 */ if (templateFound < 6)\n/* 2001 */ return 714; \n/* 2002 */ if (templateFound < 9)\n/* 2003 */ return 713; \n/* 2004 */ if (templateFound < 12)\n/* 2005 */ return 715; \n/* 2006 */ if (templateFound < 15) {\n/* 2007 */ return 712;\n/* */ }\n/* 2009 */ return 716;\n/* */ } \n/* 2011 */ return -1;\n/* */ }",
"@Override\n\tpublic void setChaseTarget(){\n\t\tthis.setTarget(_pacman.getX()+Constants.SQUARE_SIDE,_pacman.getY()-(4*Constants.SQUARE_SIDE));\n\t}",
"void setTarget(String target) {\n try {\n int value = Integer.valueOf(target);\n game.setTarget(value);\n } catch (NumberFormatException e) {\n // caused by inputting strings\n } catch (IllegalArgumentException e) {\n // caused by number < 6.\n game.setTarget(10);\n }\n }",
"public boolean hasTargetPos() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"private <T> void getPossibleTargets(TargetingScheme<T> t, TargetList<T> current, List<? extends T> searchSpace, int startInd,\n List<TargetList<T>> outputList) {\n if (t.isFullyTargeted(current)) {\n outputList.add(current);\n return;\n }\n if (startInd >= searchSpace.size()) {\n System.out.println(\"this shouldn't happen lmao\");\n }\n int numToSelect = Math.min(searchSpace.size(), t.getMaxTargets());\n for (int i = startInd; i < searchSpace.size() - (numToSelect - current.targeted.size() - 1); i++) {\n T c = searchSpace.get(i);\n if (!current.targeted.contains(c)) {\n TargetList<T> copy = current.clone();\n copy.targeted.add(c);\n this.getPossibleTargets(t, copy, searchSpace, i + 1, outputList);\n }\n }\n }",
"@Test\n\t\t\tpublic void testTargetsFourSteps() {\n\t\t\t\t//Using random walkway space\n\t\t\t\tboard.calcTargets(5, 18, 3);\n\t\t\t\tSet<BoardCell> targets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(10, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(5, 21)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(6, 20)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(4, 20)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(5, 19)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(3, 17)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(6, 16)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(4, 16)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(5, 17)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(4, 18)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(6, 18)));\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t}",
"public int indexOf(E target) {\n\t\tint first = 0;\n\t\tint last = data.size() - 1;\n\n\t\twhile (first <= last) {\n\t\t\tint mid = (first + last) / 2;\n\t\t\tif (cmp.compare(target, data.get(mid)) == 0) {\n\t\t\t\treturn mid;\n\t\t\t}\n\t\t\telse if (cmp.compare(target, data.get(mid)) < 0) {\n\t\t\t\tlast = mid - 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tfirst = mid + 1;\n\t\t\t}\n\t\t}\n\n\t\treturn -1;\n\t}",
"@Test\r\n\tpublic void testTargetsFourSteps() {\r\n\t\tboard.calcTargets(24, 0, 4);\r\n\t\tSet<BoardCell> targets= board.getTargets();\r\n\t\tassertEquals(4, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(24, 4)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(23, 3)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(24, 2)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(23, 1)));\r\n\t\t\r\n\t\tboard.calcTargets(0, 20, 4);\r\n\t\ttargets = board.getTargets();\r\n\t\tassertEquals(4, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(1, 19)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(2, 20)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(3, 19)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(4, 20)));\r\n\t\t\r\n\t\t// Includes a path that doesn't have enough length plus one door\r\n\t\tboard.calcTargets(9, 0, 4);\r\n\t\ttargets= board.getTargets();\r\n\t\tassertEquals(8, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(9, 4)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(9, 2)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(10, 3)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(10, 1)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(11, 2)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(12, 1)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(8, 2)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(11, 0)));\t\r\n\t}",
"public RaceCar getTarget() {\n return target;\n }",
"public String getTarget() {\n return this.target;\n }",
"@Test\r\n\tpublic void testTargetsSixSteps() {\r\n\t\tboard.calcTargets(24, 17, 6);\r\n\t\tSet<BoardCell> targets= board.getTargets();\r\n\t\tassertEquals(8, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(18, 17)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(20, 17)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(22, 17)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(19, 18)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(21, 18)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(23, 18)));\t\r\n\t\tassertTrue(targets.contains(board.getCellAt(22, 19)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(22, 17)));\r\n\t\t\r\n\t}",
"public Map<Integer, TargetDef> getTargetQueries();",
"public int pacmanMoves(List<Integer> target){\n int numOfmoves = 0;\n //counts the steps to get to the target\n for(int i=target.get(0);i>0;i--){\n numOfmoves++;\n }\n for(int i=target.get(1);i>0;i--){\n numOfmoves++;\n }\n return numOfmoves;\n }",
"private boolean reachX(Position target) {\n return position.x == target.x;\n }",
"@Override\n public ControllerViewEvent getTargetEffectOne() {\n ArrayList<Square> possibleTarget = new ArrayList<>();\n for (int i = 0; i < 4; i++) {\n if (getOwner().getPosition().checkDirection(i) && !getOwner().getPosition().getNextSquare(i).getSquareColour().equals(getOwner().getPosition().getSquareColour()) && !getOwner().getPosition().getNextSquare(i).findRoomPlayers().isEmpty())\n possibleTarget.add(getOwner().getPosition().getNextSquare(i));\n }\n return new TargetSquareRequestEvent(getOwner().getUsername(), Encoder.encodeSquareTargetsX(possibleTarget), Encoder.encodeSquareTargetsY(possibleTarget));\n }",
"public Move(int index, Target target){\r\n this.handIndex = index;\r\n this.target = target;\r\n }",
"abstract public int findTargetToReplace(MemRef r);",
"@Test\n\t\t\tpublic void testTargetsTwoSteps() {\n\t\t\t\t//Length of 2\n\t\t\t\tboard.calcTargets(8, 16, 2);\n\t\t\t\tSet<BoardCell> targets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(4, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(6, 16)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(10, 16)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(7, 15)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(9, 15)));\n\t\t\t\t//Length of 2\n\t\t\t\tboard.calcTargets(15, 15, 2);\n\t\t\t\ttargets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(4, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(13, 15)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(17, 15)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(14, 16)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(15, 17)));\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t}",
"public Object getTargetValue(int idx, Object def);"
] | [
"0.7208216",
"0.7026227",
"0.6587456",
"0.6540184",
"0.63887453",
"0.6240099",
"0.60881144",
"0.60421956",
"0.60260797",
"0.59927416",
"0.5961661",
"0.5951217",
"0.5929538",
"0.5864982",
"0.5806449",
"0.57913244",
"0.5777108",
"0.57526284",
"0.5707325",
"0.56631124",
"0.56596076",
"0.55706894",
"0.5553167",
"0.5550857",
"0.5544616",
"0.55020076",
"0.54722196",
"0.545999",
"0.54580796",
"0.5455644",
"0.54523754",
"0.5440916",
"0.5437973",
"0.5423368",
"0.54180104",
"0.54173386",
"0.5415172",
"0.5412724",
"0.54115814",
"0.53849953",
"0.53788877",
"0.537144",
"0.5369927",
"0.5362503",
"0.5362503",
"0.5338059",
"0.5331119",
"0.53288203",
"0.5326971",
"0.5326226",
"0.5316535",
"0.5306508",
"0.5304909",
"0.530147",
"0.52970266",
"0.5291735",
"0.52872056",
"0.5277293",
"0.52696824",
"0.52694315",
"0.5264898",
"0.5264582",
"0.52636695",
"0.52605814",
"0.5255733",
"0.5249242",
"0.52484304",
"0.52367175",
"0.52367175",
"0.52348226",
"0.5230993",
"0.52270764",
"0.5221397",
"0.5202773",
"0.5195396",
"0.5188123",
"0.51800674",
"0.51800674",
"0.5177376",
"0.51749456",
"0.5158779",
"0.51570404",
"0.51548624",
"0.51479465",
"0.514179",
"0.51369697",
"0.51334816",
"0.5132537",
"0.51316065",
"0.5130061",
"0.51290584",
"0.51271945",
"0.512173",
"0.5117925",
"0.51127553",
"0.511223",
"0.5107555",
"0.50928557",
"0.5091661",
"0.5086859"
] | 0.711838 | 1 |
optional string name = 1; | public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String name){this.name = name;}",
"public void setName(String name){this.name=name;}",
"public void setName(String n){ name=n; }",
"public void setName(String name) {\n if (!name.equals(\"\")) {\r\n this.name = name;\r\n }\r\n\r\n\r\n\r\n\r\n }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name)\n/* */ {\n/* 84 */ this._name = name;\n/* */ }",
"public void setName(String name)\n/* */ {\n/* 53 */ this.name = name;\n/* */ }",
"public String getName(){return name;}",
"public String getName(){return name;}",
"public String getName(){return name;}",
"public String getName(){return name;}",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name)\n {\n _name = name;\n }",
"public String getName(){ return name; }",
"public void setName(final String pName){this.aName = pName;}",
"public final void setName(String name) {_name = name;}",
"public void setName(String name)\n {\n this.name=name;\n }",
"abstract String name();",
"void getName(String name);",
"public void setName(final String name);",
"String getName( String name );",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"void setName(String name)\n\t{\n\t\t\tthis.name = name;\n\t}",
"public void setName(String name) \n {\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String n);",
"public String getName(){return this.name;}",
"void setName(String name)\n {\n this.name = name;\n }",
"public String getName() { return name; }",
"public String getName()\n/* */ {\n/* 59 */ return this.name;\n/* */ }",
"public String getName() \n{\n\treturn name;\n}",
"public void setName(java.lang.String aName);",
"void setName(java.lang.String name);",
"void setName(java.lang.String name);",
"void setName(java.lang.String name);",
"public String getName ()\n {\n return name;\n }",
"public String getName()\n/* */ {\n/* 62 */ return this.name;\n/* */ }",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public String name() { return name; }",
"@Override\n public void setName(String name) {\n \n }",
"public String getName()\n {\n return name;\n}",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"public String getName(){\n return name;\r\n }",
"@Override\n\tpublic void setName(String name) {\n\t\t\n\t}",
"public void setName(String name) {\n fName= name;\n }",
"void setName(String name) {\n this.name = name;\n }",
"public String getName() { return _name; }",
"public void setName(String name)\r\n/* */ {\r\n/* 137 */ this.name = name;\r\n/* */ }",
"public void setName(String name)\r\n/* 29: */ {\r\n/* 30:23 */ this.name = name;\r\n/* 31: */ }",
"public void setName(String name) {\n this.name = name;\n }",
"public String getName(){\n return name;\n}",
"@Override\n public void setName(String name) {\n\n }",
"public String getName()\n/* */ {\n/* 60 */ return this.name;\n/* */ }",
"public String getName(){return this.aName;}",
"public String getName() { return name;}",
"@Override\n\tpublic void setName(String arg0) {\n\n\t}",
"String getName(){return this.name;}",
"public String getName(){\n return name; \n }",
"public String getName() {\n/* 57 */ return this.name;\n/* */ }",
"void setName(String name_);",
"@Override\r\n public String getFirstArg() {\n return name;\r\n }",
"public void setname(String name) {\n this.name = name;\n }",
"public String getName() {return name;}",
"public String getName() {return name;}",
"public String getName() {return name;}",
"public void setName(String name){\n \t\tthis.name = name;\n \t}",
"void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name1) {\r\n this.name = name1;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public String getName(){\n return name;\n }",
"public String getName(){\n return name;\n }",
"public void setName (String Name);",
"public void setName (String Name);"
] | [
"0.74156314",
"0.73947275",
"0.72931343",
"0.722587",
"0.71425295",
"0.71425295",
"0.71425295",
"0.71425295",
"0.71254766",
"0.7042126",
"0.7036526",
"0.7036526",
"0.7036526",
"0.7036526",
"0.7032075",
"0.69701284",
"0.6963385",
"0.695678",
"0.69470596",
"0.6932955",
"0.6926615",
"0.6924372",
"0.69193673",
"0.6917011",
"0.69024205",
"0.69024205",
"0.69024205",
"0.68846864",
"0.6864317",
"0.6857414",
"0.6857414",
"0.6857414",
"0.6857414",
"0.6857414",
"0.6857414",
"0.6857414",
"0.6851823",
"0.6849109",
"0.6827988",
"0.68255794",
"0.68231934",
"0.68132335",
"0.6812315",
"0.68072385",
"0.68072385",
"0.68072385",
"0.6807046",
"0.68050075",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6795918",
"0.67817914",
"0.6770219",
"0.6768334",
"0.6768334",
"0.6768334",
"0.676285",
"0.67607033",
"0.67601925",
"0.6759551",
"0.67595273",
"0.67561615",
"0.6753157",
"0.6752148",
"0.67491335",
"0.6747233",
"0.6742414",
"0.6740996",
"0.67407084",
"0.6736447",
"0.6733133",
"0.6730651",
"0.67302257",
"0.67291254",
"0.6727981",
"0.67250055",
"0.67211264",
"0.67211264",
"0.67211264",
"0.67131555",
"0.6712134",
"0.6700538",
"0.6700538",
"0.6698792",
"0.6697874",
"0.6697874",
"0.6697874",
"0.6697874",
"0.66878164",
"0.66878164",
"0.6687206",
"0.6687206"
] | 0.0 | -1 |
optional string name = 1; | public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String name){this.name = name;}",
"public void setName(String name){this.name=name;}",
"public void setName(String n){ name=n; }",
"public void setName(String name) {\n if (!name.equals(\"\")) {\r\n this.name = name;\r\n }\r\n\r\n\r\n\r\n\r\n }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name)\n/* */ {\n/* 84 */ this._name = name;\n/* */ }",
"public void setName(String name)\n/* */ {\n/* 53 */ this.name = name;\n/* */ }",
"public String getName(){return name;}",
"public String getName(){return name;}",
"public String getName(){return name;}",
"public String getName(){return name;}",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name)\n {\n _name = name;\n }",
"public String getName(){ return name; }",
"public void setName(final String pName){this.aName = pName;}",
"public final void setName(String name) {_name = name;}",
"public void setName(String name)\n {\n this.name=name;\n }",
"abstract String name();",
"void getName(String name);",
"public void setName(final String name);",
"String getName( String name );",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"void setName(String name)\n\t{\n\t\t\tthis.name = name;\n\t}",
"public void setName(String name) \n {\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String n);",
"public String getName(){return this.name;}",
"void setName(String name)\n {\n this.name = name;\n }",
"public String getName() { return name; }",
"public String getName()\n/* */ {\n/* 59 */ return this.name;\n/* */ }",
"public String getName() \n{\n\treturn name;\n}",
"public void setName(java.lang.String aName);",
"void setName(java.lang.String name);",
"void setName(java.lang.String name);",
"void setName(java.lang.String name);",
"public String getName ()\n {\n return name;\n }",
"public String getName()\n/* */ {\n/* 62 */ return this.name;\n/* */ }",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public String name() { return name; }",
"@Override\n public void setName(String name) {\n \n }",
"public String getName()\n {\n return name;\n}",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"public String getName(){\n return name;\r\n }",
"@Override\n\tpublic void setName(String name) {\n\t\t\n\t}",
"public void setName(String name) {\n fName= name;\n }",
"void setName(String name) {\n this.name = name;\n }",
"public String getName() { return _name; }",
"public void setName(String name)\r\n/* */ {\r\n/* 137 */ this.name = name;\r\n/* */ }",
"public void setName(String name)\r\n/* 29: */ {\r\n/* 30:23 */ this.name = name;\r\n/* 31: */ }",
"public void setName(String name) {\n this.name = name;\n }",
"public String getName(){\n return name;\n}",
"@Override\n public void setName(String name) {\n\n }",
"public String getName()\n/* */ {\n/* 60 */ return this.name;\n/* */ }",
"public String getName(){return this.aName;}",
"public String getName() { return name;}",
"@Override\n\tpublic void setName(String arg0) {\n\n\t}",
"String getName(){return this.name;}",
"public String getName(){\n return name; \n }",
"public String getName() {\n/* 57 */ return this.name;\n/* */ }",
"void setName(String name_);",
"@Override\r\n public String getFirstArg() {\n return name;\r\n }",
"public void setname(String name) {\n this.name = name;\n }",
"public String getName() {return name;}",
"public String getName() {return name;}",
"public String getName() {return name;}",
"public void setName(String name){\n \t\tthis.name = name;\n \t}",
"void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name1) {\r\n this.name = name1;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName (String Name);",
"public void setName (String Name);",
"public void setName (String Name);",
"public String getName(){\n return name;\n }"
] | [
"0.7415193",
"0.7394258",
"0.729242",
"0.7225616",
"0.7142188",
"0.7142188",
"0.7142188",
"0.7142188",
"0.7124642",
"0.704143",
"0.7035703",
"0.7035703",
"0.7035703",
"0.7035703",
"0.703168",
"0.6969442",
"0.69625455",
"0.69563097",
"0.6946523",
"0.6932603",
"0.69257647",
"0.69236046",
"0.6918786",
"0.69161576",
"0.69020665",
"0.69020665",
"0.69020665",
"0.6884299",
"0.68639964",
"0.68570775",
"0.68570775",
"0.68570775",
"0.68570775",
"0.68570775",
"0.68570775",
"0.68570775",
"0.68512315",
"0.68482256",
"0.6827596",
"0.6824664",
"0.6822075",
"0.6812009",
"0.6811948",
"0.6807033",
"0.6807033",
"0.6807033",
"0.68057597",
"0.6803925",
"0.68036824",
"0.68036824",
"0.68036824",
"0.68036824",
"0.68036824",
"0.68036824",
"0.68036824",
"0.68036824",
"0.68036824",
"0.68036824",
"0.68036824",
"0.67952424",
"0.67816585",
"0.6768896",
"0.67675173",
"0.67675173",
"0.67675173",
"0.6761691",
"0.67604834",
"0.6759709",
"0.675923",
"0.6758438",
"0.6755651",
"0.67524725",
"0.675179",
"0.6747701",
"0.6746954",
"0.6741313",
"0.6740185",
"0.67400306",
"0.673626",
"0.6732299",
"0.67294097",
"0.67291677",
"0.6729005",
"0.67282593",
"0.6724423",
"0.6720475",
"0.6720475",
"0.6720475",
"0.6712931",
"0.67119104",
"0.67001593",
"0.67001593",
"0.6699112",
"0.6697609",
"0.6697609",
"0.6697609",
"0.6697609",
"0.66868776",
"0.66868776",
"0.66868776",
"0.6686557"
] | 0.0 | -1 |
optional string name = 1; | public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String name){this.name = name;}",
"public void setName(String name){this.name=name;}",
"public void setName(String n){ name=n; }",
"public void setName(String name) {\n if (!name.equals(\"\")) {\r\n this.name = name;\r\n }\r\n\r\n\r\n\r\n\r\n }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name)\n/* */ {\n/* 84 */ this._name = name;\n/* */ }",
"public void setName(String name)\n/* */ {\n/* 53 */ this.name = name;\n/* */ }",
"public String getName(){return name;}",
"public String getName(){return name;}",
"public String getName(){return name;}",
"public String getName(){return name;}",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name)\n {\n _name = name;\n }",
"public String getName(){ return name; }",
"public void setName(final String pName){this.aName = pName;}",
"public final void setName(String name) {_name = name;}",
"public void setName(String name)\n {\n this.name=name;\n }",
"abstract String name();",
"void getName(String name);",
"public void setName(final String name);",
"String getName( String name );",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"void setName(String name)\n\t{\n\t\t\tthis.name = name;\n\t}",
"public void setName(String name) \n {\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String n);",
"public String getName(){return this.name;}",
"void setName(String name)\n {\n this.name = name;\n }",
"public String getName() { return name; }",
"public String getName()\n/* */ {\n/* 59 */ return this.name;\n/* */ }",
"public String getName() \n{\n\treturn name;\n}",
"public void setName(java.lang.String aName);",
"void setName(java.lang.String name);",
"void setName(java.lang.String name);",
"void setName(java.lang.String name);",
"public String getName ()\n {\n return name;\n }",
"public String getName()\n/* */ {\n/* 62 */ return this.name;\n/* */ }",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public String name() { return name; }",
"@Override\n public void setName(String name) {\n \n }",
"public String getName()\n {\n return name;\n}",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"public String getName(){\n return name;\r\n }",
"@Override\n\tpublic void setName(String name) {\n\t\t\n\t}",
"public void setName(String name) {\n fName= name;\n }",
"public String getName() { return _name; }",
"void setName(String name) {\n this.name = name;\n }",
"public void setName(String name)\r\n/* */ {\r\n/* 137 */ this.name = name;\r\n/* */ }",
"public void setName(String name)\r\n/* 29: */ {\r\n/* 30:23 */ this.name = name;\r\n/* 31: */ }",
"public void setName(String name) {\n this.name = name;\n }",
"public String getName(){\n return name;\n}",
"@Override\n public void setName(String name) {\n\n }",
"public String getName()\n/* */ {\n/* 60 */ return this.name;\n/* */ }",
"public String getName(){return this.aName;}",
"public String getName() { return name;}",
"@Override\n\tpublic void setName(String arg0) {\n\n\t}",
"String getName(){return this.name;}",
"public String getName(){\n return name; \n }",
"public String getName() {\n/* 57 */ return this.name;\n/* */ }",
"@Override\r\n public String getFirstArg() {\n return name;\r\n }",
"void setName(String name_);",
"public void setname(String name) {\n this.name = name;\n }",
"public String getName() {return name;}",
"public String getName() {return name;}",
"public String getName() {return name;}",
"public void setName(String name){\n \t\tthis.name = name;\n \t}",
"void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name1) {\r\n this.name = name1;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName (String Name);",
"public void setName (String Name);",
"public void setName (String Name);",
"public String getName(){\n return name;\n }"
] | [
"0.74141526",
"0.7393322",
"0.7291197",
"0.7224721",
"0.71405584",
"0.71405584",
"0.71405584",
"0.71405584",
"0.7123966",
"0.7040823",
"0.7034966",
"0.7034966",
"0.7034966",
"0.7034966",
"0.70301276",
"0.6968112",
"0.696168",
"0.695565",
"0.6945353",
"0.693079",
"0.6924449",
"0.6922394",
"0.69175106",
"0.69150096",
"0.6900264",
"0.6900264",
"0.6900264",
"0.68825734",
"0.68622136",
"0.68552387",
"0.68552387",
"0.68552387",
"0.68552387",
"0.68552387",
"0.68552387",
"0.68552387",
"0.6850503",
"0.6847457",
"0.6825841",
"0.68234867",
"0.6821565",
"0.68114525",
"0.6811141",
"0.68056595",
"0.68056595",
"0.68056595",
"0.6805285",
"0.6803301",
"0.68025523",
"0.68025523",
"0.68025523",
"0.68025523",
"0.68025523",
"0.68025523",
"0.68025523",
"0.68025523",
"0.68025523",
"0.68025523",
"0.68025523",
"0.6793531",
"0.67800295",
"0.67685485",
"0.6767684",
"0.6767684",
"0.6767684",
"0.6760867",
"0.6759007",
"0.6758689",
"0.67575085",
"0.67572856",
"0.67547494",
"0.67517024",
"0.67499566",
"0.67475075",
"0.6745644",
"0.6740849",
"0.67392343",
"0.6738759",
"0.67358834",
"0.673135",
"0.67286396",
"0.6728434",
"0.6728158",
"0.67277014",
"0.6722236",
"0.6719115",
"0.6719115",
"0.6719115",
"0.67112213",
"0.6709939",
"0.6698419",
"0.6698419",
"0.66976327",
"0.6695681",
"0.6695681",
"0.6695681",
"0.6695681",
"0.6686113",
"0.6686113",
"0.6686113",
"0.66859156"
] | 0.0 | -1 |
optional string name = 1; | public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String name){this.name = name;}",
"public void setName(String name){this.name=name;}",
"public void setName(String n){ name=n; }",
"public void setName(String name) {\n if (!name.equals(\"\")) {\r\n this.name = name;\r\n }\r\n\r\n\r\n\r\n\r\n }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name)\n/* */ {\n/* 84 */ this._name = name;\n/* */ }",
"public void setName(String name)\n/* */ {\n/* 53 */ this.name = name;\n/* */ }",
"public String getName(){return name;}",
"public String getName(){return name;}",
"public String getName(){return name;}",
"public String getName(){return name;}",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name)\n {\n _name = name;\n }",
"public String getName(){ return name; }",
"public void setName(final String pName){this.aName = pName;}",
"public final void setName(String name) {_name = name;}",
"public void setName(String name)\n {\n this.name=name;\n }",
"abstract String name();",
"void getName(String name);",
"public void setName(final String name);",
"String getName( String name );",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"void setName(String name)\n\t{\n\t\t\tthis.name = name;\n\t}",
"public void setName(String name) \n {\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String n);",
"public String getName(){return this.name;}",
"void setName(String name)\n {\n this.name = name;\n }",
"public String getName() { return name; }",
"public String getName()\n/* */ {\n/* 59 */ return this.name;\n/* */ }",
"public String getName() \n{\n\treturn name;\n}",
"public void setName(java.lang.String aName);",
"void setName(java.lang.String name);",
"void setName(java.lang.String name);",
"void setName(java.lang.String name);",
"public String getName ()\n {\n return name;\n }",
"public String getName()\n/* */ {\n/* 62 */ return this.name;\n/* */ }",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public String name() { return name; }",
"@Override\n public void setName(String name) {\n \n }",
"public String getName()\n {\n return name;\n}",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"public String getName(){\n return name;\r\n }",
"@Override\n\tpublic void setName(String name) {\n\t\t\n\t}",
"public void setName(String name) {\n fName= name;\n }",
"void setName(String name) {\n this.name = name;\n }",
"public String getName() { return _name; }",
"public void setName(String name)\r\n/* */ {\r\n/* 137 */ this.name = name;\r\n/* */ }",
"public void setName(String name)\r\n/* 29: */ {\r\n/* 30:23 */ this.name = name;\r\n/* 31: */ }",
"public void setName(String name) {\n this.name = name;\n }",
"public String getName(){\n return name;\n}",
"@Override\n public void setName(String name) {\n\n }",
"public String getName()\n/* */ {\n/* 60 */ return this.name;\n/* */ }",
"public String getName(){return this.aName;}",
"public String getName() { return name;}",
"@Override\n\tpublic void setName(String arg0) {\n\n\t}",
"String getName(){return this.name;}",
"public String getName(){\n return name; \n }",
"public String getName() {\n/* 57 */ return this.name;\n/* */ }",
"void setName(String name_);",
"@Override\r\n public String getFirstArg() {\n return name;\r\n }",
"public void setname(String name) {\n this.name = name;\n }",
"public String getName() {return name;}",
"public String getName() {return name;}",
"public String getName() {return name;}",
"public void setName(String name){\n \t\tthis.name = name;\n \t}",
"void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name1) {\r\n this.name = name1;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public String getName(){\n return name;\n }",
"public String getName(){\n return name;\n }",
"public void setName (String Name);",
"public void setName (String Name);"
] | [
"0.74156314",
"0.73947275",
"0.72931343",
"0.722587",
"0.71425295",
"0.71425295",
"0.71425295",
"0.71425295",
"0.71254766",
"0.7042126",
"0.7036526",
"0.7036526",
"0.7036526",
"0.7036526",
"0.7032075",
"0.69701284",
"0.6963385",
"0.695678",
"0.69470596",
"0.6932955",
"0.6926615",
"0.6924372",
"0.69193673",
"0.6917011",
"0.69024205",
"0.69024205",
"0.69024205",
"0.68846864",
"0.6864317",
"0.6857414",
"0.6857414",
"0.6857414",
"0.6857414",
"0.6857414",
"0.6857414",
"0.6857414",
"0.6851823",
"0.6849109",
"0.6827988",
"0.68255794",
"0.68231934",
"0.68132335",
"0.6812315",
"0.68072385",
"0.68072385",
"0.68072385",
"0.6807046",
"0.68050075",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6795918",
"0.67817914",
"0.6770219",
"0.6768334",
"0.6768334",
"0.6768334",
"0.676285",
"0.67607033",
"0.67601925",
"0.6759551",
"0.67595273",
"0.67561615",
"0.6753157",
"0.6752148",
"0.67491335",
"0.6747233",
"0.6742414",
"0.6740996",
"0.67407084",
"0.6736447",
"0.6733133",
"0.6730651",
"0.67302257",
"0.67291254",
"0.6727981",
"0.67250055",
"0.67211264",
"0.67211264",
"0.67211264",
"0.67131555",
"0.6712134",
"0.6700538",
"0.6700538",
"0.6698792",
"0.6697874",
"0.6697874",
"0.6697874",
"0.6697874",
"0.66878164",
"0.66878164",
"0.6687206",
"0.6687206"
] | 0.0 | -1 |
optional string name = 1; | public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String name){this.name = name;}",
"public void setName(String name){this.name=name;}",
"public void setName(String n){ name=n; }",
"public void setName(String name) {\n if (!name.equals(\"\")) {\r\n this.name = name;\r\n }\r\n\r\n\r\n\r\n\r\n }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name)\n/* */ {\n/* 84 */ this._name = name;\n/* */ }",
"public void setName(String name)\n/* */ {\n/* 53 */ this.name = name;\n/* */ }",
"public String getName(){return name;}",
"public String getName(){return name;}",
"public String getName(){return name;}",
"public String getName(){return name;}",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name)\n {\n _name = name;\n }",
"public String getName(){ return name; }",
"public void setName(final String pName){this.aName = pName;}",
"public final void setName(String name) {_name = name;}",
"public void setName(String name)\n {\n this.name=name;\n }",
"abstract String name();",
"void getName(String name);",
"public void setName(final String name);",
"String getName( String name );",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"void setName(String name)\n\t{\n\t\t\tthis.name = name;\n\t}",
"public void setName(String name) \n {\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String n);",
"public String getName(){return this.name;}",
"void setName(String name)\n {\n this.name = name;\n }",
"public String getName() { return name; }",
"public String getName()\n/* */ {\n/* 59 */ return this.name;\n/* */ }",
"public String getName() \n{\n\treturn name;\n}",
"public void setName(java.lang.String aName);",
"void setName(java.lang.String name);",
"void setName(java.lang.String name);",
"void setName(java.lang.String name);",
"public String getName ()\n {\n return name;\n }",
"public String getName()\n/* */ {\n/* 62 */ return this.name;\n/* */ }",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public String name() { return name; }",
"@Override\n public void setName(String name) {\n \n }",
"public String getName()\n {\n return name;\n}",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"public String getName(){\n return name;\r\n }",
"@Override\n\tpublic void setName(String name) {\n\t\t\n\t}",
"public void setName(String name) {\n fName= name;\n }",
"void setName(String name) {\n this.name = name;\n }",
"public String getName() { return _name; }",
"public void setName(String name)\r\n/* */ {\r\n/* 137 */ this.name = name;\r\n/* */ }",
"public void setName(String name)\r\n/* 29: */ {\r\n/* 30:23 */ this.name = name;\r\n/* 31: */ }",
"public void setName(String name) {\n this.name = name;\n }",
"public String getName(){\n return name;\n}",
"@Override\n public void setName(String name) {\n\n }",
"public String getName()\n/* */ {\n/* 60 */ return this.name;\n/* */ }",
"public String getName(){return this.aName;}",
"public String getName() { return name;}",
"@Override\n\tpublic void setName(String arg0) {\n\n\t}",
"String getName(){return this.name;}",
"public String getName(){\n return name; \n }",
"public String getName() {\n/* 57 */ return this.name;\n/* */ }",
"void setName(String name_);",
"@Override\r\n public String getFirstArg() {\n return name;\r\n }",
"public void setname(String name) {\n this.name = name;\n }",
"public String getName() {return name;}",
"public String getName() {return name;}",
"public String getName() {return name;}",
"public void setName(String name){\n \t\tthis.name = name;\n \t}",
"void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name1) {\r\n this.name = name1;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public String getName(){\n return name;\n }",
"public String getName(){\n return name;\n }",
"public void setName (String Name);",
"public void setName (String Name);"
] | [
"0.74156314",
"0.73947275",
"0.72931343",
"0.722587",
"0.71425295",
"0.71425295",
"0.71425295",
"0.71425295",
"0.71254766",
"0.7042126",
"0.7036526",
"0.7036526",
"0.7036526",
"0.7036526",
"0.7032075",
"0.69701284",
"0.6963385",
"0.695678",
"0.69470596",
"0.6932955",
"0.6926615",
"0.6924372",
"0.69193673",
"0.6917011",
"0.69024205",
"0.69024205",
"0.69024205",
"0.68846864",
"0.6864317",
"0.6857414",
"0.6857414",
"0.6857414",
"0.6857414",
"0.6857414",
"0.6857414",
"0.6857414",
"0.6851823",
"0.6849109",
"0.6827988",
"0.68255794",
"0.68231934",
"0.68132335",
"0.6812315",
"0.68072385",
"0.68072385",
"0.68072385",
"0.6807046",
"0.68050075",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6804078",
"0.6795918",
"0.67817914",
"0.6770219",
"0.6768334",
"0.6768334",
"0.6768334",
"0.676285",
"0.67607033",
"0.67601925",
"0.6759551",
"0.67595273",
"0.67561615",
"0.6753157",
"0.6752148",
"0.67491335",
"0.6747233",
"0.6742414",
"0.6740996",
"0.67407084",
"0.6736447",
"0.6733133",
"0.6730651",
"0.67302257",
"0.67291254",
"0.6727981",
"0.67250055",
"0.67211264",
"0.67211264",
"0.67211264",
"0.67131555",
"0.6712134",
"0.6700538",
"0.6700538",
"0.6698792",
"0.6697874",
"0.6697874",
"0.6697874",
"0.6697874",
"0.66878164",
"0.66878164",
"0.6687206",
"0.6687206"
] | 0.0 | -1 |
optional string name = 1; | public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String name){this.name = name;}",
"public void setName(String name){this.name=name;}",
"public void setName(String n){ name=n; }",
"public void setName(String name) {\n if (!name.equals(\"\")) {\r\n this.name = name;\r\n }\r\n\r\n\r\n\r\n\r\n }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name)\n/* */ {\n/* 84 */ this._name = name;\n/* */ }",
"public void setName(String name)\n/* */ {\n/* 53 */ this.name = name;\n/* */ }",
"public String getName(){return name;}",
"public String getName(){return name;}",
"public String getName(){return name;}",
"public String getName(){return name;}",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name)\n {\n _name = name;\n }",
"public String getName(){ return name; }",
"public void setName(final String pName){this.aName = pName;}",
"public final void setName(String name) {_name = name;}",
"public void setName(String name)\n {\n this.name=name;\n }",
"abstract String name();",
"void getName(String name);",
"public void setName(final String name);",
"String getName( String name );",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"void setName(String name)\n\t{\n\t\t\tthis.name = name;\n\t}",
"public void setName(String name) \n {\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String n);",
"public String getName(){return this.name;}",
"void setName(String name)\n {\n this.name = name;\n }",
"public String getName() { return name; }",
"public String getName()\n/* */ {\n/* 59 */ return this.name;\n/* */ }",
"public String getName() \n{\n\treturn name;\n}",
"public void setName(java.lang.String aName);",
"void setName(java.lang.String name);",
"void setName(java.lang.String name);",
"void setName(java.lang.String name);",
"public String getName ()\n {\n return name;\n }",
"public String getName()\n/* */ {\n/* 62 */ return this.name;\n/* */ }",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public String name() { return name; }",
"@Override\n public void setName(String name) {\n \n }",
"public String getName()\n {\n return name;\n}",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }",
"public String getName(){\n return name;\r\n }",
"@Override\n\tpublic void setName(String name) {\n\t\t\n\t}",
"public void setName(String name) {\n fName= name;\n }",
"void setName(String name) {\n this.name = name;\n }",
"public String getName() { return _name; }",
"public void setName(String name)\r\n/* */ {\r\n/* 137 */ this.name = name;\r\n/* */ }",
"public void setName(String name)\r\n/* 29: */ {\r\n/* 30:23 */ this.name = name;\r\n/* 31: */ }",
"public void setName(String name) {\n this.name = name;\n }",
"public String getName(){\n return name;\n}",
"@Override\n public void setName(String name) {\n\n }",
"public String getName()\n/* */ {\n/* 60 */ return this.name;\n/* */ }",
"public String getName(){return this.aName;}",
"public String getName() { return name;}",
"@Override\n\tpublic void setName(String arg0) {\n\n\t}",
"String getName(){return this.name;}",
"public String getName(){\n return name; \n }",
"public String getName() {\n/* 57 */ return this.name;\n/* */ }",
"void setName(String name_);",
"@Override\r\n public String getFirstArg() {\n return name;\r\n }",
"public void setname(String name) {\n this.name = name;\n }",
"public String getName() {return name;}",
"public String getName() {return name;}",
"public String getName() {return name;}",
"public void setName(String name){\n \t\tthis.name = name;\n \t}",
"void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name1) {\r\n this.name = name1;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName (String Name);",
"public void setName (String Name);",
"public void setName (String Name);",
"public String getName(){\n return name;\n }"
] | [
"0.7415193",
"0.7394258",
"0.729242",
"0.7225616",
"0.7142188",
"0.7142188",
"0.7142188",
"0.7142188",
"0.7124642",
"0.704143",
"0.7035703",
"0.7035703",
"0.7035703",
"0.7035703",
"0.703168",
"0.6969442",
"0.69625455",
"0.69563097",
"0.6946523",
"0.6932603",
"0.69257647",
"0.69236046",
"0.6918786",
"0.69161576",
"0.69020665",
"0.69020665",
"0.69020665",
"0.6884299",
"0.68639964",
"0.68570775",
"0.68570775",
"0.68570775",
"0.68570775",
"0.68570775",
"0.68570775",
"0.68570775",
"0.68512315",
"0.68482256",
"0.6827596",
"0.6824664",
"0.6822075",
"0.6812009",
"0.6811948",
"0.6807033",
"0.6807033",
"0.6807033",
"0.68057597",
"0.6803925",
"0.68036824",
"0.68036824",
"0.68036824",
"0.68036824",
"0.68036824",
"0.68036824",
"0.68036824",
"0.68036824",
"0.68036824",
"0.68036824",
"0.68036824",
"0.67952424",
"0.67816585",
"0.6768896",
"0.67675173",
"0.67675173",
"0.67675173",
"0.6761691",
"0.67604834",
"0.6759709",
"0.675923",
"0.6758438",
"0.6755651",
"0.67524725",
"0.675179",
"0.6747701",
"0.6746954",
"0.6741313",
"0.6740185",
"0.67400306",
"0.673626",
"0.6732299",
"0.67294097",
"0.67291677",
"0.6729005",
"0.67282593",
"0.6724423",
"0.6720475",
"0.6720475",
"0.6720475",
"0.6712931",
"0.67119104",
"0.67001593",
"0.67001593",
"0.6699112",
"0.6697609",
"0.6697609",
"0.6697609",
"0.6697609",
"0.66868776",
"0.66868776",
"0.66868776",
"0.6686557"
] | 0.0 | -1 |
optional int32 id = 2; In a file of records of type Protein ids will | public boolean hasId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void idlize() throws IOException {\r\n\t\t/**give mid who has name a id, for other mid, keep using mid to identify them*/\r\n\t\t//\t\tHashMap<String, Integer> namedmid2name = new HashMap<String, Integer>(20000000);\r\n\t\t//\t\tHashMap<String, Integer> relationname2id = new HashMap<String, Integer>(1000000);\r\n\t\t//\t\tDelimitedWriter dw = new DelimitedWriter(Main.dir + \"/visible_idize\");\r\n\t\t//\t\tDelimitedWriter dw_debug = new DelimitedWriter(Main.dir + \"/visible_debug\");\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_fbenglishname);\r\n\t\t//\t\t\tString[] l;\r\n\t\t//\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t//\t\t\t\tnamedmid2name.put(l[0], namedmid2name.size());\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tD.p(\"load mid2name finished\");\r\n\t\t//\t\t\tdr.close();\r\n\t\t//\t\t}\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_visible_str);\r\n\t\t//\t\t\tString[] l;\r\n\t\t//\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t//\t\t\t\tString mid = l[0];\r\n\t\t//\t\t\t\tInteger gid = namedmid2name.get(mid);\r\n\t\t//\t\t\t\tif (gid == null) {\r\n\t\t//\t\t\t\t\tdw_debug.write(l);\r\n\t\t//\t\t\t\t\tcontinue;\r\n\t\t//\t\t\t\t}\r\n\t\t//\t\t\t\tString relationname = l[2];\r\n\t\t//\t\t\t\tif (!relationname2id.containsKey(relationname)) {\r\n\t\t//\t\t\t\t\trelationname2id.put(relationname, relationname2id.size());\r\n\t\t//\t\t\t\t}\r\n\t\t//\t\t\t\tint relid = relationname2id.get(relationname);\r\n\t\t//\t\t\t\tdw.write(l[1], gid, relid, l[3]);\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tdr.close();\r\n\t\t//\t\t}\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_visible_str);\r\n\t\t//\t\t\tString[] l;\r\n\t\t//\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t//\t\t\t\tString mid1 = l[0];\r\n\t\t//\t\t\t\tString mid2 = l[3];\r\n\t\t//\t\t\t\tInteger gid1 = namedmid2name.get(mid1);\r\n\t\t//\t\t\t\tInteger gid2 = namedmid2name.get(mid2);\r\n\t\t//\t\t\t\tif (gid1 == null || gid2 == null) {\r\n\t\t//\t\t\t\t\tdw_debug.write(l);\r\n\t\t//\t\t\t\t\tcontinue;\r\n\t\t//\t\t\t\t}\r\n\t\t//\t\t\t\tString relationname = l[2];\r\n\t\t//\t\t\t\tif (!relationname2id.containsKey(relationname)) {\r\n\t\t//\t\t\t\t\trelationname2id.put(relationname, relationname2id.size());\r\n\t\t//\t\t\t\t}\r\n\t\t//\t\t\t\tint relid = relationname2id.get(relationname);\r\n\t\t//\t\t\t\tdw.write(l[1], gid1, relid, gid2, l[3]);\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tdr.close();\r\n\t\t//\t\t}\r\n\t\t//\t\tdw.close();\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedWriter dwrel = new DelimitedWriter(Main.dir + \"/visible_relations.temp\");\r\n\t\t//\t\t\tfor (Entry<String, Integer> e : relationname2id.entrySet()) {\r\n\t\t//\t\t\t\tdwrel.write(e.getValue(), e.getKey());\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tdwrel.close();\r\n\t\t//\t\t\tSort.sort(Main.dir + \"/visible_relations.temp\", Main.dir + \"/visible_relations\", Main.dir,\r\n\t\t//\t\t\t\t\tnew Comparator<String[]>() {\r\n\t\t//\t\t\t\t\t\t@Override\r\n\t\t//\t\t\t\t\t\tpublic int compare(String[] o1, String[] o2) {\r\n\t\t//\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t//\t\t\t\t\t\t\treturn Integer.parseInt(o1[0]) - Integer.parseInt(o2[0]);\r\n\t\t//\t\t\t\t\t\t}\r\n\t\t//\r\n\t\t//\t\t\t\t\t});\r\n\t\t//\t\t}\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedWriter dwmid = new DelimitedWriter(Main.dir + \"/visible_mid2gid.temp\");\r\n\t\t//\t\t\tfor (Entry<String, Integer> e : namedmid2name.entrySet()) {\r\n\t\t//\t\t\t\tdwmid.write(e.getValue(), e.getKey());\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tdwmid.close();\r\n\t\t//\t\t\tSort.sort(Main.dir + \"/visible_mid2gid.temp\", Main.dir + \"/visible_mid2gid\", Main.dir,\r\n\t\t//\t\t\t\t\tnew Comparator<String[]>() {\r\n\t\t//\t\t\t\t\t\t@Override\r\n\t\t//\t\t\t\t\t\tpublic int compare(String[] o1, String[] o2) {\r\n\t\t//\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t//\t\t\t\t\t\t\treturn Integer.parseInt(o1[0]) - Integer.parseInt(o2[0]);\r\n\t\t//\t\t\t\t\t\t}\r\n\t\t//\r\n\t\t//\t\t\t\t\t});\r\n\t\t//\t\t}\r\n\t}",
"public PlantID(String line){\r\n\t\tScanner sc = new Scanner(line);\r\n\t\tthis.id = sc.next();\r\n\t\tthis.name = (sc.next()+\" \" +sc.next());\r\n\t\tsc.close();\r\n\t}",
"public void createIDMap()\n {\n IDMap = new HashMap<>();\n idFile.open(\"idpassword.txt\");\n String line = idFile.getNextLine();\n\n\n\n while(line!=null) {\n String[] fields = line.split(\",\");\n IDMap.put(fields[0], fields[1]);\n\n line = idFile.getNextLine();\n\n }\n\n }",
"public void setProtein_id(java.lang.String protein_id) {\n this.protein_id = protein_id;\n }",
"public void setID() throws IOException;",
"int getIDS(String ids) throws IOException {\n String lines=\"\";\n String aux;\n int i = 0, j = 0, k = 0;\n\n BufferedReader br = new BufferedReader(new FileReader(ids)); /* Read all file adding to string */\n try {\n StringBuilder sb = new StringBuilder();\n String line = br.readLine();\n while (line != null) {\n sb.append(line);\n sb.append(System.lineSeparator());\n line = br.readLine();\n }\n lines = sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n br.close();\n }\n\n /* Add each each id to array and get the number of ids */\n i = lines.indexOf(\"id#:[\");\n k = lines.indexOf(\"]\");\n while (i >= 0) {\n /* AllPos[j] = Integer.parseInt(lines.substring(i+5,k));*/\n attrib_int(j, Integer.parseInt(lines.substring(i+5,k)));\n lines = lines.substring(k+1);\n i = lines.indexOf(\"id#:[\");\n if (i>=0)\n {\n aux = lines.substring(i);\n k = aux.indexOf(\"]\") + i;\n }\n j++;\n\n }\n ids_quantity=j;\n return (0);\n }",
"int insertSelective(EhrPersonFile record);",
"int insertSelective(DiaryFile record);",
"int insert(DiaryFile record);",
"public void setFileid(Integer fileid) {\n this.fileid = fileid;\n }",
"@Override\n\tpublic FileModel getId(Long id) {\n\t\treturn fm.getOne(id);\n\t}",
"public void setId(byte id){this.id = id;}",
"@Override\r\n\tpublic void read(Object id) {\n\t\t\r\n\t}",
"EhrPersonFile selectByPrimaryKey(Long id);",
"public void setID(String idIn) {this.id = idIn;}",
"public static void loadTargetTerm2IdMapping(File input) throws IOException {\n\t\t\tm_namesMap = new SimpleBidirectionalMap<String, Integer>();\n\t\t\tString encoding = FileUtils.getFileEncoding(input);\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(input), encoding));\n\t\t\tString line = reader.readLine();\n\t\t\tint lineNum = 1;\n\t\t\tboolean testFormat = false;\n\t\t\tif(StringUtils.checkIfNumber(line.split(\"\\t\")[0]))\n\t\t\t\ttestFormat = true;\n\t\t\twhile(line!= null) {\n\t\t\t\tif(line.equals(\"@@@\"))\n\t\t\t\t\tbreak;\n\t\t\t\tif(testFormat) {\n\t\t\t\t\tString num = line.split(\"\\t\")[0];\n\t\t\t\t\tSystem.out.println(\"key: \"+line.trim().substring(num.length()+1) + \" value: \" + Integer.parseInt(num));\n\t\t\t\t\tm_namesMap.put(line.trim().substring(num.length()+1), Integer.parseInt(num));\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"key????\" + lineNum + \"instead of \" + line.split(\"\\t\")[0]);\n\t\t\t\t\tm_namesMap.put(line.trim(), lineNum);\n\t\t\t\t}\n\t\t\t\tline = reader.readLine();\n\t\t\t\tlineNum ++;\n\t\t\t}\n\t\t}",
"public abstract String getLineupId();",
"private void processGeneFile(String inputFilename, String taxonID) throws IOException {\n BufferedReader reader = createInputFileReader(inputFilename);\n String line;\n String[] columns;\n \n \t// Skip the first line\n line = reader.readLine();\n while (reader.ready()) {\n line = reader.readLine();\n \t\t//writeToDebugFile(line);\n \t\tif (line.substring(0,1).equals(\"#\")) {\n \t\twriteToErrorFile(line, \"Comment\");\n \t\t\tcontinue;\n \t\t}\n columns = line.split(INPUT_COLUMN_DELIM);\n \n String rgdID = columns[0].trim();\n \n // If line contains column names (usually first line), skip it\n if (rgdID.equals(\"GENE_RGD_ID\")) continue;\n \n String geneSymbol = columns[1].trim();\n String chromosome = columns[6].trim(); \n \n \t\t// columns[14] == start base pair\n \t\t// columns[15] == end base pair\n \t\t// columns[16] == strand (- or +)\n \n String mapLocation = getMapLocation(columns[14], columns[15], columns[16].trim());\n \n // The following columns may contain multiple items\n String[] entrezGeneIDs = splitListColumn(columns[20]);\n String[] swissProtIDs = splitListColumn(columns[21]);\n String[] genBankRNAIDs = splitListColumn(columns[23]);\n String[] genBankProteinIDs = splitListColumn(columns[25]);\n String[] unigeneIDs = splitListColumn(columns[26]);\n String[] ensemblIDs;\n \n // if columns.length < 38, the last column (Ensembl ID) is missing\n // from the input file\n if (columns.length < 38) {\n // since there are no EnsemblIDs, set the variable to an empty array,\n // which is what splitListColumn() would do\n ensemblIDs = EMPTY_STRING_ARRAY;\n } else {\n //ensemblIDs = columns[37].split(INPUT_LIST_DELIM);\n ensemblIDs = splitListColumn(columns[37]);\n }\n \n // Write RGD Info\n writeToInfoFile(taxonID, RGD_ID_TYPE, rgdID, chromosome, mapLocation);\n \n // Write Gene Symbol and Ensembl ID Info and Links\n if (!geneSymbol.equals(\"\")) {\n writeToInfoFile(taxonID, \"Gene Symbol\", geneSymbol, chromosome, mapLocation);\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"Gene Symbol\",geneSymbol);\n }\n for (int i = 0; i < ensemblIDs.length; i++) {\n writeToInfoFile(taxonID, \"Ensembl ID\", ensemblIDs[i], chromosome, mapLocation);\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"Ensembl ID\",ensemblIDs[i]);\n }\n \n // Handle NCBI RefSeq and non-RefSeq IDs (both RNA and Protein)\n for (int i = 0; i < genBankRNAIDs.length; i++) {\n String genBankRNAID = genBankRNAIDs[i];\n if (isRefSeq(genBankRNAID)) {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"RefSeq RNA ID\",genBankRNAIDs[i]);\n } else {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"NCBI RNA ID\",genBankRNAIDs[i]);\n }\n }\n for (int i = 0; i < genBankProteinIDs.length; i++) {\n String genBankProteinID = genBankProteinIDs[i];\n if (isRefSeq(genBankProteinID)) {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"RefSeq Protein ID\",genBankProteinIDs[i]);\n } else {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"NCBI Protein ID\",genBankProteinIDs[i]);\n }\n } \n \n // create Links entries for the rest\n writeCollectionToLinksFile(RGD_ID_TYPE,rgdID,\"Entrez Gene ID\",Arrays.asList(entrezGeneIDs));\n writeCollectionToLinksFile(RGD_ID_TYPE,rgdID,\"SwissProt ID\",Arrays.asList(swissProtIDs));\n writeCollectionToLinksFile(RGD_ID_TYPE,rgdID,\"UniGene ID\",Arrays.asList(unigeneIDs));\n } \n reader.close();\n }",
"FileRecordAdmin selectByPrimaryKey(String id);",
"@Import(\"id\")\n\tint getId();",
"public String getIdString(CharSequence line) {\n\t\tList<String> values = parseCsvLine(line);\n\t\treturn values.get(id);\n\t}",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"int insert(EhrPersonFile record);",
"@Override\r\n\tpublic Newstrategypojo getline(int id) {\n\t\treturn dao.getline(id);\r\n\t}",
"public Readln(String id)\n {\n this.id = id;\n }",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"public ReadModelEntity(Guid id)\n {\n this.Id = MakeId(this.GetType(), id);\n this.AggregateId = id;\n }",
"public byte getId() {\n return 2;\n }",
"DiaryFile selectByPrimaryKey(String maperId);",
"com.google.protobuf.ByteString getIdBytes();",
"com.google.protobuf.ByteString getIdBytes();",
"com.google.protobuf.ByteString getIdBytes();",
"com.google.protobuf.ByteString getIdBytes();",
"byte[] getId();",
"public void importFile(String filename) throws IOException, BadEntryException, ImportFileException{\n try{\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n String line;\n line = reader.readLine();\n\n while(line != null){\n String[] fields = line.split(\"\\\\|\");\n int id = Integer.parseInt(fields[1]);\n if(_persons.get(id) != null){\n throw new BadEntryException(fields[0]);\n }\n\n if(fields[0].equals(\"FUNCIONÁRIO\")){\n registerAdministrative(fields);\n line = reader.readLine();\n }else if(fields[0].equals(\"DOCENTE\")){\n Professor _professor = new Professor(id, fields[2], fields[3]);\n _professors.put(id, _professor);\n _persons.put(id, (Person) _professor);\n\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n while((line != null) && (fields[0].charAt(0) == '#')){\n String course = fields[0].substring(2);\n String discipline = fields[1];\n Course _course = _courses.get(course);\n \n if(_course == null){\n _course = new Course(course);\n _disciplineCourse.put(course, new HashMap<String, Discipline>());\n _courses.put(course, _course);\n }\n\n if(_professor.getDisciplineCourses().get(course) == null){\n _professor.getDisciplineCourses().put(course, new HashMap<String, Discipline>());\n }\n\n Discipline _discipline = _disciplines.get(discipline);\n if(_discipline == null){\n _discipline = new Discipline(discipline,_course);\n _disciplines.put(discipline, _discipline);\n _course.getDisciplines().put(discipline, _discipline);\n }\n _discipline.registerObserver(_professor, id);\n _disciplineCourse.get(course).put(discipline, _discipline);\n\n if(_professor.getDisciplines() != null){\n _professor.getDisciplines().put(discipline, _discipline);\n _professor.getDisciplineCourses().get(course).put(discipline, _discipline); \n }\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n\n }\n }\n }\n }else if(fields[0].equals(\"DELEGADO\")){\n Student _student = new Student(id, fields[2], fields[3]);\n _students.put(id, _student);\n _persons.put(id, (Person) _student);\n\n line = reader.readLine();\n fields = line.split(\"\\\\|\");\n while((line != null) && (fields[0].charAt(0) == '#')){\n String course = fields[0].substring(2);\n String discipline = fields[1];\n Course _course = _courses.get(course);\n if(_course == null){\n _course = new Course(course);\n _disciplineCourse.put(course, new HashMap<String, Discipline>());\n _courses.put(course,_course);\n }\n if(_course.getRepresentatives().size() == 8){\n System.out.println(id);\n throw new BadEntryException(course);\n }else{\n _course.getRepresentatives().put(id,_student);\n }\n _student.setCourse(_course);\n Discipline _discipline = _disciplines.get(discipline);\n if(_discipline == null){\n _discipline = new Discipline(discipline, _course);\n _disciplines.put(discipline,_discipline);\n _course.getDisciplines().put(discipline, _discipline);\n }\n if(_student.getDisciplines().size() == 6){\n throw new BadEntryException(discipline);\n }else{\n if(_discipline.getStudents().size() == 100){\n throw new BadEntryException(discipline);\n }else{\n _student.getDisciplines().put(discipline,_discipline);\n _discipline.getStudents().put(id,_student);\n }\n }\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n }\n }\n }else if(fields[0].equals(\"ALUNO\")){\n Student _student = new Student(id, fields[2], fields[3]);\n _students.put(id, _student);\n _persons.put(id, (Person) _student);\n\n line = reader.readLine();\n fields = line.split(\"\\\\|\");\n while((line != null) && (fields[0].charAt(0) == '#')){\n String course = fields[0].substring(2);\n String discipline = fields[1];\n Course _course = _courses.get(course);\n if(_course == null){\n _course = new Course(course);\n _disciplineCourse.put(course, new HashMap<String, Discipline>());\n _courses.put(course, _course);\n }\n _student.setCourse(_course);\n Discipline _discipline = _disciplines.get(discipline);\n if(_discipline == null){\n _discipline = new Discipline(discipline, _course);\n _disciplines.put(discipline, _discipline);\n _course.getDisciplines().put(discipline, _discipline);\n }\n _discipline.registerObserver(_student, id);\n if(_student.getDisciplines().size() == 6){\n throw new BadEntryException(discipline);\n }else{\n _student.getDisciplines().put(discipline,_discipline);\n if(_discipline.getStudents().size() == 100){\n throw new BadEntryException(discipline);\n }else{\n _discipline.getStudents().put(id,_student);\n }\n }\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n }\n }\n\n }else{\n throw new BadEntryException(fields[0]);\n }\n }\n for(Course course: _courses.values()){\n HashMap<Integer,Student> representatives = course.getRepresentatives();\n HashMap<String, Discipline> disciplines = course.getDisciplines();\n for(Discipline discipline: disciplines.values()){\n for(Student representative: representatives.values()){\n discipline.registerObserver(representative, representative.getId());\n }\n }\n \n } \n reader.close();\n }catch(BadEntryException e){\n throw new ImportFileException(e);\n }catch(IOException e){\n throw new ImportFileException(e);\n }\n }",
"java.lang.String getID();",
"public Fila carregar(int id) throws IOException{\t\t\n\t\treturn dao.carregar(id);\n\t}",
"public String getFeatureID(long offset) throws IOException {\n\t\tdataBase.seek(offset);\n\t\tString[] array = dataBase.readLine().split(\"\\\\|\");\n\t\treturn array[0];\n\t}",
"public void setID(String id){\n this.id = id;\n }",
"protected abstract String getId();",
"IDType getID();"
] | [
"0.6010556",
"0.5881097",
"0.5839398",
"0.56289124",
"0.5548525",
"0.5454386",
"0.5428288",
"0.5413728",
"0.5342824",
"0.5338796",
"0.5338127",
"0.5332949",
"0.5302755",
"0.52813387",
"0.5277661",
"0.5264038",
"0.5235287",
"0.52260107",
"0.5222706",
"0.5213473",
"0.5195747",
"0.5186693",
"0.5186693",
"0.5186693",
"0.5186693",
"0.5186693",
"0.5186693",
"0.5186693",
"0.5186693",
"0.5186693",
"0.5186693",
"0.5186693",
"0.5186693",
"0.5186693",
"0.5186693",
"0.5186693",
"0.5186693",
"0.5186693",
"0.5186693",
"0.5186693",
"0.5179969",
"0.51647204",
"0.5162911",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51608753",
"0.51466876",
"0.51427233",
"0.5127538",
"0.5126149",
"0.5126149",
"0.5126149",
"0.5126149",
"0.512228",
"0.5119534",
"0.5112613",
"0.5108199",
"0.5101432",
"0.5085656",
"0.50764495",
"0.5074621"
] | 0.0 | -1 |
optional int32 id = 2; In a file of records of type Protein ids will | public int getId() {
return id_;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void idlize() throws IOException {\r\n\t\t/**give mid who has name a id, for other mid, keep using mid to identify them*/\r\n\t\t//\t\tHashMap<String, Integer> namedmid2name = new HashMap<String, Integer>(20000000);\r\n\t\t//\t\tHashMap<String, Integer> relationname2id = new HashMap<String, Integer>(1000000);\r\n\t\t//\t\tDelimitedWriter dw = new DelimitedWriter(Main.dir + \"/visible_idize\");\r\n\t\t//\t\tDelimitedWriter dw_debug = new DelimitedWriter(Main.dir + \"/visible_debug\");\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_fbenglishname);\r\n\t\t//\t\t\tString[] l;\r\n\t\t//\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t//\t\t\t\tnamedmid2name.put(l[0], namedmid2name.size());\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tD.p(\"load mid2name finished\");\r\n\t\t//\t\t\tdr.close();\r\n\t\t//\t\t}\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_visible_str);\r\n\t\t//\t\t\tString[] l;\r\n\t\t//\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t//\t\t\t\tString mid = l[0];\r\n\t\t//\t\t\t\tInteger gid = namedmid2name.get(mid);\r\n\t\t//\t\t\t\tif (gid == null) {\r\n\t\t//\t\t\t\t\tdw_debug.write(l);\r\n\t\t//\t\t\t\t\tcontinue;\r\n\t\t//\t\t\t\t}\r\n\t\t//\t\t\t\tString relationname = l[2];\r\n\t\t//\t\t\t\tif (!relationname2id.containsKey(relationname)) {\r\n\t\t//\t\t\t\t\trelationname2id.put(relationname, relationname2id.size());\r\n\t\t//\t\t\t\t}\r\n\t\t//\t\t\t\tint relid = relationname2id.get(relationname);\r\n\t\t//\t\t\t\tdw.write(l[1], gid, relid, l[3]);\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tdr.close();\r\n\t\t//\t\t}\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_visible_str);\r\n\t\t//\t\t\tString[] l;\r\n\t\t//\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t//\t\t\t\tString mid1 = l[0];\r\n\t\t//\t\t\t\tString mid2 = l[3];\r\n\t\t//\t\t\t\tInteger gid1 = namedmid2name.get(mid1);\r\n\t\t//\t\t\t\tInteger gid2 = namedmid2name.get(mid2);\r\n\t\t//\t\t\t\tif (gid1 == null || gid2 == null) {\r\n\t\t//\t\t\t\t\tdw_debug.write(l);\r\n\t\t//\t\t\t\t\tcontinue;\r\n\t\t//\t\t\t\t}\r\n\t\t//\t\t\t\tString relationname = l[2];\r\n\t\t//\t\t\t\tif (!relationname2id.containsKey(relationname)) {\r\n\t\t//\t\t\t\t\trelationname2id.put(relationname, relationname2id.size());\r\n\t\t//\t\t\t\t}\r\n\t\t//\t\t\t\tint relid = relationname2id.get(relationname);\r\n\t\t//\t\t\t\tdw.write(l[1], gid1, relid, gid2, l[3]);\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tdr.close();\r\n\t\t//\t\t}\r\n\t\t//\t\tdw.close();\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedWriter dwrel = new DelimitedWriter(Main.dir + \"/visible_relations.temp\");\r\n\t\t//\t\t\tfor (Entry<String, Integer> e : relationname2id.entrySet()) {\r\n\t\t//\t\t\t\tdwrel.write(e.getValue(), e.getKey());\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tdwrel.close();\r\n\t\t//\t\t\tSort.sort(Main.dir + \"/visible_relations.temp\", Main.dir + \"/visible_relations\", Main.dir,\r\n\t\t//\t\t\t\t\tnew Comparator<String[]>() {\r\n\t\t//\t\t\t\t\t\t@Override\r\n\t\t//\t\t\t\t\t\tpublic int compare(String[] o1, String[] o2) {\r\n\t\t//\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t//\t\t\t\t\t\t\treturn Integer.parseInt(o1[0]) - Integer.parseInt(o2[0]);\r\n\t\t//\t\t\t\t\t\t}\r\n\t\t//\r\n\t\t//\t\t\t\t\t});\r\n\t\t//\t\t}\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedWriter dwmid = new DelimitedWriter(Main.dir + \"/visible_mid2gid.temp\");\r\n\t\t//\t\t\tfor (Entry<String, Integer> e : namedmid2name.entrySet()) {\r\n\t\t//\t\t\t\tdwmid.write(e.getValue(), e.getKey());\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tdwmid.close();\r\n\t\t//\t\t\tSort.sort(Main.dir + \"/visible_mid2gid.temp\", Main.dir + \"/visible_mid2gid\", Main.dir,\r\n\t\t//\t\t\t\t\tnew Comparator<String[]>() {\r\n\t\t//\t\t\t\t\t\t@Override\r\n\t\t//\t\t\t\t\t\tpublic int compare(String[] o1, String[] o2) {\r\n\t\t//\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t//\t\t\t\t\t\t\treturn Integer.parseInt(o1[0]) - Integer.parseInt(o2[0]);\r\n\t\t//\t\t\t\t\t\t}\r\n\t\t//\r\n\t\t//\t\t\t\t\t});\r\n\t\t//\t\t}\r\n\t}",
"public PlantID(String line){\r\n\t\tScanner sc = new Scanner(line);\r\n\t\tthis.id = sc.next();\r\n\t\tthis.name = (sc.next()+\" \" +sc.next());\r\n\t\tsc.close();\r\n\t}",
"public void createIDMap()\n {\n IDMap = new HashMap<>();\n idFile.open(\"idpassword.txt\");\n String line = idFile.getNextLine();\n\n\n\n while(line!=null) {\n String[] fields = line.split(\",\");\n IDMap.put(fields[0], fields[1]);\n\n line = idFile.getNextLine();\n\n }\n\n }",
"public void setProtein_id(java.lang.String protein_id) {\n this.protein_id = protein_id;\n }",
"public void setID() throws IOException;",
"int getIDS(String ids) throws IOException {\n String lines=\"\";\n String aux;\n int i = 0, j = 0, k = 0;\n\n BufferedReader br = new BufferedReader(new FileReader(ids)); /* Read all file adding to string */\n try {\n StringBuilder sb = new StringBuilder();\n String line = br.readLine();\n while (line != null) {\n sb.append(line);\n sb.append(System.lineSeparator());\n line = br.readLine();\n }\n lines = sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n br.close();\n }\n\n /* Add each each id to array and get the number of ids */\n i = lines.indexOf(\"id#:[\");\n k = lines.indexOf(\"]\");\n while (i >= 0) {\n /* AllPos[j] = Integer.parseInt(lines.substring(i+5,k));*/\n attrib_int(j, Integer.parseInt(lines.substring(i+5,k)));\n lines = lines.substring(k+1);\n i = lines.indexOf(\"id#:[\");\n if (i>=0)\n {\n aux = lines.substring(i);\n k = aux.indexOf(\"]\") + i;\n }\n j++;\n\n }\n ids_quantity=j;\n return (0);\n }",
"int insertSelective(EhrPersonFile record);",
"int insertSelective(DiaryFile record);",
"int insert(DiaryFile record);",
"public void setFileid(Integer fileid) {\n this.fileid = fileid;\n }",
"@Override\n\tpublic FileModel getId(Long id) {\n\t\treturn fm.getOne(id);\n\t}",
"public void setId(byte id){this.id = id;}",
"@Override\r\n\tpublic void read(Object id) {\n\t\t\r\n\t}",
"EhrPersonFile selectByPrimaryKey(Long id);",
"public void setID(String idIn) {this.id = idIn;}",
"public static void loadTargetTerm2IdMapping(File input) throws IOException {\n\t\t\tm_namesMap = new SimpleBidirectionalMap<String, Integer>();\n\t\t\tString encoding = FileUtils.getFileEncoding(input);\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(input), encoding));\n\t\t\tString line = reader.readLine();\n\t\t\tint lineNum = 1;\n\t\t\tboolean testFormat = false;\n\t\t\tif(StringUtils.checkIfNumber(line.split(\"\\t\")[0]))\n\t\t\t\ttestFormat = true;\n\t\t\twhile(line!= null) {\n\t\t\t\tif(line.equals(\"@@@\"))\n\t\t\t\t\tbreak;\n\t\t\t\tif(testFormat) {\n\t\t\t\t\tString num = line.split(\"\\t\")[0];\n\t\t\t\t\tSystem.out.println(\"key: \"+line.trim().substring(num.length()+1) + \" value: \" + Integer.parseInt(num));\n\t\t\t\t\tm_namesMap.put(line.trim().substring(num.length()+1), Integer.parseInt(num));\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"key????\" + lineNum + \"instead of \" + line.split(\"\\t\")[0]);\n\t\t\t\t\tm_namesMap.put(line.trim(), lineNum);\n\t\t\t\t}\n\t\t\t\tline = reader.readLine();\n\t\t\t\tlineNum ++;\n\t\t\t}\n\t\t}",
"public abstract String getLineupId();",
"private void processGeneFile(String inputFilename, String taxonID) throws IOException {\n BufferedReader reader = createInputFileReader(inputFilename);\n String line;\n String[] columns;\n \n \t// Skip the first line\n line = reader.readLine();\n while (reader.ready()) {\n line = reader.readLine();\n \t\t//writeToDebugFile(line);\n \t\tif (line.substring(0,1).equals(\"#\")) {\n \t\twriteToErrorFile(line, \"Comment\");\n \t\t\tcontinue;\n \t\t}\n columns = line.split(INPUT_COLUMN_DELIM);\n \n String rgdID = columns[0].trim();\n \n // If line contains column names (usually first line), skip it\n if (rgdID.equals(\"GENE_RGD_ID\")) continue;\n \n String geneSymbol = columns[1].trim();\n String chromosome = columns[6].trim(); \n \n \t\t// columns[14] == start base pair\n \t\t// columns[15] == end base pair\n \t\t// columns[16] == strand (- or +)\n \n String mapLocation = getMapLocation(columns[14], columns[15], columns[16].trim());\n \n // The following columns may contain multiple items\n String[] entrezGeneIDs = splitListColumn(columns[20]);\n String[] swissProtIDs = splitListColumn(columns[21]);\n String[] genBankRNAIDs = splitListColumn(columns[23]);\n String[] genBankProteinIDs = splitListColumn(columns[25]);\n String[] unigeneIDs = splitListColumn(columns[26]);\n String[] ensemblIDs;\n \n // if columns.length < 38, the last column (Ensembl ID) is missing\n // from the input file\n if (columns.length < 38) {\n // since there are no EnsemblIDs, set the variable to an empty array,\n // which is what splitListColumn() would do\n ensemblIDs = EMPTY_STRING_ARRAY;\n } else {\n //ensemblIDs = columns[37].split(INPUT_LIST_DELIM);\n ensemblIDs = splitListColumn(columns[37]);\n }\n \n // Write RGD Info\n writeToInfoFile(taxonID, RGD_ID_TYPE, rgdID, chromosome, mapLocation);\n \n // Write Gene Symbol and Ensembl ID Info and Links\n if (!geneSymbol.equals(\"\")) {\n writeToInfoFile(taxonID, \"Gene Symbol\", geneSymbol, chromosome, mapLocation);\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"Gene Symbol\",geneSymbol);\n }\n for (int i = 0; i < ensemblIDs.length; i++) {\n writeToInfoFile(taxonID, \"Ensembl ID\", ensemblIDs[i], chromosome, mapLocation);\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"Ensembl ID\",ensemblIDs[i]);\n }\n \n // Handle NCBI RefSeq and non-RefSeq IDs (both RNA and Protein)\n for (int i = 0; i < genBankRNAIDs.length; i++) {\n String genBankRNAID = genBankRNAIDs[i];\n if (isRefSeq(genBankRNAID)) {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"RefSeq RNA ID\",genBankRNAIDs[i]);\n } else {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"NCBI RNA ID\",genBankRNAIDs[i]);\n }\n }\n for (int i = 0; i < genBankProteinIDs.length; i++) {\n String genBankProteinID = genBankProteinIDs[i];\n if (isRefSeq(genBankProteinID)) {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"RefSeq Protein ID\",genBankProteinIDs[i]);\n } else {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"NCBI Protein ID\",genBankProteinIDs[i]);\n }\n } \n \n // create Links entries for the rest\n writeCollectionToLinksFile(RGD_ID_TYPE,rgdID,\"Entrez Gene ID\",Arrays.asList(entrezGeneIDs));\n writeCollectionToLinksFile(RGD_ID_TYPE,rgdID,\"SwissProt ID\",Arrays.asList(swissProtIDs));\n writeCollectionToLinksFile(RGD_ID_TYPE,rgdID,\"UniGene ID\",Arrays.asList(unigeneIDs));\n } \n reader.close();\n }",
"FileRecordAdmin selectByPrimaryKey(String id);",
"@Import(\"id\")\n\tint getId();",
"public String getIdString(CharSequence line) {\n\t\tList<String> values = parseCsvLine(line);\n\t\treturn values.get(id);\n\t}",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"int insert(EhrPersonFile record);",
"@Override\r\n\tpublic Newstrategypojo getline(int id) {\n\t\treturn dao.getline(id);\r\n\t}",
"public Readln(String id)\n {\n this.id = id;\n }",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"public ReadModelEntity(Guid id)\n {\n this.Id = MakeId(this.GetType(), id);\n this.AggregateId = id;\n }",
"public byte getId() {\n return 2;\n }",
"com.google.protobuf.ByteString getIdBytes();",
"com.google.protobuf.ByteString getIdBytes();",
"com.google.protobuf.ByteString getIdBytes();",
"com.google.protobuf.ByteString getIdBytes();",
"DiaryFile selectByPrimaryKey(String maperId);",
"byte[] getId();",
"public void importFile(String filename) throws IOException, BadEntryException, ImportFileException{\n try{\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n String line;\n line = reader.readLine();\n\n while(line != null){\n String[] fields = line.split(\"\\\\|\");\n int id = Integer.parseInt(fields[1]);\n if(_persons.get(id) != null){\n throw new BadEntryException(fields[0]);\n }\n\n if(fields[0].equals(\"FUNCIONÁRIO\")){\n registerAdministrative(fields);\n line = reader.readLine();\n }else if(fields[0].equals(\"DOCENTE\")){\n Professor _professor = new Professor(id, fields[2], fields[3]);\n _professors.put(id, _professor);\n _persons.put(id, (Person) _professor);\n\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n while((line != null) && (fields[0].charAt(0) == '#')){\n String course = fields[0].substring(2);\n String discipline = fields[1];\n Course _course = _courses.get(course);\n \n if(_course == null){\n _course = new Course(course);\n _disciplineCourse.put(course, new HashMap<String, Discipline>());\n _courses.put(course, _course);\n }\n\n if(_professor.getDisciplineCourses().get(course) == null){\n _professor.getDisciplineCourses().put(course, new HashMap<String, Discipline>());\n }\n\n Discipline _discipline = _disciplines.get(discipline);\n if(_discipline == null){\n _discipline = new Discipline(discipline,_course);\n _disciplines.put(discipline, _discipline);\n _course.getDisciplines().put(discipline, _discipline);\n }\n _discipline.registerObserver(_professor, id);\n _disciplineCourse.get(course).put(discipline, _discipline);\n\n if(_professor.getDisciplines() != null){\n _professor.getDisciplines().put(discipline, _discipline);\n _professor.getDisciplineCourses().get(course).put(discipline, _discipline); \n }\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n\n }\n }\n }\n }else if(fields[0].equals(\"DELEGADO\")){\n Student _student = new Student(id, fields[2], fields[3]);\n _students.put(id, _student);\n _persons.put(id, (Person) _student);\n\n line = reader.readLine();\n fields = line.split(\"\\\\|\");\n while((line != null) && (fields[0].charAt(0) == '#')){\n String course = fields[0].substring(2);\n String discipline = fields[1];\n Course _course = _courses.get(course);\n if(_course == null){\n _course = new Course(course);\n _disciplineCourse.put(course, new HashMap<String, Discipline>());\n _courses.put(course,_course);\n }\n if(_course.getRepresentatives().size() == 8){\n System.out.println(id);\n throw new BadEntryException(course);\n }else{\n _course.getRepresentatives().put(id,_student);\n }\n _student.setCourse(_course);\n Discipline _discipline = _disciplines.get(discipline);\n if(_discipline == null){\n _discipline = new Discipline(discipline, _course);\n _disciplines.put(discipline,_discipline);\n _course.getDisciplines().put(discipline, _discipline);\n }\n if(_student.getDisciplines().size() == 6){\n throw new BadEntryException(discipline);\n }else{\n if(_discipline.getStudents().size() == 100){\n throw new BadEntryException(discipline);\n }else{\n _student.getDisciplines().put(discipline,_discipline);\n _discipline.getStudents().put(id,_student);\n }\n }\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n }\n }\n }else if(fields[0].equals(\"ALUNO\")){\n Student _student = new Student(id, fields[2], fields[3]);\n _students.put(id, _student);\n _persons.put(id, (Person) _student);\n\n line = reader.readLine();\n fields = line.split(\"\\\\|\");\n while((line != null) && (fields[0].charAt(0) == '#')){\n String course = fields[0].substring(2);\n String discipline = fields[1];\n Course _course = _courses.get(course);\n if(_course == null){\n _course = new Course(course);\n _disciplineCourse.put(course, new HashMap<String, Discipline>());\n _courses.put(course, _course);\n }\n _student.setCourse(_course);\n Discipline _discipline = _disciplines.get(discipline);\n if(_discipline == null){\n _discipline = new Discipline(discipline, _course);\n _disciplines.put(discipline, _discipline);\n _course.getDisciplines().put(discipline, _discipline);\n }\n _discipline.registerObserver(_student, id);\n if(_student.getDisciplines().size() == 6){\n throw new BadEntryException(discipline);\n }else{\n _student.getDisciplines().put(discipline,_discipline);\n if(_discipline.getStudents().size() == 100){\n throw new BadEntryException(discipline);\n }else{\n _discipline.getStudents().put(id,_student);\n }\n }\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n }\n }\n\n }else{\n throw new BadEntryException(fields[0]);\n }\n }\n for(Course course: _courses.values()){\n HashMap<Integer,Student> representatives = course.getRepresentatives();\n HashMap<String, Discipline> disciplines = course.getDisciplines();\n for(Discipline discipline: disciplines.values()){\n for(Student representative: representatives.values()){\n discipline.registerObserver(representative, representative.getId());\n }\n }\n \n } \n reader.close();\n }catch(BadEntryException e){\n throw new ImportFileException(e);\n }catch(IOException e){\n throw new ImportFileException(e);\n }\n }",
"java.lang.String getID();",
"public Fila carregar(int id) throws IOException{\t\t\n\t\treturn dao.carregar(id);\n\t}",
"public String getFeatureID(long offset) throws IOException {\n\t\tdataBase.seek(offset);\n\t\tString[] array = dataBase.readLine().split(\"\\\\|\");\n\t\treturn array[0];\n\t}",
"public void setID(String id){\n this.id = id;\n }",
"protected abstract String getId();",
"IDType getID();"
] | [
"0.6008695",
"0.5880774",
"0.5836637",
"0.5629748",
"0.55493927",
"0.5451436",
"0.5427086",
"0.5412266",
"0.53402615",
"0.5337522",
"0.5337499",
"0.53348273",
"0.5303492",
"0.52798796",
"0.52786607",
"0.5261937",
"0.5235576",
"0.5223284",
"0.52216434",
"0.5214431",
"0.51940376",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5177911",
"0.51641715",
"0.51628375",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.51472247",
"0.5145134",
"0.51270646",
"0.51270646",
"0.51270646",
"0.51270646",
"0.5125682",
"0.5122762",
"0.51170903",
"0.5113751",
"0.51076204",
"0.51005906",
"0.5086489",
"0.5078073",
"0.5076653"
] | 0.0 | -1 |
optional int32 id = 2; In a file of records of type Protein ids will | public Builder setId(int value) {
bitField0_ |= 0x00000002;
id_ = value;
onChanged();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void idlize() throws IOException {\r\n\t\t/**give mid who has name a id, for other mid, keep using mid to identify them*/\r\n\t\t//\t\tHashMap<String, Integer> namedmid2name = new HashMap<String, Integer>(20000000);\r\n\t\t//\t\tHashMap<String, Integer> relationname2id = new HashMap<String, Integer>(1000000);\r\n\t\t//\t\tDelimitedWriter dw = new DelimitedWriter(Main.dir + \"/visible_idize\");\r\n\t\t//\t\tDelimitedWriter dw_debug = new DelimitedWriter(Main.dir + \"/visible_debug\");\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_fbenglishname);\r\n\t\t//\t\t\tString[] l;\r\n\t\t//\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t//\t\t\t\tnamedmid2name.put(l[0], namedmid2name.size());\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tD.p(\"load mid2name finished\");\r\n\t\t//\t\t\tdr.close();\r\n\t\t//\t\t}\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_visible_str);\r\n\t\t//\t\t\tString[] l;\r\n\t\t//\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t//\t\t\t\tString mid = l[0];\r\n\t\t//\t\t\t\tInteger gid = namedmid2name.get(mid);\r\n\t\t//\t\t\t\tif (gid == null) {\r\n\t\t//\t\t\t\t\tdw_debug.write(l);\r\n\t\t//\t\t\t\t\tcontinue;\r\n\t\t//\t\t\t\t}\r\n\t\t//\t\t\t\tString relationname = l[2];\r\n\t\t//\t\t\t\tif (!relationname2id.containsKey(relationname)) {\r\n\t\t//\t\t\t\t\trelationname2id.put(relationname, relationname2id.size());\r\n\t\t//\t\t\t\t}\r\n\t\t//\t\t\t\tint relid = relationname2id.get(relationname);\r\n\t\t//\t\t\t\tdw.write(l[1], gid, relid, l[3]);\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tdr.close();\r\n\t\t//\t\t}\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_visible_str);\r\n\t\t//\t\t\tString[] l;\r\n\t\t//\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t//\t\t\t\tString mid1 = l[0];\r\n\t\t//\t\t\t\tString mid2 = l[3];\r\n\t\t//\t\t\t\tInteger gid1 = namedmid2name.get(mid1);\r\n\t\t//\t\t\t\tInteger gid2 = namedmid2name.get(mid2);\r\n\t\t//\t\t\t\tif (gid1 == null || gid2 == null) {\r\n\t\t//\t\t\t\t\tdw_debug.write(l);\r\n\t\t//\t\t\t\t\tcontinue;\r\n\t\t//\t\t\t\t}\r\n\t\t//\t\t\t\tString relationname = l[2];\r\n\t\t//\t\t\t\tif (!relationname2id.containsKey(relationname)) {\r\n\t\t//\t\t\t\t\trelationname2id.put(relationname, relationname2id.size());\r\n\t\t//\t\t\t\t}\r\n\t\t//\t\t\t\tint relid = relationname2id.get(relationname);\r\n\t\t//\t\t\t\tdw.write(l[1], gid1, relid, gid2, l[3]);\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tdr.close();\r\n\t\t//\t\t}\r\n\t\t//\t\tdw.close();\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedWriter dwrel = new DelimitedWriter(Main.dir + \"/visible_relations.temp\");\r\n\t\t//\t\t\tfor (Entry<String, Integer> e : relationname2id.entrySet()) {\r\n\t\t//\t\t\t\tdwrel.write(e.getValue(), e.getKey());\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tdwrel.close();\r\n\t\t//\t\t\tSort.sort(Main.dir + \"/visible_relations.temp\", Main.dir + \"/visible_relations\", Main.dir,\r\n\t\t//\t\t\t\t\tnew Comparator<String[]>() {\r\n\t\t//\t\t\t\t\t\t@Override\r\n\t\t//\t\t\t\t\t\tpublic int compare(String[] o1, String[] o2) {\r\n\t\t//\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t//\t\t\t\t\t\t\treturn Integer.parseInt(o1[0]) - Integer.parseInt(o2[0]);\r\n\t\t//\t\t\t\t\t\t}\r\n\t\t//\r\n\t\t//\t\t\t\t\t});\r\n\t\t//\t\t}\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedWriter dwmid = new DelimitedWriter(Main.dir + \"/visible_mid2gid.temp\");\r\n\t\t//\t\t\tfor (Entry<String, Integer> e : namedmid2name.entrySet()) {\r\n\t\t//\t\t\t\tdwmid.write(e.getValue(), e.getKey());\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tdwmid.close();\r\n\t\t//\t\t\tSort.sort(Main.dir + \"/visible_mid2gid.temp\", Main.dir + \"/visible_mid2gid\", Main.dir,\r\n\t\t//\t\t\t\t\tnew Comparator<String[]>() {\r\n\t\t//\t\t\t\t\t\t@Override\r\n\t\t//\t\t\t\t\t\tpublic int compare(String[] o1, String[] o2) {\r\n\t\t//\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t//\t\t\t\t\t\t\treturn Integer.parseInt(o1[0]) - Integer.parseInt(o2[0]);\r\n\t\t//\t\t\t\t\t\t}\r\n\t\t//\r\n\t\t//\t\t\t\t\t});\r\n\t\t//\t\t}\r\n\t}",
"public PlantID(String line){\r\n\t\tScanner sc = new Scanner(line);\r\n\t\tthis.id = sc.next();\r\n\t\tthis.name = (sc.next()+\" \" +sc.next());\r\n\t\tsc.close();\r\n\t}",
"public void createIDMap()\n {\n IDMap = new HashMap<>();\n idFile.open(\"idpassword.txt\");\n String line = idFile.getNextLine();\n\n\n\n while(line!=null) {\n String[] fields = line.split(\",\");\n IDMap.put(fields[0], fields[1]);\n\n line = idFile.getNextLine();\n\n }\n\n }",
"public void setProtein_id(java.lang.String protein_id) {\n this.protein_id = protein_id;\n }",
"public void setID() throws IOException;",
"int getIDS(String ids) throws IOException {\n String lines=\"\";\n String aux;\n int i = 0, j = 0, k = 0;\n\n BufferedReader br = new BufferedReader(new FileReader(ids)); /* Read all file adding to string */\n try {\n StringBuilder sb = new StringBuilder();\n String line = br.readLine();\n while (line != null) {\n sb.append(line);\n sb.append(System.lineSeparator());\n line = br.readLine();\n }\n lines = sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n br.close();\n }\n\n /* Add each each id to array and get the number of ids */\n i = lines.indexOf(\"id#:[\");\n k = lines.indexOf(\"]\");\n while (i >= 0) {\n /* AllPos[j] = Integer.parseInt(lines.substring(i+5,k));*/\n attrib_int(j, Integer.parseInt(lines.substring(i+5,k)));\n lines = lines.substring(k+1);\n i = lines.indexOf(\"id#:[\");\n if (i>=0)\n {\n aux = lines.substring(i);\n k = aux.indexOf(\"]\") + i;\n }\n j++;\n\n }\n ids_quantity=j;\n return (0);\n }",
"int insertSelective(EhrPersonFile record);",
"int insertSelective(DiaryFile record);",
"int insert(DiaryFile record);",
"public void setFileid(Integer fileid) {\n this.fileid = fileid;\n }",
"@Override\n\tpublic FileModel getId(Long id) {\n\t\treturn fm.getOne(id);\n\t}",
"public void setId(byte id){this.id = id;}",
"@Override\r\n\tpublic void read(Object id) {\n\t\t\r\n\t}",
"EhrPersonFile selectByPrimaryKey(Long id);",
"public void setID(String idIn) {this.id = idIn;}",
"public static void loadTargetTerm2IdMapping(File input) throws IOException {\n\t\t\tm_namesMap = new SimpleBidirectionalMap<String, Integer>();\n\t\t\tString encoding = FileUtils.getFileEncoding(input);\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(input), encoding));\n\t\t\tString line = reader.readLine();\n\t\t\tint lineNum = 1;\n\t\t\tboolean testFormat = false;\n\t\t\tif(StringUtils.checkIfNumber(line.split(\"\\t\")[0]))\n\t\t\t\ttestFormat = true;\n\t\t\twhile(line!= null) {\n\t\t\t\tif(line.equals(\"@@@\"))\n\t\t\t\t\tbreak;\n\t\t\t\tif(testFormat) {\n\t\t\t\t\tString num = line.split(\"\\t\")[0];\n\t\t\t\t\tSystem.out.println(\"key: \"+line.trim().substring(num.length()+1) + \" value: \" + Integer.parseInt(num));\n\t\t\t\t\tm_namesMap.put(line.trim().substring(num.length()+1), Integer.parseInt(num));\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"key????\" + lineNum + \"instead of \" + line.split(\"\\t\")[0]);\n\t\t\t\t\tm_namesMap.put(line.trim(), lineNum);\n\t\t\t\t}\n\t\t\t\tline = reader.readLine();\n\t\t\t\tlineNum ++;\n\t\t\t}\n\t\t}",
"public abstract String getLineupId();",
"private void processGeneFile(String inputFilename, String taxonID) throws IOException {\n BufferedReader reader = createInputFileReader(inputFilename);\n String line;\n String[] columns;\n \n \t// Skip the first line\n line = reader.readLine();\n while (reader.ready()) {\n line = reader.readLine();\n \t\t//writeToDebugFile(line);\n \t\tif (line.substring(0,1).equals(\"#\")) {\n \t\twriteToErrorFile(line, \"Comment\");\n \t\t\tcontinue;\n \t\t}\n columns = line.split(INPUT_COLUMN_DELIM);\n \n String rgdID = columns[0].trim();\n \n // If line contains column names (usually first line), skip it\n if (rgdID.equals(\"GENE_RGD_ID\")) continue;\n \n String geneSymbol = columns[1].trim();\n String chromosome = columns[6].trim(); \n \n \t\t// columns[14] == start base pair\n \t\t// columns[15] == end base pair\n \t\t// columns[16] == strand (- or +)\n \n String mapLocation = getMapLocation(columns[14], columns[15], columns[16].trim());\n \n // The following columns may contain multiple items\n String[] entrezGeneIDs = splitListColumn(columns[20]);\n String[] swissProtIDs = splitListColumn(columns[21]);\n String[] genBankRNAIDs = splitListColumn(columns[23]);\n String[] genBankProteinIDs = splitListColumn(columns[25]);\n String[] unigeneIDs = splitListColumn(columns[26]);\n String[] ensemblIDs;\n \n // if columns.length < 38, the last column (Ensembl ID) is missing\n // from the input file\n if (columns.length < 38) {\n // since there are no EnsemblIDs, set the variable to an empty array,\n // which is what splitListColumn() would do\n ensemblIDs = EMPTY_STRING_ARRAY;\n } else {\n //ensemblIDs = columns[37].split(INPUT_LIST_DELIM);\n ensemblIDs = splitListColumn(columns[37]);\n }\n \n // Write RGD Info\n writeToInfoFile(taxonID, RGD_ID_TYPE, rgdID, chromosome, mapLocation);\n \n // Write Gene Symbol and Ensembl ID Info and Links\n if (!geneSymbol.equals(\"\")) {\n writeToInfoFile(taxonID, \"Gene Symbol\", geneSymbol, chromosome, mapLocation);\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"Gene Symbol\",geneSymbol);\n }\n for (int i = 0; i < ensemblIDs.length; i++) {\n writeToInfoFile(taxonID, \"Ensembl ID\", ensemblIDs[i], chromosome, mapLocation);\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"Ensembl ID\",ensemblIDs[i]);\n }\n \n // Handle NCBI RefSeq and non-RefSeq IDs (both RNA and Protein)\n for (int i = 0; i < genBankRNAIDs.length; i++) {\n String genBankRNAID = genBankRNAIDs[i];\n if (isRefSeq(genBankRNAID)) {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"RefSeq RNA ID\",genBankRNAIDs[i]);\n } else {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"NCBI RNA ID\",genBankRNAIDs[i]);\n }\n }\n for (int i = 0; i < genBankProteinIDs.length; i++) {\n String genBankProteinID = genBankProteinIDs[i];\n if (isRefSeq(genBankProteinID)) {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"RefSeq Protein ID\",genBankProteinIDs[i]);\n } else {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"NCBI Protein ID\",genBankProteinIDs[i]);\n }\n } \n \n // create Links entries for the rest\n writeCollectionToLinksFile(RGD_ID_TYPE,rgdID,\"Entrez Gene ID\",Arrays.asList(entrezGeneIDs));\n writeCollectionToLinksFile(RGD_ID_TYPE,rgdID,\"SwissProt ID\",Arrays.asList(swissProtIDs));\n writeCollectionToLinksFile(RGD_ID_TYPE,rgdID,\"UniGene ID\",Arrays.asList(unigeneIDs));\n } \n reader.close();\n }",
"FileRecordAdmin selectByPrimaryKey(String id);",
"@Import(\"id\")\n\tint getId();",
"public String getIdString(CharSequence line) {\n\t\tList<String> values = parseCsvLine(line);\n\t\treturn values.get(id);\n\t}",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"int insert(EhrPersonFile record);",
"@Override\r\n\tpublic Newstrategypojo getline(int id) {\n\t\treturn dao.getline(id);\r\n\t}",
"public Readln(String id)\n {\n this.id = id;\n }",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"public ReadModelEntity(Guid id)\n {\n this.Id = MakeId(this.GetType(), id);\n this.AggregateId = id;\n }",
"public byte getId() {\n return 2;\n }",
"com.google.protobuf.ByteString getIdBytes();",
"com.google.protobuf.ByteString getIdBytes();",
"com.google.protobuf.ByteString getIdBytes();",
"com.google.protobuf.ByteString getIdBytes();",
"DiaryFile selectByPrimaryKey(String maperId);",
"byte[] getId();",
"public void importFile(String filename) throws IOException, BadEntryException, ImportFileException{\n try{\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n String line;\n line = reader.readLine();\n\n while(line != null){\n String[] fields = line.split(\"\\\\|\");\n int id = Integer.parseInt(fields[1]);\n if(_persons.get(id) != null){\n throw new BadEntryException(fields[0]);\n }\n\n if(fields[0].equals(\"FUNCIONÁRIO\")){\n registerAdministrative(fields);\n line = reader.readLine();\n }else if(fields[0].equals(\"DOCENTE\")){\n Professor _professor = new Professor(id, fields[2], fields[3]);\n _professors.put(id, _professor);\n _persons.put(id, (Person) _professor);\n\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n while((line != null) && (fields[0].charAt(0) == '#')){\n String course = fields[0].substring(2);\n String discipline = fields[1];\n Course _course = _courses.get(course);\n \n if(_course == null){\n _course = new Course(course);\n _disciplineCourse.put(course, new HashMap<String, Discipline>());\n _courses.put(course, _course);\n }\n\n if(_professor.getDisciplineCourses().get(course) == null){\n _professor.getDisciplineCourses().put(course, new HashMap<String, Discipline>());\n }\n\n Discipline _discipline = _disciplines.get(discipline);\n if(_discipline == null){\n _discipline = new Discipline(discipline,_course);\n _disciplines.put(discipline, _discipline);\n _course.getDisciplines().put(discipline, _discipline);\n }\n _discipline.registerObserver(_professor, id);\n _disciplineCourse.get(course).put(discipline, _discipline);\n\n if(_professor.getDisciplines() != null){\n _professor.getDisciplines().put(discipline, _discipline);\n _professor.getDisciplineCourses().get(course).put(discipline, _discipline); \n }\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n\n }\n }\n }\n }else if(fields[0].equals(\"DELEGADO\")){\n Student _student = new Student(id, fields[2], fields[3]);\n _students.put(id, _student);\n _persons.put(id, (Person) _student);\n\n line = reader.readLine();\n fields = line.split(\"\\\\|\");\n while((line != null) && (fields[0].charAt(0) == '#')){\n String course = fields[0].substring(2);\n String discipline = fields[1];\n Course _course = _courses.get(course);\n if(_course == null){\n _course = new Course(course);\n _disciplineCourse.put(course, new HashMap<String, Discipline>());\n _courses.put(course,_course);\n }\n if(_course.getRepresentatives().size() == 8){\n System.out.println(id);\n throw new BadEntryException(course);\n }else{\n _course.getRepresentatives().put(id,_student);\n }\n _student.setCourse(_course);\n Discipline _discipline = _disciplines.get(discipline);\n if(_discipline == null){\n _discipline = new Discipline(discipline, _course);\n _disciplines.put(discipline,_discipline);\n _course.getDisciplines().put(discipline, _discipline);\n }\n if(_student.getDisciplines().size() == 6){\n throw new BadEntryException(discipline);\n }else{\n if(_discipline.getStudents().size() == 100){\n throw new BadEntryException(discipline);\n }else{\n _student.getDisciplines().put(discipline,_discipline);\n _discipline.getStudents().put(id,_student);\n }\n }\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n }\n }\n }else if(fields[0].equals(\"ALUNO\")){\n Student _student = new Student(id, fields[2], fields[3]);\n _students.put(id, _student);\n _persons.put(id, (Person) _student);\n\n line = reader.readLine();\n fields = line.split(\"\\\\|\");\n while((line != null) && (fields[0].charAt(0) == '#')){\n String course = fields[0].substring(2);\n String discipline = fields[1];\n Course _course = _courses.get(course);\n if(_course == null){\n _course = new Course(course);\n _disciplineCourse.put(course, new HashMap<String, Discipline>());\n _courses.put(course, _course);\n }\n _student.setCourse(_course);\n Discipline _discipline = _disciplines.get(discipline);\n if(_discipline == null){\n _discipline = new Discipline(discipline, _course);\n _disciplines.put(discipline, _discipline);\n _course.getDisciplines().put(discipline, _discipline);\n }\n _discipline.registerObserver(_student, id);\n if(_student.getDisciplines().size() == 6){\n throw new BadEntryException(discipline);\n }else{\n _student.getDisciplines().put(discipline,_discipline);\n if(_discipline.getStudents().size() == 100){\n throw new BadEntryException(discipline);\n }else{\n _discipline.getStudents().put(id,_student);\n }\n }\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n }\n }\n\n }else{\n throw new BadEntryException(fields[0]);\n }\n }\n for(Course course: _courses.values()){\n HashMap<Integer,Student> representatives = course.getRepresentatives();\n HashMap<String, Discipline> disciplines = course.getDisciplines();\n for(Discipline discipline: disciplines.values()){\n for(Student representative: representatives.values()){\n discipline.registerObserver(representative, representative.getId());\n }\n }\n \n } \n reader.close();\n }catch(BadEntryException e){\n throw new ImportFileException(e);\n }catch(IOException e){\n throw new ImportFileException(e);\n }\n }",
"java.lang.String getID();",
"public Fila carregar(int id) throws IOException{\t\t\n\t\treturn dao.carregar(id);\n\t}",
"public String getFeatureID(long offset) throws IOException {\n\t\tdataBase.seek(offset);\n\t\tString[] array = dataBase.readLine().split(\"\\\\|\");\n\t\treturn array[0];\n\t}",
"public void setID(String id){\n this.id = id;\n }",
"protected abstract String getId();",
"IDType getID();"
] | [
"0.6008695",
"0.5880774",
"0.5836637",
"0.5629748",
"0.55493927",
"0.5451436",
"0.5427086",
"0.5412266",
"0.53402615",
"0.5337522",
"0.5337499",
"0.53348273",
"0.5303492",
"0.52798796",
"0.52786607",
"0.5261937",
"0.5235576",
"0.5223284",
"0.52216434",
"0.5214431",
"0.51940376",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5188141",
"0.5177911",
"0.51641715",
"0.51628375",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.5162182",
"0.51472247",
"0.5145134",
"0.51270646",
"0.51270646",
"0.51270646",
"0.51270646",
"0.5125682",
"0.5122762",
"0.51170903",
"0.5113751",
"0.51076204",
"0.51005906",
"0.5086489",
"0.5078073",
"0.5076653"
] | 0.0 | -1 |
optional int32 id = 2; In a file of records of type Protein ids will | public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000002);
id_ = 0;
onChanged();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void idlize() throws IOException {\r\n\t\t/**give mid who has name a id, for other mid, keep using mid to identify them*/\r\n\t\t//\t\tHashMap<String, Integer> namedmid2name = new HashMap<String, Integer>(20000000);\r\n\t\t//\t\tHashMap<String, Integer> relationname2id = new HashMap<String, Integer>(1000000);\r\n\t\t//\t\tDelimitedWriter dw = new DelimitedWriter(Main.dir + \"/visible_idize\");\r\n\t\t//\t\tDelimitedWriter dw_debug = new DelimitedWriter(Main.dir + \"/visible_debug\");\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_fbenglishname);\r\n\t\t//\t\t\tString[] l;\r\n\t\t//\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t//\t\t\t\tnamedmid2name.put(l[0], namedmid2name.size());\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tD.p(\"load mid2name finished\");\r\n\t\t//\t\t\tdr.close();\r\n\t\t//\t\t}\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_visible_str);\r\n\t\t//\t\t\tString[] l;\r\n\t\t//\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t//\t\t\t\tString mid = l[0];\r\n\t\t//\t\t\t\tInteger gid = namedmid2name.get(mid);\r\n\t\t//\t\t\t\tif (gid == null) {\r\n\t\t//\t\t\t\t\tdw_debug.write(l);\r\n\t\t//\t\t\t\t\tcontinue;\r\n\t\t//\t\t\t\t}\r\n\t\t//\t\t\t\tString relationname = l[2];\r\n\t\t//\t\t\t\tif (!relationname2id.containsKey(relationname)) {\r\n\t\t//\t\t\t\t\trelationname2id.put(relationname, relationname2id.size());\r\n\t\t//\t\t\t\t}\r\n\t\t//\t\t\t\tint relid = relationname2id.get(relationname);\r\n\t\t//\t\t\t\tdw.write(l[1], gid, relid, l[3]);\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tdr.close();\r\n\t\t//\t\t}\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_visible_str);\r\n\t\t//\t\t\tString[] l;\r\n\t\t//\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t//\t\t\t\tString mid1 = l[0];\r\n\t\t//\t\t\t\tString mid2 = l[3];\r\n\t\t//\t\t\t\tInteger gid1 = namedmid2name.get(mid1);\r\n\t\t//\t\t\t\tInteger gid2 = namedmid2name.get(mid2);\r\n\t\t//\t\t\t\tif (gid1 == null || gid2 == null) {\r\n\t\t//\t\t\t\t\tdw_debug.write(l);\r\n\t\t//\t\t\t\t\tcontinue;\r\n\t\t//\t\t\t\t}\r\n\t\t//\t\t\t\tString relationname = l[2];\r\n\t\t//\t\t\t\tif (!relationname2id.containsKey(relationname)) {\r\n\t\t//\t\t\t\t\trelationname2id.put(relationname, relationname2id.size());\r\n\t\t//\t\t\t\t}\r\n\t\t//\t\t\t\tint relid = relationname2id.get(relationname);\r\n\t\t//\t\t\t\tdw.write(l[1], gid1, relid, gid2, l[3]);\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tdr.close();\r\n\t\t//\t\t}\r\n\t\t//\t\tdw.close();\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedWriter dwrel = new DelimitedWriter(Main.dir + \"/visible_relations.temp\");\r\n\t\t//\t\t\tfor (Entry<String, Integer> e : relationname2id.entrySet()) {\r\n\t\t//\t\t\t\tdwrel.write(e.getValue(), e.getKey());\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tdwrel.close();\r\n\t\t//\t\t\tSort.sort(Main.dir + \"/visible_relations.temp\", Main.dir + \"/visible_relations\", Main.dir,\r\n\t\t//\t\t\t\t\tnew Comparator<String[]>() {\r\n\t\t//\t\t\t\t\t\t@Override\r\n\t\t//\t\t\t\t\t\tpublic int compare(String[] o1, String[] o2) {\r\n\t\t//\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t//\t\t\t\t\t\t\treturn Integer.parseInt(o1[0]) - Integer.parseInt(o2[0]);\r\n\t\t//\t\t\t\t\t\t}\r\n\t\t//\r\n\t\t//\t\t\t\t\t});\r\n\t\t//\t\t}\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedWriter dwmid = new DelimitedWriter(Main.dir + \"/visible_mid2gid.temp\");\r\n\t\t//\t\t\tfor (Entry<String, Integer> e : namedmid2name.entrySet()) {\r\n\t\t//\t\t\t\tdwmid.write(e.getValue(), e.getKey());\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tdwmid.close();\r\n\t\t//\t\t\tSort.sort(Main.dir + \"/visible_mid2gid.temp\", Main.dir + \"/visible_mid2gid\", Main.dir,\r\n\t\t//\t\t\t\t\tnew Comparator<String[]>() {\r\n\t\t//\t\t\t\t\t\t@Override\r\n\t\t//\t\t\t\t\t\tpublic int compare(String[] o1, String[] o2) {\r\n\t\t//\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t//\t\t\t\t\t\t\treturn Integer.parseInt(o1[0]) - Integer.parseInt(o2[0]);\r\n\t\t//\t\t\t\t\t\t}\r\n\t\t//\r\n\t\t//\t\t\t\t\t});\r\n\t\t//\t\t}\r\n\t}",
"public PlantID(String line){\r\n\t\tScanner sc = new Scanner(line);\r\n\t\tthis.id = sc.next();\r\n\t\tthis.name = (sc.next()+\" \" +sc.next());\r\n\t\tsc.close();\r\n\t}",
"public void createIDMap()\n {\n IDMap = new HashMap<>();\n idFile.open(\"idpassword.txt\");\n String line = idFile.getNextLine();\n\n\n\n while(line!=null) {\n String[] fields = line.split(\",\");\n IDMap.put(fields[0], fields[1]);\n\n line = idFile.getNextLine();\n\n }\n\n }",
"public void setProtein_id(java.lang.String protein_id) {\n this.protein_id = protein_id;\n }",
"public void setID() throws IOException;",
"int getIDS(String ids) throws IOException {\n String lines=\"\";\n String aux;\n int i = 0, j = 0, k = 0;\n\n BufferedReader br = new BufferedReader(new FileReader(ids)); /* Read all file adding to string */\n try {\n StringBuilder sb = new StringBuilder();\n String line = br.readLine();\n while (line != null) {\n sb.append(line);\n sb.append(System.lineSeparator());\n line = br.readLine();\n }\n lines = sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n br.close();\n }\n\n /* Add each each id to array and get the number of ids */\n i = lines.indexOf(\"id#:[\");\n k = lines.indexOf(\"]\");\n while (i >= 0) {\n /* AllPos[j] = Integer.parseInt(lines.substring(i+5,k));*/\n attrib_int(j, Integer.parseInt(lines.substring(i+5,k)));\n lines = lines.substring(k+1);\n i = lines.indexOf(\"id#:[\");\n if (i>=0)\n {\n aux = lines.substring(i);\n k = aux.indexOf(\"]\") + i;\n }\n j++;\n\n }\n ids_quantity=j;\n return (0);\n }",
"int insertSelective(EhrPersonFile record);",
"int insertSelective(DiaryFile record);",
"int insert(DiaryFile record);",
"public void setFileid(Integer fileid) {\n this.fileid = fileid;\n }",
"@Override\n\tpublic FileModel getId(Long id) {\n\t\treturn fm.getOne(id);\n\t}",
"public void setId(byte id){this.id = id;}",
"@Override\r\n\tpublic void read(Object id) {\n\t\t\r\n\t}",
"EhrPersonFile selectByPrimaryKey(Long id);",
"public void setID(String idIn) {this.id = idIn;}",
"public static void loadTargetTerm2IdMapping(File input) throws IOException {\n\t\t\tm_namesMap = new SimpleBidirectionalMap<String, Integer>();\n\t\t\tString encoding = FileUtils.getFileEncoding(input);\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(input), encoding));\n\t\t\tString line = reader.readLine();\n\t\t\tint lineNum = 1;\n\t\t\tboolean testFormat = false;\n\t\t\tif(StringUtils.checkIfNumber(line.split(\"\\t\")[0]))\n\t\t\t\ttestFormat = true;\n\t\t\twhile(line!= null) {\n\t\t\t\tif(line.equals(\"@@@\"))\n\t\t\t\t\tbreak;\n\t\t\t\tif(testFormat) {\n\t\t\t\t\tString num = line.split(\"\\t\")[0];\n\t\t\t\t\tSystem.out.println(\"key: \"+line.trim().substring(num.length()+1) + \" value: \" + Integer.parseInt(num));\n\t\t\t\t\tm_namesMap.put(line.trim().substring(num.length()+1), Integer.parseInt(num));\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"key????\" + lineNum + \"instead of \" + line.split(\"\\t\")[0]);\n\t\t\t\t\tm_namesMap.put(line.trim(), lineNum);\n\t\t\t\t}\n\t\t\t\tline = reader.readLine();\n\t\t\t\tlineNum ++;\n\t\t\t}\n\t\t}",
"public abstract String getLineupId();",
"private void processGeneFile(String inputFilename, String taxonID) throws IOException {\n BufferedReader reader = createInputFileReader(inputFilename);\n String line;\n String[] columns;\n \n \t// Skip the first line\n line = reader.readLine();\n while (reader.ready()) {\n line = reader.readLine();\n \t\t//writeToDebugFile(line);\n \t\tif (line.substring(0,1).equals(\"#\")) {\n \t\twriteToErrorFile(line, \"Comment\");\n \t\t\tcontinue;\n \t\t}\n columns = line.split(INPUT_COLUMN_DELIM);\n \n String rgdID = columns[0].trim();\n \n // If line contains column names (usually first line), skip it\n if (rgdID.equals(\"GENE_RGD_ID\")) continue;\n \n String geneSymbol = columns[1].trim();\n String chromosome = columns[6].trim(); \n \n \t\t// columns[14] == start base pair\n \t\t// columns[15] == end base pair\n \t\t// columns[16] == strand (- or +)\n \n String mapLocation = getMapLocation(columns[14], columns[15], columns[16].trim());\n \n // The following columns may contain multiple items\n String[] entrezGeneIDs = splitListColumn(columns[20]);\n String[] swissProtIDs = splitListColumn(columns[21]);\n String[] genBankRNAIDs = splitListColumn(columns[23]);\n String[] genBankProteinIDs = splitListColumn(columns[25]);\n String[] unigeneIDs = splitListColumn(columns[26]);\n String[] ensemblIDs;\n \n // if columns.length < 38, the last column (Ensembl ID) is missing\n // from the input file\n if (columns.length < 38) {\n // since there are no EnsemblIDs, set the variable to an empty array,\n // which is what splitListColumn() would do\n ensemblIDs = EMPTY_STRING_ARRAY;\n } else {\n //ensemblIDs = columns[37].split(INPUT_LIST_DELIM);\n ensemblIDs = splitListColumn(columns[37]);\n }\n \n // Write RGD Info\n writeToInfoFile(taxonID, RGD_ID_TYPE, rgdID, chromosome, mapLocation);\n \n // Write Gene Symbol and Ensembl ID Info and Links\n if (!geneSymbol.equals(\"\")) {\n writeToInfoFile(taxonID, \"Gene Symbol\", geneSymbol, chromosome, mapLocation);\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"Gene Symbol\",geneSymbol);\n }\n for (int i = 0; i < ensemblIDs.length; i++) {\n writeToInfoFile(taxonID, \"Ensembl ID\", ensemblIDs[i], chromosome, mapLocation);\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"Ensembl ID\",ensemblIDs[i]);\n }\n \n // Handle NCBI RefSeq and non-RefSeq IDs (both RNA and Protein)\n for (int i = 0; i < genBankRNAIDs.length; i++) {\n String genBankRNAID = genBankRNAIDs[i];\n if (isRefSeq(genBankRNAID)) {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"RefSeq RNA ID\",genBankRNAIDs[i]);\n } else {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"NCBI RNA ID\",genBankRNAIDs[i]);\n }\n }\n for (int i = 0; i < genBankProteinIDs.length; i++) {\n String genBankProteinID = genBankProteinIDs[i];\n if (isRefSeq(genBankProteinID)) {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"RefSeq Protein ID\",genBankProteinIDs[i]);\n } else {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"NCBI Protein ID\",genBankProteinIDs[i]);\n }\n } \n \n // create Links entries for the rest\n writeCollectionToLinksFile(RGD_ID_TYPE,rgdID,\"Entrez Gene ID\",Arrays.asList(entrezGeneIDs));\n writeCollectionToLinksFile(RGD_ID_TYPE,rgdID,\"SwissProt ID\",Arrays.asList(swissProtIDs));\n writeCollectionToLinksFile(RGD_ID_TYPE,rgdID,\"UniGene ID\",Arrays.asList(unigeneIDs));\n } \n reader.close();\n }",
"FileRecordAdmin selectByPrimaryKey(String id);",
"@Import(\"id\")\n\tint getId();",
"public String getIdString(CharSequence line) {\n\t\tList<String> values = parseCsvLine(line);\n\t\treturn values.get(id);\n\t}",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"int insert(EhrPersonFile record);",
"@Override\r\n\tpublic Newstrategypojo getline(int id) {\n\t\treturn dao.getline(id);\r\n\t}",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"public Readln(String id)\n {\n this.id = id;\n }",
"public ReadModelEntity(Guid id)\n {\n this.Id = MakeId(this.GetType(), id);\n this.AggregateId = id;\n }",
"public byte getId() {\n return 2;\n }",
"com.google.protobuf.ByteString getIdBytes();",
"com.google.protobuf.ByteString getIdBytes();",
"com.google.protobuf.ByteString getIdBytes();",
"com.google.protobuf.ByteString getIdBytes();",
"DiaryFile selectByPrimaryKey(String maperId);",
"byte[] getId();",
"public void importFile(String filename) throws IOException, BadEntryException, ImportFileException{\n try{\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n String line;\n line = reader.readLine();\n\n while(line != null){\n String[] fields = line.split(\"\\\\|\");\n int id = Integer.parseInt(fields[1]);\n if(_persons.get(id) != null){\n throw new BadEntryException(fields[0]);\n }\n\n if(fields[0].equals(\"FUNCIONÁRIO\")){\n registerAdministrative(fields);\n line = reader.readLine();\n }else if(fields[0].equals(\"DOCENTE\")){\n Professor _professor = new Professor(id, fields[2], fields[3]);\n _professors.put(id, _professor);\n _persons.put(id, (Person) _professor);\n\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n while((line != null) && (fields[0].charAt(0) == '#')){\n String course = fields[0].substring(2);\n String discipline = fields[1];\n Course _course = _courses.get(course);\n \n if(_course == null){\n _course = new Course(course);\n _disciplineCourse.put(course, new HashMap<String, Discipline>());\n _courses.put(course, _course);\n }\n\n if(_professor.getDisciplineCourses().get(course) == null){\n _professor.getDisciplineCourses().put(course, new HashMap<String, Discipline>());\n }\n\n Discipline _discipline = _disciplines.get(discipline);\n if(_discipline == null){\n _discipline = new Discipline(discipline,_course);\n _disciplines.put(discipline, _discipline);\n _course.getDisciplines().put(discipline, _discipline);\n }\n _discipline.registerObserver(_professor, id);\n _disciplineCourse.get(course).put(discipline, _discipline);\n\n if(_professor.getDisciplines() != null){\n _professor.getDisciplines().put(discipline, _discipline);\n _professor.getDisciplineCourses().get(course).put(discipline, _discipline); \n }\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n\n }\n }\n }\n }else if(fields[0].equals(\"DELEGADO\")){\n Student _student = new Student(id, fields[2], fields[3]);\n _students.put(id, _student);\n _persons.put(id, (Person) _student);\n\n line = reader.readLine();\n fields = line.split(\"\\\\|\");\n while((line != null) && (fields[0].charAt(0) == '#')){\n String course = fields[0].substring(2);\n String discipline = fields[1];\n Course _course = _courses.get(course);\n if(_course == null){\n _course = new Course(course);\n _disciplineCourse.put(course, new HashMap<String, Discipline>());\n _courses.put(course,_course);\n }\n if(_course.getRepresentatives().size() == 8){\n System.out.println(id);\n throw new BadEntryException(course);\n }else{\n _course.getRepresentatives().put(id,_student);\n }\n _student.setCourse(_course);\n Discipline _discipline = _disciplines.get(discipline);\n if(_discipline == null){\n _discipline = new Discipline(discipline, _course);\n _disciplines.put(discipline,_discipline);\n _course.getDisciplines().put(discipline, _discipline);\n }\n if(_student.getDisciplines().size() == 6){\n throw new BadEntryException(discipline);\n }else{\n if(_discipline.getStudents().size() == 100){\n throw new BadEntryException(discipline);\n }else{\n _student.getDisciplines().put(discipline,_discipline);\n _discipline.getStudents().put(id,_student);\n }\n }\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n }\n }\n }else if(fields[0].equals(\"ALUNO\")){\n Student _student = new Student(id, fields[2], fields[3]);\n _students.put(id, _student);\n _persons.put(id, (Person) _student);\n\n line = reader.readLine();\n fields = line.split(\"\\\\|\");\n while((line != null) && (fields[0].charAt(0) == '#')){\n String course = fields[0].substring(2);\n String discipline = fields[1];\n Course _course = _courses.get(course);\n if(_course == null){\n _course = new Course(course);\n _disciplineCourse.put(course, new HashMap<String, Discipline>());\n _courses.put(course, _course);\n }\n _student.setCourse(_course);\n Discipline _discipline = _disciplines.get(discipline);\n if(_discipline == null){\n _discipline = new Discipline(discipline, _course);\n _disciplines.put(discipline, _discipline);\n _course.getDisciplines().put(discipline, _discipline);\n }\n _discipline.registerObserver(_student, id);\n if(_student.getDisciplines().size() == 6){\n throw new BadEntryException(discipline);\n }else{\n _student.getDisciplines().put(discipline,_discipline);\n if(_discipline.getStudents().size() == 100){\n throw new BadEntryException(discipline);\n }else{\n _discipline.getStudents().put(id,_student);\n }\n }\n line = reader.readLine();\n if(line != null){\n fields = line.split(\"\\\\|\");\n }\n }\n\n }else{\n throw new BadEntryException(fields[0]);\n }\n }\n for(Course course: _courses.values()){\n HashMap<Integer,Student> representatives = course.getRepresentatives();\n HashMap<String, Discipline> disciplines = course.getDisciplines();\n for(Discipline discipline: disciplines.values()){\n for(Student representative: representatives.values()){\n discipline.registerObserver(representative, representative.getId());\n }\n }\n \n } \n reader.close();\n }catch(BadEntryException e){\n throw new ImportFileException(e);\n }catch(IOException e){\n throw new ImportFileException(e);\n }\n }",
"java.lang.String getID();",
"public Fila carregar(int id) throws IOException{\t\t\n\t\treturn dao.carregar(id);\n\t}",
"public String getFeatureID(long offset) throws IOException {\n\t\tdataBase.seek(offset);\n\t\tString[] array = dataBase.readLine().split(\"\\\\|\");\n\t\treturn array[0];\n\t}",
"public void setID(String id){\n this.id = id;\n }",
"protected abstract String getId();",
"IDType getID();"
] | [
"0.60092556",
"0.5881239",
"0.58381104",
"0.56293046",
"0.5548622",
"0.54523504",
"0.54284674",
"0.54136115",
"0.5342356",
"0.53369534",
"0.5336932",
"0.5334068",
"0.53036773",
"0.52810013",
"0.52784264",
"0.5263812",
"0.5237166",
"0.5224378",
"0.5222973",
"0.5215472",
"0.519589",
"0.5188506",
"0.5188506",
"0.5188506",
"0.5188506",
"0.5188506",
"0.5188506",
"0.5188506",
"0.5188506",
"0.5188506",
"0.5188506",
"0.5188506",
"0.5188506",
"0.5188506",
"0.5188506",
"0.5188506",
"0.5188506",
"0.5188506",
"0.5188506",
"0.5188506",
"0.5179969",
"0.5164521",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5163129",
"0.5162564",
"0.51477593",
"0.514544",
"0.5127089",
"0.5127089",
"0.5127089",
"0.5127089",
"0.5126945",
"0.5123726",
"0.51184654",
"0.51143634",
"0.5108209",
"0.51016134",
"0.5086424",
"0.5078274",
"0.5076724"
] | 0.0 | -1 |
optional string residues = 3; usually be numbered sequentially. | public boolean hasResidues() {
return ((bitField0_ & 0x00000004) == 0x00000004);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getResidues();",
"public Builder setResidues(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n residues_ = value;\n onChanged();\n return this;\n }",
"public java.lang.String getResidues() {\n java.lang.Object ref = residues_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n residues_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getResidues() {\n java.lang.Object ref = residues_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n residues_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getResiduesBytes() {\n java.lang.Object ref = residues_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n residues_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getResiduesBytes() {\n java.lang.Object ref = residues_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n residues_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Builder setResiduesBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n residues_ = value;\n onChanged();\n return this;\n }",
"private List<String> generateN3Optional() {\n\t\treturn list(\n\t\t\t\t\t\"?conceptNode <\" + VitroVocabulary.RDF_TYPE + \"> <\" + SKOSConceptType + \"> .\\n\" +\n\t\t\t\t\t\"?conceptNode <\" + label + \"> ?conceptLabel .\"\n\t \t);\n\n }",
"private void assignMissingResidueIds() {\n \t\tfor (Atom atom: atomVector) {\n \t\t\tif (atom.residue_id == Integer.MIN_VALUE) {\n \t\t\t\tatom.residue_id = atom.authorResidue_id;\n \t\t\t\tatom.nonpolymer = true;\n \t\t\t}\n \t\t}\n \t}",
"boolean hasResidues();",
"static int size_of_xri(String passed){\n\t\treturn 2;\n\t}",
"public void setReserve3(java.lang.String reserve3) {\n this.reserve3 = reserve3;\n }",
"com.google.protobuf.ByteString\n getResiduesBytes();",
"@Test\n void multiConstruct() {\n var multicons = \"(define conCar_a (cons 1 2))(define conCar_b (cons 3 conCar_a))(define conCar_c (cons conCar_b 4))(define conCar_d (cons conCar_b conCar_c))\";\n Main.parseInputString(multicons);\n assertEquals(\"(3 1 . 2)\", Main.parseInputString(\"(display (car conCar_d)) \"));\n }",
"String slotOfCar(String regNumber);",
"public GI3( String[] textParms )\n {\n super( textParms );\n }",
"private void setInstruc(int[] instruc2) \n\t{\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"static int setCon(String input){\n if (input.equals(\"little\")||input.equals(\"1\")) return 1;\n if (input.equals(\"average\")||input.equals(\"2\"))return 2;\n if (input.equals(\"lot\") || input.equals(\"3\")) return 3;\n if (input.equals(\"manual\") || input.equals(\"4\")) return 4;\n throw new RuntimeException(\n \"Illigal second paramter on command line, use : <little,average,lot>\");\n }",
"public Recurso(int idRecurso, String descripcionRecurso){\n this.idRecurso = idRecurso; //Recibimos el numero \n this.descripcionRecurso = descripcionRecurso; //Material que deseamos\n }",
"public void setResidue(char residue)\r\n {\n if (residue == '[')\r\n this.residue = 'n';\r\n else if (residue == ']')\r\n this.residue = 'c';\r\n else\r\n this.residue = residue;\r\n\r\n if (this.residue == 'n' || this.residue == 'c')\r\n throw new IllegalArgumentException(\"N-terminal and C-terminal labels are not currently supported\");\r\n }",
"@Override\n\tpublic Instruction parseInstruction(InstructionSequence seq, State state) \n\t{\n\t\treturn new Iconst3();\n\t}",
"public void printResiduals(double t, double resid1, double resid2);",
"static int size_of_rlc(String passed){\n\t\treturn 1;\n\t}",
"public void setRsv3(String rsv3) {\r\n this.rsv3 = rsv3;\r\n }",
"private void parsePlateau(String s) {\r\n String[] parsedString = s.split(\" \");\r\n plateau[0] = Integer.parseInt(parsedString[0]);\r\n plateau[1] = Integer.parseInt(parsedString[1]);\r\n }",
"public boolean checkR3(String candidateSolution){\n\t\t//Split the string to a number of 9 digits\n\t\tString []candSol = candidateSolution.split(\"(?<=\\\\G.........)\");\n\t\tint candSolIndex = 0;\n\t\t\n\t\twhile(candSolIndex < 9){\n\n\t\t\tString testPart = candSol[candSolIndex];\n\t\t\t//R2 part\n\t\t\tboolean ok = checkIfDublicate(testPart);\n\t\t\tcandSolIndex++;\n\t\t\tif(ok){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\treturn true;\t\t\t\t\n\t\t}\n\t\treturn false;\n\t}",
"public void setExtra3(String extra3) {\n this.extra3 = extra3;\n }",
"public void init() {\n\t\tinit(\"1,0 3,0 5,0 7,0 9,0 0,1 2,1 4,1 6,1 8,1 1,2 3,2 5,2 7,2 9,2 0,3 2,3 4,3 6,3 8,3\", \n\t\t\t \"1,6 3,6 5,6 7,6 9,6 0,7 2,7 4,7 6,7 8,7 1,8 3,8 5,8 7,8 9,8 0,9 2,9 4,9 6,9 8,9\"); \n }",
"public void setIDINTERNOPE1(int value) {\n this.idinternope1 = value;\n }",
"void mo19167a(String str, String str2, int i, String str3, int i2);",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(3, 5, 0, 10, false, 16), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"static void initSample3(){\n // put values into the sField\n sField[3][6] = \"X\";\n sField[4][6] = \"X\";\n sField[5][6] = \"X\";\n sField[6][6] = \"X\";\n sField[7][6] = \".\";\n \n sField[1][5] = \"O\";\n sField[1][6] = \"O\";\n sField[1][7] = \".\";\n sField[1][8] = \"O\";\n }",
"final String getResourceName(int resid) {\n if (am == null)\n return null;\n ResTable.resource_name name = new ResTable.resource_name(null, null, null);\n if (!am.getResources(false).getResourceName(resid, name)) {\n return null;\n }\n String str = null;\n if (name.mPackage != null) {\n str = name.mPackage;\n }\n\n if (name.mType != null) {\n if (str.length() > 0) {\n str += \":\";\n }\n str += name.mType;\n }\n\n if (name.mName != null) {\n if (str.length() > 0) {\n str += \"/\";\n }\n str += name.mName;\n }\n\n return str;\n }",
"public void setRegulations(String regulations) {\n this.regulations = regulations;\n }",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_4() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tint[][] response = roc.generateIntegerSequences(3, 5, 0, 10, false, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tint[][] response2 = roc.generateIntegerSequences(3, 5, 0, 10, false, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(3, 5, 0, 10, false, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(3, 5, 0, 10, false, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"@Test\r\n\tpublic void testPositiveGenerateStrings_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString[] response = roc.generateStrings(10, 5, \"abcd\", false, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tString[] response2 = roc.generateStrings(10, 5, \"abcd\", false, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\r\n\t\t\t\tresponse = roc.generateStrings(10, 5, \"abcd\", false, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateStrings(10, 5, \"abcd\", false, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"private List<String> generateN3Required(VitroRequest vreq) {\n \tList<String> n3Required = list(\n \t getPrefixesString() + \"\\n\" +\n \t \"?subject ?predicate ?conceptNode .\\n\"\n \t);\n \tList<String> inversePredicate = getInversePredicate(vreq);\n\t\t//Adding inverse predicate if it exists\n\t\tif(inversePredicate.size() > 0) {\n\t\t\tn3Required.add(\"?conceptNode <\" + inversePredicate.get(0) + \"> ?subject .\");\n\t\t}\n \treturn n3Required;\n }",
"public static String getResidSnippet(String resident) {\n String snippet = null;\n try {\n JSONObject jsonObject = new JSONObject(resident);\n snippet = jsonObject.getString(\"resid\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n return snippet;\n }",
"@Test public void testParseManyDigits3() {\n String pows10 =\n \"0.00000000000001\\n\"+\n \"1000001\\n\"+\n \"2000001\\n\"+\n \"\";\n double[][] pows10_exp = new double[][] {\n ard(1e-14),\n ard(1000001L),\n ard(2000001L),\n };\n Key k = FVecFactory.makeByteVec(pows10);\n Key r1 = Key.make(\"r1\");\n ParseDataset.parse(r1, k);\n testParsed(r1,pows10_exp);\n }",
"@Test\r\n\tpublic void testPositiveGenerateSignedIntegerSequences_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tHashMap<String,Object> o = roc.generateSignedIntegerSequences(3, 5, 0, 10, false, 16, userData);\r\n\t\t\t\t\r\n\t\t\t\tthis.signedValueTester(roc, i, o, String[][].class, true);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"void mo11024a(int i, int i2, String str);",
"@Override\r\n\tpublic vec3 get3(String ponits) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic List getListByResId(Integer resid) {\n\t\tString sql = \"select g.resid from GroupFunres g where resid = '\" + resid + \"'\";\n\t\tList list = this.queryForList(sql);\n\t\tList idList=new ArrayList();\n\t\tif (list != null && list.size() > 0) {\n\t\t\tfor(int i=0;i<list.size();i++){\n\t\t\t\tidList.add(list.get(i));\n\t\t\t}\n\t\t\treturn idList;\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n\tpublic int resid() {\n\t\treturn currnet().resid();\n\t}",
"private String insertarCartaNaturalResources() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 0,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 5,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n true,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }",
"public static int[][] AssetCreater(String srt) {\n\r\n\t\tint Length = ArrLength(srt);\r\n\r\n\t\tint[][] TempArr = new int[5][Length];\r\n\r\n\t\tint Xoffset = 0;\r\n\r\n\t\t// goes through entire word and if any letter corrisponds with a letter it's\r\n\t\t// testing for\r\n\t\t// it calls a function to add the new symbol to 2d array\r\n\r\n\t\t// I considered commenting all this but I think it's pretty self explanitory\r\n\r\n\t\tfor (int k = 0; k < srt.length(); k++) {\r\n\r\n\t\t\tif (srt.charAt(k) == '0') {\r\n\t\t\t\t// if it's 0 add Zero Matrix to the matrix\r\n\t\t\t\tTempArr = AddToArr(TempArr, Zero, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '1') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, One, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '2') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Two, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '3') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Three, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '4') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Four, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '5') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Five, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '6') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Six, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '7') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Seven, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '8') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Eight, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '9') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Nine, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'a') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ALetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'b') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, BLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'c') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, CLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'd') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, DLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'e') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ELetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'f') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, FLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'g') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, GLetter, 4, Xoffset);\r\n\r\n\t\t\t\t// G is a bigger number so I just add 1 to offset\r\n\t\t\t\tXoffset += 1;\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'h') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, HLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'i') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ILetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'j') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, JLetter, 4, Xoffset);\r\n\r\n\t\t\t\tXoffset += 1;\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'k') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, KLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'l') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, LLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'm') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, MLetter, 5, Xoffset);\r\n\r\n\t\t\t\tXoffset += 2;\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'n') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, NLetter, 4, Xoffset);\r\n\r\n\t\t\t\tXoffset += 1;\r\n\t\t\t} else if (srt.charAt(k) == 'o') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, OLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'p') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, PLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'q') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, QLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'r') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, RLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 's') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, SLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 't') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, TLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'u') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ULetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'v') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, VLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'w') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, WLetter, 5, Xoffset);\r\n\r\n\t\t\t\tXoffset += 2;\r\n\t\t\t} else if (srt.charAt(k) == 'x') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, XLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'y') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, YLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'z') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ZLetter, 4, Xoffset);\r\n\r\n\t\t\t\tXoffset += 1;\r\n\t\t\t} else if (srt.charAt(k) == ' ') {\r\n\t\t\t\tXoffset -= 2;\r\n\t\t\t\t// space is too big number so I just sub 2 from offset\r\n\r\n\t\t\t} else if (srt.charAt(k) == '-') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, DashLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == ':') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ColonLetter, 3, Xoffset);\r\n\r\n\t\t\t}\r\n\r\n\t\t\tXoffset += 4;\r\n\t\t}\r\n\t\treturn TempArr;\r\n\t}",
"private static void initSet1(String[] set1) {\n\t\tset1[0] = \"rs36129689\";\n\t\tset1[1] = \"rs36153986\";\n\t\tset1[2] = \"rs493934\";\n\t\tset1[3] = \"rs36146958\";\n\t\tset1[4] = \"rs36197089\";\n\t\tset1[5] = \"rs35773247\";\n\t\tset1[6] = \"rs35346884\";\n\t\tset1[7] = \"rs493040\";\n\t\tset1[8] = \"rs35473000\";\n\t\tset1[9] = \"rs123456\";\n\t\tset1[10] = \"rs1234567\";\n\t\tset1[11] = \"rs12345678\";\n\t\tset1[12] = \"rs1234234\";\n\t\tset1[13] = \"rs492232\";\n\t\tset1[14] = \"rs492184\";\n\t\tset1[15] = \"rs123123\";\n\t}",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_5() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString[][] response = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tString[][] response2 = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void setText(String text) {\n \tif (_assocModel == null) return;\n\t\tString mult;\n\t\tPattern p = Pattern.compile(\"([\\\\d]|\\\\Q*\\\\E)([.]{2}+([\\\\d]|\\\\Q*\\\\E))?\");\t// regex for multiplicities: (digit | *) + optional(.. (digit | *))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// can use a Collection to handle multiplicities of *; we really only care about\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the upper bound also\n\t\tMatcher m = p.matcher(text);\n\t\t// regex didn't find anything, so we'll assign a default multiplicity\n\t\tif (!m.find() || m.group().length() < 0) {\n\t\t\tmult=\"1\";\n\t\t}\n\t\telse mult = m.group();\n\t\t_assocModel.setMultiplicity(mult);\n\t\tsuper.setText(mult);\n\t}",
"public Integer getResnr() {\n\t\treturn this.resnr;\n\t}",
"static void perform_xri(String passed){\n\t\tint type = type_of_xri(passed);\n\t\tif(type==1)\n\t\t\txri_with_acc(passed);\n\t}",
"private void inzsr() {\n\t\tid1Ctdta = 1;\n\t\tstrCtdta = \"Each KGS \";\n\t\tfor (int idxCtdta = 1; idxCtdta <= 1; idxCtdta++) {\n\t\t\tum[idxCtdta] = subString(strCtdta, id1Ctdta, 11);\n\t\t\tid1Ctdta = Integer.valueOf(id1Ctdta + 11);\n\t\t}\n\t\t// Initialise message subfile\n\t\tnmfkpinds.setPgmInd32(true);\n\t\tstateVariable.setZzpgm(replaceStr(stateVariable.getZzpgm(), 1, 8, \"WWCONDET\"));\n\t\t// - Set date\n\t\tstateVariable.setZzdate(getDate().toInt());\n\t\t// -\n\t\t// - CONTRACT\n\t\tcontractHeader.retrieve(stateVariable.getXwordn());\n\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t// - CUSTOMER\n\t\tpurchases.retrieve(stateVariable.getXwbccd());\n\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t// BR00012 Debtor not found on Purchases\n\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\tstateVariable.setXwg4tx(all(\"-\", 40));\n\t\t}\n\t\t// - REPRESENTATIVE\n\t\tsalespersons.retrieve(stateVariable.getPerson());\n\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t// BR00013 Rep not found on Salespersons\n\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\tstateVariable.setPname(all(\"-\", 34));\n\t\t}\n\t\t// - STATUS\n\t\torderStatusDescription.retrieve(stateVariable.getXwstat());\n\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t// BR00014 Status not found on Order_status_description\n\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\tstateVariable.setXwsdsc(all(\"-\", 20));\n\t\t}\n\t}",
"public String designPN(String nr)\r\n {\r\n String newStr=\"(\";\r\n if(nr.length()!=10){return null;}\r\n else\r\n {\r\n newStr=newStr+nr.substring(0,4)+\")-\";\r\n // System.out.println(\"phase 1 \"+ newStr);\r\n newStr=newStr+nr.substring(4,7)+\"-\";\r\n // System.out.println(\"phase 2 \"+ newStr);\r\n newStr=newStr+nr.substring(7,10);\r\n // System.out.println(\"phase 3 \"+ newStr);\r\n }\r\n return newStr;\r\n\r\n }",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_7() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(4, LENGTH, MIN, MAX, REPLACEMENT), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"public static String guessResidueTypeFromFeatureLength(int seqLength,\n int featureLength) {\n float basepairsPerResidue = (Math.abs((float)featureLength/\n (float)seqLength));\n return (basepairsPerResidue > 2.0 ? SequenceI.AA : SequenceI.DNA);\n }",
"public void readArmies(){\n\n for ( j= 0;j<countriesArmyLines.size();j++) {\n String [] armyLine = countriesArmyLines.get(j).split(\" \");\n vertices.get(Integer.parseInt(armyLine[1])-1).addArmies(Integer.parseInt(armyLine[2]));\n System.out.println(\"army \"+vertices.get(j).getNumberArmies());\n }\n // Read countries armies for AI agents\n\n for ( j= 0;j<countriesArmyLines.size();j++) {\n String [] armyLine = countriesArmyLines.get(j).split(\" \");\n allSCountries.get(Integer.parseInt(armyLine[1])).setNumberArmies(Integer.parseInt(armyLine[2]));\n // System.out.println(\"army \"+vertices.get(j).getNumberArmies());\n }\n NState.globalState.allCountries=allSCountries;\n }",
"void adobe_coeff( CharPtr make, CharPtr model) {\n \n adobe_coeff( make.toString(), model.toString());\n}",
"private static String lllIIllIl(short IIIlIIlllllIIll, String IIIIlIlllllIIll) {\n }",
"public String getRelationIdString(SpatialElement se1, String se1Role, SpatialElement se2, String se2Role, SpatialElement se3, String se3Role) {\n String idString = \"\";\n if (se1 != null && se2 != null && se3 != null) {\n se1.role = se1Role;\n se2.role = se2Role;\n se3.role = se3Role;\n idString = se1.id+\"-\"+se2.id+\"-\"+se3.id;\n }\n else if (se1 != null && se2 != null) {\n se1.role = se1Role;\n se2.role = se2Role;\n idString = se1.id+\"-\"+se2.id+\"-null\";\n }\n else if (se1 != null && se3 != null) {\n se1.role = se1Role;\n se3.role = se3Role;\n idString = se1.id+\"-null-\"+se3.id;\n }\n else if (se2 != null && se3 != null) {\n se2.role = se2Role;\n se3.role = se3Role;\n idString = \"null-\"+se2.id+\"-\"+se3.id;\n }\n return idString;\n }",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_9() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tint[][] response = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tint[][] response2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"public String[] getVariants_ru(int[] randIds){\n Cursor crs;\n String[] variants_ru = new String[4];\n for(int i = 0; i< 4; i++){\n String[] args = new String[1];\n args[0] = Integer.toString(randIds[i]+1);\n crs = aniDB.getReadableDatabase().rawQuery(\"SELECT name_ru FROM titles WHERE id = ?\",args);\n if(crs.moveToFirst()) {\n variants_ru[i] = crs.getString(crs.getColumnIndex(\"name_ru\"));\n }\n crs.close();\n }\n return variants_ru;\n }",
"public void setSpare3(String spare3) {\r\n this.spare3 = spare3;\r\n }",
"public void restricciones(String oraciones){\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Restricciones semanticas\");\n alert.setHeaderText(oraciones);\n alert.showAndWait();\n }",
"void mo8715r(String str, String str2, String str3);",
"static int type_of_inr(String passed){\n\t\tif(general_registers.contains(passed.charAt(4)))\n\t\t\treturn 1;\n\t\telse if(passed.charAt(4)=='M')\n\t\t\treturn 2;\n\t\telse\n\t\t\treturn 0;\n\t}",
"public void setRemark3(java.lang.String _remark3)\r\n {\r\n this._remark3 = _remark3;\r\n }",
"public /* synthetic */ CinemaDescriptionItem(String str, int i2, int i3, f fVar) {\n this(str, (i3 & 2) != 0 ? 3 : i2);\n }",
"public Recipe(String[] in)\r\n {\r\n double temp;\r\n if (in.length == 3){\r\n this.origQty = in[0];\r\n this.measure = in[1];\r\n this.ingredient = in[2];\r\n this.w_qty = makeDecimal(in[0]);\r\n }\r\n else {if (in.length == 5) {\r\n this.origQty = in[0] + \" \" + in[1];\r\n this.measure = in[2];\r\n this.ingredient = in[3] + \" \" + in[4];\r\n temp = makeDecimal(in[1]);\r\n this.w_qty = Double.parseDouble(in[0])+ temp;\r\n }\r\n else if (in.length == 4) {\r\n if (in[1].contains(\"/\")) {\r\n this.origQty = in[0] + \" \" + in[1];\r\n this.measure = in[2];\r\n this.ingredient = in[3];\r\n temp = makeDecimal(in[1]);\r\n this.w_qty = temp + Double.parseDouble(in[0]);}\r\n else {\r\n this.origQty = in[0];\r\n this.measure = in[1];\r\n this.ingredient = in[2] + \" \" + in[3];\r\n this.w_qty = makeDecimal(in[0]);}\r\n }\r\n }\r\n this.working_measure = measure;\r\n this.final_measure = measure;\r\n }",
"private static int _addPossibleValues(int rowNumber, int y, int x, short[][] spareMatrix,String[] rowIds, SudokuModel model) {\r\n\r\n\t\tfor(short i = 0; i <9; i++){\r\n\t\t\tif(!model.restrictionIsSatisfied(y, x, i+1))\r\n\t\t\trowNumber = _addRestrictions(rowNumber,y,x,i,spareMatrix,rowIds);\r\n\t\t}\r\n\t\t\r\n\t\treturn rowNumber;\r\n\t}",
"public TextPropDefaultViewModel_ textWithDefaultQuantityRes(@PluralsRes int pluralRes,\n int quantity, Object... formatArgs) {\n onMutation();\n assignedAttributes_epoxyGeneratedModel.set(0);\n textWithDefault_StringAttributeData.setValue(pluralRes, quantity, formatArgs);\n return this;\n }",
"public static void loadMatric(int matr[][]) throws IOException{\n\n\t\tfor(int i=0;i<7;i++){\n\t\t\tfor(int j=0;j<6;j++){\n\t\t\t\tSystem.out.print(\"INSERISCI\"+i+j+\": \");\n\t\t\t\tSystem.out.flush();\n\t\t\t\tmatr[i][j]=System.in.read()-'0';\n\t\t\t\tSystem.in.skip(2);\n\t\t\t}}}",
"public boolean restrizione14()\r\n\t\tthrows RestrizioniSpecException\r\n\t\t{\r\n\t\tfor (int i = 0; i < this.equivalenzeInput.size(); i++)\r\n\t\t\t{\r\n\t\t\t// si preleva il nome dell'interazione di output connessa a questa componente\r\n\t\t\tAttacDecl attacDecl = this.attacsDeclInput.get(i);\r\n\t\t\tString string = attacDecl.getOutputInteraction();\r\n\t\t\t// si preleva la relativa equivalenza\r\n\t\t\tIEquivalenza equivalenza = this.equivalenzeInput.get(i);\r\n\t\t\t// si preleva l'azione corrispondente a string\r\n\t\t\tAction action = equivalenza.getActionFromName(string);\r\n\t\t\tif (action == null)\r\n\t\t\t\t{\r\n\t\t\t\tString string2 = equivalenza.getAEIdecl().getName();\r\n\t\t\t\tthrow new RestrizioniSpecException(\"The \"+string+\" action of instance \"+\r\n\t\t\t\t\t\tstring2+\" don't found\");\r\n\t\t\t\t}\r\n\t\t\tActionRate actionRate = action.getRate();\r\n\t\t\tif (!(actionRate instanceof RateInf))\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\treturn true;\r\n\t\t}",
"public void setNoOfRelevantLines(int norl) { this.noOfRelevantLines = norl; }",
"void playYearOfPlentyCard(String resource1, String resource2);",
"java.lang.String getNum1();",
"public int cuantosRenglones() \r\n\t{\r\n\t\tString respuesta = JOptionPane.showInputDialog(\"cuantas renglones quiere\");\r\n\t\tint respuesta1 = Integer.parseInt(respuesta);\r\n\t\treturn respuesta1;\r\n\t}",
"static int size_of_rrc(String passed){\n\t\treturn 1;\n\t}",
"public boolean hasResidues() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public void int3_m() {\n\t\t\n\t}",
"public void agregarpal(String n) {\n\n switch (pos) {\n case 0:\n pal1 = n;\n case 1:\n pal2 = n;\n case 2:\n pal3 = n;\n case 3:\n pal4 = n;\n case 4:\n pal5 = n;\n break;\n }//fin switch\n\n pos++;\n }",
"public static void muestraArreglo(int[] arreglo) {\r\n\t\tfor (int i = 0; i < arreglo.length; i++) {\r\n\t\t\tescribir(\"[\" + arreglo[i] + \"]\", false);\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n\t\tRandom rand = new Random();\n\t\tint first = rand.nextInt(7);\n\t\tint second = rand.nextInt(7);\n\t\tint third = rand.nextInt(7);\n\t\t\n\t\tint middle = rand.nextInt(741);\n\t\t\n\t\tint last = rand.nextInt(9999);\n\t\t\n\t\tString middleString= Integer.toString(middle);\n\t\tString lastString = Integer.toString(last); \n\t\tString firstString = Integer.toString(first);\n\t\tString secondString = Integer.toString(second);\n\t\tString thirdString = Integer.toString(third);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\twhile (middleString.length()<3) {\n\t\t\tmiddleString = \"0\" + middleString;\n\t\t\t\n\t\t}\n\t\t\n\t\twhile (lastString.length()<4){\n\t\t\tlastString = \"0\" + lastString;\n\t\t}\n\t\t\n\t\tSystem.out.println(firstString + secondString + thirdString + \"-\"+ middleString +\"-\"+ lastString);\n\t\t\n\t\t\n\t}",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_8() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(4, LENGTH, MIN, MAX, REPLACEMENT, BASE), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"public String getChoice3(int a){\n String choice2 = choices[a][2];\n return choice2;\n }",
"@Override\n\tpublic void setStreet3(java.lang.String street3) {\n\t\t_candidate.setStreet3(street3);\n\t}",
"static void initSample4(){\n // put values into the sField\n sField[5][4] = \"X\";\n sField[4][5] = \".\";\n sField[3][6] = \"X\";\n sField[2][7] = \"X\";\n sField[1][8] = \"X\";\n \n sField[1][5] = \"O\";\n sField[1][6] = \"O\";\n sField[1][7] = \".\"; \n }",
"private String theFunctionThatSolvesAllProblems(String input) throws IOException {\n\n first = new MyInt[9];\n second = new MyInt[9];\n third = new MyInt[9];\n myPointers = new MyIntPointer[7];\n\n M = new MyInt();\n D = new MyInt();\n C = new MyInt();\n L = new MyInt();\n X = new MyInt();\n V = new MyInt();\n I = new MyInt();\n\n hasI = false;\n hasX = false;\n hasC = false;\n hasM = false;\n hasV = false;\n hasL = false;\n hasD = false;\n\n firstLength = 0;\n secondLength = 0;\n thirdLength = 0;\n\n initializeEquation(input);\n\n return arabic();\n\n }",
"public StrumInstrument(String type, String manufacturer, int nrStrings, double stringSize) {\n super(type, manufacturer);\n this.nrStrings = nrStrings;\n this.stringSize = stringSize;\n }",
"public int[] contarCodons(String seq){\n int [] countCodons=new int[65];\n for (int i=0;i<seq.length()-2;i=i+3){\n String c=seq.substring(i, i+3);\n int j=0;\n while (j<nameCodon.length && nameCodon[j].compareTo(c)!=0) j++;\n if (j<nameCodon.length)\n countCodons[j]++;\n else\n countCodons[64]++;\n }\n return countCodons;\n\n }",
"public void setSecondary3(java.lang.String secondary3) {\n this.secondary3 = secondary3;\n }",
"@Test\n public void execute_nricParameter() throws ParseException {\n //No user input\n execute_parameterPredicate_test(0, \" \", \"nric\", true, false, Collections.emptyList());\n //Single keyword, ignore case, person found.\n execute_parameterPredicate_test(1, \"s1234567A\", \"nric\", true, false, Arrays.asList(ALICE));\n //Single keyword, case sensitive, no one found.\n execute_parameterPredicate_test(0, \"s1234567A\", \"nric\", false, false, Collections.emptyList());\n //Multiple keywords, ignore case, or condition, multiple people found\n execute_parameterPredicate_test(2, \"S1234567a S5234569A\", \"nric\", true, false, Arrays.asList(ALICE, GEORGE));\n //Multiple keywords, ignore case, and condition, no one found\n execute_parameterPredicate_test(0, \"S1234567a S5234569A\", \"nric\", true, true, Collections.emptyList());\n //Multiple keywords, case sensitive, or condition, one person found\n execute_parameterPredicate_test(1, \"S1234567a S5234569A\", \"nric\", false, false, Arrays.asList(GEORGE));\n //Multiple keywords, case sensitive, and condition, no one found\n execute_parameterPredicate_test(0, \"S1234567a S5234569A\", \"nric\", false, true, Collections.emptyList());\n }",
"@Nullable public abstract String loadVerseText(int ari);",
"public void setIDINTERNODC(int value) {\n this.idinternodc = value;\n }",
"static void lxi_to_reg_pair(String passed){\n\t\tchar fourth = passed.charAt(4);\n\t\tif(fourth=='B'){\n\t\t\tregisters.put('B', passed.substring(6,8));\n\t\t\tregisters.put('C', passed.substring(8));\n\t\t}\n\t\telse if(fourth=='D'){\n\t\t\tregisters.put('D', passed.substring(6,8));\n\t\t\tregisters.put('E', passed.substring(8));\n\t\t}\n\t\telse if(fourth=='H'){\n\t\t\tregisters.put('H', passed.substring(6,8));\n\t\t\tregisters.put('L', passed.substring(8));\n\t\t}\n\t}",
"public int getImageResourceIdForExercise(Context context){\n\n TypedArray imagesArray = context.getResources().obtainTypedArray(R.array.images_array);\n int id = 0;\n\n if(musclePart == 1) {\n return imagesArray.getResourceId((exeNumber -1),0);\n }else {\n for (int i = 1; i < imagesArray.length(); i++) {\n if(i == (((musclePart - 1) * 6) + exeNumber) - 1){\n id = imagesArray.getResourceId(i,0);\n break;\n }\n }\n }\n imagesArray.recycle();\n return id;\n }",
"public void mo32111rr(int i) {\n }",
"static int size_of_lxi(String passed){\n\t\treturn 3;\n\t}",
"public void setResearchno(String researchno) {\r\n\t\tthis.researchno = researchno;\r\n\t}",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_10() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString[][] response = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, BASE, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tString[][] response2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, BASE, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, BASE, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, BASE, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n //The letters are randomly chosen through this block of code with use of ASCII code.\n char let1 = (char) ((int)(Math.random() * 26 + 65));\n char let2 = (char) ((int)(Math.random() * 26 + 65));\n char let3 = (char) ((int)(Math.random() * 26 + 65));\n \n //This generates a number of four digits to follow the letters. \n int num = (int)(Math.random() * 9000 + 999);\n \n //The combination is now printed to the screen through this. \n System.out.println(\"The plate number is \" + let1 + let2 +let3 + num); \n }"
] | [
"0.6327813",
"0.6192469",
"0.54701954",
"0.54318446",
"0.53435236",
"0.517985",
"0.51273394",
"0.49388522",
"0.4843686",
"0.47237444",
"0.47163254",
"0.4672512",
"0.46710652",
"0.46661896",
"0.46322954",
"0.46011934",
"0.4569921",
"0.45437083",
"0.45296323",
"0.45279846",
"0.45203218",
"0.45189357",
"0.448949",
"0.44783738",
"0.44738823",
"0.4448853",
"0.44484988",
"0.44427297",
"0.44364527",
"0.4433593",
"0.44193015",
"0.441404",
"0.4399441",
"0.4376159",
"0.4368925",
"0.4364866",
"0.4362959",
"0.4357302",
"0.43427482",
"0.43348527",
"0.43325981",
"0.43311843",
"0.4325681",
"0.43061322",
"0.43053252",
"0.4292421",
"0.42918912",
"0.42805928",
"0.42690328",
"0.4265863",
"0.4261377",
"0.42598525",
"0.42585045",
"0.42498323",
"0.42467907",
"0.42458472",
"0.42452836",
"0.4242436",
"0.4234264",
"0.42334983",
"0.42330155",
"0.42293504",
"0.4227454",
"0.42257997",
"0.42255232",
"0.42251506",
"0.42247605",
"0.42231393",
"0.42229062",
"0.42220333",
"0.4220982",
"0.4219076",
"0.42158842",
"0.42102906",
"0.4204864",
"0.42048565",
"0.42022958",
"0.42021188",
"0.41942436",
"0.41938663",
"0.41903755",
"0.4186586",
"0.41824836",
"0.41813582",
"0.41777498",
"0.41771463",
"0.4175399",
"0.41727102",
"0.41639477",
"0.41636065",
"0.4162537",
"0.4157625",
"0.41564998",
"0.4151467",
"0.41509706",
"0.41508955",
"0.41437665",
"0.41414803",
"0.41412947",
"0.41412067"
] | 0.41846168 | 82 |
optional string residues = 3; usually be numbered sequentially. | public java.lang.String getResidues() {
java.lang.Object ref = residues_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
residues_ = s;
return s;
} else {
return (java.lang.String) ref;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getResidues();",
"public Builder setResidues(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n residues_ = value;\n onChanged();\n return this;\n }",
"public java.lang.String getResidues() {\n java.lang.Object ref = residues_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n residues_ = s;\n }\n return s;\n }\n }",
"public com.google.protobuf.ByteString\n getResiduesBytes() {\n java.lang.Object ref = residues_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n residues_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getResiduesBytes() {\n java.lang.Object ref = residues_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n residues_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Builder setResiduesBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n residues_ = value;\n onChanged();\n return this;\n }",
"private List<String> generateN3Optional() {\n\t\treturn list(\n\t\t\t\t\t\"?conceptNode <\" + VitroVocabulary.RDF_TYPE + \"> <\" + SKOSConceptType + \"> .\\n\" +\n\t\t\t\t\t\"?conceptNode <\" + label + \"> ?conceptLabel .\"\n\t \t);\n\n }",
"private void assignMissingResidueIds() {\n \t\tfor (Atom atom: atomVector) {\n \t\t\tif (atom.residue_id == Integer.MIN_VALUE) {\n \t\t\t\tatom.residue_id = atom.authorResidue_id;\n \t\t\t\tatom.nonpolymer = true;\n \t\t\t}\n \t\t}\n \t}",
"boolean hasResidues();",
"static int size_of_xri(String passed){\n\t\treturn 2;\n\t}",
"public void setReserve3(java.lang.String reserve3) {\n this.reserve3 = reserve3;\n }",
"com.google.protobuf.ByteString\n getResiduesBytes();",
"@Test\n void multiConstruct() {\n var multicons = \"(define conCar_a (cons 1 2))(define conCar_b (cons 3 conCar_a))(define conCar_c (cons conCar_b 4))(define conCar_d (cons conCar_b conCar_c))\";\n Main.parseInputString(multicons);\n assertEquals(\"(3 1 . 2)\", Main.parseInputString(\"(display (car conCar_d)) \"));\n }",
"String slotOfCar(String regNumber);",
"public GI3( String[] textParms )\n {\n super( textParms );\n }",
"private void setInstruc(int[] instruc2) \n\t{\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"static int setCon(String input){\n if (input.equals(\"little\")||input.equals(\"1\")) return 1;\n if (input.equals(\"average\")||input.equals(\"2\"))return 2;\n if (input.equals(\"lot\") || input.equals(\"3\")) return 3;\n if (input.equals(\"manual\") || input.equals(\"4\")) return 4;\n throw new RuntimeException(\n \"Illigal second paramter on command line, use : <little,average,lot>\");\n }",
"public Recurso(int idRecurso, String descripcionRecurso){\n this.idRecurso = idRecurso; //Recibimos el numero \n this.descripcionRecurso = descripcionRecurso; //Material que deseamos\n }",
"public void setResidue(char residue)\r\n {\n if (residue == '[')\r\n this.residue = 'n';\r\n else if (residue == ']')\r\n this.residue = 'c';\r\n else\r\n this.residue = residue;\r\n\r\n if (this.residue == 'n' || this.residue == 'c')\r\n throw new IllegalArgumentException(\"N-terminal and C-terminal labels are not currently supported\");\r\n }",
"public void printResiduals(double t, double resid1, double resid2);",
"@Override\n\tpublic Instruction parseInstruction(InstructionSequence seq, State state) \n\t{\n\t\treturn new Iconst3();\n\t}",
"static int size_of_rlc(String passed){\n\t\treturn 1;\n\t}",
"public void setRsv3(String rsv3) {\r\n this.rsv3 = rsv3;\r\n }",
"private void parsePlateau(String s) {\r\n String[] parsedString = s.split(\" \");\r\n plateau[0] = Integer.parseInt(parsedString[0]);\r\n plateau[1] = Integer.parseInt(parsedString[1]);\r\n }",
"public boolean checkR3(String candidateSolution){\n\t\t//Split the string to a number of 9 digits\n\t\tString []candSol = candidateSolution.split(\"(?<=\\\\G.........)\");\n\t\tint candSolIndex = 0;\n\t\t\n\t\twhile(candSolIndex < 9){\n\n\t\t\tString testPart = candSol[candSolIndex];\n\t\t\t//R2 part\n\t\t\tboolean ok = checkIfDublicate(testPart);\n\t\t\tcandSolIndex++;\n\t\t\tif(ok){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\treturn true;\t\t\t\t\n\t\t}\n\t\treturn false;\n\t}",
"public void setExtra3(String extra3) {\n this.extra3 = extra3;\n }",
"public void init() {\n\t\tinit(\"1,0 3,0 5,0 7,0 9,0 0,1 2,1 4,1 6,1 8,1 1,2 3,2 5,2 7,2 9,2 0,3 2,3 4,3 6,3 8,3\", \n\t\t\t \"1,6 3,6 5,6 7,6 9,6 0,7 2,7 4,7 6,7 8,7 1,8 3,8 5,8 7,8 9,8 0,9 2,9 4,9 6,9 8,9\"); \n }",
"public void setIDINTERNOPE1(int value) {\n this.idinternope1 = value;\n }",
"void mo19167a(String str, String str2, int i, String str3, int i2);",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(3, 5, 0, 10, false, 16), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"static void initSample3(){\n // put values into the sField\n sField[3][6] = \"X\";\n sField[4][6] = \"X\";\n sField[5][6] = \"X\";\n sField[6][6] = \"X\";\n sField[7][6] = \".\";\n \n sField[1][5] = \"O\";\n sField[1][6] = \"O\";\n sField[1][7] = \".\";\n sField[1][8] = \"O\";\n }",
"final String getResourceName(int resid) {\n if (am == null)\n return null;\n ResTable.resource_name name = new ResTable.resource_name(null, null, null);\n if (!am.getResources(false).getResourceName(resid, name)) {\n return null;\n }\n String str = null;\n if (name.mPackage != null) {\n str = name.mPackage;\n }\n\n if (name.mType != null) {\n if (str.length() > 0) {\n str += \":\";\n }\n str += name.mType;\n }\n\n if (name.mName != null) {\n if (str.length() > 0) {\n str += \"/\";\n }\n str += name.mName;\n }\n\n return str;\n }",
"public void setRegulations(String regulations) {\n this.regulations = regulations;\n }",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_4() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tint[][] response = roc.generateIntegerSequences(3, 5, 0, 10, false, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tint[][] response2 = roc.generateIntegerSequences(3, 5, 0, 10, false, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(3, 5, 0, 10, false, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(3, 5, 0, 10, false, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"@Test\r\n\tpublic void testPositiveGenerateStrings_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString[] response = roc.generateStrings(10, 5, \"abcd\", false, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tString[] response2 = roc.generateStrings(10, 5, \"abcd\", false, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\r\n\t\t\t\tresponse = roc.generateStrings(10, 5, \"abcd\", false, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateStrings(10, 5, \"abcd\", false, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"private List<String> generateN3Required(VitroRequest vreq) {\n \tList<String> n3Required = list(\n \t getPrefixesString() + \"\\n\" +\n \t \"?subject ?predicate ?conceptNode .\\n\"\n \t);\n \tList<String> inversePredicate = getInversePredicate(vreq);\n\t\t//Adding inverse predicate if it exists\n\t\tif(inversePredicate.size() > 0) {\n\t\t\tn3Required.add(\"?conceptNode <\" + inversePredicate.get(0) + \"> ?subject .\");\n\t\t}\n \treturn n3Required;\n }",
"public static String getResidSnippet(String resident) {\n String snippet = null;\n try {\n JSONObject jsonObject = new JSONObject(resident);\n snippet = jsonObject.getString(\"resid\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n return snippet;\n }",
"@Test public void testParseManyDigits3() {\n String pows10 =\n \"0.00000000000001\\n\"+\n \"1000001\\n\"+\n \"2000001\\n\"+\n \"\";\n double[][] pows10_exp = new double[][] {\n ard(1e-14),\n ard(1000001L),\n ard(2000001L),\n };\n Key k = FVecFactory.makeByteVec(pows10);\n Key r1 = Key.make(\"r1\");\n ParseDataset.parse(r1, k);\n testParsed(r1,pows10_exp);\n }",
"@Test\r\n\tpublic void testPositiveGenerateSignedIntegerSequences_3() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tHashMap<String,Object> o = roc.generateSignedIntegerSequences(3, 5, 0, 10, false, 16, userData);\r\n\t\t\t\t\r\n\t\t\t\tthis.signedValueTester(roc, i, o, String[][].class, true);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"void mo11024a(int i, int i2, String str);",
"@Override\r\n\tpublic vec3 get3(String ponits) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic List getListByResId(Integer resid) {\n\t\tString sql = \"select g.resid from GroupFunres g where resid = '\" + resid + \"'\";\n\t\tList list = this.queryForList(sql);\n\t\tList idList=new ArrayList();\n\t\tif (list != null && list.size() > 0) {\n\t\t\tfor(int i=0;i<list.size();i++){\n\t\t\t\tidList.add(list.get(i));\n\t\t\t}\n\t\t\treturn idList;\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n\tpublic int resid() {\n\t\treturn currnet().resid();\n\t}",
"private String insertarCartaNaturalResources() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 0,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 5,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n true,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }",
"public static int[][] AssetCreater(String srt) {\n\r\n\t\tint Length = ArrLength(srt);\r\n\r\n\t\tint[][] TempArr = new int[5][Length];\r\n\r\n\t\tint Xoffset = 0;\r\n\r\n\t\t// goes through entire word and if any letter corrisponds with a letter it's\r\n\t\t// testing for\r\n\t\t// it calls a function to add the new symbol to 2d array\r\n\r\n\t\t// I considered commenting all this but I think it's pretty self explanitory\r\n\r\n\t\tfor (int k = 0; k < srt.length(); k++) {\r\n\r\n\t\t\tif (srt.charAt(k) == '0') {\r\n\t\t\t\t// if it's 0 add Zero Matrix to the matrix\r\n\t\t\t\tTempArr = AddToArr(TempArr, Zero, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '1') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, One, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '2') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Two, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '3') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Three, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '4') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Four, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '5') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Five, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '6') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Six, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '7') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Seven, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '8') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Eight, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == '9') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, Nine, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'a') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ALetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'b') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, BLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'c') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, CLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'd') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, DLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'e') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ELetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'f') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, FLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'g') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, GLetter, 4, Xoffset);\r\n\r\n\t\t\t\t// G is a bigger number so I just add 1 to offset\r\n\t\t\t\tXoffset += 1;\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'h') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, HLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'i') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ILetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'j') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, JLetter, 4, Xoffset);\r\n\r\n\t\t\t\tXoffset += 1;\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'k') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, KLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'l') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, LLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'm') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, MLetter, 5, Xoffset);\r\n\r\n\t\t\t\tXoffset += 2;\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'n') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, NLetter, 4, Xoffset);\r\n\r\n\t\t\t\tXoffset += 1;\r\n\t\t\t} else if (srt.charAt(k) == 'o') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, OLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'p') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, PLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'q') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, QLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'r') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, RLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 's') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, SLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 't') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, TLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'u') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ULetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'v') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, VLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'w') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, WLetter, 5, Xoffset);\r\n\r\n\t\t\t\tXoffset += 2;\r\n\t\t\t} else if (srt.charAt(k) == 'x') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, XLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'y') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, YLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == 'z') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ZLetter, 4, Xoffset);\r\n\r\n\t\t\t\tXoffset += 1;\r\n\t\t\t} else if (srt.charAt(k) == ' ') {\r\n\t\t\t\tXoffset -= 2;\r\n\t\t\t\t// space is too big number so I just sub 2 from offset\r\n\r\n\t\t\t} else if (srt.charAt(k) == '-') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, DashLetter, 3, Xoffset);\r\n\r\n\t\t\t} else if (srt.charAt(k) == ':') {\r\n\r\n\t\t\t\tTempArr = AddToArr(TempArr, ColonLetter, 3, Xoffset);\r\n\r\n\t\t\t}\r\n\r\n\t\t\tXoffset += 4;\r\n\t\t}\r\n\t\treturn TempArr;\r\n\t}",
"private static void initSet1(String[] set1) {\n\t\tset1[0] = \"rs36129689\";\n\t\tset1[1] = \"rs36153986\";\n\t\tset1[2] = \"rs493934\";\n\t\tset1[3] = \"rs36146958\";\n\t\tset1[4] = \"rs36197089\";\n\t\tset1[5] = \"rs35773247\";\n\t\tset1[6] = \"rs35346884\";\n\t\tset1[7] = \"rs493040\";\n\t\tset1[8] = \"rs35473000\";\n\t\tset1[9] = \"rs123456\";\n\t\tset1[10] = \"rs1234567\";\n\t\tset1[11] = \"rs12345678\";\n\t\tset1[12] = \"rs1234234\";\n\t\tset1[13] = \"rs492232\";\n\t\tset1[14] = \"rs492184\";\n\t\tset1[15] = \"rs123123\";\n\t}",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_5() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString[][] response = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tString[][] response2 = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(3, 5, 0, 10, false, 16, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void setText(String text) {\n \tif (_assocModel == null) return;\n\t\tString mult;\n\t\tPattern p = Pattern.compile(\"([\\\\d]|\\\\Q*\\\\E)([.]{2}+([\\\\d]|\\\\Q*\\\\E))?\");\t// regex for multiplicities: (digit | *) + optional(.. (digit | *))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// can use a Collection to handle multiplicities of *; we really only care about\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the upper bound also\n\t\tMatcher m = p.matcher(text);\n\t\t// regex didn't find anything, so we'll assign a default multiplicity\n\t\tif (!m.find() || m.group().length() < 0) {\n\t\t\tmult=\"1\";\n\t\t}\n\t\telse mult = m.group();\n\t\t_assocModel.setMultiplicity(mult);\n\t\tsuper.setText(mult);\n\t}",
"public Integer getResnr() {\n\t\treturn this.resnr;\n\t}",
"static void perform_xri(String passed){\n\t\tint type = type_of_xri(passed);\n\t\tif(type==1)\n\t\t\txri_with_acc(passed);\n\t}",
"private void inzsr() {\n\t\tid1Ctdta = 1;\n\t\tstrCtdta = \"Each KGS \";\n\t\tfor (int idxCtdta = 1; idxCtdta <= 1; idxCtdta++) {\n\t\t\tum[idxCtdta] = subString(strCtdta, id1Ctdta, 11);\n\t\t\tid1Ctdta = Integer.valueOf(id1Ctdta + 11);\n\t\t}\n\t\t// Initialise message subfile\n\t\tnmfkpinds.setPgmInd32(true);\n\t\tstateVariable.setZzpgm(replaceStr(stateVariable.getZzpgm(), 1, 8, \"WWCONDET\"));\n\t\t// - Set date\n\t\tstateVariable.setZzdate(getDate().toInt());\n\t\t// -\n\t\t// - CONTRACT\n\t\tcontractHeader.retrieve(stateVariable.getXwordn());\n\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t// - CUSTOMER\n\t\tpurchases.retrieve(stateVariable.getXwbccd());\n\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t// BR00012 Debtor not found on Purchases\n\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\tstateVariable.setXwg4tx(all(\"-\", 40));\n\t\t}\n\t\t// - REPRESENTATIVE\n\t\tsalespersons.retrieve(stateVariable.getPerson());\n\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t// BR00013 Rep not found on Salespersons\n\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\tstateVariable.setPname(all(\"-\", 34));\n\t\t}\n\t\t// - STATUS\n\t\torderStatusDescription.retrieve(stateVariable.getXwstat());\n\t\tnmfkpinds.setPgmInd99(! lastIO.isFound());\n\t\t// BR00014 Status not found on Order_status_description\n\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\tstateVariable.setXwsdsc(all(\"-\", 20));\n\t\t}\n\t}",
"public String designPN(String nr)\r\n {\r\n String newStr=\"(\";\r\n if(nr.length()!=10){return null;}\r\n else\r\n {\r\n newStr=newStr+nr.substring(0,4)+\")-\";\r\n // System.out.println(\"phase 1 \"+ newStr);\r\n newStr=newStr+nr.substring(4,7)+\"-\";\r\n // System.out.println(\"phase 2 \"+ newStr);\r\n newStr=newStr+nr.substring(7,10);\r\n // System.out.println(\"phase 3 \"+ newStr);\r\n }\r\n return newStr;\r\n\r\n }",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_7() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(4, LENGTH, MIN, MAX, REPLACEMENT), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"public void readArmies(){\n\n for ( j= 0;j<countriesArmyLines.size();j++) {\n String [] armyLine = countriesArmyLines.get(j).split(\" \");\n vertices.get(Integer.parseInt(armyLine[1])-1).addArmies(Integer.parseInt(armyLine[2]));\n System.out.println(\"army \"+vertices.get(j).getNumberArmies());\n }\n // Read countries armies for AI agents\n\n for ( j= 0;j<countriesArmyLines.size();j++) {\n String [] armyLine = countriesArmyLines.get(j).split(\" \");\n allSCountries.get(Integer.parseInt(armyLine[1])).setNumberArmies(Integer.parseInt(armyLine[2]));\n // System.out.println(\"army \"+vertices.get(j).getNumberArmies());\n }\n NState.globalState.allCountries=allSCountries;\n }",
"public static String guessResidueTypeFromFeatureLength(int seqLength,\n int featureLength) {\n float basepairsPerResidue = (Math.abs((float)featureLength/\n (float)seqLength));\n return (basepairsPerResidue > 2.0 ? SequenceI.AA : SequenceI.DNA);\n }",
"void adobe_coeff( CharPtr make, CharPtr model) {\n \n adobe_coeff( make.toString(), model.toString());\n}",
"private static String lllIIllIl(short IIIlIIlllllIIll, String IIIIlIlllllIIll) {\n }",
"public String getRelationIdString(SpatialElement se1, String se1Role, SpatialElement se2, String se2Role, SpatialElement se3, String se3Role) {\n String idString = \"\";\n if (se1 != null && se2 != null && se3 != null) {\n se1.role = se1Role;\n se2.role = se2Role;\n se3.role = se3Role;\n idString = se1.id+\"-\"+se2.id+\"-\"+se3.id;\n }\n else if (se1 != null && se2 != null) {\n se1.role = se1Role;\n se2.role = se2Role;\n idString = se1.id+\"-\"+se2.id+\"-null\";\n }\n else if (se1 != null && se3 != null) {\n se1.role = se1Role;\n se3.role = se3Role;\n idString = se1.id+\"-null-\"+se3.id;\n }\n else if (se2 != null && se3 != null) {\n se2.role = se2Role;\n se3.role = se3Role;\n idString = \"null-\"+se2.id+\"-\"+se3.id;\n }\n return idString;\n }",
"public String[] getVariants_ru(int[] randIds){\n Cursor crs;\n String[] variants_ru = new String[4];\n for(int i = 0; i< 4; i++){\n String[] args = new String[1];\n args[0] = Integer.toString(randIds[i]+1);\n crs = aniDB.getReadableDatabase().rawQuery(\"SELECT name_ru FROM titles WHERE id = ?\",args);\n if(crs.moveToFirst()) {\n variants_ru[i] = crs.getString(crs.getColumnIndex(\"name_ru\"));\n }\n crs.close();\n }\n return variants_ru;\n }",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_9() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tint[][] response = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tint[][] response2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"public void setSpare3(String spare3) {\r\n this.spare3 = spare3;\r\n }",
"public void restricciones(String oraciones){\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Restricciones semanticas\");\n alert.setHeaderText(oraciones);\n alert.showAndWait();\n }",
"void mo8715r(String str, String str2, String str3);",
"static int type_of_inr(String passed){\n\t\tif(general_registers.contains(passed.charAt(4)))\n\t\t\treturn 1;\n\t\telse if(passed.charAt(4)=='M')\n\t\t\treturn 2;\n\t\telse\n\t\t\treturn 0;\n\t}",
"public void setRemark3(java.lang.String _remark3)\r\n {\r\n this._remark3 = _remark3;\r\n }",
"public Recipe(String[] in)\r\n {\r\n double temp;\r\n if (in.length == 3){\r\n this.origQty = in[0];\r\n this.measure = in[1];\r\n this.ingredient = in[2];\r\n this.w_qty = makeDecimal(in[0]);\r\n }\r\n else {if (in.length == 5) {\r\n this.origQty = in[0] + \" \" + in[1];\r\n this.measure = in[2];\r\n this.ingredient = in[3] + \" \" + in[4];\r\n temp = makeDecimal(in[1]);\r\n this.w_qty = Double.parseDouble(in[0])+ temp;\r\n }\r\n else if (in.length == 4) {\r\n if (in[1].contains(\"/\")) {\r\n this.origQty = in[0] + \" \" + in[1];\r\n this.measure = in[2];\r\n this.ingredient = in[3];\r\n temp = makeDecimal(in[1]);\r\n this.w_qty = temp + Double.parseDouble(in[0]);}\r\n else {\r\n this.origQty = in[0];\r\n this.measure = in[1];\r\n this.ingredient = in[2] + \" \" + in[3];\r\n this.w_qty = makeDecimal(in[0]);}\r\n }\r\n }\r\n this.working_measure = measure;\r\n this.final_measure = measure;\r\n }",
"public /* synthetic */ CinemaDescriptionItem(String str, int i2, int i3, f fVar) {\n this(str, (i3 & 2) != 0 ? 3 : i2);\n }",
"private static int _addPossibleValues(int rowNumber, int y, int x, short[][] spareMatrix,String[] rowIds, SudokuModel model) {\r\n\r\n\t\tfor(short i = 0; i <9; i++){\r\n\t\t\tif(!model.restrictionIsSatisfied(y, x, i+1))\r\n\t\t\trowNumber = _addRestrictions(rowNumber,y,x,i,spareMatrix,rowIds);\r\n\t\t}\r\n\t\t\r\n\t\treturn rowNumber;\r\n\t}",
"public static void loadMatric(int matr[][]) throws IOException{\n\n\t\tfor(int i=0;i<7;i++){\n\t\t\tfor(int j=0;j<6;j++){\n\t\t\t\tSystem.out.print(\"INSERISCI\"+i+j+\": \");\n\t\t\t\tSystem.out.flush();\n\t\t\t\tmatr[i][j]=System.in.read()-'0';\n\t\t\t\tSystem.in.skip(2);\n\t\t\t}}}",
"public TextPropDefaultViewModel_ textWithDefaultQuantityRes(@PluralsRes int pluralRes,\n int quantity, Object... formatArgs) {\n onMutation();\n assignedAttributes_epoxyGeneratedModel.set(0);\n textWithDefault_StringAttributeData.setValue(pluralRes, quantity, formatArgs);\n return this;\n }",
"public boolean restrizione14()\r\n\t\tthrows RestrizioniSpecException\r\n\t\t{\r\n\t\tfor (int i = 0; i < this.equivalenzeInput.size(); i++)\r\n\t\t\t{\r\n\t\t\t// si preleva il nome dell'interazione di output connessa a questa componente\r\n\t\t\tAttacDecl attacDecl = this.attacsDeclInput.get(i);\r\n\t\t\tString string = attacDecl.getOutputInteraction();\r\n\t\t\t// si preleva la relativa equivalenza\r\n\t\t\tIEquivalenza equivalenza = this.equivalenzeInput.get(i);\r\n\t\t\t// si preleva l'azione corrispondente a string\r\n\t\t\tAction action = equivalenza.getActionFromName(string);\r\n\t\t\tif (action == null)\r\n\t\t\t\t{\r\n\t\t\t\tString string2 = equivalenza.getAEIdecl().getName();\r\n\t\t\t\tthrow new RestrizioniSpecException(\"The \"+string+\" action of instance \"+\r\n\t\t\t\t\t\tstring2+\" don't found\");\r\n\t\t\t\t}\r\n\t\t\tActionRate actionRate = action.getRate();\r\n\t\t\tif (!(actionRate instanceof RateInf))\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\treturn true;\r\n\t\t}",
"public void setNoOfRelevantLines(int norl) { this.noOfRelevantLines = norl; }",
"void playYearOfPlentyCard(String resource1, String resource2);",
"public int cuantosRenglones() \r\n\t{\r\n\t\tString respuesta = JOptionPane.showInputDialog(\"cuantas renglones quiere\");\r\n\t\tint respuesta1 = Integer.parseInt(respuesta);\r\n\t\treturn respuesta1;\r\n\t}",
"public boolean hasResidues() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"java.lang.String getNum1();",
"static int size_of_rrc(String passed){\n\t\treturn 1;\n\t}",
"public void agregarpal(String n) {\n\n switch (pos) {\n case 0:\n pal1 = n;\n case 1:\n pal2 = n;\n case 2:\n pal3 = n;\n case 3:\n pal4 = n;\n case 4:\n pal5 = n;\n break;\n }//fin switch\n\n pos++;\n }",
"public void int3_m() {\n\t\t\n\t}",
"public static void muestraArreglo(int[] arreglo) {\r\n\t\tfor (int i = 0; i < arreglo.length; i++) {\r\n\t\t\tescribir(\"[\" + arreglo[i] + \"]\", false);\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n\t\tRandom rand = new Random();\n\t\tint first = rand.nextInt(7);\n\t\tint second = rand.nextInt(7);\n\t\tint third = rand.nextInt(7);\n\t\t\n\t\tint middle = rand.nextInt(741);\n\t\t\n\t\tint last = rand.nextInt(9999);\n\t\t\n\t\tString middleString= Integer.toString(middle);\n\t\tString lastString = Integer.toString(last); \n\t\tString firstString = Integer.toString(first);\n\t\tString secondString = Integer.toString(second);\n\t\tString thirdString = Integer.toString(third);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\twhile (middleString.length()<3) {\n\t\t\tmiddleString = \"0\" + middleString;\n\t\t\t\n\t\t}\n\t\t\n\t\twhile (lastString.length()<4){\n\t\t\tlastString = \"0\" + lastString;\n\t\t}\n\t\t\n\t\tSystem.out.println(firstString + secondString + thirdString + \"-\"+ middleString +\"-\"+ lastString);\n\t\t\n\t\t\n\t}",
"public boolean hasResidues() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_8() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(4, LENGTH, MIN, MAX, REPLACEMENT, BASE), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"public String getChoice3(int a){\n String choice2 = choices[a][2];\n return choice2;\n }",
"@Override\n\tpublic void setStreet3(java.lang.String street3) {\n\t\t_candidate.setStreet3(street3);\n\t}",
"static void initSample4(){\n // put values into the sField\n sField[5][4] = \"X\";\n sField[4][5] = \".\";\n sField[3][6] = \"X\";\n sField[2][7] = \"X\";\n sField[1][8] = \"X\";\n \n sField[1][5] = \"O\";\n sField[1][6] = \"O\";\n sField[1][7] = \".\"; \n }",
"private String theFunctionThatSolvesAllProblems(String input) throws IOException {\n\n first = new MyInt[9];\n second = new MyInt[9];\n third = new MyInt[9];\n myPointers = new MyIntPointer[7];\n\n M = new MyInt();\n D = new MyInt();\n C = new MyInt();\n L = new MyInt();\n X = new MyInt();\n V = new MyInt();\n I = new MyInt();\n\n hasI = false;\n hasX = false;\n hasC = false;\n hasM = false;\n hasV = false;\n hasL = false;\n hasD = false;\n\n firstLength = 0;\n secondLength = 0;\n thirdLength = 0;\n\n initializeEquation(input);\n\n return arabic();\n\n }",
"public StrumInstrument(String type, String manufacturer, int nrStrings, double stringSize) {\n super(type, manufacturer);\n this.nrStrings = nrStrings;\n this.stringSize = stringSize;\n }",
"public int[] contarCodons(String seq){\n int [] countCodons=new int[65];\n for (int i=0;i<seq.length()-2;i=i+3){\n String c=seq.substring(i, i+3);\n int j=0;\n while (j<nameCodon.length && nameCodon[j].compareTo(c)!=0) j++;\n if (j<nameCodon.length)\n countCodons[j]++;\n else\n countCodons[64]++;\n }\n return countCodons;\n\n }",
"public void setSecondary3(java.lang.String secondary3) {\n this.secondary3 = secondary3;\n }",
"@Test\n public void execute_nricParameter() throws ParseException {\n //No user input\n execute_parameterPredicate_test(0, \" \", \"nric\", true, false, Collections.emptyList());\n //Single keyword, ignore case, person found.\n execute_parameterPredicate_test(1, \"s1234567A\", \"nric\", true, false, Arrays.asList(ALICE));\n //Single keyword, case sensitive, no one found.\n execute_parameterPredicate_test(0, \"s1234567A\", \"nric\", false, false, Collections.emptyList());\n //Multiple keywords, ignore case, or condition, multiple people found\n execute_parameterPredicate_test(2, \"S1234567a S5234569A\", \"nric\", true, false, Arrays.asList(ALICE, GEORGE));\n //Multiple keywords, ignore case, and condition, no one found\n execute_parameterPredicate_test(0, \"S1234567a S5234569A\", \"nric\", true, true, Collections.emptyList());\n //Multiple keywords, case sensitive, or condition, one person found\n execute_parameterPredicate_test(1, \"S1234567a S5234569A\", \"nric\", false, false, Arrays.asList(GEORGE));\n //Multiple keywords, case sensitive, and condition, no one found\n execute_parameterPredicate_test(0, \"S1234567a S5234569A\", \"nric\", false, true, Collections.emptyList());\n }",
"@Nullable public abstract String loadVerseText(int ari);",
"public void setIDINTERNODC(int value) {\n this.idinternodc = value;\n }",
"public int getImageResourceIdForExercise(Context context){\n\n TypedArray imagesArray = context.getResources().obtainTypedArray(R.array.images_array);\n int id = 0;\n\n if(musclePart == 1) {\n return imagesArray.getResourceId((exeNumber -1),0);\n }else {\n for (int i = 1; i < imagesArray.length(); i++) {\n if(i == (((musclePart - 1) * 6) + exeNumber) - 1){\n id = imagesArray.getResourceId(i,0);\n break;\n }\n }\n }\n imagesArray.recycle();\n return id;\n }",
"static void lxi_to_reg_pair(String passed){\n\t\tchar fourth = passed.charAt(4);\n\t\tif(fourth=='B'){\n\t\t\tregisters.put('B', passed.substring(6,8));\n\t\t\tregisters.put('C', passed.substring(8));\n\t\t}\n\t\telse if(fourth=='D'){\n\t\t\tregisters.put('D', passed.substring(6,8));\n\t\t\tregisters.put('E', passed.substring(8));\n\t\t}\n\t\telse if(fourth=='H'){\n\t\t\tregisters.put('H', passed.substring(6,8));\n\t\t\tregisters.put('L', passed.substring(8));\n\t\t}\n\t}",
"public void mo32111rr(int i) {\n }",
"static int size_of_lxi(String passed){\n\t\treturn 3;\n\t}",
"@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_10() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tString[][] response = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, BASE, identifier);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tString[][] response2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, BASE, identifier);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t\tresponse = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, BASE, date);\r\n\t\t\t\tcollector.checkThat(response, notNullValue());\r\n\t\t\t\t\r\n\t\t\t\tresponse2 = roc.generateIntegerSequences(4, LENGTH, MIN, MAX, \r\n\t\t\t\t\t\tREPLACEMENT, BASE, date);\r\n\t\t\t\tcollector.checkThat(response, equalTo(response2));\r\n\t\t\t\t\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"public void setResearchno(String researchno) {\r\n\t\tthis.researchno = researchno;\r\n\t}",
"public static void main(String[] args) {\n //The letters are randomly chosen through this block of code with use of ASCII code.\n char let1 = (char) ((int)(Math.random() * 26 + 65));\n char let2 = (char) ((int)(Math.random() * 26 + 65));\n char let3 = (char) ((int)(Math.random() * 26 + 65));\n \n //This generates a number of four digits to follow the letters. \n int num = (int)(Math.random() * 9000 + 999);\n \n //The combination is now printed to the screen through this. \n System.out.println(\"The plate number is \" + let1 + let2 +let3 + num); \n }"
] | [
"0.6329081",
"0.6194227",
"0.54719037",
"0.53454846",
"0.518184",
"0.5128492",
"0.49376035",
"0.48442668",
"0.4724605",
"0.47152042",
"0.46729997",
"0.46720904",
"0.46649334",
"0.46318775",
"0.45997924",
"0.45697337",
"0.4542916",
"0.45292935",
"0.4528893",
"0.4520108",
"0.4519737",
"0.44881666",
"0.44780436",
"0.44735065",
"0.44489574",
"0.44477877",
"0.444215",
"0.44362456",
"0.44323435",
"0.44189802",
"0.44128108",
"0.44005463",
"0.4376711",
"0.43688625",
"0.43648276",
"0.43617478",
"0.43591163",
"0.43416727",
"0.4335052",
"0.43315908",
"0.4329952",
"0.43269566",
"0.43071407",
"0.43052205",
"0.4292204",
"0.4291854",
"0.42805734",
"0.4268324",
"0.42664614",
"0.42613685",
"0.42600182",
"0.42569944",
"0.4249713",
"0.42468822",
"0.42467374",
"0.42442796",
"0.4241471",
"0.42339703",
"0.4233759",
"0.42332256",
"0.42295268",
"0.42280847",
"0.4224324",
"0.42241433",
"0.42238563",
"0.42236635",
"0.42236212",
"0.4223061",
"0.4221378",
"0.42211592",
"0.42188528",
"0.42151642",
"0.4209863",
"0.42045972",
"0.42030525",
"0.42028436",
"0.42011267",
"0.41935775",
"0.41925663",
"0.4190933",
"0.41856375",
"0.4185583",
"0.418238",
"0.4180645",
"0.4177586",
"0.41763222",
"0.41750142",
"0.4172534",
"0.4164202",
"0.41633672",
"0.41617814",
"0.4157633",
"0.41560853",
"0.4150837",
"0.4150766",
"0.4150187",
"0.41422424",
"0.41411856",
"0.4141147",
"0.4139943"
] | 0.5433558 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.